Lesson-3.3-Probability-Normal-Distribution-Linear-Regression-and-Correlation
Lesson-3.3-Probability-Normal-Distribution-Linear-Regression-and-Correlation
LESSON 3.3
PROBABIITY, NORMAL DISTRIBUTION, LINEAR
REGRESSION, AND CORRELATION
PROBABILITY AND
NORMAL DISTRIBUTION
Probability is the chance or likelihood of an event to happen.
It can be expressed as proportions from 0 to 1 or
percentages from 0% to 100%. A probability of 0 indicates
that the event doesn’t have the chance to occur, whereas a
probability of 1 indicates that the event will certainly happen.
Unconditional Probability
An unconditional probability is the chance that a single
outcome results among several possible outcomes. The
term refers to the likelihood that an event will take place
irrespective of whether any other events have taken place or
any other conditions are present.
Number of Times 𝐴 Occurs
𝑃(𝐴)=
Total Number of Possible Outcomes
Example 1. Data below show the number of gadget addictiveness
among children 5-10 years of age who are seeking medical care.
Using the data given below, determine the following:
1. What is the probability of selecting a boy?
2. What is the probability of selecting a 7-year old?
3. What is the probability of selecting a girl?
4. What is the probability of selecting a boy who is 10 years of age?
x 1 2 3 4 5 –2
y –4 –2 –1 0 2
–4
Linear Correlation
y y
As x increases, As x increases,
y tends to y tends to
decrease. increase.
x x
Negative Linear Correlation Positive Linear Correlation
y y
x x
No Correlation Nonlinear Correlation
Correlation Coefficient
𝑛∑𝑥𝑦 − ∑𝑥 ∑𝑦
𝑟= .
𝑛∑𝑥 2 − ∑𝑥 2 [𝑛∑𝑦 2 − ∑𝑦 2 ]
r = −0.91 r = 0.88
x
x
Very strong negative correlation
Strong positive correlation
y
y
r = 0.42
r = 0.07
x
x
Weak positive correlation
No Correlation
Calculating a Correlation Coefficient
Calculating a Correlation Coefficient
In Words In Symbols
1. Find the sum of the x-values. x
2. Find the sum of the y-values. y
3. Multiply each x-value by its xy
corresponding y-value and find the sum.
4. Square each x-value and find the sum.
5. Square each y-value and find the sum. x 2
6. Use these five sums to calculate y2
the correlation coefficient. r=
n xy − ( x )( y )
.
n x − ( x ) n y − ( y )
2 2 2 2
Continued.
Example:
Calculate the correlation coefficient r for the following data.
x y xy x2 y2
1 –3 –3 1 9
2 –1 –2 4 1
3 0 0 9 0
4 1 4 16 1
5 2 10 25 4
x = 15 y = −1 xy = 9 x 2 = 55 y 2 = 15
Continued.
Example continued:
Hours, x 0 1 2 3 3 5 5 5 6 7 7 10
Test score, y 96 85 82 74 95 68 76 84 58 65 75 50
y
100
80
Test score
60
40
20
x
2 4 6 8 10
Hours watching TV
Continued.
Example continued:
Hours, x 0 1 2 3 3 5 5 5 6 7 7 10
Test score, y 96 85 82 74 95 68 76 84 58 65 75 50
xy 0 85 164 222 285 340 380 420 348 455 525 500
x2 0 1 4 9 9 25 25 25 36 49 49 100
y2 9216 7225 6724 5476 9025 4624 5776 7056 3364 4225 5625 2500
Predicted d
3
y-value
x
Each data point di represents the difference between the
observed y-value and the predicted y-value for a given x-
value on the line. These differences are called residuals.
Regression Line
A regression line, also called a line of best fit, is the line
for which the sum of the squares of the residuals is a
minimum.
The Equation of a Regression Line
The equation of a regression line for an independent variable
x and a dependent variable y is
ŷ = mx + b
where ŷ is the predicted y-value for a given x-value. The
slope m and y-intercept b are given by
n xy − ( x )( y ) y x
m= and b = y − mx = − m
n x 2 − ( x )
2 n n
where y is the mean of the y - values and x is the mean of the
x - values. The regression line always passes through (x , y ).
Example:
Find the equation of the regression line.
x y xy x2 y2
1 –3 –3 1 9
2 –1 –2 4 1
3 0 0 9 0
4 1 4 16 1
5 2 10 25 4
x = 15 y = −1 xy = 9 x 2 = 55 y 2 = 15
( )
−1
−1
−2 (x , y ) = 3,
5
−3
Example:
The following data represents the number of hours 12
different students watched television during the
weekend and the scores of each student who took a test
the following Monday.
a.) Find the equation of the regression line.
b.) Use the equation to find the expected test score
for a student who watches 9 hours of TV.
Hours, x 0 1 2 3 3 5 5 5 6 7 7 10
Test score, y 96 85 82 74 95 68 76 84 58 65 75 50
xy 0 85 164 222 285 340 380 420 348 455 525 500
x2 0 1 4 9 9 25 25 25 36 49 49 100
y2 9216 7225 6724 5476 9025 4624 5776 7056 3364 4225 5625 2500
y
b = y − mx
908 54
100 (x , y ) = (1254 , 908
12 )
(4.5,75.7)
= − (−4.067) 80
12 12
Test score
60
93.97
40
ŷ = –4.07x + 93.97 20
x
2 4 6 8 10
Hours watching TV
Continued.
Example continued:
Using the equation ŷ = –4.07x + 93.97, we can predict
the test score for a student who watches 9 hours of TV.
ŷ = –4.07x + 93.97
= –4.07(9) + 93.97
= 57.34
= 57
A student who watches 9 hours of TV over the weekend
can expect to receive about 57 points on Monday’s test.
The coefficient of determination r2 is the ratio of the
explained variation to the total variation. That is,
r 2 = Explained variation
Total variation
Example:
The correlation coefficient for the data that represents
the number of hours students watched television and the
test scores of each student is r −0.831. Find the
coefficient of determination.
r 2 (−0.831)2 About 69.1% of the variation in the test
scores can be explained by the variation
0.691
in the hours of TV watched. About 30.9%
of the variation is unexplained.