loops - How to run 1000 samples using the same size and getting confidence intervals for each sample in python -


i have population of 500,000 units , have draw 10000 samples of size 10 , 95% confidence intervals each trial. have far, don't know how make while loop calculate each confidence interval each sample.

ct=1 while ct < 10000: s = np.random.choice(p1, size=10) xbar=np.mean(s) ci=[xbar-1.96*12/(10**.5), xbar+1.96*12/(10**.5)] ct+=1 


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -