Introduction. We want to see if there is any relationship between the results on exams and the amount of hours used for studies. Person ABCDEFGHIJ Hours/

Slides:



Advertisements
Similar presentations
Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6.
Advertisements

Inference for Regression
1 Simple Linear Regression and Correlation The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES Assessing the model –T-tests –R-square.
Simple Linear Regression and Correlation
Simple Linear Regression
Introduction to Regression Analysis
Chapter 12 Simple Regression
Simple Linear Regression
Statistics for Business and Economics
Chapter 13 Introduction to Linear Regression and Correlation Analysis
The Simple Regression Model
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 13 Introduction to Linear Regression and Correlation Analysis.
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.
Chapter 13 Introduction to Linear Regression and Correlation Analysis
Simple Linear Regression Analysis
Lecture 17 Interaction Plots Simple Linear Regression (Chapter ) Homework 4 due Friday. JMP instructions for question are actually for.
Chapter 14 Introduction to Linear Regression and Correlation Analysis
Lecture 19 Simple linear regression (Review, 18.5, 18.8)
Correlation and Regression Analysis
Simple Linear Regression and Correlation
Introduction to Regression Analysis, Chapter 13,
Simple Linear Regression Analysis
Simple Linear Regression. Introduction In Chapters 17 to 19, we examine the relationship between interval variables via a mathematical equation. The motivation.
Chapter 6 (cont.) Regression Estimation. Simple Linear Regression: review of least squares procedure 2.
Linear Regression/Correlation
1 Simple Linear Regression 1. review of least squares procedure 2. inference for least squares lines.
© 2011 Pearson Education, Inc. Statistics for Business and Economics Chapter 10 Simple Linear Regression.
Correlation & Regression
Correlation and Linear Regression
Correlation and Linear Regression
Regression and Correlation Methods Judy Zhong Ph.D.
Introduction to Linear Regression and Correlation Analysis
Chapter 11 Simple Regression
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Statistics for Business and Economics Chapter 10 Simple Linear Regression.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
© 2001 Prentice-Hall, Inc. Statistics for Business and Economics Simple Linear Regression Chapter 10.
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.
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
McGraw-Hill/Irwin Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 13 Linear Regression and Correlation.
Chapter 4 Linear Regression 1. Introduction Managerial decisions are often based on the relationship between two or more variables. For example, after.
Lecture 10: Correlation and Regression Model.
Applied Quantitative Analysis and Practices LECTURE#25 By Dr. Osman Sadiq Paracha.
Economics 173 Business Statistics Lecture 10 Fall, 2001 Professor J. Petry
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Simple Linear Regression Analysis Chapter 13.
Statistics for Managers Using Microsoft® Excel 5th Edition
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Regression Analysis Deterministic model No chance of an error in calculating y for a given x Probabilistic model chance of an error First order linear.
Linear Regression Linear Regression. Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Purpose Understand Linear Regression. Use R functions.
Lecture 10 Introduction to Linear Regression and Correlation Analysis.
Conceptual Foundations © 2008 Pearson Education Australia Lecture slides for this course are based on teaching materials provided/referred by: (1) Statistics.
11-1 Copyright © 2014, 2011, and 2008 Pearson Education, Inc.
Module 2 Association and Correlation Relationship between 2 quantitative variables: Scatterplot and Correlation Relationship between 2 qualitative variables:
Simple Linear Regression and Correlation (Continue..,) Reference: Chapter 17 of Statistics for Management and Economics, 7 th Edition, Gerald Keller. 1.
1 Simple Linear Regression Chapter Introduction In Chapters 17 to 19 we examine the relationship between interval variables via a mathematical.
Warm-Up The least squares slope b1 is an estimate of the true slope of the line that relates global average temperature to CO2. Since b1 = is very.
Linear Regression.
Chapter 11: Simple Linear Regression
Chapter 11: Simple Linear Regression
Linear Regression/Correlation
Simple Linear Regression
Introduction to Regression
Correlation and Simple Linear Regression
Presentation transcript:

Introduction

We want to see if there is any relationship between the results on exams and the amount of hours used for studies. Person ABCDEFGHIJ Hours/ Day Result

