26134 Business Statistics Week 4 Tutorial Simple Linear Regression Key concepts in this tutorial are listed below 1. Detecting.

Slides:



Advertisements
Similar presentations
Lesson 10: Linear Regression and Correlation
Advertisements

Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6.
Forecasting Using the Simple Linear Regression Model and Correlation
Inference for Regression
LECTURE 3 Introduction to Linear Regression and Correlation Analysis
CORRELATON & REGRESSION
Chapter 12 Simple Regression
Chapter 13 Introduction to Linear Regression and Correlation Analysis
Linear Regression and Correlation
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 13 Introduction to Linear Regression and Correlation Analysis.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 13-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
SIMPLE LINEAR REGRESSION
Pengujian Parameter Koefisien Korelasi Pertemuan 04 Matakuliah: I0174 – Analisis Regresi Tahun: Ganjil 2007/2008.
Chapter Topics Types of Regression Models
Linear Regression and Correlation Analysis
1 Simple Linear Regression Chapter Introduction In this chapter we examine the relationship among interval variables via a mathematical equation.
Correlation and Regression. Correlation What type of relationship exists between the two variables and is the correlation significant? x y Cigarettes.
Chapter 13 Introduction to Linear Regression and Correlation Analysis
Regression Chapter 10 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
Linear Regression Example Data
SIMPLE LINEAR REGRESSION
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
1 BA 555 Practical Business Analysis Review of Statistics Confidence Interval Estimation Hypothesis Testing Linear Regression Analysis Introduction Case.
Chapter 14 Introduction to Linear Regression and Correlation Analysis
Correlation and Regression Analysis
Introduction to Regression Analysis, Chapter 13,
Correlation & Regression
Correlation and Linear Regression
Regression and Correlation Methods Judy Zhong Ph.D.
SIMPLE LINEAR REGRESSION
Correlation and Regression
Introduction to Linear Regression and Correlation Analysis
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 12-1 Chapter 12 Simple Linear Regression Statistics for Managers Using.
Maths Study Centre CB Open 11am – 5pm Semester Weekdays
Chapter 6 & 7 Linear Regression & Correlation
Chapter 14 Simple Regression
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
© 2003 Prentice-Hall, Inc.Chap 13-1 Basic Business Statistics (9 th Edition) Chapter 13 Simple Linear Regression.
Introduction to Linear Regression
Chap 12-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 12 Introduction to Linear.
EQT 373 Chapter 3 Simple Linear Regression. EQT 373 Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value.
Examining Relationships in Quantitative Research
1 Chapter 12 Simple Linear Regression. 2 Chapter Outline  Simple Linear Regression Model  Least Squares Method  Coefficient of Determination  Model.
Section 9-1: Inference for Slope and Correlation Section 9-3: Confidence and Prediction Intervals Visit the Maths Study Centre.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Chapter 16 Data Analysis: Testing for Associations.
Lecture 10: Correlation and Regression Model.
26134 Business Statistics Tutorial 11: Hypothesis Testing Introduction: Key concepts in this tutorial are listed below 1. Difference.
Scatter Diagrams scatter plot scatter diagram A scatter plot is a graph that may be used to represent the relationship between two variables. Also referred.
CHAPTER 5 CORRELATION & LINEAR REGRESSION. GOAL : Understand and interpret the terms dependent variable and independent variable. Draw a scatter diagram.
Chapter 14: Inference for Regression. A brief review of chapter 4... (Regression Analysis: Exploring Association BetweenVariables )  Bi-variate data.
Correlation & Regression Analysis
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics Seventh Edition By Brase and Brase Prepared by: Lynn Smith.
Statistics for Managers Using Microsoft® Excel 5th Edition
Jump to first page Inferring Sample Findings to the Population and Testing for Differences.
©The McGraw-Hill Companies, Inc. 2008McGraw-Hill/Irwin Linear Regression and Correlation Chapter 13.
26134 Business Statistics Week 4 Tutorial Simple Linear Regression Key concepts in this tutorial are listed below 1. Detecting.
Chapter 13 Simple Linear Regression
MATH1005 STATISTICS Tutorial 3: Bivariate Data.
26134 Business Statistics Week 5 Tutorial
Linear Regression and Correlation Analysis
Correlation and Regression
Product moment correlation
SIMPLE LINEAR REGRESSION
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

26134 Business Statistics Week 4 Tutorial Simple Linear Regression Key concepts in this tutorial are listed below 1. Detecting associations using scatterplots 2. Dependent and independent variables 3. Bivariate regression 4. Difference between cause and effect between two variables vs. a relationship between two variables 5. Regression and correlation 1

In statistics we usually want to statistically analyse a population but collecting data for the whole population is usually impractical, expensive and unavailable. That is why we collect samples from the population (sampling) and make inferences about the population parameters using the statistics of the sample (inferencing) with some level of accuracy (confidence level). A population is a collection of all possible individuals, objects, or measurements of interest. A sample is a subset of the population of interest.

Regression The linear regression line characterises the relationship between two numerical variables. Using regression analysis on data can help us draw insights about that data. It helps us understand the impact of one of the variables on the other. It examines the relationship between one independent variable (predictor/explanatory) and one dependent variable (response/outcome). The linear regression line equation is based on the equation of a line in mathematics. β0+β1Xβ0+β1X

X: Predictor Variable Explanatory Variable Independent Variable Variable one can control. Y: Outcome variable Response Variable Dependent Variable The outcome to be measured/predicted.

Correlation Correlation measures the association between two numerical variables with the strength of the relationship measured by the correlation coefficient r. A statistic that quantifies a linear relation between two variables Falls between and 1.00 The sign of the number indicates the direction of relationship. The value of the number indicates the strength of the relation. NOTE: Regression examines the relationship between one independent variable and one dependent variable. That is the slope of the linear regression. Correlation indicates the association between two metric variables with the strength and direction of the relationship measured by the correlation coefficient.

Strength & Direction of Correlation DIRECTION: POSITIVE NEGATIVE STRENGTH: PERFECT STRONG MODERATE WEAK

Difference between cause and effect between two variables vs. a relationship between two variables Cause and effect implies that one variable directly causes change in the other. A relationship implies variables move in the same or opposite direction together, which may be caused by another variable not currently used in the model. If two variables are associated with each other it does not mean one variable directly affects or causes the other.

8 1.On EXCEL to get the “Data Analysis” pack, click File>Options>Add-In>Manage: Go>Analysis toolpack>Ok>Data>Data Analysis>Regression>Ok 2.For the scatterplot graph, click insert>scatter>select data>select data range (make sure x is horizontal and y is vertical). Right-click on data points and click “add trendline”>click on “add regression equation” 3.d) For each additional employee, the average profit per dollar of sales increases by 2.14 cents Regression on Excel

9 Q1.1. In this bivariate analysis which is the dependent variable and which is the independent variable? Independent variable: advertisements in sports magazine Dependent: level of sales Q1.2. Which statistical technique should be used to establish the strength of association between these two variables? Correlation Q1.3. Draw a diagram representing the expected direction of the relationships described. Be sure to label axes.

10 Q1.4. Which statistical technique would be used to understand the impact of one of the variables on the other? Q1.5. What are some of the statistical assumptions being used in applying this statistical technique and how can these be verified? Q1.6. What is the benefit of using the statistical technique for understanding the relationship between two variables compared to understanding an association? Regression analysis. Assumptions are: a) the relationship between the two variables is linear (verified by using a scatter plot), b) it evaluates the magnitude of relationship and used for prediction, but no cause and effect can be attributed (verified by theory) c) variables are numeric variables (verified by interval or ratio metric scales) d) error terms are independent and are normally distributed (i.e. normal bell shaped curve) Correlation shows the direction and strength of association with a value between -1 (perfectly negative association) to +1 (perfectly positive association), whereas regression allows for the impact of one variable on the other to be established and a predictive model to be created. Regression measures the slope of the linear equation.

11 Q2.1. Which value would you use to determine the relationship between the two variables and does the direction of this relationship make sense? Beta Coefficient =.459., yes as we would expect higher food quality would lead to customer’s returning.

Hypothesis Testing We use hypothesis testing to infer conclusions about the population parameters based on analysing the statistics of the sample. In statistics, a hypothesis is a statement about a population parameter. 1. The null hypothesis, denoted H 0 is a statement or claim about a population parameter that is initially assumed to be true. Is always an equality. (Eg. H 0 : β 1 =0) 2. The alternative hypothesis, denoted by H 1 is the competing claim. What we are trying to prove. (Eg. H 1 : β 1 ≠ 0) 3. Test Statistic: a measure of compatibility between the statement in the null hypothesis and the data obtained. 4. Decision Criteria: The P-value is the probability of obtaining a test statistic as extreme or more extreme than the observed sample value given H 0 is true. If p-value≤0.05 reject H o If p-value>0.05 do not reject H o 5. Conclusion: Make your conclusion in context of the problem.

13 Q2.2. How do we use the t statistic and what does the significance tell us about these variables? This hypothesis test will tell us if there is enough evidence in our sample data to tell us if there is a significant linear relationship. H 0 : β 1 =0. There is no association between the dependent variable and the independent variable. (There is no significant linear relationship) i.e. y= β 0 + 0*x H 1 : β 1 ≠0. The independent variable will affect the dependent variable. (There is a significant linear relationship t) i.e y= β 0 + β 1 *x Test Statistic: The t-test tells us whether the INDIVIDUAL regression coefficient is different enough from zero to be statistically significant. P-value=0.009 Since p-value=0.009<0.05 (level of significance) we reject the null hypothesis and conclude that we have enough statistical evidence to prove that there is a significant linear relationship between the two variables.

R 2 Coefficient of Determination Tells us the amount of variation explained in the dependent variable that is accounted for by the independent variable. 14

15 Q2.3. What does the R 2 tell us about the relationship between food quality and customers returning? Q2.4. How much does perception of food quality not explain whether a customer would return to a restaurant? Q2.5. List three other variables that may explain whether a customer would return to Joe’s restaurant. An R means food quality explains 26.3% of the variation in whether a customer will return. Food quality does not explain ( =)73.7% of the variation in customers returning. Other variables include price, location, food cuisine, quality of staff, ambience etc. This means this requires multivariate regression analysis (next week’s topic.)

16 Sons Height= x Father’s Height Interpret the Coefficients: