Inferential Analysis
Inferential Analysis
(RELATIONSHIPS)
3
Water Consumption (L)
2.5
1.5
0.5
0
20 25 30 35 40 45 50
Temperature (C)
Introduction
Correlation treats all variables equally
3.5
2.5
2 Linear relationship
1.5
0.5
0
5 10 15 20 25 30 35 40 45 50 55
Detecting a linear relationship
3.5
2.5
2 Linear relationship
1.5
0.5
0
0 10 20 30 40 50 60
Detecting a linear relationship
1.2
0.8
0.4
0.2
0
10 12 14 16 18 20 22
Detecting a linear relationship
1.8
1.6
1.4
1.2
1
Curvilinear relationship
0.8
0.6
0.4
0.2
0
5 10 15 20 25 30
Correlation Coefficient
Positive
3
Correlation
Water Consumption (L)
2.5
1.5
0.5
0
20 25 30 35 40 45 50
Temperature (C)
Direction of Correlation
6
Negative
5 Correlation
4
Stress Score
0
15 20 25 30 35 40 45 50
Strength of Coefficient
Correlation
Positive Negative
Small 0.1 to 0.29 - 0.1 to - 0.29
4
There are no data3.5points that show
3.5
any variation away 3 from this line
3
2.5
2.5
2
2
r = -1 r = +1
1.5
1.5
1
1
0.5 0.5
0 0
5 10 15 20 25 30 35 40 45 50 5 10 15 20 25 30 35 40 45 50 55
REGRESSION ANALYSIS
Definition
Y = β0 + β1 *X + e
Typically Y is referred to the dependent variable, &
X as the independent variable
β0 is the intercept of the estimated line i.e. the value of Y
when X = 0
β1 is the gradient of the estimated line [slope of the line] i.e.
the amount by which Y change with one unit change of X
e is the error term or disturbance in the relationship,
represents factors other than X that affect Y
Types of Regression
Regression analysis is generally classified into two types
Simple Multiple
Regression involves only Regression involves more
two variables, one of than two variables,
which is dependent MAINLY, one of which is
variable and the other is dependent variable and the
explanatory (independent) others are explanatory
variable (independent) variables
Continuous Categorical
Number of Predictor Variables
We can plot the values on a graph, with insulin dose on the X axis
and blood glucose on the Y axis
4
BG = - 7.15 + .095 * Insulin dose
Glucose level
0
10 20 30 40 50 60 70 80
Inslin dose
Linear Regression
MULTIPLE LINEAR REGRESSION is the same idea as
simple linear regression, except that we have several
independent variables predicting the dependent variable