Module III Correlation and Regression
Module III Correlation and Regression
CORRELATION
&
REGRESSION
1
2 CORRELATION
n= 6
b= 5.2
y= 5.2x + 55.69
a= 55.69
Types of Correlation
4
Positive Negative
Correlation Correlation
17
Correlation Coefficient
18
?
PROBLEM: The following sample data for the stereo and sound equipment store
21
Week x y
1 2 50 -1 -1 1
2 5 57 2 6 12
3 1 41 -2 -10 20
4 3 54 0 3 0
5 4 54 1 3 3
6 1 38 2 -13 26
7 5 63 -2 12 24
8 3 48 0 -3 0
9 4 59 1 8 8
10 2 46 1 -5 5
0 0 99
Variance, Covariance and Standard
deviation
23
Variance, Covariance and Standard
deviation
24
0.93
PROBLEM
25
Student Hrs Studies Marks Obtained
(Percentage)
A 6 82
B 2 63
C 1 57
D 5 88
E 3 68
F 2 75
26
Hrs studied Percentage
Student (x) (y) x2 y2 xy
A 6 82
B 2 63
C 1 57
D 5 88
E 3 68
F 2 75
Hrs studied Percentage y2
27 Student (x) (y) x2 xy
A 6 82 36 6724 492
B 2 63 4 3969 126
C 1 57 1 3249 57
D 5 88 25 7744 440
E 3 68 9 4624 204
F 2 75 4 5625 150
r= 0.86
Shyness Speeches
Compute r for the
X Y
relationship between
Shyness and Speeches.
0 8
2 10
3 4
6 6
9 1
10 3
Computational Example of r for the relationship
between Shyness and Speeches
Shyness Speeches XY X2 Y2
X Y
N ∑XY - ∑X ∑Y
r=
0 8 0 0 64
[ N ∑X – (∑X) ] [N ∑Y – (∑Y) ]
2 2 2 2
2 10 20 4 100
(6 X 107) – 30 (32) 3 4 12 9 16
9 1 9 81 1
r = -.797 10 3 30 100 9
30
Incase of Grouped Data
31
Audit Time Frequency Middle point 𝑓iMi
(days)
10-14 4 12 48
15-19 8 17 136
20-24 5 22 110
25-29 2 27 54
30-34 1 32 32
20 380
32
Audit Time Frequency Middle 𝑓iMi
(days) point
10-14 4 12 48 -7 49 196
15-19 8 17 136 -2 4 32
20-24 5 22 110 3 9 45
25-29 2 27 54 8 64 128
20 380 570
33
38 Pearsonian Correlation: Assumptions
4 2 3 5 25 Preparatory(3) A
? Merits:
? Simpler to understand and easier to apply
? Can be used for qualitative data
? Can be used when ranks are given in place of actual
data, can also be used when actual data is given
? Useful when the data is non normal
52 Rank Correlation
? Demerits:
? Cannot be used when grouped frequency
distribution is given
? When n increases calculations becomes complex
and tedious
53 When to use Rank Correlation
57
60 65
55 - 40 - +
50 - 35 - +
56 + 75 + +
30 - 63 - +
70 + 80 + +
40 - 35 - +
35 - 20 - +
80 + 80 + +
80 0 60 + 0
75 - 60 0 0
58
Regression Analysis
? The regression analysis is a statistical method to deal with the
formulation of mathematical model depicting relationship amongst
variables, which can be used for the purpose of prediction of the
values of dependent variable, given the values of independent
variables.
? Classification of Regression Analysis Models
? Linear regression models
1. Simple linear regression
2. Multiple linear regression
? Non-linear regression models
59 SCATTER DIAGRAM
? graph of observed plotted points where each point
represents the values of X and Y as a coordinate
? Portrays the relationship between these two variables
graphically
? To determine the extent of association, look at the scatter
of various points
? The wider the scatter, the less close is the relationship
? Closer the points and the closer they come to falling on a
line passing through them, higher the degree of
association
60 SCATTER DIAGRAM
61 Problem Adv Profit
? The following data represents the money 5 8
spent on advertising of a product and 6 7
respective profits realized from each
7 9
advertising period for the given product.
The amounts are in thousands of dollars. 8 10
Assume profit to be dependent variable and 9 13
advertising as an independent variable
10 12
11 13
62
Simple Linear Regression Model
?
63 Slope of the Regression line
y= a +bx
64
?
65