Professional Documents
Culture Documents
5
Example - Uniform Distribution
1 for x ∈ (0, 1)
f(x) =
0 otherwise
6
Example - Uniform Distribution
1 for x ∈ (0, 1)
f(x) =
0 otherwise
Properties:
E(X) = 1/2
Var(X) = 1/12
P(X = x) = 0
P(a < X < b) = b − a
for a, b ∈ (0, 1) 6
Example - Uniform(0,2) Distribution
7
Normal distribution
Normal distribution
Density given by
[ ( )]
1 1 x−µ 2
f(x|µ, σ) = √ exp −
σ 2π 2 σ
9
Normal distribution
Density given by
[ ( )]
1 1 x−µ 2
f(x|µ, σ) = √ exp −
σ 2π 2 σ
9
Normal distribution parameters
Y
-3 -2 -1 0 1 2 3 7 11 15 19 23 27 31
0 10 20 30
10
68-95-99.7 Rule
68%
95%
99.7%
µ − 3σ µ − 2σ µ−σ µ µ+σ µ + 2σ µ + 3σ 11
Describing variability using the 68-95-99.7 Rule
SAT scores are distributed nearly normally with mean 1500 and
standard deviation 300.
12
Describing variability using the 68-95-99.7 Rule
SAT scores are distributed nearly normally with mean 1500 and
standard deviation 300.
68%
95%
99.7%
http://blog.okcupid.com/index.php/the-biggest-lies-in-online-dating/
13
OkCupid’s Take
14
OkCupid’s Take
14
OkCupid’s Take
http://blog.okcupid.com/index.php/the-biggest-lies-in-online-dating/
15
Comparing SAT and ACT
SAT scores are distributed nearly normally with mean 1500 and standard
deviation 300. ACT scores are distributed nearly normally with mean 21 and
standard deviation 5. A college admissions officer wants to determine which
of the two applicants scored better on their standardized test with respect
to the other test takers: Pam, who earned an 1800 on her SAT, or Jim, who
scored a 24 on his ACT?
Jim
Pam
16
600 900 1200 1500 1800 2100 2400 6 11 16 21 26 31 36
Standardizing
Jim Pam
−2 −1 0 1 2
17
Standardizing with Z scores (cont.)
observation − mean
Z=
SD
• We can calculate Z scores for distributions of any shape,
but with normal distributions we use Z scores to calculate
probabilities.
• Observations that are more than 2 SD away from the
mean (|Z| > 2) are typically considered unusual.
18
Z distribution
X−µ
Z= , where X ∼ N(µ, σ)
σ
19
Z distribution
X−µ
Z= , where X ∼ N(µ, σ)
σ
19
Z distribution
X−µ
Z= , where X ∼ N(µ, σ)
σ
( )
X−µ
E(Z) = E = E(X/σ) − µ/σ = 0
σ
19
Z distribution
X−µ
Z= , where X ∼ N(µ, σ)
σ
( )
X−µ
E(Z) = E = E(X/σ) − µ/σ = 0
σ
( )
X−µ 1
Var(Z) = Var = Var(X/σ) = 2 Var(X) = 1 19
σ σ
Percentiles
21
Calculating Probabilities
We can use the empirical rule to solve some problems, but our
Z Score is not -3,-2,-1,1,2, or 3 we have a problem.
∫ b [ ]
1 1 2 2
P(a ≤ X ≤ b) = √ exp − (x − µ) /σ dx.
a σ 2π 2
∫ [ ( )]
1800
1 1 x − 1500 2
P(X ≤ 1800) = √ exp − dx
−∞ 300 2π 2 300
22
Calculating Probabilities
• R:
pnorm(1800, mean = 1500, sd = 300))
• Applet:
https://gallery.shinyapps.io/dist_calc/
23
Calculating Probabilities - Z Table
1.0 0.8413 0.8438 0.8461 0.8485 0.8508 0.8531 0.8554 0.8577 0.8599 0.8621
1.1 0.8643 0.8665 0.8686 0.8708 0.8729 0.8749 0.8770 0.8790 0.8810 0.8830
1.2 0.8849 0.8869 0.8888 0.8907 0.8925 0.8944 0.8962 0.8980 0.8997 0.9015
24
Calculating left tail probabilities
P(Z ≤ a) = Φ(a)
−3 −2 −1 0 a 1 2 3
25
*These left tail probabilities are sometimes called percentiles
Calculating right tail probabilities
P(Z ≥ a) = 1 − Φ(a)
−3 −2 −1 0 a 1 2 3
26
Calculating middle probabilities
−3 −2 a −1 0 b 1 2 3
27
Calculating two tail probabilities
−3 −2 a −1 0 b 1 2 3
28
Φ Practice
29
Φ Practice
29
Φ Practice
P(−1.53 ≤ Z ≤ 2.75)
29
Φ Practice
29
Probabilities for non-Unit Normal Distributions
( )
X−µ
Z= ∼ N(0, 1)
σ
30
Probabilities for non-Unit Normal Distributions
( )
X−µ
Z= ∼ N(0, 1)
σ
( ) ( ) ( )
a−µ b−µ b−µ a−µ
P(a ≤ X ≤ b) = P ≤Z≤ =Φ −Φ
σ σ σ σ
30
Examples
Example - Dosage
32
Finding the exact probability
34
Example - Body Temperature pt. 2
35