S11202415 - Lab 3

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

S11202415- Lab 3

PS303: Psychological Research Method & Analysis


2024

Divik Prasad- S11202415


Laucala Campus
Lab 3

1
S11202415- Lab 3

Question 1:

> hist(rnorm(n=1000, mean= 1, sd= 10),


+ main="Normally distrubuted scores",
+ xlab="Test score range",
+ breaks=5,
+ density = 50,
+ col = "red")

> rnorm(n=1000, mean=1, sd=10)


[1] 20.72366442 -5.59993495 -1.28069430 -1.83567367 -0.41622183
[6] 2.52439369 10.02161704 3.85750147 2.20497712 13.87253205
[11] 1.77377043 12.28358859 -11.17143437 17.46221177 6.98923284
[16] 14.33058857 11.36446217 4.58178932 5.88994548 1.86251026
[21] -16.46152257 -17.20906550 -4.13783158 -12.23208054 12.56736756
[26] -7.23541901 -9.56822826 -2.77245222 1.04308948 17.42611862
[31] 6.81164197 -6.93433374 5.87714404 -16.55417103 -9.43532335
[36] 5.41723317 22.59106719 -6.72910676 -6.97118601 -5.18271571
[41] 7.74056182 7.78868332 -16.60478135 -5.82447118 11.07669516
[46] 6.70716725 8.36789599 16.13120274 12.63693073 12.22968904
[51] -0.89423816 12.42099663 4.85904000 0.74557481 1.62060702
[56] 6.56453963 -1.13935569 0.57450819 10.01048498 -9.32433881
[61] -21.90183531 9.04728433 5.48678700 -2.05287476 12.76530747
[66] 3.17660611 13.30546178 -2.19840383 0.44203907 -6.91376783
[71] -3.12356768 -1.52434673 -12.21286820 9.47288114 -8.96649969
[76] 28.61660452 -18.83100012 -1.31958274 -5.07661041 -12.78601784
[81] 7.60436658 -2.31718544 -4.05883327 -8.45635085 -6.35721929
[86] -2.19928664 4.80481199 -10.57345131 -1.18371813 -6.29011431
[91] -7.57892040 11.21783727 -1.21496978 -4.68112138 3.81173649
[96] -7.87513525 10.22470623 -11.20137222 2.03918614 4.80933129
[101] -12.57126763 -7.54627202 1.87121792 -11.91581053 6.58315775
[106] -4.82110693 3.93482233 17.70321648 11.64538883 -20.28978905
[111] 2.23676529 4.06063133 11.17608817 -5.19620866 -4.39485566
[116] -4.50025769 -1.62377577 -3.88882955 -1.92212546 -18.43002278
[121] -1.42279930 1.24903881 -0.20209137 5.46129096 -13.79760548
[126] -9.08312443 -2.34309127 16.74824731 -6.88256933 3.07946809
[131] 2.16826850 -16.84783573 0.69615676 -10.16133618 -1.66846517
[136] -19.92569527 4.70563537 10.13819569 -0.57474382 -16.74124296
[141] 0.47989980 9.15796106 0.61299003 6.43060198 -12.28898964

2
S11202415- Lab 3

[146] -7.50426093 8.05112812 -7.92709842 3.62840623 -5.11473148


[151] 11.02613047 3.00882419 -0.18251766 -1.21062455 14.80496463
[156] -15.66661178 7.20527543 2.29815770 32.88645386 -4.20942511
[161] -7.10343267 9.50927682 -12.91586674 -0.26760404 1.02641423
[166] 3.03725009 -15.59540083 17.69405414 -5.03120104 20.98228422
[171] 11.86016336 -13.89767069 -10.65583717 21.07386349 -9.42482671
[176] 3.84997768 7.72594736 -5.53599303 8.67583575 9.20398546
[181] -0.09277399 7.60721191 10.35324202 5.30574447 3.63581539
[186] 15.72135367 -5.44420401 5.88813482 -7.83961343 5.63311062
[191] -6.38396024 12.02710982 5.61975575 -3.39194948 2.62348397
[196] 11.13702579 8.87687490 7.20119960 -13.50480245 15.88580252
[201] -11.22444321 -19.96217431 3.95631180 2.15592365 5.73640851
[206] 36.05656094 -3.30441340 30.84971083 -16.11096795 3.64893170
[211] -3.03209726 -9.89457395 4.31996434 -0.79386101 0.85138324
[216] 0.95827809 11.19934550 -9.88222260 13.25690449 -3.08379577
[221] -4.01804491 -8.69668311 -8.22493315 -13.55040051 -13.32977174
[226] 10.11615539 -7.13942207 -8.84752755 -14.21214503 -4.31420155
[231] -12.97649049 -5.69302149 -4.06545190 21.51163131 0.56659346
[236] 12.66409678 6.47545830 -4.84298297 -3.17517702 18.95020976
[241] -7.52161390 -3.68767773 18.71243698 7.11038321 9.58940007
[246] -0.85257768 7.88180186 -11.45732611 -9.31420921 -15.03002759
[251] -0.75748612 -7.71999984 -5.54653777 8.25477283 -5.35098574
[256] -8.28061443 13.91842736 -9.45344387 5.82150168 12.74615756
[261] -2.16980992 19.12789793 -5.01065953 3.44850066 -12.35365342
[266] 0.09498458 -5.17497733 6.50145158 -16.70897782 -9.39045651
[271] 0.48613617 0.26826526 17.61928558 -6.05435661 -2.37774393
[276] -7.24935101 4.15947881 -4.20923148 -0.56148719 3.90599216
[281] -1.23802991 -0.51756377 14.91370634 -3.36506013 -1.31753452
[286] -0.41781537 27.49167606 15.52734724 11.15520009 4.88337300
[291] -7.86845848 -6.59275373 -2.87300231 -7.41139346 -4.04909659
[296] 0.91893213 -5.02780992 6.38849840 -4.31502876 2.92783462
[301] 12.69759634 -17.20133991 -8.11789993 1.44588147 -14.82707654
[306] 6.00658927 8.51914662 -15.14341453 15.83352276 9.03822854
[311] -5.94971030 1.48121674 5.41254289 6.10420732 10.90311506
[316] 14.43120676 10.59517089 -1.28147076 -13.58345402 -8.98504811
[321] -4.35229558 11.46800370 7.10203077 -19.01390375 11.13272521
[326] -3.24476907 21.21966529 -6.99312515 19.39623589 -12.16945578
[331] 7.98929941 21.82676719 -16.45582661 -5.91088436 11.27027130
[336] -18.33884994 5.37789356 -5.83326543 7.88120641 7.82944938
[341] -0.24471131 8.16723984 0.58621509 -9.01564682 20.23711078
[346] -11.27876524 -0.95053573 7.89675703 -2.61425015 15.45478202
[351] -16.34565670 2.04520954 -15.20807921 21.83033487 -0.02590242
[356] 8.83711104 -3.10397582 7.99959641 0.76427886 -4.71370097
[361] 15.81658533 4.75318293 17.90047386 10.92888534 -13.75416463
[366] -4.20697213 5.42964562 -11.17579914 -8.12400048 -11.17092221
[371] -2.30963475 -0.64297762 0.52108524 8.38571257 -0.83822229
[376] 2.89861172 -1.91793373 4.75027905 4.64788318 -18.72359015
[381] -5.10160837 3.95304113 13.24832642 -0.96625043 -3.49209756
[386] 17.41300506 -15.02610088 -13.49788003 8.45997091 4.43217337
[391] -0.61895202 7.53046579 12.78840784 -23.93534558 6.14606199
[396] -4.89841092 7.74460006 -0.62557249 3.39995133 -12.19265772
[401] 4.53629238 -6.86136219 2.73106888 -8.74232348 9.03242167
[406] 4.91303843 -9.64923340 2.18775075 0.06800002 5.31738995
[411] -5.21263816 14.70872364 14.22880429 6.48863745 6.76140622
[416] -12.23996812 15.02917932 -0.97297369 -4.60619646 3.88338925
[421] 6.04310327 7.05891373 16.92482678 12.33429567 -4.64913493
[426] 1.69186964 17.34596414 -10.75705873 -8.71642463 20.72734117
[431] 3.66374051 0.67616450 -9.15103347 11.00300739 3.23051246
[436] -4.37844969 8.08002489 -5.36753816 7.30217544 -6.04542857
[441] 2.09098859 -3.75752281 -3.39327389 -9.43588703 -3.95463788
[446] 10.10558255 -6.95956726 6.03659054 18.78441941 4.41325725
[451] -14.46236766 -7.25113561 -16.79888132 4.01507182 11.94966721
[456] -11.79191919 3.67905750 -23.88226292 -2.32093805 2.37352174
[461] 16.45156011 -8.04322140 12.63046197 -5.89299598 6.21447566
[466] -6.83635978 4.86633598 -4.35526525 5.21672323 9.37387358
[471] -24.78934594 -3.60844712 10.32963031 -8.57154294 9.17015651
[476] -4.66632133 17.77475829 2.78619045 16.07634724 -1.84654460
[481] -13.94622440 -8.42118252 2.61902273 7.22182162 7.58599535
[486] 11.45600933 -4.43889894 -8.52170484 -9.48076954 4.85453328

3
S11202415- Lab 3

[491] 9.80921939 1.69488716 4.17452692 20.07452298 18.16812941


