

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A lecture note from stat 312, focusing on quantile-quantile plots and finding quantile points for normal distributions. It explains how to compute confidence intervals using z-scores and quantiles, and demonstrates the use of r code for finding quantiles and creating q-q plots. The document also discusses the difference between normal and non-normal distributions in q-q plots.
Typology: Study notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


F (q) = P (X ≤ q) = p.
The textbook represent it in terms of percentile. Note that p-th quantile = 100 × p-th percentile. So given p, q = F −^1 (p). For X ∼ N (0, 1), it is easy to find the p-th qun- tile using
qnorm(1) [1] Inf qnorm(0.5) [1] 0 qnorm(0) [1] -Inf qnorm(0.5) [1] 0 qnorm(0.95) [1] 1. qnorm(0.05) [1] -1.
In order to find zα, we use command qnorm( 1 − α).
library(Devore6) data(xmp01.05)
20 40 60 80
10
20
30
40
50
60
70
q
sq
Figure 1: Plot of ordered data bingePct showing sample sq-th quantile.
attach(xmp01.05) sq <- sort(bingPct)
q=qnorm((1:140-0.5)/140,42,14)
We can check how closely the sample quantiles corresponds to the normal distribution by plotting the quantile-quantile plot (QQ-plot) of the sam- ple quantiles vs. the corresponding quantiles of a normal distribution (Figure 1).
plot(q,sq)
Z = X − μ σ
−2 −1 0 1 2
10
20
30
40
50
60
70
Normal Q−Q Plot
Theoretical Quantiles
Sample Quantiles
Figure 2: Normal probability plot of bingePct
−2 −1 0 1 2
0
1
2
3
4
Normal Q−Q Plot
Theoretical Quantiles
Sample Quantiles
Figure 3: Normal probability plot of data that follows an exponential disribution
The p-th quantile of X is given by
p = P (X ≤ q) = P
( (^) X − μ σ
q − μ σ
q − μ σ
The quantile point q of N (μ, σ^2 ) corresponds to the quantile point (q −μ)/σ of N (0, 1). So we do not need to find the quantile points of N (μ, σ^2 ). All we need is the quantile points of N (0, 1) for checking normality. It can be easily done using command
qqnorm(bingePct)
This plot (Figure 2) is usually referred as the nor- mal probability plot.
x<-rexp(100,1) qqnorm(x)
Review Problems. Example 4.28. 4.29.