SlideShare a Scribd company logo
1 of 15
DataAnalysis inWF ED
3 December 2015
Y = a + bx
Y
X
(x, y)
e
a y = a + bx + e
b = y / x
Y =  + X
y = a + bx + e
y must be continuous.
x can be nominal, ordinal,
interval, or ratio scaled.
b is the slope of the
regression line, or y | x
a is the the point on the y
axis at which the
regression line with slope
b intercepts the y axis.
y = a + bx + e
y must be continuous.
x can be nominal, ordinal,
interval, or ratio scaled.
b is the slope of the
regression line, or y | x
a is the the point on the y
axis at which the
regression line with slope
b intercepts the y axis.
THE PREDICTED
VALUE OF Y
IS CONTINUOUS
y = a + bx + e
y must be continuous.
x can be nominal, ordinal,
interval, or ratio scaled.
b is the slope of the
regression line, or y | x
a is the the point on the y
axis at which the
regression line with slope
b intercepts the y axis.
BUT WHAT IF Y IS
NOMINAL?
y = a + bx + e
y must be continuous.
x can be nominal, ordinal,
interval, or ratio scaled.
b is the slope of the
regression line, or y | x
a is the the point on the y
axis at which the
regression line with slope
b intercepts the y axis.
THE PREDICTED
VALUE OF A
NOMINALLY-
SCALED Y COULD
EXCEEDTHE
LIMITS OF Y
 y
• Is “nominal,” i.e., is composed of unordered
categories
• Is “binary,” i.e., has two values
 Examples of binary, nominal y variables
• Graduation status — graduated; not graduated
• Poverty status — living in poverty; not living in
poverty
 y variable usually coded “0” and “1” (e.g., “1,”
if graduated, and “0” otherwise
 We model the probability of being in the positive
category (“1”) on the dependent variable rather
that the other category (“0”), given the
independent variables
 Examples of binary logistic regression questions
• The probability of graduating, given being male
rather than female
• The probability of living in poverty, given living in
Alabama rather than any other state in the U.S.
 Predicted probabilities must not < 0 or >1 by
definition
 Pr[y = 1 | x] = f(x)
 f(x) chosen is x / 1 + x because, for any value of x,
Pr[y = 1 | x] must range between 0 and 1
 So, Pr[y = 1 | x] = x / 1 + x
 In binary logistic regression,
Pr[y = 1 | x] = exb / 1 + exb can be rearranged to
Pr[y = 1 | x] = 1 / 1 + e-xb
Pr[y = 1 | x] = 1 / 1 + e-xby = a + bx + e
 Pr[y = 1 | x] = 1 / 1 + e-xb, where
• Pr[y = 1 | x] is the probability that y = 1, given
independent variables, x
• e is the exponential function; is approximately equal
to 2.71828
• b is termed the “logit,” which is the log of the odds
that y = 1 and not 0
 log(b) is called the “odds ratio,” which is the
ratio between the odds of y = 1 and the odds of
y = 0
 log(b) is called the “odds ratio,” which is the
ratio between the odds of y = 1 and the odds
of y = 0
 The odds ratio
• Can vary from 0 to positive infinity
• Is equal to 1 if the odds of y = 1 and y = 0 are the
same
• Is <1 if the odds of y = 1 < y = 0
• Is >1 of the odds of y = 1 > y = 0
In R with mtcars
DataAnalysis inWF ED
3 December 2015

More Related Content

Viewers also liked

Class intro cm7-referencinginternet_2011
Class intro cm7-referencinginternet_2011Class intro cm7-referencinginternet_2011
Class intro cm7-referencinginternet_2011
Penn State University
 

Viewers also liked (9)

Elimination of Electricity Rate Caps in Pennsylvania, 2011-2015
Elimination of Electricity Rate Caps in Pennsylvania, 2011-2015Elimination of Electricity Rate Caps in Pennsylvania, 2011-2015
Elimination of Electricity Rate Caps in Pennsylvania, 2011-2015
 
Social Networks of Performance
Social Networks of PerformanceSocial Networks of Performance
Social Networks of Performance
 
Meta-Evaluation Theory
Meta-Evaluation TheoryMeta-Evaluation Theory
Meta-Evaluation Theory
 
Teaching Strategies and Effective Emerging Distance Education Technologies
Teaching Strategies and Effective Emerging Distance Education TechnologiesTeaching Strategies and Effective Emerging Distance Education Technologies
Teaching Strategies and Effective Emerging Distance Education Technologies
 
Replacing and Extending Human Work
Replacing and Extending Human WorkReplacing and Extending Human Work
Replacing and Extending Human Work
 
Economic Impact Analysis with IMPLAN
Economic Impact Analysis with IMPLANEconomic Impact Analysis with IMPLAN
Economic Impact Analysis with IMPLAN
 
Class intro cm7-referencinginternet_2011
Class intro cm7-referencinginternet_2011Class intro cm7-referencinginternet_2011
Class intro cm7-referencinginternet_2011
 
Definition of Evaluation
Definition of EvaluationDefinition of Evaluation
Definition of Evaluation
 
Applications of Stock Markets for Information in Instruction
Applications of Stock Markets for Information in InstructionApplications of Stock Markets for Information in Instruction
Applications of Stock Markets for Information in Instruction
 

Similar to WF ED 540, Class Meeting14, 3 December 2015 2015

SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
Manjulasingh17
 

Similar to WF ED 540, Class Meeting14, 3 December 2015 2015 (20)

Fuzzy logic-introduction
Fuzzy logic-introductionFuzzy logic-introduction
Fuzzy logic-introduction
 
Regression
RegressionRegression
Regression
 
Regression-types
Regression-typesRegression-types
Regression-types
 
Regression
Regression Regression
Regression
 
LINEAR REGRESSION ANALYSIS.pptx
LINEAR REGRESSION ANALYSIS.pptxLINEAR REGRESSION ANALYSIS.pptx
LINEAR REGRESSION ANALYSIS.pptx
 
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptxSM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
SM_d89ccf05-7de1-4a30-a134-3143e9b3bf3f_38.pptx
 
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)슬로우캠퍼스:  scikit-learn & 머신러닝 (강박사)
슬로우캠퍼스: scikit-learn & 머신러닝 (강박사)
 
Regression-Logistic-4.pdf
Regression-Logistic-4.pdfRegression-Logistic-4.pdf
Regression-Logistic-4.pdf
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Regression
RegressionRegression
Regression
 
logistic_ppt.pptx
logistic_ppt.pptxlogistic_ppt.pptx
logistic_ppt.pptx
 
Scatter plot
Scatter plotScatter plot
Scatter plot
 
Sintering
SinteringSintering
Sintering
 
Corr And Regress
Corr And RegressCorr And Regress
Corr And Regress
 
Pertemuan iv fungsi
Pertemuan iv fungsiPertemuan iv fungsi
Pertemuan iv fungsi
 
Econometrics ch3
Econometrics ch3Econometrics ch3
Econometrics ch3
 
Assumptions of OLS.pptx
Assumptions of OLS.pptxAssumptions of OLS.pptx
Assumptions of OLS.pptx
 
Regression and Co-Relation
Regression and Co-RelationRegression and Co-Relation
Regression and Co-Relation
 
Statistics
StatisticsStatistics
Statistics
 
Statistics
Statistics Statistics
Statistics
 

More from Penn State University

More from Penn State University (20)

Artificial Intelligence and the Future of Work
Artificial Intelligence and the Future of WorkArtificial Intelligence and the Future of Work
Artificial Intelligence and the Future of Work
 
Research Design
Research DesignResearch Design
Research Design
 
Validity of conclusions, internal validity, and external validity; research d...
Validity of conclusions, internal validity, and external validity; research d...Validity of conclusions, internal validity, and external validity; research d...
Validity of conclusions, internal validity, and external validity; research d...
 
Validity of Conclusions & Generalizations
Validity of Conclusions & GeneralizationsValidity of Conclusions & Generalizations
Validity of Conclusions & Generalizations
 
Evidence
EvidenceEvidence
Evidence
 
Research Design
Research DesignResearch Design
Research Design
 
WF ED 540 Hypothesis Testing - 2018
WF ED 540 Hypothesis Testing - 2018WF ED 540 Hypothesis Testing - 2018
WF ED 540 Hypothesis Testing - 2018
 
Some Research Concepts
Some Research ConceptsSome Research Concepts
Some Research Concepts
 
Sharing Science: Tools for Improving our Research, Teaching, and Impact
Sharing Science: Tools for Improving our Research, Teaching, and ImpactSharing Science: Tools for Improving our Research, Teaching, and Impact
Sharing Science: Tools for Improving our Research, Teaching, and Impact
 
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the courseWF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
WF ED 540, Fall Semester 2018, Class Meeting 1 - Intro to the course
 
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
Class Meeting 12 -- WF ED 540 -- Fall Semester 2017
 
WF ED 540 - Class Meeting 7 - Fall Semester 2017
WF ED 540 - Class Meeting 7 - Fall Semester 2017WF ED 540 - Class Meeting 7 - Fall Semester 2017
WF ED 540 - Class Meeting 7 - Fall Semester 2017
 
WF ED 540, Class Meeting 5, Fall Semester 2017
WF ED 540, Class Meeting 5, Fall Semester 2017WF ED 540, Class Meeting 5, Fall Semester 2017
WF ED 540, Class Meeting 5, Fall Semester 2017
 
WF ED 540, Data Analysis, Fall 2017
WF ED 540, Data Analysis, Fall 2017WF ED 540, Data Analysis, Fall 2017
WF ED 540, Data Analysis, Fall 2017
 
WF ED 540 - Class Meeting 3 - Fall Semester 2017
WF ED 540 - Class Meeting 3 - Fall Semester 2017WF ED 540 - Class Meeting 3 - Fall Semester 2017
WF ED 540 - Class Meeting 3 - Fall Semester 2017
 
R syntax, including procedures for communicating data
R syntax, including procedures for communicating dataR syntax, including procedures for communicating data
R syntax, including procedures for communicating data
 
Introduction to WF ED 540, Data Analysis, Fall 2017
Introduction to WF ED 540, Data Analysis, Fall 2017Introduction to WF ED 540, Data Analysis, Fall 2017
Introduction to WF ED 540, Data Analysis, Fall 2017
 
Bob Game - Photos for a Celebration of Life
Bob Game - Photos for a Celebration of LifeBob Game - Photos for a Celebration of Life
Bob Game - Photos for a Celebration of Life
 
In Preparation for 5 April UCWHRE Meeting
In Preparation for 5 April UCWHRE MeetingIn Preparation for 5 April UCWHRE Meeting
In Preparation for 5 April UCWHRE Meeting
 
Structural Model of Topics in Academy of Human Resource Development Journals,...
Structural Model of Topics in Academy of Human Resource Development Journals,...Structural Model of Topics in Academy of Human Resource Development Journals,...
Structural Model of Topics in Academy of Human Resource Development Journals,...
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
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
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Recently uploaded (20)

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
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

WF ED 540, Class Meeting14, 3 December 2015 2015

  • 1. DataAnalysis inWF ED 3 December 2015
  • 2. Y = a + bx
  • 3. Y X (x, y) e a y = a + bx + e b = y / x Y =  + X
  • 4. y = a + bx + e y must be continuous. x can be nominal, ordinal, interval, or ratio scaled. b is the slope of the regression line, or y | x a is the the point on the y axis at which the regression line with slope b intercepts the y axis.
  • 5. y = a + bx + e y must be continuous. x can be nominal, ordinal, interval, or ratio scaled. b is the slope of the regression line, or y | x a is the the point on the y axis at which the regression line with slope b intercepts the y axis. THE PREDICTED VALUE OF Y IS CONTINUOUS
  • 6. y = a + bx + e y must be continuous. x can be nominal, ordinal, interval, or ratio scaled. b is the slope of the regression line, or y | x a is the the point on the y axis at which the regression line with slope b intercepts the y axis. BUT WHAT IF Y IS NOMINAL?
  • 7. y = a + bx + e y must be continuous. x can be nominal, ordinal, interval, or ratio scaled. b is the slope of the regression line, or y | x a is the the point on the y axis at which the regression line with slope b intercepts the y axis. THE PREDICTED VALUE OF A NOMINALLY- SCALED Y COULD EXCEEDTHE LIMITS OF Y
  • 8.  y • Is “nominal,” i.e., is composed of unordered categories • Is “binary,” i.e., has two values  Examples of binary, nominal y variables • Graduation status — graduated; not graduated • Poverty status — living in poverty; not living in poverty  y variable usually coded “0” and “1” (e.g., “1,” if graduated, and “0” otherwise
  • 9.  We model the probability of being in the positive category (“1”) on the dependent variable rather that the other category (“0”), given the independent variables  Examples of binary logistic regression questions • The probability of graduating, given being male rather than female • The probability of living in poverty, given living in Alabama rather than any other state in the U.S.  Predicted probabilities must not < 0 or >1 by definition
  • 10.  Pr[y = 1 | x] = f(x)  f(x) chosen is x / 1 + x because, for any value of x, Pr[y = 1 | x] must range between 0 and 1  So, Pr[y = 1 | x] = x / 1 + x  In binary logistic regression, Pr[y = 1 | x] = exb / 1 + exb can be rearranged to Pr[y = 1 | x] = 1 / 1 + e-xb
  • 11. Pr[y = 1 | x] = 1 / 1 + e-xby = a + bx + e
  • 12.  Pr[y = 1 | x] = 1 / 1 + e-xb, where • Pr[y = 1 | x] is the probability that y = 1, given independent variables, x • e is the exponential function; is approximately equal to 2.71828 • b is termed the “logit,” which is the log of the odds that y = 1 and not 0  log(b) is called the “odds ratio,” which is the ratio between the odds of y = 1 and the odds of y = 0
  • 13.  log(b) is called the “odds ratio,” which is the ratio between the odds of y = 1 and the odds of y = 0  The odds ratio • Can vary from 0 to positive infinity • Is equal to 1 if the odds of y = 1 and y = 0 are the same • Is <1 if the odds of y = 1 < y = 0 • Is >1 of the odds of y = 1 > y = 0
  • 14. In R with mtcars
  • 15. DataAnalysis inWF ED 3 December 2015