SlideShare une entreprise Scribd logo
1  sur  27
Télécharger pour lire hors ligne
Topic 8:
Regression Analysis 2
This topic will cover:
◦ Regression using software
◦ Multiple linear regression
 Extending regression models with dummy
variables
 Interpreting models
By the end of this topic students will be able
to:
◦ Evaluate results from regression analysis
◦ Interpret results from regression analysis
◦ Recognise the possibility to extend regression
analysis
 Dummy variables
• For the least SSE straight line,
y = mx + c
m =
n xy − x y
n x2 − x 2
c = y − mx
R =
n xy− x y
n x − x 2 n y2 − y 2
x y
25 1.44
50 5.58
75
14.6
4
100 6.94
x y
25 3.07
50 5.64
75 9.63
100
10.2
6
◦ Many software packages
 OpenOffice, Gretl
 MS Excel
 SPSS, Minitab, SAS
 R, S
◦ MS Excel
 2007/2010 Data/Data Analysis/Regression
 Older Tools/Data Analysis/ Regression
 Then all versions are similar
◦ Reasons Not to Set Constant Term to Zero
 It prevents model being biased
 Usually interested in the predictor variables anyway
 You don’t need to collect data for it
 Can help if data is only locally linear
◦ Reason to Set constant Term to Zero
 If it is supposed to be zero
 Strong theoretical grounds
 But care needed with calculation and
interpretation of R2
◦ Models such as
y = c + b1x1+ b2x2+ ...
◦ How are they developed?
 an expert task
◦ Managers
 understand
 question
 use results
◦ Estate agent (realtor) is establishing an office in a
new location
◦ Wishes to build a model of advertised prices
◦ Collects competitor data on;
 Internal area
 Land
 Distance from nearest school
 City region
Property Price School Land Area District
1 457 3 1791 165 FD
2 487 1 800 177 FD
3 218 3 759 94 FD
4 300 4 829 137 FD
5 358 2 630 110 AC
6 658 1 655 201 AC
7 402 2 999 85 AC
8 541 2 920 146 AC
9 358 3 1185 112 Other
10 444 1 787 155 Other
11 298 3 597 180 Other
12 462 1 1447 200 Other
Property Price School Land Area AC FD District
1 457 3 1791 165 0 1 FD
2 487 1 800 177 0 1 FD
3 218 3 759 94 0 1 FD
4 300 4 829 137 0 1 FD
5 358 2 630 110 1 0 AC
6 658 1 655 201 1 0 AC
7 402 2 999 85 1 0 AC
8 541 2 920 146 1 0 AC
9 358 3 1185 112 0 0 Other
10 444 1 787 155 0 0 Other
11 298 3 597 180 0 0 Other
12 462 1 1447 200 0 0 Other
price =
constant +
a x (km from a school) +
b x (land in m2) +
g x (floor area in m2) +
d (if in AC) +
z (if in FD)
New Worksheet
Response
Predictors
R2 =
y − y 2
y − y 2
R
2
= 1- (1 - R2)
n −1
n − k − 1
◦ Equation
 expected price = 45.72 + (2.179 x area) +
(148.8 x AC)
◦ Suppose property is in AC and is of 100m2 what is
expected advertised price?
 expected price = 45.72 + (2.179 x 100) +
(148.8 x 1)
 expected price = 412.42
By the end of this topic students will be able
to:
◦ Evaluate results from regression analysis
◦ Interpret results from regression analysis
◦ Recognize possibility to extend regression analysis
 Dummy variables
◦ Hinton, PR. Statistics Explained. Routledge
◦ Keast, S. and Towler M. Rational Decision Making
for Managers. Wiley
◦ Wisniewski, M. Quantitative Methods for Decision
Makers. FT Prentice Hall
Any Questions?

Contenu connexe

Tendances

324 1.3 solvinglinearequations
324 1.3 solvinglinearequations324 1.3 solvinglinearequations
324 1.3 solvinglinearequations
brettdive
 
Current technology project
Current technology projectCurrent technology project
Current technology project
carlygirl2312
 
Tugascalculus 150716105101-lva1-app6891
Tugascalculus 150716105101-lva1-app6891Tugascalculus 150716105101-lva1-app6891
Tugascalculus 150716105101-lva1-app6891
Fajar Corp
 
Adding & Subtracting Polynomials
Adding & Subtracting PolynomialsAdding & Subtracting Polynomials
Adding & Subtracting Polynomials
Bitsy Griffin
 

Tendances (10)

Chapter 04 drill_solution
Chapter 04 drill_solutionChapter 04 drill_solution
Chapter 04 drill_solution
 
324 1.3 solvinglinearequations
324 1.3 solvinglinearequations324 1.3 solvinglinearequations
324 1.3 solvinglinearequations
 
2c. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.3)
2c. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.3)2c. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.3)
2c. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.3)
 
2a. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.1)
2a. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.1)2a. Pedagogy of Mathematics -  Part II (Numbers and Sequence - Ex 2.1)
2a. Pedagogy of Mathematics - Part II (Numbers and Sequence - Ex 2.1)
 
Current technology project
Current technology projectCurrent technology project
Current technology project
 
The Big M Method - Operation Research
The Big M Method - Operation ResearchThe Big M Method - Operation Research
The Big M Method - Operation Research
 
Tugascalculus 150716105101-lva1-app6891
Tugascalculus 150716105101-lva1-app6891Tugascalculus 150716105101-lva1-app6891
Tugascalculus 150716105101-lva1-app6891
 
Illustrating quadratic equations
Illustrating quadratic equationsIllustrating quadratic equations
Illustrating quadratic equations
 
Adding & Subtracting Polynomials
Adding & Subtracting PolynomialsAdding & Subtracting Polynomials
Adding & Subtracting Polynomials
 
Las absolute inequalities
Las absolute inequalitiesLas absolute inequalities
Las absolute inequalities
 

Similaire à Lecture 08 Regression Analysis Part 2

CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
RajJain516913
 
Math10 q2 mod1of8_polynomial function_v2 (1)
Math10 q2 mod1of8_polynomial function_v2 (1)Math10 q2 mod1of8_polynomial function_v2 (1)
Math10 q2 mod1of8_polynomial function_v2 (1)
FahadOdin
 
Math10 q2 mod1of8_polynomial function_v2 (2)
Math10 q2 mod1of8_polynomial function_v2 (2)Math10 q2 mod1of8_polynomial function_v2 (2)
Math10 q2 mod1of8_polynomial function_v2 (2)
FahadOdin
 
Introductory maths analysis chapter 09 official
Introductory maths analysis   chapter 09 officialIntroductory maths analysis   chapter 09 official
Introductory maths analysis chapter 09 official
Evert Sandye Taasiringan
 

Similaire à Lecture 08 Regression Analysis Part 2 (20)

Machine learning in science and industry — day 1
Machine learning in science and industry — day 1Machine learning in science and industry — day 1
Machine learning in science and industry — day 1
 
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdfCD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
CD504 CGM_Lab Manual_004e08d3838702ed11fc6d03cc82f7be.pdf
 
Instance Based Learning in Machine Learning
Instance Based Learning in Machine LearningInstance Based Learning in Machine Learning
Instance Based Learning in Machine Learning
 
Data Augmentation and Disaggregation by Neal Fultz
Data Augmentation and Disaggregation by Neal FultzData Augmentation and Disaggregation by Neal Fultz
Data Augmentation and Disaggregation by Neal Fultz
 
Math10 q2 mod1of8_polynomial function_v2 (1)
Math10 q2 mod1of8_polynomial function_v2 (1)Math10 q2 mod1of8_polynomial function_v2 (1)
Math10 q2 mod1of8_polynomial function_v2 (1)
 
Math10 q2 mod1of8_polynomial function_v2 (2)
Math10 q2 mod1of8_polynomial function_v2 (2)Math10 q2 mod1of8_polynomial function_v2 (2)
Math10 q2 mod1of8_polynomial function_v2 (2)
 
AppsDiff3c.pdf
AppsDiff3c.pdfAppsDiff3c.pdf
AppsDiff3c.pdf
 
Integer Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdfInteger Programming PPt.ernxzamnbmbmspdf
Integer Programming PPt.ernxzamnbmbmspdf
 
machine_learning.pptx
machine_learning.pptxmachine_learning.pptx
machine_learning.pptx
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptx
 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
 
CH1.ppt
CH1.pptCH1.ppt
CH1.ppt
 
K-Nearest Neighbor(KNN)
K-Nearest Neighbor(KNN)K-Nearest Neighbor(KNN)
K-Nearest Neighbor(KNN)
 
derivative.ppt
derivative.pptderivative.ppt
derivative.ppt
 
derivative.ppt
derivative.pptderivative.ppt
derivative.ppt
 
Chapter 9 - Additional Topics in Probability
Chapter 9 - Additional Topics in ProbabilityChapter 9 - Additional Topics in Probability
Chapter 9 - Additional Topics in Probability
 
Chapter9 additionaltopicsinprobability-151003152024-lva1-app6892
Chapter9 additionaltopicsinprobability-151003152024-lva1-app6892Chapter9 additionaltopicsinprobability-151003152024-lva1-app6892
Chapter9 additionaltopicsinprobability-151003152024-lva1-app6892
 
Introductory maths analysis chapter 09 official
Introductory maths analysis   chapter 09 officialIntroductory maths analysis   chapter 09 official
Introductory maths analysis chapter 09 official
 
2 simple regression
2   simple regression2   simple regression
2 simple regression
 
V -linear_programming
V  -linear_programmingV  -linear_programming
V -linear_programming
 

Plus de Riri Ariyanty

Plus de Riri Ariyanty (11)

Income & Asset Value Measurement in Financial Accounting
Income & Asset Value Measurement in Financial AccountingIncome & Asset Value Measurement in Financial Accounting
Income & Asset Value Measurement in Financial Accounting
 
PPE Depreciation in Financial Accounting
PPE Depreciation in Financial AccountingPPE Depreciation in Financial Accounting
PPE Depreciation in Financial Accounting
 
Lecture 10 Linear Programming
Lecture 10 Linear ProgrammingLecture 10 Linear Programming
Lecture 10 Linear Programming
 
Lecture 04 Inferential Statisitcs 2
Lecture 04 Inferential Statisitcs 2Lecture 04 Inferential Statisitcs 2
Lecture 04 Inferential Statisitcs 2
 
Lecture 03 Inferential Statistics 1
Lecture 03 Inferential Statistics 1Lecture 03 Inferential Statistics 1
Lecture 03 Inferential Statistics 1
 
Lecture 02 Probability Distributions
Lecture 02 Probability DistributionsLecture 02 Probability Distributions
Lecture 02 Probability Distributions
 
Lecture 01 Introductory Management Statistics
Lecture 01 Introductory Management StatisticsLecture 01 Introductory Management Statistics
Lecture 01 Introductory Management Statistics
 
Lecture 6 Cost Profit Volume Analysis
Lecture 6 Cost Profit Volume AnalysisLecture 6 Cost Profit Volume Analysis
Lecture 6 Cost Profit Volume Analysis
 
Lecture 3 Determining How Costs Behave
Lecture 3 Determining How Costs BehaveLecture 3 Determining How Costs Behave
Lecture 3 Determining How Costs Behave
 
Lecture 2 Cost Terminology and Classification
Lecture 2 Cost Terminology and ClassificationLecture 2 Cost Terminology and Classification
Lecture 2 Cost Terminology and Classification
 
Lecture 1 Cost and Management Accounting
Lecture 1 Cost and Management AccountingLecture 1 Cost and Management Accounting
Lecture 1 Cost and Management Accounting
 

Dernier

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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
SoniaTolstoy
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Dernier (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
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
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
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...
 
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...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
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
 
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
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 

Lecture 08 Regression Analysis Part 2

  • 2. This topic will cover: ◦ Regression using software ◦ Multiple linear regression  Extending regression models with dummy variables  Interpreting models
  • 3. By the end of this topic students will be able to: ◦ Evaluate results from regression analysis ◦ Interpret results from regression analysis ◦ Recognise the possibility to extend regression analysis  Dummy variables
  • 4. • For the least SSE straight line, y = mx + c m = n xy − x y n x2 − x 2 c = y − mx R = n xy− x y n x − x 2 n y2 − y 2
  • 5. x y 25 1.44 50 5.58 75 14.6 4 100 6.94 x y 25 3.07 50 5.64 75 9.63 100 10.2 6
  • 6. ◦ Many software packages  OpenOffice, Gretl  MS Excel  SPSS, Minitab, SAS  R, S ◦ MS Excel  2007/2010 Data/Data Analysis/Regression  Older Tools/Data Analysis/ Regression  Then all versions are similar
  • 7.
  • 8.
  • 9. ◦ Reasons Not to Set Constant Term to Zero  It prevents model being biased  Usually interested in the predictor variables anyway  You don’t need to collect data for it  Can help if data is only locally linear ◦ Reason to Set constant Term to Zero  If it is supposed to be zero  Strong theoretical grounds  But care needed with calculation and interpretation of R2
  • 10.
  • 11. ◦ Models such as y = c + b1x1+ b2x2+ ... ◦ How are they developed?  an expert task ◦ Managers  understand  question  use results
  • 12. ◦ Estate agent (realtor) is establishing an office in a new location ◦ Wishes to build a model of advertised prices ◦ Collects competitor data on;  Internal area  Land  Distance from nearest school  City region
  • 13. Property Price School Land Area District 1 457 3 1791 165 FD 2 487 1 800 177 FD 3 218 3 759 94 FD 4 300 4 829 137 FD 5 358 2 630 110 AC 6 658 1 655 201 AC 7 402 2 999 85 AC 8 541 2 920 146 AC 9 358 3 1185 112 Other 10 444 1 787 155 Other 11 298 3 597 180 Other 12 462 1 1447 200 Other
  • 14. Property Price School Land Area AC FD District 1 457 3 1791 165 0 1 FD 2 487 1 800 177 0 1 FD 3 218 3 759 94 0 1 FD 4 300 4 829 137 0 1 FD 5 358 2 630 110 1 0 AC 6 658 1 655 201 1 0 AC 7 402 2 999 85 1 0 AC 8 541 2 920 146 1 0 AC 9 358 3 1185 112 0 0 Other 10 444 1 787 155 0 0 Other 11 298 3 597 180 0 0 Other 12 462 1 1447 200 0 0 Other
  • 15. price = constant + a x (km from a school) + b x (land in m2) + g x (floor area in m2) + d (if in AC) + z (if in FD)
  • 16.
  • 18.
  • 19. R2 = y − y 2 y − y 2 R 2 = 1- (1 - R2) n −1 n − k − 1
  • 20.
  • 21.
  • 22.
  • 23.
  • 24. ◦ Equation  expected price = 45.72 + (2.179 x area) + (148.8 x AC) ◦ Suppose property is in AC and is of 100m2 what is expected advertised price?  expected price = 45.72 + (2.179 x 100) + (148.8 x 1)  expected price = 412.42
  • 25. By the end of this topic students will be able to: ◦ Evaluate results from regression analysis ◦ Interpret results from regression analysis ◦ Recognize possibility to extend regression analysis  Dummy variables
  • 26. ◦ Hinton, PR. Statistics Explained. Routledge ◦ Keast, S. and Towler M. Rational Decision Making for Managers. Wiley ◦ Wisniewski, M. Quantitative Methods for Decision Makers. FT Prentice Hall