Warning message: In normalizePath(path.expand(path), winslash, mustWork) : path[1]="\\edu.lan\users\real\Personal\jaagup0299\My Documents/R/win-library/3.2": Juurdepääs on keelatud R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > keskminesagedus=1.5 > uuritavsagedus=1 > exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) [1] 0.3346952 > keskminesagedus=1.5 > uuritavsagedus=2 > exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) [1] 0.2510214 > keskminesagedus=0.5 > uuritavsagedus=0 > exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) [1] 0.6065307 > > keskminesagedus=0.5 > uuritavsagedus=1 > exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) [1] 0.3032653 > > keskminesagedus=0.5 > uuritavsagedus=2 > exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) [1] 0.07581633 > > keskminesagedus=0.5 > uuritavsagedus=3 > exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) [1] 0.01263606 > > summa=0 > keskminesagedus=0.5 > for(uuritavsagedus in 3:10){ + summa=summa+exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) + } > summa [1] 0.01438768 > summa=0 > keskminesagedus=0.5 > for(uuritavsagedus in 3:10){ + summa=summa+exp(-keskminesagedus)*(keskminesagedus**uuritavsagedus/factorial(uuritavsagedus)) + } > paste("3-10: ", summa) [1] "3-10: 0.0143876779592298" > m=rnorm(100, 70, 10) > m [1] 71.13456 67.49638 71.56577 65.42976 75.43986 65.96347 60.82448 74.87561 [9] 37.39223 75.84599 67.26586 69.07593 78.18914 72.11876 63.67557 53.82292 [17] 55.33514 68.56096 74.34083 71.73259 72.21168 74.73672 58.74174 70.91681 [25] 76.06850 74.34162 65.13886 66.75370 60.48852 70.13300 71.41518 64.43542 [33] 76.20664 42.17294 80.05138 72.19382 67.38796 71.36126 67.09045 72.34127 [41] 73.15905 66.05789 70.90155 87.23144 53.23846 55.88609 67.15041 67.25558 [49] 77.76022 74.02850 58.70315 77.36891 78.83573 84.89607 89.92469 52.68602 [57] 72.85803 75.15689 53.51292 67.46761 70.31334 64.41950 74.59397 78.08049 [65] 92.38496 61.59565 66.47848 54.87358 70.44563 74.32814 56.07117 57.67899 [73] 70.85856 70.80549 68.80825 75.16750 64.64175 71.68634 68.20941 68.79240 [81] 61.67532 87.36461 64.22488 76.41658 65.95591 75.31777 92.14848 68.40708 [89] 62.54826 67.02523 75.02010 79.56580 57.61625 76.59617 76.43425 81.71292 [97] 74.56165 65.84288 64.20364 73.24928 > hist(m) > m=rnorm(1000, 70, 10) > hist(m) > m=rnorm(1000, 70, 10) > hist(m) > m=rnorm(10000, 70, 10) > hist(m) > m=rnorm(10000, 70, 10) > hist(m) > m=rnorm(10000, 70, 20) > hist(m) > m[m<50] [1] 45.798836 46.918419 31.833023 34.264711 46.725356 48.338894 [7] 47.116448 29.477017 26.037565 38.432143 43.486942 28.565852 [13] 28.233533 48.786751 35.629333 45.006982 33.183628 49.065054 [19] 45.299911 42.889540 37.936595 47.298789 37.387101 38.340032 [25] 39.747317 40.936598 46.333602 40.843395 25.192986 35.208765 [31] 43.035987 45.228777 46.298054 45.022924 45.472595 49.801851 [37] 38.542049 46.243439 46.111357 26.742242 45.168199 41.678964 [43] 32.633141 42.273497 49.040822 30.527909 44.187379 38.353379 [49] 16.539451 29.317923 39.615049 39.745124 42.612080 34.227304 [55] 44.308197 45.892048 49.142991 42.174852 25.284617 49.070929 [61] 49.064388 39.218658 39.808761 46.590344 44.534427 40.967330 [67] 38.969950 49.112925 37.847037 48.951060 43.838503 41.468324 [73] 35.284064 49.749121 47.153913 49.954818 38.257447 42.384820 [79] 45.357214 38.148555 37.896455 39.307921 23.035356 44.835490 [85] 47.499627 49.264939 47.336745 43.578917 48.180135 49.731971 [91] 49.427303 41.374633 43.509244 25.260247 41.375817 47.802890 [97] 41.194158 35.886748 37.453330 42.501741 36.291024 42.418478 [103] 23.316293 41.012056 48.270331 17.050596 43.324615 44.354700 [109] 45.288937 36.673164 46.774412 25.485414 31.265917 49.703914 [115] 31.170938 30.663561 48.989208 35.304909 46.967265 33.880436 [121] 47.912023 13.489796 48.253119 46.055895 44.889315 43.417968 [127] 44.944902 32.879839 36.793073 38.424570 43.960339 43.917152 [133] 9.343477 33.266777 37.860633 32.557090 45.537961 35.838659 [139] 41.389896 48.008224 46.832728 40.404021 20.895776 49.266398 [145] 41.559453 49.062767 44.347508 35.933608 37.455958 48.599700 [151] 35.645411 40.196454 43.957020 11.191383 33.772059 45.712080 [157] 24.408129 46.761481 36.215277 21.319106 42.860155 43.803778 [163] 22.293647 22.955152 38.131954 23.322611 47.650390 46.265609 [169] 39.281462 41.821218 46.329405 24.001671 47.937674 49.711286 [175] 48.385378 10.377033 46.540861 46.090924 43.037223 46.509383 [181] 39.954937 30.763025 47.645173 39.806687 42.182243 46.234226 [187] 43.843752 29.855729 39.204719 36.158768 22.701651 48.698328 [193] 48.767015 31.309472 49.049874 46.280906 44.062793 48.379953 [199] 47.431972 20.665088 42.225949 43.978949 46.234011 49.819927 [205] 45.451037 36.153836 41.349274 41.744745 44.292955 49.432330 [211] 29.039456 36.630627 45.219262 38.214704 41.648618 48.982174 [217] 39.314655 46.922829 44.014572 22.668060 34.933286 33.755695 [223] 47.627875 32.145248 32.871176 49.400893 37.267015 36.819553 [229] 49.581865 47.140060 41.735448 49.386054 35.638880 47.750410 [235] 29.333124 40.257851 30.013387 38.523635 38.864141 34.088475 [241] 22.425904 45.591586 47.483678 46.666167 39.535390 41.462157 [247] 37.699789 46.864722 13.504129 49.831561 35.970374 44.271253 [253] 45.454613 34.777999 43.175065 48.695650 36.821857 47.394700 [259] 20.952482 34.144384 49.084085 46.693412 42.296203 45.875379 [265] 43.583625 40.766702 35.098418 29.899164 28.323097 25.951722 [271] 28.625366 34.636986 42.211087 41.228608 43.253760 39.695995 [277] 48.251316 45.156868 42.882669 46.371424 49.383352 49.936017 [283] 45.602649 38.230765 47.237494 44.475753 12.754011 35.699592 [289] 49.235781 34.660172 48.343249 49.698437 42.213831 46.668114 [295] 27.885982 44.366971 31.309215 35.006212 30.180008 42.159471 [301] 47.564872 43.496824 48.404754 48.483545 45.403229 27.964657 [307] 37.446265 44.344654 17.150427 43.086608 34.557185 15.916336 [313] 47.722111 34.332813 49.340334 34.987296 31.043270 45.199995 [319] 39.695501 46.574893 30.602886 45.664525 9.289784 47.689376 [325] 44.020494 44.243960 39.746344 39.999715 35.665419 29.304052 [331] 47.287581 48.741678 19.179940 43.919694 38.699837 32.724212 [337] 34.203144 39.923199 48.515995 46.622366 40.373270 41.202845 [343] 41.672009 39.312359 47.476978 42.105834 43.085413 47.686155 [349] 37.403126 35.270541 43.912679 30.840725 39.638653 42.264355 [355] 31.907447 39.463985 43.066440 38.782311 46.828641 30.197151 [361] 32.716891 44.061668 44.693725 43.923640 42.564621 34.052437 [367] 49.995154 43.324962 23.357786 36.677602 36.724569 39.202880 [373] 44.697231 45.908177 18.103399 46.050312 48.514061 45.259818 [379] 41.726803 29.072302 48.223609 40.539763 13.021070 44.843158 [385] 49.930698 48.683686 48.748757 39.345073 43.783123 49.762175 [391] 48.524116 26.746976 46.677418 25.512199 32.098644 41.473005 [397] 43.609904 48.014312 46.320907 47.091364 44.015863 40.444345 [403] 46.788387 39.856944 49.720083 44.937827 32.600092 41.166157 [409] 39.949648 38.510533 43.966748 43.888094 47.756120 48.583262 [415] 40.681426 46.903836 49.810522 25.440227 26.144455 38.224575 [421] 43.509261 33.822116 30.888450 43.520731 34.567946 22.149633 [427] 33.905633 49.353574 45.600846 42.926289 32.441396 46.994235 [433] 40.725358 44.185546 45.960814 45.444819 41.702456 38.540662 [439] 35.386440 40.717168 44.220250 38.239060 45.309325 48.838078 [445] 47.124100 41.364660 45.840670 31.022804 49.040229 49.798027 [451] 35.058309 48.468671 41.092825 41.985654 39.956387 31.879123 [457] 6.655327 38.454616 43.693132 38.169636 38.093250 28.963263 [463] 5.312224 47.820887 32.143958 48.436713 42.324462 36.368219 [469] 48.489488 45.280810 47.699327 42.509401 44.866602 43.281181 [475] 37.315400 23.494034 43.991228 34.943089 38.941301 43.668306 [481] 43.564353 40.301572 39.237901 44.933985 40.803406 37.963055 [487] 37.114046 47.669825 27.026704 39.451341 39.142597 47.178924 [493] 46.168483 48.717358 43.994606 27.805993 36.828620 46.693179 [499] 45.376706 46.481122 46.111014 35.816862 45.355672 44.675448 [505] 46.846605 38.529456 34.373683 34.537118 39.594176 47.680605 [511] 47.158270 29.005947 37.718278 32.962291 41.126636 14.315145 [517] 47.181431 48.784759 30.897743 46.763946 49.040560 46.593408 [523] 30.442919 40.763785 33.611252 33.704231 25.501977 46.683567 [529] 48.526817 36.526700 35.414421 35.204694 48.731013 34.178351 [535] 29.284571 40.671228 49.629319 48.054304 33.516354 28.206718 [541] 47.290516 44.551620 35.088703 16.003717 35.980010 38.376156 [547] 31.964049 42.662488 39.356849 48.569273 39.765940 35.354654 [553] 27.623719 49.726727 39.299859 38.338996 47.006503 29.814042 [559] 30.052630 45.948273 47.553574 49.794175 40.740501 30.495054 [565] 39.935306 36.340781 46.255648 25.172439 49.910411 36.173653 [571] 48.092105 45.152008 39.543711 33.488436 47.760958 29.108472 [577] 44.941001 47.884383 38.829307 44.781386 37.053608 47.291897 [583] 38.705473 40.598510 47.251705 41.080683 45.185655 49.170727 [589] 18.394671 37.583669 42.938568 37.526502 46.360872 39.381555 [595] 26.156929 37.158355 45.613095 48.598781 44.064535 45.014531 [601] 41.176264 28.348894 29.031282 41.256296 48.697738 48.021906 [607] 39.960814 31.138121 43.275619 45.314581 47.261768 39.103733 [613] 46.948374 44.933781 49.817431 32.512259 36.156881 37.822385 [619] 46.261574 38.178572 41.128557 10.790857 36.434004 46.793357 [625] 42.473451 45.745842 39.848911 46.899564 33.038839 49.479272 [631] 48.766616 30.012870 44.097572 38.644420 43.530160 30.505929 [637] 40.705983 43.874704 48.125790 34.858382 44.843686 46.774013 [643] 45.488361 45.739312 42.832141 46.508204 48.209600 17.231723 [649] 38.336422 40.710718 39.518387 38.318730 38.671689 42.680311 [655] 39.622474 42.532250 26.218335 41.060978 48.133966 26.224146 [661] 31.137970 29.504496 45.803257 47.029241 43.546656 43.103775 [667] 46.019815 35.030360 42.790247 49.280587 42.091761 43.816100 [673] 25.169063 49.069128 42.463218 44.513758 44.128352 31.808792 [679] 48.922276 49.476466 41.891174 31.745823 40.739191 37.099421 [685] 49.312894 44.747301 48.130111 48.584006 47.390030 37.230289 [691] 46.980772 43.241258 36.893334 32.811625 44.392241 35.474515 [697] 41.599258 34.455150 39.645205 33.609056 24.468930 45.010217 [703] 28.452251 37.142557 32.848224 47.684751 49.444435 46.483424 [709] 48.711288 45.553201 29.006442 48.713549 48.079736 48.536448 [715] 42.608443 43.513568 47.809378 30.354011 44.295008 36.911929 [721] 46.983109 44.140295 44.712583 47.769298 47.035771 28.519389 [727] 42.621802 47.592892 39.890286 47.845973 41.698043 33.411873 [733] 46.716098 45.096592 48.164147 30.233771 20.753655 41.505021 [739] 31.435087 42.555322 28.792514 48.387585 46.446214 48.462006 [745] 48.385222 46.885712 46.005209 34.379735 18.009302 38.607906 [751] 29.944568 46.339179 42.238772 41.397203 47.345866 44.451370 [757] 44.748950 42.090436 39.768100 45.868681 45.721486 40.032262 [763] 22.948086 46.575954 47.519310 29.114840 44.717615 46.992517 [769] 35.165324 36.794558 41.593603 35.845421 35.471339 46.432035 [775] 43.750127 16.539657 44.660352 29.300534 48.610720 44.580886 [781] 41.687880 46.566902 43.693727 48.174218 42.828081 47.191434 [787] 20.489440 29.888027 43.681383 44.322061 36.396981 16.083826 [793] 28.541276 37.118343 44.025959 47.449767 47.024464 10.274244 [799] 31.147104 47.950780 26.814641 25.823189 48.744686 38.734020 [805] 40.067176 33.642003 18.950732 36.819569 48.081477 39.128966 [811] 47.290348 36.561166 29.459326 42.654475 48.552499 40.751632 [817] 28.807423 39.768997 47.866759 49.966064 48.022918 47.699699 [823] 42.311026 30.592980 45.997273 44.506256 44.983998 45.543640 [829] 30.056170 44.748880 37.093938 47.379928 44.173497 28.064737 [835] 37.674059 49.053096 23.213572 23.018955 48.108294 46.326731 [841] 41.349362 49.411243 31.221866 39.095333 27.284963 24.921303 [847] 6.505743 32.990467 47.652363 44.612457 29.651461 49.505931 [853] 43.824140 33.739693 44.143856 31.314261 45.401977 43.206870 [859] 37.607636 42.416735 42.743052 35.213571 49.219359 24.253584 [865] 12.610134 40.216922 39.846762 40.779154 39.302061 46.941248 [871] 46.119078 37.862730 29.855639 35.305140 42.571001 48.612305 [877] 48.888084 20.799770 36.377555 44.714434 41.349489 25.066253 [883] 49.635498 33.729979 44.476671 45.492362 48.344802 42.616755 [889] 44.341354 34.200916 38.341739 40.654020 37.591614 31.506582 [895] 49.156072 26.089540 49.812354 41.752262 38.700274 41.372944 [901] 36.914873 28.223094 47.102738 41.188981 46.472419 45.146734 [907] 45.999697 38.428217 47.015163 48.166014 36.585691 41.985894 [913] 27.203657 42.117194 42.466614 31.820530 44.207528 46.115418 [919] 43.733065 47.745650 46.050605 45.612676 36.798009 44.730695 [925] 49.242356 43.705642 34.686571 47.778275 31.984959 44.115869 [931] 31.278886 34.553585 24.184019 21.451591 43.726112 48.812630 [937] 47.217697 44.003636 31.976775 41.946552 48.531289 23.444154 [943] 40.827809 33.932496 36.026700 41.337591 25.471377 44.905695 [949] 41.395888 24.857095 38.364123 47.295501 40.415872 49.548840 [955] 48.906375 16.184498 30.808381 47.847890 32.991506 49.825739 [961] 45.228139 38.734909 48.286413 35.756647 35.975787 48.660379 [967] 45.156557 34.036200 40.293770 48.644427 47.805501 27.966492 [973] 47.777441 47.018887 46.534612 44.087636 14.432618 30.009519 [979] 29.888246 35.582898 41.618969 45.524101 24.887820 47.597131 [985] 30.822581 39.964857 43.411893 40.808478 49.091907 40.217047 [991] 46.715828 30.381500 39.149044 43.922494 31.413743 21.096746 [997] 46.445076 49.021459 38.723830 44.660588 29.123334 25.676613 [1003] 46.957995 45.505474 46.463767 45.204735 46.998263 45.986599 [1009] 29.865328 25.709333 16.227260 40.577244 37.405465 46.514412 [1015] 39.859259 38.640342 47.124773 40.498641 22.950107 37.461220 [1021] 34.848238 38.290245 33.791108 39.430134 49.840809 37.197363 [1027] 32.076625 48.373688 38.367582 37.523699 43.810276 46.117554 [1033] 22.229290 46.732604 35.859594 49.456532 33.363180 34.408931 [1039] 42.638378 37.348444 33.852186 41.983497 43.507894 43.628969 [1045] 41.021640 26.826839 21.420277 43.828340 41.741251 44.864723 [1051] 37.728465 39.459569 47.015607 38.702194 32.676595 24.121055 [1057] 42.542689 37.911396 40.714266 39.244287 41.821544 36.196739 [1063] 44.460726 49.938914 39.026378 27.504449 37.553246 27.750606 [1069] 44.416850 47.593209 28.153430 39.149410 42.972005 46.533549 [1075] 40.612123 44.430614 24.599866 32.516656 44.100123 44.574590 [1081] 44.045842 37.095429 49.933382 37.948521 47.461119 49.170382 [1087] 6.911013 42.391938 37.531437 37.940696 43.151683 39.389717 [1093] 47.305441 41.096869 35.926613 37.815898 44.277390 27.443976 [1099] 31.432406 43.602667 33.440102 43.879461 49.333822 47.843841 [1105] 34.891609 31.430089 21.461377 49.895060 47.384806 38.023326 [1111] 48.222480 39.667625 46.118416 39.332160 48.723306 38.858401 [1117] 43.966531 39.225260 25.562700 30.225169 42.026670 47.664883 [1123] 28.435727 48.522114 21.580704 26.835493 42.620365 42.444123 [1129] 41.184979 41.617279 31.497820 43.821188 35.349277 47.757590 [1135] 45.235337 18.787461 38.652490 49.221595 44.297205 48.144643 [1141] 47.174145 41.713414 37.440397 33.643017 31.510033 41.770479 [1147] 42.200886 30.695002 47.306392 17.226434 47.376906 43.725419 [1153] 17.148823 43.677682 39.916496 26.238321 42.868590 49.028375 [1159] 40.978628 43.026210 45.184953 47.288391 44.184941 46.693448 [1165] 46.756648 31.488313 40.878088 30.738091 39.895889 45.636390 [1171] 48.289638 14.111564 19.079259 49.103425 29.422595 41.914453 [1177] 30.965491 46.436537 35.380253 42.067344 45.516717 46.015370 [1183] 39.964290 48.440275 30.233138 40.880806 38.495103 47.201697 [1189] 40.965268 39.696613 46.170889 49.178290 47.759247 27.593956 [1195] 49.026032 39.742875 42.608392 48.423842 42.752934 30.981678 [1201] 39.816385 43.069047 49.339067 49.441363 49.772538 27.228465 [1207] 42.579422 42.838154 36.215554 43.985089 48.593053 32.173457 [1213] 45.273933 41.095515 36.239616 36.133353 29.720981 43.029132 [1219] 35.312715 41.556532 46.817319 45.830974 49.804845 -2.457340 [1225] 39.499432 42.691323 42.766441 46.471800 49.821888 39.043827 [1231] 43.722851 35.943639 28.294670 48.569425 33.614420 45.483413 [1237] 18.543599 49.760005 22.603988 35.607602 33.798460 43.140910 [1243] 49.550936 44.045910 41.873038 42.983963 32.082802 45.236360 [1249] 49.887392 40.034946 47.862549 48.945319 48.419623 44.811164 [1255] 43.943727 33.505534 41.265970 45.045175 38.383130 36.856140 [1261] 39.923498 27.663732 31.123203 49.660988 37.383477 41.427953 [1267] 15.434106 44.073896 23.749325 47.475999 42.379712 46.176764 [1273] 26.735087 44.669840 43.021015 41.095199 30.896211 45.627854 [1279] 43.576946 37.994022 45.501183 27.153846 40.764110 36.449822 [1285] 48.211542 41.955845 42.474654 -11.989986 42.138049 47.070313 [1291] 42.559914 46.308901 48.245038 48.143488 26.394588 35.179874 [1297] 40.928445 43.760909 49.636091 31.956018 43.157769 43.602799 [1303] 34.786477 44.027615 38.371901 26.853224 37.270647 49.198488 [1309] 12.099748 34.635880 42.808674 35.049065 44.352508 11.612553 [1315] 40.273595 49.670131 42.272422 22.148560 34.281185 45.718775 [1321] 39.445098 34.911032 47.526452 45.741791 33.630621 41.116597 [1327] 36.355646 24.670661 46.046865 29.155325 18.767382 46.663045 [1333] 18.650246 39.623067 47.915542 46.897030 39.843725 37.594936 [1339] 48.138872 37.757243 47.313343 48.776140 36.092280 49.900150 [1345] 49.625583 42.338199 47.040246 40.627979 46.462689 27.309892 [1351] 45.641851 46.490648 33.467329 21.436960 41.008615 22.593870 [1357] 39.940397 27.170756 33.686032 46.262801 32.931808 32.251684 [1363] 46.809126 39.799103 46.940522 40.251831 46.310732 49.939671 [1369] 15.483829 36.731813 38.753075 27.763313 26.122177 44.341335 [1375] 28.990529 46.939383 29.179053 39.783132 34.453973 47.033028 [1381] 42.488984 48.613324 35.624137 48.304970 49.006380 47.206465 [1387] 42.562519 36.549673 45.218228 32.986282 49.358794 39.044783 [1393] 46.597980 37.065481 36.546455 44.579747 46.119158 41.077396 [1399] 38.219309 49.950305 41.662342 41.479942 45.781359 23.106721 [1405] 32.379177 43.892065 42.003124 33.458896 47.263736 45.748361 [1411] 35.187339 45.987296 41.263445 15.701172 38.498978 26.850277 [1417] 35.855495 31.537414 46.212882 41.009559 45.475130 43.939143 [1423] 41.507362 41.805808 49.721153 36.120763 38.826509 43.501982 [1429] 32.985940 40.684774 46.621833 39.186200 47.275899 47.347446 [1435] 46.381785 33.891368 32.056581 39.418079 7.579984 26.444738 [1441] 42.536412 36.300303 37.710153 42.220755 47.106529 42.314596 [1447] 43.876587 36.506542 48.011728 27.423088 47.333702 46.767832 [1453] 45.231829 41.726712 48.636849 44.239246 46.858608 44.383903 [1459] 22.165067 49.424190 44.427504 37.092815 34.746640 40.543091 [1465] 42.410004 47.955196 35.923132 48.077515 47.254335 39.171257 [1471] 47.462157 20.734382 46.908184 38.098928 42.413842 39.425454 [1477] 34.261877 43.300175 20.578167 44.853508 34.861931 46.015123 [1483] 37.763841 20.349419 38.654916 37.562674 21.585807 49.590424 [1489] 29.709227 36.040636 41.351176 20.911541 36.620414 40.582894 [1495] 38.134725 43.101233 46.120184 46.785521 40.604882 48.225167 [1501] 42.821459 45.936087 10.132828 46.359175 43.590350 37.363946 [1507] 48.841617 40.305733 36.496927 34.123733 26.445892 33.031903 [1513] 45.760470 37.246592 40.275021 33.927029 49.461184 38.267554 [1519] 36.324352 39.920898 45.138390 38.007493 -7.224320 44.746115 [1525] 48.540292 48.344825 29.130568 46.840283 39.958982 49.653725 [1531] 39.647626 37.295316 35.762972 32.451729 28.421445 39.414178 [1537] 28.341750 41.121735 37.137553 48.191374 44.984181 35.797180 [1543] 40.704112 47.419930 41.805267 35.415398 48.249919 41.995309 [1549] 43.832074 40.515415 40.048532 46.180325 44.058496 46.181084 [1555] 19.226139 40.417120 46.162321 40.217501 38.830400 49.383341 [1561] 49.580660 39.685255 27.318510 44.977105 15.473655 44.106849 [1567] 48.274471 39.004362 9.006637 41.079762 35.281279 31.442569 [1573] 43.586689 45.000195 49.889189 29.588781 37.787476 42.410048 [1579] 37.393422 39.362232 37.842234 40.843781 46.504684 40.739045 [1585] 47.410348 39.720600 48.544924 46.999912 28.514238 41.170252 [1591] 37.986373 44.971794 45.728225 37.891077 46.161185 32.038526 [1597] 44.197997 39.601108 32.660343 40.503253 34.679498 44.317125 [1603] 42.847831 28.969164 49.453266 17.853701 42.792084 44.110470 [1609] 29.073098 47.200260 49.962775 45.292931 38.479713 37.529183 [1615] 25.585015 29.866935 46.476715 21.725734 34.867825 > length(m[m<50]) [1] 1619 > length(m[m<30]) [1] 219 > m=rnorm(10000, 70, 10) > length(m[m<50]) [1] 195 > length(m[m<70]) [1] 4883 > length(m[m<60]) [1] 1576 > length(m[m<50]) [1] 195 > length(m[m<40]) [1] 11 > pnorm(70, 70, 10) [1] 0.5 > pnorm(60, 70, 10) [1] 0.1586553 > pnorm(80, 70, 10) [1] 0.8413447 > 1-pnorm(80, 70, 10) [1] 0.1586553 > pnorm(80, 70, 10)-pnorm(60, 70, 10) [1] 0.6826895 > #Leidke, mitu protsenti tulemustest jääb keskväärtusest kahe standardhälbe kaugusele > pnorm(90, 70, 10)-pnorm(50, 70, 10) [1] 0.9544997 > #Leidke, mitu protsenti tulemustest jääb keskväärtusest kolme standardhälbe kaugusele > pnorm(100, 70, 10)-pnorm(40, 70, 10) [1] 0.9973002 > pnorm(0) [1] 0.5 > pnorm(-1) [1] 0.1586553 > pnorm(1)-pnorm(-1) [1] 0.6826895 > pnorm(2)-pnorm(-2) [1] 0.9544997 > pnorm(3)-pnorm(-3) [1] 0.9973002 > > tabel=read.table("http://www.tlu.ee/~jaagup/andmed/elekter/hinnad_2014_eur.txt", sep=",", header=TRUE) > > names(tabel) [1] "Date" "Hours" "SYS" "SE1" "SE2" "SE3" "SE4" "FI" "DK1" [10] "DK2" "Oslo" "Kr.sand" "Bergen" "Molde" "Tr.heim" "Tromso" "EE" "LV" [19] "LT" tabel$EE which(is.na(tabel$EE)) [1] 2115 > andmed=tabel$EE[-which(is.na(tabel$EE))] > which(is.na(andmed)) integer(0) > mean(andmed) [1] 37.61259 > median(andmed) [1] 33.81 > sd(andmed) [1] 14.58955 > vahed=andmed-mean(andmed) > sum(vahed**3)/sd(andmed)**3 [1] 35482.73 > sum(vahed**3)/(sd(andmed)**3) [1] 35482.73 > logandmed=log(andmed) > hist(logandmed) > mean(logandmed) [1] 3.574269 > median(logandmed) [1] 3.520757 > sd(logandmed) [1] 0.3116616 > length(logandmed[logandmed length(logandmed[logandmed length(logandmed[logandmed