The central limit theorem (CLT) states that, for a large enough sample (n), the distribution of the sample mean will approach normal distribution. This holds for a sample of independent random variables from any distribution with a finite standard deviation.
Let {X1,X2,X3,...,Xn} be a random data set of size n, that is, a sequence of independent and identically distributed random variables drawn from distributions of expected values given by μ and finite variances given by σ2. The sample average is:
sn:=N∑iXi
For large n, the distribution of sample sums Sn is close to normal distribution N(μ′,σ′) where:
μ′=n×μ
σ′=n×σ
Task
A large elevator can transport a maximum of 9800 pounds. Suppose a load of cargo containing 49 boxes must be transported via the elevator. The box weight of this type of cargo follows a distribution with a mean of μ=205 pounds and a standard deviation of σ=15 pounds. Based on this information, what is the probability that all 49 boxes can be safely loaded into the freight elevator and transported?
import math
def less_than_boundary_cdf(x, mean, std):
return round(0.5 * (1 + math.erf((x - mean)/ (std * math.sqrt(2)))), 4)
m = int(input())
n = int(input())
mean = int(input())
devi = int(input())
print(less_than_boundary_cdf(m, n * mean, math.sqrt(n) * devi))
Task
The number of tickets purchased by each student for the University X vs. University Y football game follows a distribution that has a mean of μ=2.4 and a standard deviation of σ=2.0.
A few hours before the game starts, 100 eager students line up to purchase last-minute tickets. If there are only 250 tickets left, what is the probability that all 100 students will be able to purchase tickets?
Task
You have a sample of 100 values from a population with mean μ=500 and with standard deviation σ=80. Compute the interval that covers the middle 95% of the distribution of the sample mean; in other words, compute A and B such that P(A<x<B). Use the value of z=1.96. Note that z is the z-score.