please type solutions in python

1 answer below »
please type solutions in python

Answered Same DaySep 20, 2022

Answer To: please type solutions in python

Baljit answered on Sep 21 2022
60 Votes
1.
Code:-
import numpy as np
import matplotlib.pyplot as pt
number=[1,5,10,20]
means=[]

for j in number:
np.random.seed(1)
X=[np.mean(np.random.uniform(0,1,j) ) for i in range(10000)]
means.append(X)
a=0
sbpt,axis=pt.subplots(2,2,figsize=(10,10))
for i in range(0,2):
for j in range(0,2):
axis[i,j].hist(means[a],10,density=True)
axis[i,j].set_title(label=number[a])
a+=1
pt.show()
Justification:-Now according to central limit theorem mean of samples drawn distributed population have normal distribution.Now we can see from the Histogram.Means of samples are normally distributed.Normal distribution of means of samples increased with increase in...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here