SlideShare a Scribd company logo
1 of 13
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

Multivariate Linear Regression.ppt
Multivariate Linear Regression.pptMultivariate Linear Regression.ppt
Multivariate Linear Regression.pptTanyaWadhwani4
 
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 regressionKeyur Tejani
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression AnalysisJ 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 analysisFarzad 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 AnovaNisheet Mahajan
 
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 ScienceSumit 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 UniversityMadhav Mishra
 
Corr-and-Regress (1).ppt
Corr-and-Regress (1).pptCorr-and-Regress (1).ppt
Corr-and-Regress (1).pptMuhammadAftab89
 

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.docxdebishakespeare
 
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.docxdebishakespeare
 
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.docxdebishakespeare
 
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.docxdebishakespeare
 
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.docxdebishakespeare
 
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docx
ETHICAL CHALLENGES JOYCAROLYNE MUIGAINTC3025262020.docxdebishakespeare
 
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.docxdebishakespeare
 
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.docxdebishakespeare
 
Ethical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxEthical Approaches An Overview of .docx
Ethical Approaches An Overview of .docxdebishakespeare
 
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 .docxdebishakespeare
 
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 .docxdebishakespeare
 
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.docxdebishakespeare
 
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.docxdebishakespeare
 
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 .docxdebishakespeare
 
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 .docxdebishakespeare
 
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.docxdebishakespeare
 
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 .docxdebishakespeare
 
EthernetSatellite dishInternational Plastics, Inc. - C.docx
EthernetSatellite dishInternational Plastics, Inc. -  C.docxEthernetSatellite dishInternational Plastics, Inc. -  C.docx
EthernetSatellite dishInternational Plastics, Inc. - C.docxdebishakespeare
 
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 .docxdebishakespeare
 
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.docxdebishakespeare
 

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

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxShobhayan Kirtania
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...Pooja Nehwal
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 

Recently uploaded (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
The byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptxThe byproduct of sericulture in different industries.pptx
The byproduct of sericulture in different industries.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...Russian Call Girls in Andheri Airport Mumbai WhatsApp  9167673311 💞 Full Nigh...
Russian Call Girls in Andheri Airport Mumbai WhatsApp 9167673311 💞 Full Nigh...
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 

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.