Probability Theory Random varible, X Models for X Probability distributions: Bernoulli, Binomal, Normal, Uniform….. Parameters: μ,  2, p,….

Inference We estimate the parameters in the population by taking a sample and compute the sample- parameters:

From the sample we can make conclusions about the parameters in the population of interest. Point Estimation Confidence Intervals Hypothesis Test

Example 8.2 Keller: One variable Y= Return of investment Model: the return is normally distributed with a mean of 10% and a standard deviation of 5%.

Two or more variables = return = share price = interest = inflation

Why regression? 1.Forecast a dependent variable (Y) with from the value of independent varaibles (x 1,x 2,…,x k ). 2.Analyze specific relations between Y and x 1,x 2,…,x k. How is Y related to x 1,x 2,…,x k ?

Simple linear regression Model for one independent variable X and one dependent variable Y. X Y We think X has an effect on Y.

Correlation X Y X and Y vary together without theories that one affects the other Example: Y = price of houses X = prices of appartments

Scatterplots are used to describe the relationship between two variables and for making relevant choices of models.

Coefficient of correlation The coefficient of correlation r is a measure of linear relationship between two variables x and y. The coefficient of correlation can take values between –1 and +1. Be aware that r is a measure of linear relationships. Even if r = 0 there can be a nonlinear relationship between x and y.

Scatterplot: babies from VK

Correlation between weight and length for newborn babies Correlations 1,765**,,000 35,765**1,000, 35 Pearson Correlation Sig. (2-tailed) N Pearson Correlation Sig. (2-tailed) N LENGTH WEIGHT LENGTHWEIGHT Correlation is significant at the 0.01 level (2-tailed). **.

Linear models are used when we think there is a linear relationship between two variables.

Regression models Linear models for relationships between two variables X (ex length) and Y (ex weight). Y is called the respond variable (dependent variable) X is called the explanatory variable (independent variable). X can often be controlled by experiments.

House size House Cost Most lots sell for $25,000 Building a house costs about $75 per square foot. House cost = (Size) The model has a deterministic and a probabilistic component

House cost = (Size) House size House Cost Most lots sell for $25,000   However, house cost vary even among same size houses! Since cost behave unpredictably, we add a random component.

The Model The first order linear model y = dependent variable x = independent variable  0 = y-intercept  1 = slope of the line  = error variable, normally distributed around 0.

Estimation of β 0 and β 1 β 0 and β 1 are unknown population- parameters, and are therefore estimated from the data. We get the estimated model

The estimates are determined by –drawing a sample from the population of interest, –calculating sample statistics. –producing a straight line that cuts into the data.           x y

Least Square Method As criteria for ”the best” we use the line that minimizes the sum of (the squares of the) distances between the observations and the line. The method is called the Least Square Method. We get the Least Squares (Regression) Line

The Least Square estimates are found by y i = observed value of the dependent variable for the i:th observation = estimated value of the dependent variable for the i:th observation

The LS estimators are

”Shortcut formula” - p. 582

Example In order to analyze the relationship between advertising and sales, the manager of a fast food company recorded the advertising budget ($thousands) and the sales ($millions) during one year for a sample of the company’s restaurants (of equal size).

Example, continued restaurantxixi yiyi xiyixiyi xi2xi , , , , , , , ,8 

Example, Output in SPSS

Interpretation of b 0 and b 1 b 1 = When the advertising budget increases with one thousand dollars, the yearly sales increases with $ b 0 = 99.3 [ When the advertising budget is zero, the yearly sales are $99 million.] Only meaningful if x=0 is part of the sample.

Extrapolation Statements about predicted values ( ) of the dependent variable outside the observed interval for the independent variable (x). Often not meaningful!!!

Assessing the Model The least squares method will produces a regression line whether or not there are linear relationship between x and y. Consequently, it is important to assess how well the linear model fits the data. Several methods are used to assess the model. All are based on the sum of squares for errors, SSE.

Residuals To evaluate the regression model, we use the residuals: e i are observations of the error variable ε i.

SSE - Sum of squares for error

In the example: advertisment restaurantxixi yiyi = x i y i - ( y i - ) , , , , , , , ,8 