Linear Regression. Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was.

Slides:



Advertisements
Similar presentations
Exercise 7.5 (p. 343) Consider the hotel occupancy data in Table 6.4 of Chapter 6 (p. 297)
Advertisements

UNLOCKING THE SECRETS HIDDEN IN YOUR DATA Part 3 Data Analysis.
Excel Notes Phys244/246 © 2007, B.J. Lieb. Calculating Velocity The velocity is calculated by entering the following: =(B3-B2) / (A3-A2). Then drag the.
General Linear Model Introduction to ANOVA.
Quantitative Methods 2 Lecture 3 The Simple Linear Regression Model Edmund Malesky, Ph.D., UCSD.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
1 Simple Linear Regression and Correlation The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES Assessing the model –T-tests –R-square.
HOW TO CREATE A HISTOGRAM IN EXCEL. STEP 1: INSTALL ANALYSIS TOOLPAK 1.Click on the Microsoft Office Button (circle button) 2.Click on Excel Options.
Linear Regression Using Excel 2010 Linear Regression Using Excel ® 2010 Managerial Accounting Prepared by Diane Tanner University of North Florida Chapter.
Regression Analysis Using Excel. Econometrics Econometrics is simply the statistical analysis of economic phenomena Here, we just summarize some of the.
Topic 3: Simple Linear Regression. Outline Simple linear regression model –Model parameters –Distribution of error terms Estimation of regression parameters.
Chapter 10 Simple Regression.
Statistics: Data Analysis and Presentation Fr Clinic II.
Chapter 12b Testing for significance—the t-test Developing confidence intervals for estimates of β 1. Testing for significance—the f-test Using Excel’s.
Chapter 12a Simple Linear Regression
ESTIMATING THE REGRESSION COEFFICIENTS FOR SIMPLE LINEAR REGRESSION.
Spreadsheet Problem Solving
Non-Linear Simultaneous Equations
© Copyright 2000, Julia Hartman 1 An Interactive Tutorial for SPSS 10.0 for Windows © Analysis of Covariance (GLM Approach) by Julia Hartman Next.
Introduction to Linear Regression and Correlation Analysis
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Simple linear regression Linear regression with one predictor variable.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Linear Regression Analysis Using MS Excel Making a graph Analyzing Data.
1 4. Curve fitting On many occasions one has sets of ordered pairs of data (x 1,...,x n, y 1,...,y n ) which are related by a concrete function Y(X) e.g.
Stats for Engineers Lecture 9. Summary From Last Time Confidence Intervals for the mean t-tables Q Student t-distribution.
1 1 Slide © 2004 Thomson/South-Western Slides Prepared by JOHN S. LOUCKS St. Edward’s University Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Ch4 Describing Relationships Between Variables. Pressure.
Linear Regression Least Squares Method: the Meaning of r 2.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Regression. Population Covariance and Correlation.
Regression Regression relationship = trend + scatter
Excel Workshop CHEM 2001, FALL Make some calculations Always begin a function with ‘=‘ Multiply X and Y Multiply X by 50 (2 methods) – Absolute.
Excel Workshop CHEM 2001, FALL Make some calculations Always begin a function with ‘=‘ Multiply X and Y Multiply X by 50 (2 methods) – Absolute.
How to Make a Pie Chart In Excel Open Excel.
Chapter 6 (cont.) Difference Estimation. Recall the Regression Estimation Procedure 2.
Estimating and Testing Hypotheses about Means James G. Anderson, Ph.D. Purdue University.
9.2 Linear Regression Key Concepts: –Residuals –Least Squares Criterion –Regression Line –Using a Regression Equation to Make Predictions.
Curve Fitting Pertemuan 10 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
ENGM 631 Optimization Using Solver. Sec. 3.1Alt. Model Max Z = 3X 1 + 5X 2 s.t. X 1 < 8,000 X 2 < 6,000 3X 1 + 4X 2 < 36,000 X 1 > 0 X 2 > 0.
Regression Analysis in Microsoft Excel MS&T Physics 1135 and 2135 Labs.
ABE425 Engineering Measurement Systems Ordinary Least Squares (OLS) Fitting Dr. Tony E. Grift Dept. of Agricultural & Biological Engineering University.
Correlation and Regression Ch 4. Why Regression and Correlation We need to be able to analyze the relationship between two variables (up to now we have.
Working with Equations Mini Activity I. Objectives: The Learner will be able to: 1. Apply Currency formatting to cells in Excel 2. Use the AutoSum tool.
1 Linear Regression Model. 2 Types of Regression Models.
Fitting Equations to Data Chapter 7. Problems Classwork: 7.1, 7.8, 7.13, 7.22 Homework: 7.2, 7.9, 7.16, 7.23, 7.28.
B-ball lab data. What does a graph of x –vs- t look like for your b-ball roll data? X (m) t (s) 0 0 x t Parabola (non-linear) not great for.
The simple linear regression model and parameter estimation
Fitting Equations to Data
Installing Analysis Tool Pak
PowerPoint Slides Prepared by Robert F. Brooker, Ph.D. Slide 1
Principles and Worldwide Applications, 7th Edition
The Simple Linear Regression Model: Specification and Estimation
Linear Regression Bonus
Microsoft Office Illustrated
Slope of the regression line:
Regression Models - Introduction
The Regression Model Suppose we wish to estimate the parameters of the following relationship: A common method is to choose parameters to minimise the.
STA 282 – Regression Analysis
Linear regression Fitting a straight line to observations.
Installing Analysis Tool Pak
Regression Statistics
Discrete Least Squares Approximation
Mathematical Sciences
Create a drop down in excel
JMP Example 5 Use the previous yield data from different dissolution temperatures. Make a model that describes the effect of temperature on the yield.
6.1.1 Deriving OLS OLS is obtained by minimizing the sum of the square errors. This is done using the partial derivative 6.
Chapter 14, part C Goodness of Fit..
Chapter 9 Excel Extension: Now You Try!
Chapter 15 Excel Extension: Now You Try!
Presentation transcript:

Linear Regression

Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was run.

Plot Yield vs Temperature

Clearly yield is dependent on the temperature run.

Regression Model } e i

Regression Model Our job is to find the best estimate a for the true but unknown parameter  and the best estimate b for the true but unknown parameter .

Regression Model Now whatever line we make, for any given point I, we will miss by amount. So how do we find the best line. } e i

Regression Model Two ideas –Minimize the sum of the errors

Regression Model Two ideas –Minimize the sum of the errors All three lines yield a sum of errors equal to 0.

Regression Model Second idea –Minimize the sum of squared errors

Sum of Squared Errors So I have an equation and two parameters to estimate. How do I do that so as to minimize SSE?

Calculus Review How do we find the minimum of this curve? y x

Estimating a Do the same here, take the derivative w/respect to x and set it equal to zero

Estimating b

Estimating a and b

Regression in Excel Set up the Analysis Add- in Toolpak; click on File/options/addins Click on Analysis Toolpak With Analysis Toolpak Highlighted, click on Go

Regression in Excel Add In dialogue box opens With Analysis ToolPak Selected, click ok

Regression in Excel You should now be able to see the Data Analysis ToolPak Click on the Data tab, look for data analysis on the right Scroll down and click on Regression in the data analysis dialogue box

Enter Appropriate cells for y, x, output

Excel Results