Академический Документы
Профессиональный Документы
Культура Документы
SLIDES PREPARED
BY
Correlation and
Regression
LLOYD R. JAISINGH
MOREHEAD STATE UNIVERSITY
MOREHEAD KY
Updated by
Dr. Saeed Alghamdi
King Abdulaziz University
www.kau.edu.sa/saalghamdy
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
Objectives Notes
10-1
……………………………………………………............
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
Introduction Notes
10-2
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
1
Introduction Notes
10-3
Statistical Questions
…………………………………………………................
1. Are two or more variables related?
2. If so,, what is the strength
g of the relationship?
p
……………………………………………………............
3. What type or relationship exists?
4. What kind of predictions can be made from
……………………………………………………............
the relationship?
……………………………………………………............
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
Introduction Notes
10-4
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
Introduction Notes
10-5
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
2
Scatter Plots Notes
10-6
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
100
90
…………………………………………………................
Finall grade
80
70
60
……………………………………………………............
50
40
30
……………………………………………………............
0 5 10 15 20
Number of absences
……………………………………………………............
*See examples 10-1, 10-2 and 10-3
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
3
Correlation Coefficient Notes
10-9
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
……………………………………………………............
Strong negative Strong positive
0
linear relationship linear relationship
……………………………………………………............
* See Figure 10-6 on page 534
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
4
Correlation Coefficient Notes
10-12
( )
[n ∑ x − (∑ x ) ] [ n ∑ y − (∑ y ) ]
2 2
( 2
) 2
……………………………………………………............
where n is the number of data pairs.
……………………………………………………............
* See examples 10-4 and 10-5
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
10-13
……………………………………………………............
6
4
2
……………………………………………………............
0 10 20 30 40 50 60 Age
70
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
10-14
(
6 625 ) – ( )(
225 22.5 ) which means that
r= = – 0.832 older people tend
……………………………………………………............
⎡ 2⎤⎡ 2⎤ to exercise less on
⎣⎢6 ( 9653) – ( 225 ) ⎦⎥ ⎣⎢6 ( 141.25 ) – ( 22.5 ) ⎦⎥ average.
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
5
Regression Line Notes
10-15
y y …………………………………………………................
……………………………………………………............
……………………………………………………............
x x
……………………………………………………............
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
6
Regression Line Notes
10-18
a=
( )
( ∑y ) ∑x 2 −( ∑x )( ∑xy )
…………………………………………………................
n ( ∑x 2) −( ∑x )2 ……………………………………………………............
n ( ∑xy ) −( ∑x )( ∑y )
b= ……………………………………………………............
( )
n ∑x 2 −( ∑x )2
where a is the y' intercept and b is the slope of the line.
……………………………………………………............
* See examples 10-9, 10-10 and 10-11
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
10-20
y ′ = a + bx ……………………………………………………............
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
7
10-21
a=
(∑ y ) ( ∑ x 2 ) – ( ∑ x )( ∑ xy ) Notes
n( ∑ x2 ) – (∑ x )
2
∑
Age x 18 26 32 38 52 59 225
…………………………………………………................
Hours y 10 5 2 3 1.5 1 22.5
x 2
324 676 1024 1444 2704 3481 9653
……………………………………………………............
y2 100 25 4 9 2.25 1 141.25
x ×y 180 130 64 114 78 59 625
……………………………………………………............
( 22.5 )( 9653 ) – ( 225 )( 625 )
a= = 10.499
2 ……………………………………………………............
6 ( 9653 ) – ( 225 )
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
10-22
n ( ∑ xy ) – ( ∑ x )( ∑ y ) Notes
b=
( )
n ∑ x2 – (∑ x )
2
∑
Age x 18 26 32 38 52 59 225
…………………………………………………................
Hours y 10 5 2 3 1.5 1 22.5
x 2
324 676 1024 1444 2704 3481 9653
……………………………………………………............
y2 100 25 4 9 2.25 1 141.25
x ×y 180 130 64 114 78 59 625
……………………………………………………............
6 ( 625 ) – ( 225 )( 22.5 )
b= = – 0.18
2 ……………………………………………………............
6 ( 9653 ) – ( 225 )
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
10-23
8
Elementary Statistics CHAPTER 13
A Step by Step Approach
Sixth Edition
by
Allan G. Bluman
http://www.mhhe.com/math/stat/blumanbrief
SLIDES PREPARED
BY
LLOYD R. JAISINGH
MOREHEAD STATE UNIVERSITY
N
Nonparametric
t i Statistics
St ti ti
MOREHEAD KY
Updated by
Dr. Saeed Alghamdi
King Abdulaziz University
www.kau.edu.sa/saalghamdy
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
13-2
9
13-3
Dr. Saeed Alghamdi, Statistics Department, Faculty of Sciences, King Abdulaziz University
……………………………………………………............
10