SlideShare a Scribd company logo
Regression
Making predictions using data
Limitations of correlations
Correlations measure the magnitude of the relationship between
two variables within a population
There are two important limitations associated with correlations
They cannot predict scores on one variable from knowledge of
the other
They cannot measure relationships between more than two
variables
Linear regression is a more flexible statistical technique that
allows you to answer both types of questions
Knowledge of how much bacon a person consumes does not let
you predict their exact risk of heart disease
You cannot produce an estimate of how bacon consumption,
exercise, and alcohol intake combine to predict heart disease
Linear regression
Unlike Pearson correlations, linear regressions formalize the
relationship between the two variables using a line
The components of this equation each have special meaning
Y = value of Y variable – also called outcome variable
X = value of X variable – also called predictor variable
b = slope of line – how changes in X produce changes in Y
a = intercept – what value of Y is associated with 0 in X
A regression line is an algorithm that maps scores on the
predictor variable to scores on the outcome variable
Y = mX + b
Y = mX + b
Y = bX + a
Linear regression
But there are many possible lines that can capture the
relationship between two variables
How do we determine the best line to represent a given set of
data?
0.3 0.4 0.6 0.7 0.8 0.9 1.1000000000000001 1.3 3
8 6 9 3 6 11 10
Linear regression
But there are many possible lines that can capture the
relationship between two variables
Each potential regression equation has a certain amount of error
Error = the distance between the regression line and each
datapoint
0.3 0.4 0.6 0.7 0.8 0.9 1.1000000000000001 1.3 3
8 6 9 3 6 11 10
Linear regression
But there are many possible lines that can capture the
relationship between two variables
Each potential regression equation has a certain amount of error
Error = the distance between the regression line and each
datapoint
Also called residuals
The line of best fit is the line that minimizes the (squared)
residuals
No other line can produce a smaller total error
0.3 0.4 0.6 0.7 0.8 0.9 1.1000000000000001 1.3 3
8 6 9 3 6 11 10
Line of best fit
To specify the equation for a line, we must estimate two values
The derivations for these are complicated (matrix algebra), but
final form of the equations are easy to use
Y = bX + a
slope
intercept
Line of best fit
To specify the equation for a line, we must estimate two values
The derivations for these are complicated (matrix algebra), but
final form of the equations are easy to use
We can use the equation for the line of best fit to predict scores
on the outcome variable for any value of the predictor variable
Predicted scores are represented with Ŷ
Y = bX + a
Let’s do an example!Height (X)Rated deepness of voice
(Y)481602725787M = 64.5M = 3.75
Results: Predicting DeepnessVariableCoefficientt-valueSig. = p-
valueIntercept/Constant-9.186-3.88.061Height.2015.54.031
Intercept/Constant = Deepness if someone was literally zero
height
Doesn’t make sense here, but could in other cases
Height Coefficient = Ratings of deepness increase by .201 for
every inch increase in height
there really is a relationship between height and deepness of
voice
it’s not actually different from zero.
BUT still must include to compute predicted values
Results: Predicting DeepnessVariableCoefficientt-valueSig. = p-
valueIntercept/Constant-9.186-3.88.061Height.2015.54.031
How deep would a 5.5 ft person be rated?
.201 * 66 – 9.186
=4.08Height (X)Deepness (Y)481602725787M = 64.5M = 3.75
How deep would a 7 ft person be rated?
.201 * 84 – 9.186
= 7.698
How deep would a 6 ft person be rated?
.201 * 72– 9.186
= 5.286
Be cautious outside of original range
Prediction won’t exactly equal raw data
Multiple regression
Regression can also be used to evaluate the effect of multiple
predictor variables on the outcome variable
This technique is called multiple regression
Multiple regressions are commonly used in two situations:
When you expect many predictor variables to play a significant
role in predicting the outcome variable (e.g., age and experience
When you have a group of predictor variables and want to
decide which have the strongest relationships with the outcome
variable
(e.g. is sex or height the better predictor of voice pitch)
Adding multiple predictors to the regression equation changes
the interpretation of regression coefficients
Just like partial correlations is a different interpretation
Multiple regression
Regression equations with multiple predictors must specify a
different coefficient for each predictor
Predictor variable 1
Coefficient relating X1 and Y
Coefficient relating X2 and Y
Predictor variable 2
Multiple regression
Regression equations with multiple predictors must specify a
different coefficient for each predictor
These coefficients can be used to estimate the value of the
outcome associated with a set of scores on the predictors
What value of Y would be predicted from the following scores:
X1 = 5
X2 = 2
X3 = 7
X4 = 10
Ŷ = 130
Multiple regression
Regression equations with multiple predictors must specify a
different coefficient for each predictor
These coefficients can be used to estimate the value of the
outcome associated with a set of scores on the predictors
Calculating these coefficients by hand is extremely tedious…
…so we won’t bother doing it in this class
Predicting deepness in multiple regression
VariableCoefficientt-valueSig. = p-
valueIntercept/Constant8.2112.261.152Height-.123-
1.905.197Sex (M=1/F=0)7.005.085.037
Intercept/Constant = Deepness if someone was literally zero
height and is a woman
Again, doesn’t make sense here, but could in other cases
Height Coefficient = Ratings of deepness decrease by .123 for
every inch increase in height, once sex is controlled for. But it
is NOT significant, so CANNOT conclude height influences
voice pitch. Again, still include it.
Sex Coefficient = Men receive 7 unit increase in their ratings
compared to women, once height is controlled for. It is
significant, so we can conclude that sex influences pitch.
actually different from zero. BUT still must include to compute
predicted values
Predicting deepness in multiple regression
VariableCoefficientt-valueSig. = p-
valueIntercept/Constant8.2112.261.152Height-.123-
1.905.197Sex (M=1/F=0)7.005.085.037
-.123 * 60+ 7*1 + 8.211
= 7.83
How deep would a 5 ft man be rated?
-.123 * 60 + 7*0 + 8.211
= 0.83
How deep would a 5 ft woman be rated?
-.123 * 72 + 7*0 + 8.211
= -.65
How deep would a 6 ft woman be rated?
X
SS
SP
b
=
å
-
-
=
)
)(
(
y
x
M
Y
M
X
SP
å
-
=
2
)
(
X
X
M
X
SS
a = MY −b(MX)
a=M
Y
-b(M
X
)
X
SS
SP
b
=
Ŷ = bX +a
ˆ
Y=bX+a
X
SS
SP
b
=
Ŷ = b1X1 +b2X2 +b3X3
ˆ
Y=b
1
X
1
+b
2
X
2
+b
3
X
3
n
X
n
+a
Ŷ = 5X1 +10X2 −5X3 +2X4 +100
ˆ
Y=5X
1
+10X
2
-5X
3
+2X
4
+100
Ŷ = 5(5) +10(2)−5(7)+2(10)+100
ˆ
Y=5(5)+10(2)-5(7)+2(10)+100
SW 301
Mini-Quiz 5
1. Utilizing the assigned readings regarding social justice and
social work in DuBois & Miley, discuss three of the theories
presented that would support the decision of the judge’s as
depicted thus far in the “I am Sam” film. Please give specific
examples from the film to support the theories you selected.

More Related Content

Similar to RegressionMaking predictions using dataLimitations.docx

Linear Regression
Linear RegressionLinear Regression
Linear Regression
Abdullah al Mamun
 
Multivariate Linear Regression.ppt
Multivariate Linear Regression.pptMultivariate Linear Regression.ppt
Multivariate Linear Regression.ppt
TanyaWadhwani4
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
HelpWithAssignment.com
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
Keyur Tejani
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
J P Verma
 
Chapter 9 Regression
Chapter 9 RegressionChapter 9 Regression
Chapter 9 Regressionghalan
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
Farzad Javidanrad
 
Statistics - Multiple Regression and Two Way Anova
Statistics - Multiple Regression and Two Way AnovaStatistics - Multiple Regression and Two Way Anova
Statistics - Multiple Regression and Two Way Anova
Nisheet Mahajan
 
Correlation and regression in r
Correlation and regression in rCorrelation and regression in r
Correlation and regression in r
Dr.K.Sreenivas Rao
 
Regression
RegressionRegression
Regression
nandini patil
 
Ch8 Regression Revby Rao
Ch8 Regression Revby RaoCh8 Regression Revby Rao
Ch8 Regression Revby RaoSumit Prajapati
 
Linear Regression | Machine Learning | Data Science
Linear Regression | Machine Learning | Data ScienceLinear Regression | Machine Learning | Data Science
Linear Regression | Machine Learning | Data Science
Sumit Pandey
 
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
Machine Learning Unit 3 Semester 3  MSc IT Part 2 Mumbai UniversityMachine Learning Unit 3 Semester 3  MSc IT Part 2 Mumbai University
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
Madhav Mishra
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
Avjinder (Avi) Kaler
 
Statistics for ess
Statistics for essStatistics for ess
Statistics for ess
Michael Smith
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).ppt
MuhammadAftab89
 

Similar to RegressionMaking predictions using dataLimitations.docx (20)

Linear Regression
Linear RegressionLinear Regression
Linear Regression
 
Regression
RegressionRegression
Regression
 
Regression
RegressionRegression
Regression
 
Multivariate Linear Regression.ppt
Multivariate Linear Regression.pptMultivariate Linear Regression.ppt
Multivariate Linear Regression.ppt
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
 
correlation and regression
correlation and regressioncorrelation and regression
correlation and regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
 
Chapter 9 Regression
Chapter 9 RegressionChapter 9 Regression
Chapter 9 Regression
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
 
Statistics - Multiple Regression and Two Way Anova
Statistics - Multiple Regression and Two Way AnovaStatistics - Multiple Regression and Two Way Anova
Statistics - Multiple Regression and Two Way Anova
 
Correlation and regression in r
Correlation and regression in rCorrelation and regression in r
Correlation and regression in r
 
Regression
RegressionRegression
Regression
 
Ch8 Regression Revby Rao
Ch8 Regression Revby RaoCh8 Regression Revby Rao
Ch8 Regression Revby Rao
 
Linear Regression | Machine Learning | Data Science
Linear Regression | Machine Learning | Data ScienceLinear Regression | Machine Learning | Data Science
Linear Regression | Machine Learning | Data Science
 
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
Machine Learning Unit 3 Semester 3  MSc IT Part 2 Mumbai UniversityMachine Learning Unit 3 Semester 3  MSc IT Part 2 Mumbai University
Machine Learning Unit 3 Semester 3 MSc IT Part 2 Mumbai University
 
Multiple linear regression
Multiple linear regressionMultiple linear regression
Multiple linear regression
 
Statistics for ess
Statistics for essStatistics for ess
Statistics for ess
 
Corr And Regress
Corr And RegressCorr And Regress
Corr And Regress
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).ppt
 

More from debishakespeare

Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docxEthical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
debishakespeare
 
Ethical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docxEthical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docx
debishakespeare
 
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docxEthical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
debishakespeare
 
Ethical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docxEthical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docx
debishakespeare
 
Ethical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docxEthical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docx
debishakespeare
 
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
debishakespeare
 
Ethical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docxEthical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docx
debishakespeare
 
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docxEthical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
debishakespeare
 
Ethical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxEthical Approaches An Overview of .docx
Ethical Approaches An Overview of .docx
debishakespeare
 
Ethical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docxEthical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docx
debishakespeare
 
Ethical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docxEthical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docx
debishakespeare
 
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docxEthical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
debishakespeare
 
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docxEthical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
debishakespeare
 
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docxEthical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
debishakespeare
 
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docxETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
debishakespeare
 
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter  Fou.docxEthical and Human Rights Concerns in Global HealthChapter  Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
debishakespeare
 
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docxEthical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
debishakespeare
 
EthernetSatellite dishInternational Plastics, Inc. - C.docx
EthernetSatellite dishInternational Plastics, Inc. -  C.docxEthernetSatellite dishInternational Plastics, Inc. -  C.docx
EthernetSatellite dishInternational Plastics, Inc. - C.docx
debishakespeare
 
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docxEthanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
debishakespeare
 
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docxEthan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
debishakespeare
 

