0% found this document useful (0 votes)
40 views

MCExercise 7

The document generates 100 random numbers between 0 and 1, calculates the mean (0.547098) and standard deviation (0.305599743275434), then sorts the numbers into frequency classes from 0.1 to 1 in increments of 0.1 and counts the frequency of numbers in each class. It finds that most numbers fall between 0.2 and 0.8, with the fewest between 0.9 and 1.

Uploaded by

Nithin Gopinadh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

MCExercise 7

The document generates 100 random numbers between 0 and 1, calculates the mean (0.547098) and standard deviation (0.305599743275434), then sorts the numbers into frequency classes from 0.1 to 1 in increments of 0.1 and counts the frequency of numbers in each class. It finds that most numbers fall between 0.2 and 0.8, with the fewest between 0.9 and 1.

Uploaded by

Nithin Gopinadh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Generate 100 Random Numbers which follow uniform distribution between 0 & 1, find

Numbers Class Mean


0.376274749418816 30 0.547098
0.231468570476899 30
0.471524417732567 40
0.874994665251769 80
0.961721401716079 90
0.270665933276378 30
0.75763313626286 70
0.394253909880676 30
0.582601707429093 50
0.013523566197506 20
0.683539454732519 60
0.753291205732147 70
0.839350024446586 80
0.158939163327672 20
0.231468570476899 30
0.202055600205907 30
0.460586367679238 40
0.910346675200626 90
0.801243510892674 80
0.508194821909788 50
0.580522131917841 50
0.001186214332634 #N/A
0.037773542308324 20
0.423683417452834 40
0.635531694867817 60
0.69411268969908 60
0.51083664174638 50
0.156629761024739 20
0.728376933475335 70
0.995757148339219 90
0.597748597776634 50
0.060340993003896 20
0.84047389645172 80
0.626207189403079 60
0.139088451739703 20
0.412012817463808 40
0.270665933276378 30
0.854196713248004 80
0.860710659878042 80
0.609703722597372 60
0.977143294398469 90
0.052628860962989 20
0.488615972403953 40
0.015678271254902 20
0.804579352717598 80
0.456939327914083 40
0.592400077248009 50
0.904437702332372 90
0.529486697679237 50
0.79931881228544 70
0.448373103765564 40
0.893024277158477 80
0.686507798634435 60
0.369749250925936 30
0.861219481151317 80
0.667776534328003 60
0.959356409878532 90
0.224621121134433 30
0.633978216910869 60
0.744773296417084 70
0.770640108665359 70
0.143395670037207 20
0.958608749844427 90
0.635023555492605 60
0.990588534443641 90
0.258574139014189 30
0.089617671045368 20
0.574176096079933 50
0.738547354357061 70
0.809882596594161 80
0.803291390452942 80
0.921471739550015 90
0.691321151905613 60
0.64057283559693 60
0.966803203440857 90
0.969176378635842 90
0.325255292033435 30
0.347784201586416 30
0.80421292476071 80
0.160896383496027 20
0.968224179086311 90
0.58278349955859 50
0.22415276884928 30
0.031627605415184 20
0.115587526854239 20
0.966695802913441 90
0.07139714463497 20
0.305655379959305 30
0.974602854325575 90
0.977270021088226 90
0.260239626774446 30
0.992778070025771 90
0.052628860962989 20
0.535680401163971 50
0.603902217061234 60
0.648603254982796 60
0.360832511770566 30
0.196970901446417 20
0.456939327914083 40
0.153579717615026 20
uniform distribution between 0 & 1, find Mean, SD, Class and Frequency Distribution

Standard Deviation
0.305599743275434

Frequency Distribution
Number Class Frequency
0.002 10 #N/A
0.01 20 22
0.2 30 16
0.4 40 11
0.5 50 9
0.6 60 5
0.7 70 13
0.8 80 14
0.9 90 8
1 100 0

You might also like