SlideShare a Scribd company logo
1 of 16
15: Linear Regression
Expected change in Y per unit X
Introduction
(p. 15.1)
• X = independent (explanatory) variable
• Y = dependent (response) variable
• Use instead of correlation
when distribution of X is fixed by researcher (i.e.,
set number at each level of X)
studying functional dependency between X and Y
Illustrative data (bicycle.sav)
(p. 15.1)
• Same as prior chapter
• X = percent receiving
reduce or free meal
(RFM)
• Y = percent using
helmets (HELM)
• n = 12 (outlier
removed to study
linear relation)
100
80
60
40
20
0
60
50
40
30
20
10
0
X - % Receiving Reduced Fee School Lunch
Regression Model (Equation)
(p. 15.2)
slope
s
line'
the
represents
intercept
s
line'
the
represents
given
a
at
of
average
predicted
represents
ˆ
where
ˆ
b
a
X
Y
y
bX
a
y 
 “y hat”
How formulas determine best line
(p. 15.2)
• Distance of points
from line =
residuals (dotted)
• Minimizes sum of
square residuals
• Least squares
regression line
100
80
60
40
20
0
60
50
40
30
20
10
0
X - % Receiving Reduced Fee School Lunch
Formulas for Least Squares Coefficients
with Illustrative Data (p. 15.2 – 15.3)
539
.
0
67
.
7855
1333
.
4231