[496] -1.47808991 14.21654302 2.26953679 0.78187692 -7.71497047
[501] -1.51036354 -17.45506579 -0.04498456 -2.50022320 10.20123102
[506] 7.47931279 -4.89389099 -9.07840660 8.94471745 -7.78411107
[511] -1.24436378 -5.21237975 12.53150979 9.99326628 0.65244769
[516] -2.68718776 -5.86001569 5.67622659 -9.11782019 -13.92049181
[521] -6.86790263 -4.85186752 -8.62126184 6.86334409 4.33461823
[526] 10.19869873 -10.81677043 10.11937838 -2.01920362 5.01186809
[531] 6.18125996 14.75427898 -6.15339695 0.37909267 -0.78710746
[536] -4.80221647 22.47794794 8.20670396 -2.50947155 -10.78213193
[541] 17.14715622 22.28114284 3.28296596 25.66497882 -2.56146491
[546] 2.38829535 0.91872515 -8.61860335 3.90770166 10.13077097
[551] -0.25911968 5.25636466 -11.41939341 7.49543251 4.27520150
[556] 13.72574835 26.85359089 -8.13778801 8.09531457 1.77741908
[561] -5.58133836 17.20959725 -8.48142113 3.46660521 -13.75456196
[566] 4.27028129 5.53011548 8.18035051 -3.11431281 5.73283694
[571] -5.51595949 -12.47598429 13.16911634 6.09854823 4.73122939
[576] -9.04696121 -6.29010652 -11.04043125 -7.56770389 -3.61668121
[581] -1.45267529 0.09738469 10.29354181 -4.21534086 10.65932116
[586] 10.45692956 -17.13145947 -2.56238968 -9.43722426 -4.61174565
[591] 13.94498138 -8.29763820 -4.12529094 2.68686976 4.26163192
[596] -4.13111349 -1.36556793 2.57995257 7.70504196 -2.47845387
[601] 5.46151075 11.47414622 7.75850140 -8.25881532 23.86978388
[606] 2.72108434 -7.36878785 2.30916456 -9.90299524 2.30137908
[611] 3.28280870 5.62053004 -15.54109762 8.60402013 -17.21890831
[616] -1.47527059 -2.44823673 6.18732774 3.77993097 8.60071918
[621] 1.07242234 -3.81670551 21.20917743 -7.20270911 13.86718104
[626] 28.50877853 -0.36039909 11.51909706 8.11951735 12.38910473
[631] -8.82166491 -1.27789752 14.74447753 -0.40462912 -4.47804871
[636] -4.31476623 5.32820368 -7.18977224 1.13658094 4.23938247
[641] -0.21182318 0.38693352 -11.97292841 -11.62074183 2.08751779
[646] 2.12362143 -2.71434774 30.87074725 2.85011865 6.42821107
[651] 18.87133544 6.32328570 -21.38861846 -7.01904382 -8.05526654
[656] -0.22298942 2.58467401 -0.29954889 -10.27037702 1.59598906
[661] -0.60782942 -20.73487574 -21.01385266 -2.25298058 15.22275537
[666] -0.06406316 -0.53801548 -12.40423303 -10.76828774 7.30468305
[671] -12.53231669 -1.59314349 -6.82178452 -11.72100928 -2.84749435
[676] -2.98734574 5.32561120 -2.65877451 -15.65416334 1.47372226
[681] 6.22040261 4.35935241 -3.82368422 4.61334916 21.13974800
[686] -1.47564922 -5.86527140 -6.52630485 13.93364760 21.75848850
[691] 12.74134273 6.35582341 19.12488377 -7.21722120 -27.22972172
[696] -6.74793719 15.97537437 7.95453248 12.86330901 9.18662419
[701] 9.15081293 -9.20431582 -2.01475804 -3.41667043 12.08489251
[706] -0.10852230 -7.98978448 7.27963376 8.69216621 -9.66636579
[711] -0.60541944 -7.27810014 -1.08663941 -11.06241980 4.57399286
[716] -4.07017833 7.06288857 2.63745094 17.96580317 -0.43801390
[721] 12.63578763 15.31945053 -5.22876475 3.65209231 -10.19773980
[726] 9.71636286 -1.15491147 7.08791275 -9.57738371 5.06317073
[731] -6.54330259 0.80842794 0.14503704 2.07117540 -18.21494959
[736] -3.50217690 -1.34159485 -0.34042309 -8.87934265 18.43444288
[741] 28.74414914 10.49958844 0.59944959 -3.78395630 -16.35986271
[746] -4.77533309 16.89928536 -13.95751435 -22.54114638 -4.98408382
[751] 22.71941668 12.96094728 -10.18234471 -0.96913670 6.02271857
[756] 9.63806346 4.56162762 3.06740447 7.04835687 -0.59767653
[761] -11.85783669 -17.91348144 -6.28318102 2.52807686 -2.87404377
[766] -9.87469876 -25.95179021 -10.26214957 6.30552304 4.65140091
[771] -17.98523372 -1.55057577 12.13221952 0.98154126 -9.65074065
[776] 0.38174870 19.32684852 6.18726223 12.74572229 -2.42369643
[781] 5.25700850 -7.31750886 3.56740642 11.63851886 10.15922241
[786] 9.17259084 -7.08371012 8.20695555 -11.28479393 14.08597371
[791] 2.20389670 0.27375657 5.78664344 -1.06171313 12.32637560
[796] -3.80485412 13.27204747 7.86350349 10.41657819 11.53291069
[801] -3.93311664 2.63493327 -8.61114860 13.09669297 3.22308371
[806] 1.75462071 12.60615993 -6.24134425 0.55073980 -3.38378818
[811] -0.65193172 3.42157263 0.54766108 8.37740983 -8.70778142
[816] -6.37370051 10.53603696 6.32939759 6.97441603 1.22411864
[821] 6.46865231 8.27151852 1.12827399 -19.59845624 34.27282013
[826] -4.90794398 2.60845946 -1.75515964 9.35280871 6.23448684
[831] -0.13966171 -4.22126741 10.20163666 12.05843376 2.92901800

4
S11202415- Lab 3

[836] 0.75810756 3.21352788 4.27904293 12.06116870 -16.89948506


[841] 13.74605072 16.75283276 0.90231720 -8.24781933 20.70012048
[846] 10.46983118 4.61667473 -4.46979697 -1.64630796 5.83631082
[851] -2.32141119 6.45237485 5.45062558 -10.53632002 -2.03260175
[856] 5.92130791 2.97708570 -3.86138758 -7.10832712 7.77535487
[861] -0.62954680 11.28236290 2.28529457 2.12087705 -16.20694118
[866] 10.85216347 -9.35035396 5.73138107 3.99491578 -7.58968943
[871] -5.78264966 1.54834125 -1.78511878 0.29670504 -0.73753109
[876] 5.29651054 0.78235345 -0.49580031 -12.73277609 16.43531521
[881] 13.86953701 -16.72336924 -10.58705644 13.20007701 6.85023161
[886] 6.41457787 -7.42942735 -6.13177823 -10.80857131 8.95962138
[891] -11.21668720 -4.77116542 -0.47703274 2.53410830 -12.30261721
[896] -0.88416719 7.73148551 10.58841869 -5.31030328 11.88971251
[901] 13.80543280 3.54452499 -8.24281929 3.60379994 2.26477113
[906] -10.08117966 6.75674047 6.46230984 6.33083235 1.59212210
[911] -9.38295641 -6.35782459 1.05265322 14.29715313 -1.25581216
[916] 2.43338834 -3.19429735 -8.27669289 4.72285476 10.41049744
[921] -3.17297555 3.67548592 -13.94954258 -17.34630035 3.05822104
[926] 1.79408115 -8.32702548 1.06754166 19.82431782 0.25006337
[931] 5.82307289 8.88165553 -4.19278961 -3.13275274 -16.65499220
[936] 6.24244965 2.00883573 4.88593490 -16.12086359 6.83284814
[941] 11.88305587 3.99702803 2.37641345 8.99025928 7.13911372
[946] -4.13081891 20.24529565 10.73670855 8.28897893 1.09263645
[951] -1.87700267 -17.45853509 -2.07578441 -8.29444656 6.79913523
[956] -5.39158441 -5.93358076 26.30726678 15.63538007 -4.88515703
[961] -2.25729027 0.12860651 18.64298007 -9.19362641 -10.96227339
[966] 5.86148368 0.44316787 6.89083695 14.67316185 -13.65133630
[971] -7.53474160 9.09811195 1.61744886 -9.51109036 5.00881640
[976] -11.38285902 5.39130237 3.78815312 -13.93268285 7.80194927
[981] 12.38825527 10.85915070 -4.82209462 -8.98107074 -4.22515257
[986] -2.46966225 6.79504884 12.61774611 -2.70516692 -5.73611214
[991] 3.38591679 3.14779501 5.74472481 9.90849237 5.72902496
[996] -10.01345638 -11.08841899 -16.11545896 3.56717915 -13.91262272

5
S11202415- Lab 3

Question 2:
> mean=1
> sd=10
> n=1000

> mean
[1] 1
> sd
[1] 10
> n
[1] 1000
> SE=(sd/sqrt(n-1))
> SE
[1] 0.316386

Question 3:

