Using python and matplotlib, we will estimate population mean and standard deviation by…
Jump to turn (8)
- 1Using python and matplotlib, we will estimate population mean and standard devia
- 2Modify my code below without using loops: #histogram plt.hist(data2, bins='auto'
- 3Generate seperate histograms for the means and standard deviations for each comb
- 4Output one histogram at a time.
- 5axs[i, 0].hist(pair.mean(axis=0), bins='auto') IndexError: too many indices for
- 6Traceback (most recent call last): File "C:\Users\Valentine\Documents\ee381\main
- 7Draw black borders around each bar in the histograms
- 8Thanks, now please calculate and print the following for each pair of n and k: E
- User
Using python and matplotlib, we will estimate population mean and standard deviation by using simple random samples drawn from the population. The number of elements within each sample will be represented by n (also known as the sample size) and the number of samples drawn from the population will be represented by k.Download the two population data files data1.txt and data2.txt from the course website on canvas. Assume the data represent the daily income of individuals in the population. Population 1 comes from data1.txt.Next, generate random samples from population 1 using the following values for n and k: (n, k) = (2, 10), (2, 100), (2, 1000) (20, 100), (20, 1000) (200, 100), (200, 1000) These samples can be generated using the command “numpy.random.choice.” Provide histograms showing mean values and standard deviations for the above mentioned values of n and k
- Assistant