More from debishakespeare (20)

Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docxEthical Case Study 2Gloria is a housekeeper in an independent li.docx
Ethical Case Study 2Gloria is a housekeeper in an independent li.docx
 
Ethical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docxEthical consideration is important in nursing practice, especial.docx
Ethical consideration is important in nursing practice, especial.docx
 
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docxEthical Competency Writing Assignment DescriptionPHI 108 Spr.docx
Ethical Competency Writing Assignment DescriptionPHI 108 Spr.docx
 
Ethical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docxEthical Case StudyAn example of unethical treatment of participa.docx
Ethical Case StudyAn example of unethical treatment of participa.docx
 
Ethical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docxEthical AwarenessDEFINITION a brief definition of the k.docx
Ethical AwarenessDEFINITION a brief definition of the k.docx
 
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
 
Ethical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docxEthical Conduct of Researchpower point from this document, 1.docx
Ethical Conduct of Researchpower point from this document, 1.docx
 
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docxEthical Challenges and Agency IssuesI.IntroductionII.E.docx
Ethical Challenges and Agency IssuesI.IntroductionII.E.docx
 
Ethical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxEthical Approaches An Overview of .docx
Ethical Approaches An Overview of .docx
 
Ethical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docxEthical and Professional Issues in Group PracticeThose who seek .docx
Ethical and Professional Issues in Group PracticeThose who seek .docx
 
Ethical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docxEthical AnalysisSelect a work-related ethical scenario that .docx
Ethical AnalysisSelect a work-related ethical scenario that .docx
 
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docxEthical (Moral) RelativismIn America, many are comfortable describ.docx
Ethical (Moral) RelativismIn America, many are comfortable describ.docx
 
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docxEthical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
Ethical Analysis on Lehman Brothers financial crisis of 2008 , pleas.docx
 
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docxEthical Analysis on Merrill lynch financial crisis of 2008 , please .docx
Ethical Analysis on Merrill lynch financial crisis of 2008 , please .docx
 
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docxETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
ETHC 101Discussion Board Reply Grading RubricCriteriaLevels .docx
 
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter  Fou.docxEthical and Human Rights Concerns in Global HealthChapter  Fou.docx
Ethical and Human Rights Concerns in Global HealthChapter Fou.docx
 
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docxEthical & Legal Aspects in Nursing WK 14Please answer the .docx
Ethical & Legal Aspects in Nursing WK 14Please answer the .docx
 
EthernetSatellite dishInternational Plastics, Inc. - C.docx
EthernetSatellite dishInternational Plastics, Inc. -  C.docxEthernetSatellite dishInternational Plastics, Inc. -  C.docx
EthernetSatellite dishInternational Plastics, Inc. - C.docx
 
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docxEthanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
Ethanolv.DrizinUnited States District Court, N.D. Iowa, Eastern .docx
 
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docxEthan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
Ethan FromeEdith WhartonTHE EMC MASTERPIECE SERIES.docx
 

Recently uploaded

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 

Recently uploaded (20)

Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 

