We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Here is how I did figure it out.
If somebody want to dig into this task and learn step by step solution.
frommathimporterfn=100# map mean and sigma to normal distribution with# the following parameters by The Centeral Limit Theoremmean=n*500sigma=n**0.5*80# Defining Phi function for CDF of our # retrieved Normal Distribution phi=lambdax:0.5*(1+erf((x-mean)/(2**0.5*sigma)))target=0.95# initiating target of 95 %# Probability of our confidance interval# given z-score valueci_prob=lambdaz:phi(z*sigma+mean)-phi(-z*sigma+mean)# True if our CI of z-score achieved desired probabilityfound=lambdaz:target<=round(ci_prob(z),3)z=0.01# initial z-score# interating z until our CI satisfies our targetwhilenotfound(z):z+=0.01# getting left and right interval values and mapping# back from normal distribution to initial distribution # by multiplying both values by 1/n, i.e. values in# initial distribution where n times less due to additive# property of an EVprint(round((-z*sigma+mean)/n,2))print(round((z*sigma+mean)/n,2))
The Central Limit Theorem #4
You are viewing a single comment's thread. Return to all comments →
Here is how I did figure it out. If somebody want to dig into this task and learn step by step solution.
Additionaly you may need those sources: