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

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-2015Penn State University
 
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 TechnologiesPenn State University
 
Economic Impact Analysis with IMPLAN
Economic Impact Analysis with IMPLANEconomic Impact Analysis with IMPLAN
Economic Impact Analysis with IMPLANPenn State University
 
Class intro cm7-referencinginternet_2011
Class intro cm7-referencinginternet_2011Class intro cm7-referencinginternet_2011
Class intro cm7-referencinginternet_2011Penn State University
 
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 InstructionPenn 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 (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
 
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
 
regression and correlation
regression and correlationregression and correlation
regression and correlation
 

More from Penn State University

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 WorkPenn State University
 
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...Penn State University
 
Validity of Conclusions & Generalizations
Validity of Conclusions & GeneralizationsValidity of Conclusions & Generalizations
Validity of Conclusions & GeneralizationsPenn State University
 
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 ImpactPenn State University
 
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 coursePenn State University
 
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 2017Penn State University
 
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 2017Penn State University
 
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 2017Penn State University
 
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 2017Penn State University
 
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 dataPenn State University
 
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 2017Penn State University
 
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 LifePenn State University
 
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 MeetingPenn State University
 
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,...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

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.pdfQucHHunhnh
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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
 
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 Delhikauryashika82
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 

Recently uploaded (20)

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
 
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
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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 ...
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
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...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 

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