RegressionMaking predictions using dataLimitations.docx

  • 1. Regression Making predictions using data Limitations of correlations Correlations measure the magnitude of the relationship between two variables within a population There are two important limitations associated with correlations They cannot predict scores on one variable from knowledge of the other They cannot measure relationships between more than two variables Linear regression is a more flexible statistical technique that allows you to answer both types of questions Knowledge of how much bacon a person consumes does not let you predict their exact risk of heart disease You cannot produce an estimate of how bacon consumption, exercise, and alcohol intake combine to predict heart disease
  • 2. Linear regression Unlike Pearson correlations, linear regressions formalize the relationship between the two variables using a line The components of this equation each have special meaning Y = value of Y variable – also called outcome variable X = value of X variable – also called predictor variable b = slope of line – how changes in X produce changes in Y a = intercept – what value of Y is associated with 0 in X A regression line is an algorithm that maps scores on the predictor variable to scores on the outcome variable Y = mX + b Y = mX + b Y = bX + a Linear regression But there are many possible lines that can capture the relationship between two variables How do we determine the best line to represent a given set of data?
  • 3. 0.3 0.4 0.6 0.7 0.8 0.9 1.1000000000000001 1.3 3 8 6 9 3 6 11 10 Linear regression But there are many possible lines that can capture the relationship between two variables Each potential regression equation has a certain amount of error Error = the distance between the regression line and each datapoint 0.3 0.4 0.6 0.7 0.8 0.9 1.1000000000000001 1.3 3 8 6 9 3 6 11 10 Linear regression But there are many possible lines that can capture the relationship between two variables Each potential regression equation has a certain amount of error Error = the distance between the regression line and each datapoint Also called residuals The line of best fit is the line that minimizes the (squared) residuals No other line can produce a smaller total error
  • 4. 0.3 0.4 0.6 0.7 0.8 0.9 1.1000000000000001 1.3 3 8 6 9 3 6 11 10 Line of best fit To specify the equation for a line, we must estimate two values The derivations for these are complicated (matrix algebra), but final form of the equations are easy to use Y = bX + a slope intercept Line of best fit To specify the equation for a line, we must estimate two values The derivations for these are complicated (matrix algebra), but final form of the equations are easy to use
  • 5. We can use the equation for the line of best fit to predict scores on the outcome variable for any value of the predictor variable Predicted scores are represented with Ŷ Y = bX + a Let’s do an example!Height (X)Rated deepness of voice (Y)481602725787M = 64.5M = 3.75 Results: Predicting DeepnessVariableCoefficientt-valueSig. = p- valueIntercept/Constant-9.186-3.88.061Height.2015.54.031 Intercept/Constant = Deepness if someone was literally zero height
  • 6. Doesn’t make sense here, but could in other cases Height Coefficient = Ratings of deepness increase by .201 for every inch increase in height there really is a relationship between height and deepness of voice it’s not actually different from zero. BUT still must include to compute predicted values Results: Predicting DeepnessVariableCoefficientt-valueSig. = p- valueIntercept/Constant-9.186-3.88.061Height.2015.54.031 How deep would a 5.5 ft person be rated? .201 * 66 – 9.186 =4.08Height (X)Deepness (Y)481602725787M = 64.5M = 3.75 How deep would a 7 ft person be rated? .201 * 84 – 9.186 = 7.698 How deep would a 6 ft person be rated? .201 * 72– 9.186 = 5.286 Be cautious outside of original range Prediction won’t exactly equal raw data Multiple regression Regression can also be used to evaluate the effect of multiple
  • 7. predictor variables on the outcome variable This technique is called multiple regression Multiple regressions are commonly used in two situations: When you expect many predictor variables to play a significant role in predicting the outcome variable (e.g., age and experience When you have a group of predictor variables and want to decide which have the strongest relationships with the outcome variable (e.g. is sex or height the better predictor of voice pitch) Adding multiple predictors to the regression equation changes the interpretation of regression coefficients Just like partial correlations is a different interpretation Multiple regression Regression equations with multiple predictors must specify a different coefficient for each predictor Predictor variable 1 Coefficient relating X1 and Y Coefficient relating X2 and Y Predictor variable 2
  • 8. Multiple regression Regression equations with multiple predictors must specify a different coefficient for each predictor These coefficients can be used to estimate the value of the outcome associated with a set of scores on the predictors What value of Y would be predicted from the following scores: X1 = 5 X2 = 2 X3 = 7 X4 = 10 Ŷ = 130 Multiple regression Regression equations with multiple predictors must specify a different coefficient for each predictor These coefficients can be used to estimate the value of the outcome associated with a set of scores on the predictors Calculating these coefficients by hand is extremely tedious… …so we won’t bother doing it in this class
  • 9. Predicting deepness in multiple regression VariableCoefficientt-valueSig. = p- valueIntercept/Constant8.2112.261.152Height-.123- 1.905.197Sex (M=1/F=0)7.005.085.037 Intercept/Constant = Deepness if someone was literally zero height and is a woman Again, doesn’t make sense here, but could in other cases Height Coefficient = Ratings of deepness decrease by .123 for every inch increase in height, once sex is controlled for. But it is NOT significant, so CANNOT conclude height influences voice pitch. Again, still include it. Sex Coefficient = Men receive 7 unit increase in their ratings compared to women, once height is controlled for. It is significant, so we can conclude that sex influences pitch. actually different from zero. BUT still must include to compute predicted values Predicting deepness in multiple regression
  • 10. VariableCoefficientt-valueSig. = p- valueIntercept/Constant8.2112.261.152Height-.123- 1.905.197Sex (M=1/F=0)7.005.085.037 -.123 * 60+ 7*1 + 8.211 = 7.83 How deep would a 5 ft man be rated? -.123 * 60 + 7*0 + 8.211 = 0.83 How deep would a 5 ft woman be rated? -.123 * 72 + 7*0 + 8.211 = -.65 How deep would a 6 ft woman be rated? X SS SP b = å - - = ) )( ( y x M Y M X SP
  • 11. å - = 2 ) ( X X M X SS a = MY −b(MX) a=M Y -b(M X ) X SS SP b = Ŷ = bX +a ˆ Y=bX+a X SS SP b =
  • 12. Ŷ = b1X1 +b2X2 +b3X3 ˆ Y=b 1 X 1 +b 2 X 2 +b 3 X 3 n X n +a Ŷ = 5X1 +10X2 −5X3 +2X4 +100 ˆ Y=5X 1 +10X 2 -5X 3 +2X 4 +100
  • 13. Ŷ = 5(5) +10(2)−5(7)+2(10)+100 ˆ Y=5(5)+10(2)-5(7)+2(10)+100 SW 301 Mini-Quiz 5 1. Utilizing the assigned readings regarding social justice and social work in DuBois & Miley, discuss three of the theories presented that would support the decision of the judge’s as depicted thus far in the “I am Sam” film. Please give specific examples from the film to support the theories you selected.