Question 4:
> hist(rnorm(n=1000000, mean = 1, sd = 10),
+ main = "Normally distrubuted scores",
+ xlab = "Test score range",
+ breaks = 10,
+ density = 50,
+ col = "red")
>
> rnorm(n=1000000, mean=1, sd=10)
[1] 1.89165013 -7.89443166 -1.07718791 1.76904859 7.17056538
[6] -16.51831094 -2.99142906 -15.03535578 1.19396758 -3.97835576
[11] -3.82239780 25.51358642 -5.18772289 -11.65229502 -17.38068221
[16] -1.86427092 2.89298405 -10.84795045 22.58543275 -3.77082658
[21] 2.96331224 -9.86276832 -8.61872487 16.01049534 -0.67916129
[26] 1.60525149 -6.28050583 11.10254391 0.70869738 13.81322401
[31] -0.58343654 10.54678319 0.96370017 -1.56056209 5.25543320
[36] 19.80987739 -13.42132310 11.05569262 1.75679380 -10.38072130
[41] 17.01853487 14.83059221 10.99571581 20.37821538 20.71248339
[46] 8.13122823 -0.44259893 16.91422437 12.43035269 -12.58174892
[51] -8.98519161 -2.40102298 4.27951378 0.49135013 25.43074410
[56] 7.67347851 9.31464353 3.53805437 -9.23317616 7.59720327

6
S11202415- Lab 3

[61] 1.15768867 -8.48623045 -3.78668579 9.66004433 3.31409043


[66] -2.41037577 -4.97588306 -6.21707223 3.31847764 1.40772000
[71] 10.20253187 1.12597792 2.90527209 -12.44316177 -14.02153741
[76] 4.60845124 -11.01938176 0.87114136 16.16128911 -7.60701787
[81] -13.25779675 -3.40118100 1.29016432 -20.58937541 -6.96046765
[86] 8.57542932 3.04017980 0.39949974 3.89593180 -19.39914333
[91] -19.81598954 -9.08935777 18.11688586 5.97792597 0.27256062
[96] 5.13725096 -3.05310200 -19.16830408 -10.41884626 2.51507897
[101] 8.86246194 5.57450555 0.62996185 13.67340500 -0.75892160
[106] -2.73385539 -2.16151142 -5.37088379 -2.66156144 16.47914823
[111] -2.03886593 1.81244605 0.60759984 -4.15805197 -11.27220102
[116] -4.57046066 -10.78418114 3.88010213 -5.84713172 -3.46737827
[121] -3.18230497 -5.79759201 9.58430256 14.88499117 1.46329572
[126] 9.45651692 17.07555589 -3.17019203 -13.97530770 4.47172217
[131] -3.42108850 -4.24097258 10.05421874 11.31305714 12.79616622
[136] 6.61131565 0.48731717 19.78812316 22.05560296 24.07176007
[141] 26.12844666 6.07246653 -1.36418395 5.45123269 -5.38115864
[146] 11.36210283 -6.32551674 9.28536001 9.35527174 8.06784620
[151] 7.26241745 -6.15578903 1.66267060 16.93419006 4.70977162
[156] 17.95970742 -0.65742086 10.31649486 -1.81421775 12.56725714
[161] 18.66980050 -1.84410030 -5.66655834 9.54718040 27.72219851
[166] -11.72546531 9.50920687 6.06266906 2.97142589 -12.92277820
[171] -4.67252415 -12.49348164 -3.29909974 -1.42254299 0.90155320
[176] -2.19058756 13.03245430 8.82912097 -5.08252292 0.81350320
[181] 15.32426441 32.37237300 -13.59130460 -3.94085620 1.79602301
[186] -6.65754749 -3.10504796 4.35503636 6.10307907 -8.53960570
[191] 0.79144597 -14.08665155 -17.72708301 -26.71705240 8.02752648
[196] 8.89561889 18.25995297 0.01986127 13.00714764 11.94345338
[201] 0.15709679 -3.17092078 -12.28751659 -1.94108441 -10.47290394
[206] 0.64099615 4.74381929 0.63638102 18.06160248 -2.29407985
[211] 4.33946123 -0.91782114 2.73790876 3.29795893 9.69221311
[216] -17.91524476 15.44217943 1.43440280 18.04182736 0.66239044
[221] 0.77956776 -10.58820509 -0.21357051 -15.94932118 2.89929684
[226] 11.59825787 -3.69524181 12.09037733 -7.70921725 -0.57685496
[231] -2.02412903 -4.54862949 -13.37645061 -1.24651586 4.13478900
[236] -0.92842386 7.36503583 9.41570195 1.12466005 10.46502155
[241] 0.55162084 -8.43928199 -1.13219243 9.98700705 -0.27123630
[246] -0.82759934 -12.84772066 8.57182456 4.51859619 31.43985017
[251] -6.35204815 2.72419527 5.01689182 0.02061723 -9.27030807
[256] 19.25073391 7.40501564 10.09273730 -3.70046108 4.45832164
[261] -0.74906677 14.01611096 -5.53733523 -3.27436065 6.00251675
[266] 13.20719038 5.96523096 1.40161442 -2.43546725 13.73095268
[271] -8.38314584 16.20261262 10.83638736 15.87263963 0.07644190
[276] -2.11856994 -4.34895214 5.81802976 11.49087034 -4.24781505
[281] -11.05117487 3.60917647 -0.13689154 -7.99966252 5.21717749
[286] -8.19325576 -3.95325720 -2.32365412 2.78551494 4.72420924
[291] -5.92821299 3.29153504 -1.22773440 10.62232314 -1.30129380
[296] -13.33050508 2.75573196 8.05521808 5.04810578 3.71695038
[301] -2.70419688 9.72725240 -3.88811172 8.70407622 -11.37988366
[306] -4.08409265 2.47294097 -11.57433189 3.64300852 -7.13170258
[311] -3.20540663 19.59875394 -15.77536785 -1.78793433 -9.11289739
[316] -5.26537129 15.65151208 9.77129196 -20.56878105 -17.77078905
[321] 23.72416945 -17.22311038 -1.95361210 17.26293158 26.29041844
[326] 14.07030698 -11.76345555 3.70224392 14.44317843 -9.04284335
[331] 8.42161070 6.24840088 -12.87626501 -10.61125415 4.69242166
[336] -27.70234968 5.52345946 1.23738117 -10.69779910 5.42894152
[341] 1.14081801 -12.50107471 13.04358751 5.71085789 -14.77693979
[346] 6.69034120 7.35655764 -8.11617011 -4.33940089 -8.39698177
[351] -3.59762656 2.87271119 11.62070461 0.20057912 1.52520181
[356] 10.75876772 -1.99886892 -1.17866588 5.81034778 -1.58084460
[361] -7.73347921 3.60782508 13.93666946 -1.96028718 -7.70567709
[366] -6.38420793 -3.55788967 -5.58929382 -9.52125081 -3.23668746
[371] -1.02772079 -3.81869127 -2.17338923 14.08097108 11.73216191
[376] -4.84517987 -10.15009958 10.28797366 12.79077948 5.76475034
[381] -2.80179943 -10.53891989 -10.36923592 0.70393897 1.92211499
[386] -9.25134101 6.51362959 -14.84722937 -5.40231094 3.02434289
[391] -10.02092752 25.15037765 2.52433712 -3.07729262 -3.34385276
[396] 4.06260121 11.56275129 -1.87216864 18.28552054 0.76541202
[401] -8.95293187 6.96025066 7.70549435 -0.45214377 14.67506917

7
S11202415- Lab 3

[406] -13.51371173 8.15697629 -3.06007908 -6.64028095 24.57456405


[411] 18.21907840 -4.15824353 10.67234394 -5.93751964 -15.62114683
[416] -2.46526905 -4.49388001 -4.27504751 -10.29835368 7.30180631
[421] 14.72938331 -14.34636170 2.31022553 18.38122303 2.26060164
[426] 8.83183282 11.57189660 1.13841134 -2.36021090 11.27080849
[431] 1.81345723 -10.82970747 -3.08189941 0.39244853 -5.33462877
[436] 15.69903335 -1.91455510 17.29066702 12.30670743 4.10891898
[441] 5.30373117 -7.09018912 -6.80487906 18.73987429 14.92632407
[446] -10.15957091 1.73117681 9.67010626 4.54955743 7.47586993
[451] -27.78957717 9.73299333 -2.97228145 -4.60210270 1.04723834
[456] 3.38389222 -15.22554566 3.73143987 10.61515872 7.13669867
[461] 15.53774457 -4.72070879 -15.87089457 -0.31008621 7.86783911
[466] 7.12164193 -9.68731862 1.23355071 4.62972293 11.65500894
[471] -4.13296447 14.61725740 -16.76058428 -3.21400497 15.09734357
[476] -1.49795081 9.93871895 -0.16091790 2.20302979 -6.32176615
[481] 5.88480054 -5.96749139 11.10462225 8.86757555 10.51299615
[486] -4.12670772 1.09710712 -5.44464677 -11.76852160 -0.83125903
[491] 2.81032164 1.44232838 5.11236977 16.25210860 -7.74053958
[496] 5.85445575 9.23614150 -9.74757704 -5.36346017 4.61879235
[501] -7.10715872 0.91555118 -4.02808904 -0.33822934 21.54798391
[506] 4.71932608 2.24530917 20.67515613 -8.29220971 -0.68092249
[511] 9.13567265 -1.66588530 12.48806484 1.97752652 -1.57368890
[516] 6.35164844 8.52460060 7.39348677 -33.35255352 10.95756254
[521] 15.81734115 -6.61007702 8.15855817 -29.30382489 -13.29323376
[526] -1.10770290 9.10356948 6.45471340 6.54364735 13.60036397
[531] -31.52579111 13.21533457 -3.16299257 1.62155036 8.15749762
[536] -2.89046311 -5.91711930 0.29239711 4.92452351 4.70582357
[541] 12.08558801 -0.95114805 0.85567343 -4.28677101 -0.54866090
[546] 0.09672001 -7.87904268 -1.07240685 15.78919160 -7.64574012
[551] -7.19749475 13.77796360 -4.34292555 -18.22639925 -5.67022285
[556] 2.91928413 12.35452561 -5.12123626 -3.92612735 12.52695996
[561] -12.35903814 7.29619810 2.44824517 4.95667018 8.63670085
[566] -25.15993231 -20.06482052 0.23565952 13.98902445 6.22343797
[571] 1.09847059 6.87131777 15.39412800 22.34006580 -5.05117282
[576] 0.98046726 -12.28109122 -12.54091009 9.90215064 2.74515552
[581] -6.32560773 -6.37139070 3.53320986 -26.99897910 -9.74306790
[586] -16.93572871 16.26046536 6.83362336 -2.42367231 -6.58995851
[591] 4.88506522 14.99044302 21.09578494 8.04826198 -11.42851410
[596] -1.80429513 -4.26766156 0.20137293 -16.95533232 -4.18271124
[601] 6.70224735 4.37719107 5.27472404 24.07432828 8.32189148
[606] -3.22316722 9.01970987 -2.29805148 7.36891022 -0.38484539
[611] 17.66063475 6.55114523 12.39211866 4.33917540 16.06608278
[616] 3.04709167 7.33290917 0.50592872 7.26363899 -5.76299642
[621] 1.04710753 9.43274791 -10.65883565 1.19496302 11.34312720
[626] -12.95294335 -16.46616076 -6.13770857 8.87409083 -3.76848368
[631] 3.56303974 -11.42792593 6.93506619 2.57757287 -0.78379334
[636] 19.52397765 7.93837257 -9.05901867 -1.04536718 10.08678277
[641] 4.02944757 -11.33968042 -1.52939928 -8.51046647 -12.32101663
[646] 6.02692999 6.04836588 19.89547743 6.22822442 -11.42268382
[651] 7.92417262 -0.64445249 14.28646998 -4.85140958 1.29823400
[656] 0.20245515 -2.18492977 2.57599105 5.82073028 3.51235130
[661] 5.25280800 7.03907875 5.73119511 4.24746425 -15.84110232
[666] 7.85680986 -11.34681717 4.60727269 1.10436896 5.16236663
[671] 1.96220999 1.82687217 16.62083968 6.84545384 8.60653789
[676] 7.94303173 8.16808689 -6.43059213 -19.29009882 10.94771244
[681] 20.96456692 0.94652320 -6.40222250 14.28233407 8.85831233
[686] 8.95238521 9.31387253 15.29328878 21.19827265 -0.40998008
[691] -2.28770609 -8.65806479 14.81521964 -10.19623344 8.66795098
[696] -22.34654231 12.86652307 2.17846604 -5.85222099 -6.20368962
[701] -0.55604979 -4.08910007 -16.33177929 -17.92220477 -5.72458308
[706] 5.52231530 -5.23772634 8.98233139 -0.32362582 -12.37004645
[711] 11.86280619 -10.06053674 -1.75138470 -14.19315089 -11.81281927
[716] -10.71988408 -6.28237879 -4.76124890 5.15644291 -0.99901072
[721] 8.04380490 6.10957239 11.00382129 -5.36025106 18.95451652
[726] 10.97549220 -13.25076714 5.47699316 6.78991872 -10.11691320
[731] -16.15352003 -2.57339487 5.38709931 13.00285827 -9.70293218
[736] 1.03004494 0.17859251 -10.80625579 -1.65240028 7.17787126
[741] 15.30624852 -0.60496778 -6.86348539 14.62779610 23.24389425
[746] -14.86975908 7.82267930 5.55028147 15.77515613 10.28325847

8
S11202415- Lab 3

[751] -7.07221937 0.08048078 -2.42106467 13.96845608 -30.77172804


[756] 25.70789378 3.68423621 -3.20148662 -2.09505879 8.09986081
[761] 15.62326878 -17.93553019 -9.78459096 -18.15800650 0.63941782
[766] -3.78538522 -4.33811626 1.27097546 -5.25671653 -1.50677953
[771] -4.10662452 18.37094750 4.26444547 -2.73091484 -6.80517225
[776] 9.12234102 -15.71810024 -0.70346893 -5.22583536 4.84184425
[781] 13.88637221 -6.82603999 7.38896774 -15.94947835 17.22032104
[786] -5.26661568 15.70178220 11.15109113 -17.41472555 8.55568905
[791] -3.18386153 -0.02731719 -16.51342848 6.59309276 6.01571559
[796] 4.13323872 -24.97633042 11.28590922 1.75977693 15.50932615
[801] 17.30722641 17.92889575 13.59401332 -0.48357889 11.83561945
[806] -8.55450103 9.00431665 3.04606607 12.32787373 26.39750817
[811] 3.76588703 9.62489382 8.80365359 -3.61382571 -9.32631500
[816] -4.25364812 -22.14320352 -11.08139342 -1.37629189 -12.53550803
[821] 9.49653642 3.77544182 6.03807172 16.65867150 -1.72754827
[826] 3.79393178 1.61865032 -0.57835820 -31.85185652 9.48453297
[831] 5.77384798 -0.83748132 10.17549189 2.75088037 -0.81297439
[836] -16.04938085 -7.29809741 3.83442814 -7.86432514 1.44480110
[841] -12.00450948 10.57421006 -13.97349634 -8.25550981 15.77015828
[846] 6.42462347 2.48126921 4.17762264 -6.20876225 -2.89245543
[851] -22.63554185 1.83676391 -15.53373966 6.30388812 5.59961794
[856] -3.14117397 14.72156192 -8.44201653 13.15041456 8.19726621
[861] -4.07133288 0.62190393 -4.39431897 -5.67663176 -0.11363599
[866] 5.60919235 -3.98101631 3.21674764 24.32638761 6.85217229
[871] 9.95115862 4.45290438 -1.01733495 1.23516317 -5.71207548
[876] 0.09988788 1.74815132 12.55302385 -0.12374762 -15.58834006
[881] -2.90129063 5.04870734 15.79926426 -0.20614764 -8.08706190
[886] -8.38248116 10.12338143 -24.08279604 -3.64260626 16.78756234
[891] 12.86271702 1.33671786 -2.96827868 11.17707495 -10.66640826
[896] -2.58534575 7.91016037 -10.79790046 -1.93957569 -2.11134271
[901] 14.08281199 18.67631742 -6.82126740 -3.67647643 -6.42949568
[906] -2.99212388 -8.26937483 -7.40192017 -13.74215022 -4.47322677
[911] 3.90454479 -9.79342052 2.95200089 -2.19459144 10.85762697
[916] -12.69672219 2.06354259 4.76304932 5.57534226 11.64482070
[921] -2.23086012 8.63170187 3.57177843 -2.59869539 25.04291357
[926] -13.45936049 -2.35617508 13.62013652 -2.06074590 -2.92820554
[931] 3.29463614 -11.51940628 -12.47758393 -20.31016222 5.01146747
[936] 6.85725382 3.96222604 28.16815716 -8.90141030 7.44269334
[941] 6.70332286 -8.70524618 13.15556582 20.91404328 11.39941947
[946] -0.99903049 8.56077978 6.16405777 -9.95162324 5.77590459
[951] -1.74692355 4.06773598 -1.78814869 -1.23256483 -5.66831118
[956] 3.24074401 13.85719030 -35.08828618 -1.55290874 -5.74422466
[961] 16.75265997 -0.10054727 13.13638567 -18.45176275 0.99232946
[966] -6.46030634 1.94087036 -5.76097627 -4.76692850 1.73435188
[971] -2.67840032 0.72372959 8.60269005 -10.47547120 17.16884764
[976] 9.53462373 -14.60588405 -0.08344138 -10.27098902 7.53187301
[981] 2.70023167 0.34477397 -8.26719790 -20.22272136 -2.54673285
[986] 9.65950141 0.98730822 8.86421284 1.13829393 -5.95690084
[991] -4.46987266 16.04076366 -7.10832363 2.75779274 3.87345721
[996] -7.03913001 15.63329241 6.72787308 3.47714163 6.93814785
[ reached getOption("max.print") -- omitted 999000 entries ]

9
S11202415- Lab 3

> mean=1
> sd=10
> n=100000

> mean
[1] 1
> sd
[1] 10
> n
[1] 1e+05
> SE=(sd/sqrt(n-1))
> SE
[1] 0.03162293

Question 5:

Question 6:

The width of the sampling distribution does vary. This is because the sample size on the ‘y-axis’ is
larger in the second set of variables; therefore, the shape of the distribution approximates towards a
normal distribution and the mean estimate of the distribution approaches the true population mean.

10

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy