❐ Step 3 ― Find each term using the distribution table
Given that the values of σa−μ and σb−μ are known, we just have to look them up in a distribution table similar to this one.
Summing up We just computed the value of the probability by standardizing the normal variable to be able to look up the values in a standard normal distribution table.
Confidence intervals
Compute the confidence interval for μ
Note: the example below is specific to the case where the variance is known and n is large. The following reasoning can be reproduced for other cases in a similar fashion.
Let X1,...,Xn be a random sample with mean μ and standard deviation σ where onlyσ is known, and let α∈[0,1].
❐ Question: Compute a confidence interval on μ with confidence level 1−α, that we note CI1−α.
❐ Step 1 ― Write in mathematical terms what we are seaching for
We want to find a confidence interval CI1−α of confidence level 1−α for μ:
P(μ∈CI1−α)=1−α
❐ Step 2 ― Consider the sample mean of X
We consider X, which is such that:
X=n1i=1∑nXi
❐ Step 3 ― Standardize X
We introduce Z, such that:
Z=nσX−μn≫1∼N(0,1)
In general, this relationship is valid for large n but it is always true in the particular case when the Xi are normal.
❐ Step 4 ― Use Z to find the quantiles
We can find the quantiles of Z which are such that:
P(−z2α⩽Z⩽z2α)=1−α
Given that Z follows a standard normal distribution, the quantity z2α can be found in the distribution table.
❐ Step 5 ― Re-write Z in terms of X
Knowing that Z=nσX−μ, we can re-write the previous expression:
P(X−z2αnσ⩽μ⩽X+z2αnσ)=1−α
❐ Step 6 ― Deduce the confidence interval
By taking into account steps 1 and 5, we can now deduce the confidence interval for μ:
CI1−α=[X−z2αnσ,X+z2αnσ]
Compute the confidence interval for σ2
Let X1,...,Xn be a random sample with mean μ and standard deviation σ where σ is unknown, and let α∈[0,1].
❐ Question: Compute a confidence interval on σ2 with confidence level 1−α, that we note CI1−α.
❐ Step 1 ― Write in mathematical terms what we are seaching for
We want to find a confidence interval CI1−α of confidence level 1−α for σ2:
P(σ2∈CI1−α)=1−α
❐ Step 2 ― Consider the sample variance of X
We consider s2, which is such that:
s2=n−11i=1∑n(Xi−X)2
❐ Step 3 ― Standardize s2
We introduce K, such that:
K=σ2s2(n−1)∼χn−12
Here, K follows a χ2 distribution with n−1 degrees of freedom.
❐ Step 4 ― Use K to find the quantiles
We can find the quantiles χ12,χ22 of K which are such that:
P(χ12⩽K⩽χ22)=1−α
Given that K follows a χ2 distribution with n−1 degrees of freedom, the quantiles can be found in the distribution table.
❐ Step 5 ― Re-write K in terms of s2
Knowing that K=σ2s2(n−1), we can re-write the previous expression:
P(χ22s2(n−1)⩽σ2⩽χ12s2(n−1))=1−α
❐ Step 6 ― Deduce the confidence interval
By taking into account steps 1 and 5, we can now deduce the confidence interval for σ2: