Professional Documents
Culture Documents
17-2
17-3
Correlation
Correlation
A measure of association between two numerical variables.
17-4
Scatter Diagram
Scatter diagrams provide the relationship between two variables in a graphical form The diagram summarizes the nature of relationship between two variables Whether the relationship is positive or negative The diagram also explains the magnitude of the relationship
17-5
X Y r2 = .81, r = +0.9 Y
r2 = 0, r = 0
17-6
Specific Example
For seven random summer days, a person recorded the temperature and their water consumption, during a threehour period spent outside.
Temperature (F)
Water Consumption (ounces)
75 83 85 85 92 97 99
16 20 25 27 32 48 48
17-7
17-8
17-9
Correlation Analysis is statistical technique used to measure the magnitude of linear relationship between two variables Correlation can be used along with regression analysis to determine the nature of the relationship between variables The prominent correlation coefficients are 1.The Pearson product moment correlation coefficient
Correlation Analysis
17-10
17-11
Direction of Association
Positive Correlation Negative Correlation
17-12
Interpretation
perfect positive linear relationship no linear relationship perfect negative linear relationship
17-13
17-14
17-15
17-16
17-17
r=
( X
i =1 i
X) ( Yi Y )
2 n i
( X
i =1
X)
i 1 =
Y Y ( )
17-18
C o m p an y
1 2 3 4 5 6 7 8 9 1 0 1 1 1 2
A d vertisin g E xp ) (X
6 9 8 3 1 0 4 5 2 1 1 9 1 0 2
S alesY) (
1 0 1 2 1 2 4 1 2 6 8 2 1 8 9 1 7 2
17-19
X Y
n
+ (12-9.33)(10-6.58) + (6-9.33)(4-6.58) + (8-9.33)(5-6.58) + (2-9.33) (2-6.58) + (18-9.33)(11-6.58) + (9-9.33)(9-6.58) + (17-9.33)(10-6.58) + (2-9.33)(2-6.58) = -0.3886 + 6.4614 + 3.7914 + 19.0814 + 9.1314 + 8.5914 + 2.1014 + 33.5714 + 38.3214 - 0.7986 + 26.2314 + 33.5714 = 179.6668
17-20
= 1 i
+ (10-6.58)2+ (4-6.58)2 + (5-6.58)2 + (2-6.58)2 + (11-6.58)2 + (9-6.58)2 + (10-6.58)2 + (2-6.58)2 = 0.3364 + 5.8564 + 2.0164 + 12.8164 + 11.6964 + 6.6564 + 2.4964 + 20.9764 + 19.5364 + 5.8564 + 11.6964 + 20.9764 = 120.9168
Thus,
r=
= 0.9361
17-21
X Y
n
+ (12-9.33)(10-6.58) + (6-9.33)(4-6.58) + (8-9.33)(5-6.58) + (2-9.33) (2-6.58) + (18-9.33)(11-6.58) + (9-9.33)(9-6.58) + (17-9.33)(10-6.58) + (2-9.33)(2-6.58) = -0.3886 + 6.4614 + 3.7914 + 19.0814 + 9.1314 + 8.5914 + 2.1014 + 33.5714 + 38.3214 - 0.7986 + 26.2314 + 33.5714 = 179.6668
17-22
Rank correlation
Researchers often face situations where they have to take decisions based on data measured on ordinal scale scales in such cases Spearmans rank correlation is appropriate to relationship between variables. It can be calculated using following formula rs = 1 (( 6D2 )/( N(N2 -1))
The ranking of television Models New system Television Models Existing System
A B C D E F G H I J 3 5 10 2 7 6 4 1 8 9 1 5 9 3 2 4 6 7 10 8
17-23
17-24
A B C D E F G H I J
3 5 10 2 7 6 4 1 8 9
4 0 1 1 25 4 4 36 4 1
17-25
This indicates that there is a positive correlation between two variables. This means the both the systems are giving similar results
17-26
Regression
Regression
Specific statistical methods for finding the line of best fit for one response (dependent) numerical variable based on one or more explanatory (independent) variables.
17-27
17-28
Regression analysis examines associative relationships between a metric dependent variable and one or more independent variables in the following ways: Determine whether the independent variables explain a significant variation in the dependent variable Determine how much of the variation in the dependent variable can be explained by the independent variables: strength of the relationship. Predict the values of the dependent
Regression Analysis
17-29
Example
Plan an outdoor party. Estimate number of soft drinks to buy per person, based on how hot the weather is. Use Temperature/Water data and regression.
17-30
17-31
17-32
Practice Problems
Can the number of points scored in a basketball game be predicted by
The time a player plays in the game? By the players height?
17-33
No Relationship
17-34
Man Hours(X) 3.6 4.8 2.4 7.2 6.9 8.4 10.7 11.2 6.1 7.9 9.5 5.4 X=84.1
17-35
17-36
17-37