XX
XY
SS
SS
b
49
.
47
)
8333
.
30
)(
539
.
0
(
8833
.
30 




 x
b
y
a
SPSS output:
Alternative formula for slope
X
Y
s
r
s
b 
Interpretation of Slope (b)
(p. 15.3)
• b = expected change in Y
per unit X
• Keep track of units!
– Y = helmet users per 100
– X = % receiving free lunch
• e.g., b of –0.54 predicts
decrease of 0.54 units of Y
for each unit X
100
80
60
40
20
0
60
50
40
30
20
10
0
X - % Receiving Reduced Fee School Lunch
Intercept
1 Unit X
Slope
Predicting Average Y
• ŷ = a + bx
Predicted Y = intercept + (slope)(x)
HELM = 47.49 + (–0.54)(RFM)
• What is predicted HELM when RFM = 50?
ŷ = 47.49 + (–0.54)(50) = 20.5
Average HELM predicted to be 20.5 in neighborhood
where 50% of children receive reduced or free meal
• What is average Y when x = 20?
ŷ = 47.49 +(–0.54)(20) = 36.7
Confidence Interval for Slope Parameter
(p. 15.4)
95% confidence Interval for ß =
where
b = point estimate for slope
tn-2,.975 = 97.5th percentile (from t table or StaTable)
seb = standard error of slope estimate (formula 5)
)
)(
( 975
,.
2 b
n se
t
b 

|
XX
x
Y
b
SS
se
se 
2
)
(
|



n
SS
b
SS
se XY
YY
x
Y
standard error of regression
Illustrative Example (bicycle.sav)
• 95% confidence interval for 
= –0.54 ± (t10,.975)(0.1058)
= –0.54 ± (2.23)(0.1058)
= –0.54 ± 0.24
= (–0.78, –0.30)
Interpret 95% confidence interval
Model:
Point estimate for slope (b) = –0.54
Standard error of slope (seb) = 0.24
95% confidence interval for  = (–0.78, –0.30)
Interpretation:
slope estimate = –0.54 ± 0.24
We are 95% confident the slope parameter falls
between –0.78 and –0.30
Significance Test
(p. 15.5)
• H0: ß = 0
• tstat (formula 7) with df = n – 2
• Convert tstat to p value
09
.
5
1058
.
0
539
.
0





b
stat
se
b
t
df =12 – 2 = 10
p = 2×area beyond tstat on t10
Use t table and StaTable
Regression ANOVA
(not in Reader & NR)
• SPSS also does an analysis of variance on regression model
• Sum of squares of fitted values around grand mean = (ŷi – ÿ)²
• Sum of squares of residuals around line = (yi– ŷi )²
• Fstat provides same p value as tstat
• Want to learn more about relation between ANOVA and regression?
(Take regression course)
Distributional Assumptions
(p. 15.5)
• Linearity
• Independence
• Normality
• Equal variance X
Y
Regression Line
Distribution of Y
Validity Assumptions
(p. 15.6)
• Data = farr1852.sav
X = mean elevation above sea level
Y = cholera mortality per 10,000
• Scatterplot (right) shows
negative correlation
• Correlation and regression
computations reveal:
r = -0.88
ŷ = 129.9 + (-1.33)x
p = .009
• Farr used these results to support
miasma theory and refute
contagion theory
– But data not valid (confounded by
“polluted water source”)
Mean Elevation of the Ground above the Higwater Mark
400
300
200
100
0
Mean
mortality
from
Cholera
per
10,000
200
100
80
60
40
20
10
8
6

More Related Content

Similar to regression.ppt

02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt
02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt
02 PSBE3_PPT.Ch01_2_Examining Distribution.pptBishoyRomani
 
Properties of arithmetic mean
Properties of arithmetic meanProperties of arithmetic mean
Properties of arithmetic meanNadeem Uddin
 
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)마이캠퍼스
 
Regression Presentation.pptx
Regression Presentation.pptxRegression Presentation.pptx
Regression Presentation.pptxMuhammadMuslim25
 
characteristic of function, average rate chnage, instant rate chnage.pptx
characteristic of function, average rate chnage, instant rate chnage.pptxcharacteristic of function, average rate chnage, instant rate chnage.pptx
characteristic of function, average rate chnage, instant rate chnage.pptxPallaviGupta66118
 
Descriptive Statistics Part II: Graphical Description
Descriptive Statistics Part II: Graphical DescriptionDescriptive Statistics Part II: Graphical Description
Descriptive Statistics Part II: Graphical Descriptiongetyourcheaton
 
Lec. 10: Making Assumptions of Missing data
Lec. 10: Making Assumptions of Missing dataLec. 10: Making Assumptions of Missing data
Lec. 10: Making Assumptions of Missing dataMohamadKharseh1
 
Est3 tutorial3mejorado
Est3 tutorial3mejoradoEst3 tutorial3mejorado
Est3 tutorial3mejoradohunapuh
 
Numerical methods course project report
Numerical methods course project reportNumerical methods course project report
Numerical methods course project reportZeeshan Ali
 
Business Statistics_an overview
Business Statistics_an overviewBusiness Statistics_an overview
Business Statistics_an overviewDiane Christina
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Neeraj Bhandari
 
Statistics lecture 11 (chapter 11)
Statistics lecture 11 (chapter 11)Statistics lecture 11 (chapter 11)
Statistics lecture 11 (chapter 11)jillmitchell8778
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14Yasser Ahmed
 
Math Project !.docx What is the effect of changing the transformations on a s...
Math Project !.docx What is the effect of changing the transformations on a s...Math Project !.docx What is the effect of changing the transformations on a s...
Math Project !.docx What is the effect of changing the transformations on a s...GOOGLE
 
Initial value problems
Initial value problemsInitial value problems
Initial value problemsAli Jan Hasan
 

Similar to regression.ppt (20)

02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt
02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt
02 PSBE3_PPT.Ch01_2_Examining Distribution.ppt
 
Properties of arithmetic mean
Properties of arithmetic meanProperties of arithmetic mean
Properties of arithmetic mean
 
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
 
Regression Presentation.pptx
Regression Presentation.pptxRegression Presentation.pptx
Regression Presentation.pptx
 
ML Module 3.pdf
ML Module 3.pdfML Module 3.pdf
ML Module 3.pdf
 
characteristic of function, average rate chnage, instant rate chnage.pptx
characteristic of function, average rate chnage, instant rate chnage.pptxcharacteristic of function, average rate chnage, instant rate chnage.pptx
characteristic of function, average rate chnage, instant rate chnage.pptx
 
Chapter5
Chapter5Chapter5
Chapter5
 
Descriptive Statistics Part II: Graphical Description
Descriptive Statistics Part II: Graphical DescriptionDescriptive Statistics Part II: Graphical Description
Descriptive Statistics Part II: Graphical Description
 
Lec. 10: Making Assumptions of Missing data
Lec. 10: Making Assumptions of Missing dataLec. 10: Making Assumptions of Missing data
Lec. 10: Making Assumptions of Missing data
 
Est3 tutorial3mejorado
Est3 tutorial3mejoradoEst3 tutorial3mejorado
Est3 tutorial3mejorado
 
Numerical methods course project report
Numerical methods course project reportNumerical methods course project report
Numerical methods course project report
 
Business Statistics_an overview
Business Statistics_an overviewBusiness Statistics_an overview
Business Statistics_an overview
 
Lect05 BT1211.pdf
Lect05 BT1211.pdfLect05 BT1211.pdf
Lect05 BT1211.pdf
 
Chapter 04 answers
Chapter 04 answersChapter 04 answers
Chapter 04 answers
 
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )Correlation by Neeraj Bhandari ( Surkhet.Nepal )
Correlation by Neeraj Bhandari ( Surkhet.Nepal )
 
Statistics lecture 11 (chapter 11)
Statistics lecture 11 (chapter 11)Statistics lecture 11 (chapter 11)
Statistics lecture 11 (chapter 11)
 
Applied numerical methods lec14
Applied numerical methods lec14Applied numerical methods lec14
Applied numerical methods lec14
 
Climate Extremes Workshop - Semiparametric Estimation of Heavy Tailed Density...
Climate Extremes Workshop - Semiparametric Estimation of Heavy Tailed Density...Climate Extremes Workshop - Semiparametric Estimation of Heavy Tailed Density...
Climate Extremes Workshop - Semiparametric Estimation of Heavy Tailed Density...
 
Math Project !.docx What is the effect of changing the transformations on a s...
Math Project !.docx What is the effect of changing the transformations on a s...Math Project !.docx What is the effect of changing the transformations on a s...
Math Project !.docx What is the effect of changing the transformations on a s...
 
Initial value problems
Initial value problemsInitial value problems
Initial value problems
 

More from VaishnaviElumalai

coronavirusppt-210526095421.pdffghhhjjjj
coronavirusppt-210526095421.pdffghhhjjjjcoronavirusppt-210526095421.pdffghhhjjjj
coronavirusppt-210526095421.pdffghhhjjjjVaishnaviElumalai
 
pubertylectute pdf......................
pubertylectute pdf......................pubertylectute pdf......................
pubertylectute pdf......................VaishnaviElumalai
 
5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut
5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut
5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjutVaishnaviElumalai
 
vaishnavi journal presentation obg (1).pptx
vaishnavi journal presentation obg (1).pptxvaishnavi journal presentation obg (1).pptx
vaishnavi journal presentation obg (1).pptxVaishnaviElumalai
 
SWATHI PRESENTATION_011534.pptx
SWATHI PRESENTATION_011534.pptxSWATHI PRESENTATION_011534.pptx
SWATHI PRESENTATION_011534.pptxVaishnaviElumalai
 
CARDIAC_ARREST_AND_RESCUECITATION.pptx
CARDIAC_ARREST_AND_RESCUECITATION.pptxCARDIAC_ARREST_AND_RESCUECITATION.pptx
CARDIAC_ARREST_AND_RESCUECITATION.pptxVaishnaviElumalai
 
ICU PHYSICAL THERAPY inservice trainging.pptx
ICU PHYSICAL THERAPY inservice trainging.pptxICU PHYSICAL THERAPY inservice trainging.pptx
ICU PHYSICAL THERAPY inservice trainging.pptxVaishnaviElumalai
 
UNIT III -Measures of Central Tendency 1.ppt
UNIT III -Measures of Central Tendency 1.pptUNIT III -Measures of Central Tendency 1.ppt
UNIT III -Measures of Central Tendency 1.pptVaishnaviElumalai
 
T_test_of_dependent_means (2).ppt
T_test_of_dependent_means (2).pptT_test_of_dependent_means (2).ppt
T_test_of_dependent_means (2).pptVaishnaviElumalai
 
Dot Plots and Box Plots.pptx
Dot Plots and Box Plots.pptxDot Plots and Box Plots.pptx
Dot Plots and Box Plots.pptxVaishnaviElumalai
 

More from VaishnaviElumalai (20)

coronavirusppt-210526095421.pdffghhhjjjj
coronavirusppt-210526095421.pdffghhhjjjjcoronavirusppt-210526095421.pdffghhhjjjj
coronavirusppt-210526095421.pdffghhhjjjj
 
pubertylectute pdf......................
pubertylectute pdf......................pubertylectute pdf......................
pubertylectute pdf......................
 
5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut
5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut
5c_Postpartum-Care.ppt fhtyjhrhrhtjyrjykjut
 
vaishnavi journal presentation obg (1).pptx
vaishnavi journal presentation obg (1).pptxvaishnavi journal presentation obg (1).pptx
vaishnavi journal presentation obg (1).pptx
 
DOC-20230616-WA0032..pptx
DOC-20230616-WA0032..pptxDOC-20230616-WA0032..pptx
DOC-20230616-WA0032..pptx
 
VAISHU.pptx
VAISHU.pptxVAISHU.pptx
VAISHU.pptx
 
SWATHI PRESENTATION_011534.pptx
SWATHI PRESENTATION_011534.pptxSWATHI PRESENTATION_011534.pptx
SWATHI PRESENTATION_011534.pptx
 
CARDIAC_ARREST_AND_RESCUECITATION.pptx
CARDIAC_ARREST_AND_RESCUECITATION.pptxCARDIAC_ARREST_AND_RESCUECITATION.pptx
CARDIAC_ARREST_AND_RESCUECITATION.pptx
 
PROPRIOCEPTORS - PNF.pptx
PROPRIOCEPTORS - PNF.pptxPROPRIOCEPTORS - PNF.pptx
PROPRIOCEPTORS - PNF.pptx
 
ORTHOPEDIC XRAYS.pptx
ORTHOPEDIC XRAYS.pptxORTHOPEDIC XRAYS.pptx
ORTHOPEDIC XRAYS.pptx
 
Respiratory assessment.pdf
Respiratory assessment.pdfRespiratory assessment.pdf
Respiratory assessment.pdf
 
ICU PHYSICAL THERAPY inservice trainging.pptx
ICU PHYSICAL THERAPY inservice trainging.pptxICU PHYSICAL THERAPY inservice trainging.pptx
ICU PHYSICAL THERAPY inservice trainging.pptx
 
Job Analysis.ppt
Job Analysis.pptJob Analysis.ppt
Job Analysis.ppt
 
ergonomics-training.ppt
ergonomics-training.pptergonomics-training.ppt
ergonomics-training.ppt
 
M. IFT.pptx
M. IFT.pptxM. IFT.pptx
M. IFT.pptx
 
UNIT III -Measures of Central Tendency 1.ppt
UNIT III -Measures of Central Tendency 1.pptUNIT III -Measures of Central Tendency 1.ppt
UNIT III -Measures of Central Tendency 1.ppt
 
T_test_of_dependent_means (2).ppt
T_test_of_dependent_means (2).pptT_test_of_dependent_means (2).ppt
T_test_of_dependent_means (2).ppt
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
multiple.ppt
multiple.pptmultiple.ppt
multiple.ppt
 
Dot Plots and Box Plots.pptx
Dot Plots and Box Plots.pptxDot Plots and Box Plots.pptx
Dot Plots and Box Plots.pptx
 

Recently uploaded

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Shubhangi Sonawane
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 

Recently uploaded (20)

Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 

regression.ppt

  • 1. 15: Linear Regression Expected change in Y per unit X
  • 2. Introduction (p. 15.1) • X = independent (explanatory) variable • Y = dependent (response) variable • Use instead of correlation when distribution of X is fixed by researcher (i.e., set number at each level of X) studying functional dependency between X and Y
  • 3. Illustrative data (bicycle.sav) (p. 15.1) • Same as prior chapter • X = percent receiving reduce or free meal (RFM) • Y = percent using helmets (HELM) • n = 12 (outlier removed to study linear relation) 100 80 60 40 20 0 60 50 40 30 20 10 0 X - % Receiving Reduced Fee School Lunch
  • 4. Regression Model (Equation) (p. 15.2) slope s line' the represents intercept s line' the represents given a at of average predicted represents ˆ where ˆ b a X Y y bX a y   “y hat”
  • 5. How formulas determine best line (p. 15.2) • Distance of points from line = residuals (dotted) • Minimizes sum of square residuals • Least squares regression line 100 80 60 40 20 0 60 50 40 30 20 10 0 X - % Receiving Reduced Fee School Lunch
  • 6. Formulas for Least Squares Coefficients with Illustrative Data (p. 15.2 – 15.3) 539 . 0 67 . 7855 1333 . 4231      XX XY SS SS b 49 . 47 ) 8333 . 30 )( 539 . 0 ( 8833 . 30       x b y a SPSS output:
  • 7. Alternative formula for slope X Y s r s b 
  • 8. Interpretation of Slope (b) (p. 15.3) • b = expected change in Y per unit X • Keep track of units! – Y = helmet users per 100 – X = % receiving free lunch • e.g., b of –0.54 predicts decrease of 0.54 units of Y for each unit X 100 80 60 40 20 0 60 50 40 30 20 10 0 X - % Receiving Reduced Fee School Lunch Intercept 1 Unit X Slope
  • 9. Predicting Average Y • ŷ = a + bx Predicted Y = intercept + (slope)(x) HELM = 47.49 + (–0.54)(RFM) • What is predicted HELM when RFM = 50? ŷ = 47.49 + (–0.54)(50) = 20.5 Average HELM predicted to be 20.5 in neighborhood where 50% of children receive reduced or free meal • What is average Y when x = 20? ŷ = 47.49 +(–0.54)(20) = 36.7
  • 10. Confidence Interval for Slope Parameter (p. 15.4) 95% confidence Interval for ß = where b = point estimate for slope tn-2,.975 = 97.5th percentile (from t table or StaTable) seb = standard error of slope estimate (formula 5) ) )( ( 975 ,. 2 b n se t b   | XX x Y b SS se se  2 ) ( |    n SS b SS se XY YY x Y standard error of regression
  • 11. Illustrative Example (bicycle.sav) • 95% confidence interval for  = –0.54 ± (t10,.975)(0.1058) = –0.54 ± (2.23)(0.1058) = –0.54 ± 0.24 = (–0.78, –0.30)
  • 12. Interpret 95% confidence interval Model: Point estimate for slope (b) = –0.54 Standard error of slope (seb) = 0.24 95% confidence interval for  = (–0.78, –0.30) Interpretation: slope estimate = –0.54 ± 0.24 We are 95% confident the slope parameter falls between –0.78 and –0.30
  • 13. Significance Test (p. 15.5) • H0: ß = 0 • tstat (formula 7) with df = n – 2 • Convert tstat to p value 09 . 5 1058 . 0 539 . 0      b stat se b t df =12 – 2 = 10 p = 2×area beyond tstat on t10 Use t table and StaTable
  • 14. Regression ANOVA (not in Reader & NR) • SPSS also does an analysis of variance on regression model • Sum of squares of fitted values around grand mean = (ŷi – ÿ)² • Sum of squares of residuals around line = (yi– ŷi )² • Fstat provides same p value as tstat • Want to learn more about relation between ANOVA and regression? (Take regression course)
  • 15. Distributional Assumptions (p. 15.5) • Linearity • Independence • Normality • Equal variance X Y Regression Line Distribution of Y
  • 16. Validity Assumptions (p. 15.6) • Data = farr1852.sav X = mean elevation above sea level Y = cholera mortality per 10,000 • Scatterplot (right) shows negative correlation • Correlation and regression computations reveal: r = -0.88 ŷ = 129.9 + (-1.33)x p = .009 • Farr used these results to support miasma theory and refute contagion theory – But data not valid (confounded by “polluted water source”) Mean Elevation of the Ground above the Higwater Mark 400 300 200 100 0 Mean mortality from Cholera per 10,000 200 100 80 60 40 20 10 8 6