The following 5 videos (run times are from about 1 to 5 minutes each) will help you with your Blackboard homework on this unit.
Please scroll down past these homework videos for in depth explanation of these topics and the Standard Normal Distribution.
The Standard Normal Distribution
The traditional way of finding normal distribution probabilities uses the standard normal distribution look-up table instead of R.
The standard normal distribution, which is always referred to by the letter
Here is a picture of the standard normal distribution‘s PDF with the region under the PDF shaded a yellowish tan color:
The “standard normal distribution” (also known as the z-distribution )
The z look-up table gives you the cumulative areas
The z look up table consists of two pages. The first page is for negative z scores, the second page is for positive z scores.
Use the controls at the bottom of the embedded z-distribution look-up table
to navigate between its
first and second page.
Download link is under the embedded z-table.
It is easiest to understand how to use the z-table by watching the following videos:
Question 2. Using the z-table, find
Answer to Question 2. See video:
Note. In the above video we used page 2 of the z-table.
Question 3. Find the probability that
Answer to Question 3. Using the z-table (page 1) we get:
See Figures below.
Using the z-distribution look-up table of cumulative areas we get:
Using R to find A(z) instead of the z-table
The R command:
pnorm(z)
returns A(z) from the z-table.
The following R script calculates A(-0.54) from the previous question.
1 2 3 4 | # Find A(z) using R (instead of z table) z = -0.54; pnorm (z); # End of Script |
R returns:
0.2945985
which, when rounded to 4 significant digits is 0.2946, same as the answer we got using the z-table.
Notes about
Finding areas (probabilities) for the z-distribution
The z-table gives us cumulative areas. So, to find a probability of the form
Question 4.
Answer to Question 4.
The following 6 minute long video shows how to do Question 4.
The above Figure, drawn by hand, shows the standard normal distribution
Calculation:
The Figure above, drawn by R, shows the standard normal distribution
Here is how to find
The value for
The value for
We can also solve this problem using the following R script. If we use R we don’t have to look up the values for
1 2 3 4 5 6 7 8 | # P(a < z < b) a = -1.75; b = 1.25; #-------------- pnorm (b); #A(b) from z table pnorm (a); #A(a) from z table pnorm (b)- pnorm (a); # End of script |
The above R script outputs the cumulative areas
Note. The cumulative areas
End of Answer to Question 4.
Question 5.
Answer to Question 5.
Question 6.
Answer to Question 6.
Question 7.
Answer to Question 7.
Note about Question 7.
Question 8.
Answer to Question 8.
Finding areas (probabilities) for the z-distribution
The z-table gives us cumulative areas under the PDF. The total cumulative area is 1. So:
Note.
Question 9.
Answer to Question 9.
Question 10.
Answer to Question 10.
Question 11.
Answer to Question 11.
Question 12.
Answer to Question 12.
Finding areas (probabilities) for the z-distribution
The z-table gives us cumulative areas under the PDF. So:
Question 13.
Answer to Question 13.
Question 14.
Answer to Question 14.
Question 15.
Answer to Question 15.
The z-score and z-transformation theorem
Suppose
The z-transformation theorem (proof below) says that
In other words, we can find
The z-score
Examples.
If
If
It sounds complicated, but it is actually easy. See Question 16 below.
z-scores and relative size
The z-score
gives us a uniform way to measure how big or small something is within its category. For example. A human who weighs 300 pounds would be considered big; an elephant that weighs 300 pounds would be considered small.
Example. Who’s relatively taller? A giraffe that is 5.5 meters (18 feet) tall or a man who is 2.0 meters (6 feet 7 inches) tall?
Giraffe heights are (approximately) normally distributed with a mean of
Men’s heights are (approximately) normally distributed with a mean of
So that 2 meter tall man (z-score of 3.00) is relatively speaking, much taller than that 5.5 meter giraffe (z-score of 1.43).
Proof of the z-transformation theorem. Optional!
(This is only for the students who have taken Calculus)
The z-transformation theorem (statement):
If
then
is
Sketch of proof: If
and
In the above, the equality of integrals is due to the change-of-variables theorem, i.e., u-substitution, except instead of using the letter u we are using the letter z, with
Finding areas (probabilities) for
using the z-distribution and the z-transformation theorem
Question 16. Suppose
Answer to Question 16.
We will solve this problem two ways.
- Using the z-transformation theorem together with the z-table. This is the traditional way to solve such problems.
- Using R
Method 1. To solve Question 16: apply the z-transformation:
and then use the z-table.
The above Figure shows the region corresponding to
Method 2. Using R.
If we use R, we can avoid using the z look up table. If
where “pnorm” is R’s normal distribution probability function.
We found
1 2 3 4 5 6 7 8 9 10 11 | # P(a < x < b) if x is N(mu_x, sigma_x) a = 93 b = 114 mu_x = 100 sigma_x = 10 #----------------- no need to change anything below this line pnorm (b, mu_x, sigma_x); pnorm (a, mu_x, sigma_x); pnorm (b, mu_x, sigma_x) - pnorm (a, mu_x, sigma_x); #the above number is P(a < x < b) # End of script |
The following R script produced the above Figure solving Question 16.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | # P(a < x < b) without using z transformation # Draw PDF of x is N(mu_x, sigma_x) # Shade region corresponding to P(a < x < b) mu_x = 100; # population mean of x sigma_x = 10; # population standard deviation of x a = 93; b = 114; #--------------------------------------------------------- # No need to change anything below this line. #--------------------------------------------------------- Pa = pnorm (a,mu_x, sigma_x ); Pb = pnorm (b,mu_x, sigma_x ) Pab = pnorm (b,mu_x, sigma_x ) - pnorm (a,mu_x, sigma_x ); sds = 3.5; xvals = seq (mu_x - sds*sigma_x, mu_x + sds *sigma_x, by = 0.001); pdf = dnorm (x = xvals, mean = mu_x, sd = sigma_x); xtickmarks = seq (mu_x - 2*sigma_x, mu_x + 2*sigma_x,sigma_x); plot (xvals, pdf, type = "l" , lwd = 3, ylab = "probability density" , xlab = "x" , col = "black" , ylim = c (0, max (pdf)), xaxt= 'n' , main = paste ( "x is N(" ,mu_x, "," ,sigma_x, "). " , "P(" ,a, "< x <" ,b, ") = P(x < " , b, ") - P(x < " ,a, ") \n \ \ = " , sprintf ( '%.5f' ,Pb), " - " , sprintf ( '%.5f' ,Pa) , " = " , sprintf ( '%.4f' ,Pb - Pa), " " ) ); axis (side = 1, at = xtickmarks ,labels = T); xShade = seq (a, b, by = sigma_x/50); pdfShade = dnorm (x = xShade, mean = mu_x, sd = sigma_x); polygon ( c (xShade, rev (xShade)), c (pdfShade,0* rev (pdfShade)),col= "green" ); lines ( c ( min (xvals)- abs ( min (xvals)), max (xvals)+ abs ( max (xvals))), c (0, 0), col = "black" , lwd = 3); lines ( c (mu_x,mu_x), c (0,1.1* dnorm (mu_x, mu_x, sigma_x)), lty = "dashed" ); pnorm (b,mu_x, sigma_x ) - pnorm (a,mu_x, sigma_x ) # above numer is P(a < x < b) # End of script |
The above R script can be copied and pasted into R on your computer, or run online at:
- https://rdrr.io/snippets/
- https://repl.it/languages/rlang
(If you run the R script in repl.it, to see the graph you have to click on the left side of the webpage, where it says “Rplots.pdf”.)
Standard Normal Distributions Questions
for Homework and Quizzes
(Questions 17 to 20)
Question 17.0. If
Answer to Question 17.0.
Question 17.1. If
Answer to Question 17.1.
z-score Questions
For
Question 18.0. If
Answer to Question 18.0.
Since
So, the z-score is 0.25 (answer).
Question 18.1. If
Answer to Question 18.1.
Since
So, the z-score is 0.50 (answer).
Question 18.2. If
Answer to Question 18.2.
Since
So, the z-score is -0.33 (answer).
Question 19. Suppose that men’s heights are normally distributed with a mean of 70 inches and standard deviation of 3 inches. Find the probability that a randomly selected man will be taller than 6 feet (72 inches).
Answer to Question 19.
Let
Using the z-table and z-transformation theorem
Since
so
However, it is quicker to put the z-score calculation directly into the probability calculation, as I do here:
Using R’s pnorm command
Note about accuracy. R’s answer is more accurate than what we got using the z-table method. This is because we had to round
Historical note. The z-table method was the only practical way to find normal distribution probabilities until computers were invented. A table which could easily be converted to our z-table was published in 17991 by Christian Kramp. Each entry in that table was the result of a laborious calculation done by Kramp. In most statistics textbooks the z-table method is still emphasized. One reason for this is that most handheld calculators don’t have a pnorm function like R’s and students typically aren’t allowed to use computers to take statistics exams.
Warning! In my online statistics classes I use R to calculate the answers to your homework and quiz questions. So, on quizzes and homework, for normal distribution questions, unless you are explicitly told to use the z-table (like for Question 17.0 and 17.1) you should use R to find the numerical answer.
Question 20. Suppose that men’s heights are normally distributed with a mean of 70 inches and standard deviation of 3 inches. Find the probability that a randomly selected man will be between 5 feet 6 inches (66 inches) and 6 feet (72 inches) tall.
Answer to Question 20.
Let
Using the z-table and the z-transformation theorem
Using R’s pnorm command
- (2005) Tables Related to the Normal Distribution, The American Statistician, 59:4, 309-311, DOI: 10.1198/000313005X70911