EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.

Slides:



Advertisements
Similar presentations
Class 7.2: Graphical Analysis and Excel Solving Problems Using Graphical Analysis.
Advertisements

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.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
P M V Subbarao Professor Mechanical Engineering Department
EGR 105 Foundations of Engineering I
Excel Part III Curve-Fitting, Regression Section 8 Fall 2013 EGR 105 Foundations of Engineering I.
Regression Regression: Mathematical method for determining the best equation that reproduces a data set Linear Regression: Regression method applied with.
Read Chapter 17 of the textbook
Engineering experiments involve the measuring of the dependent variable as the independent one has been altered, so as to determine the relationship between.
Regression and Correlation
Least Square Regression
Least Square Regression
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
Chapter 12a Simple Linear Regression
Business 205. Review Chi-Square Preview Regression.
Engineering Computation Curve Fitting 1 Curve Fitting By Least-Squares Regression and Spline Interpolation Part 7.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
EGR 105 Foundations of Engineering I Fall 2005 – week 10 Project time.
Regression in EXCEL r2 SSE b0 b1 SST.
Spreadsheet Problem Solving
Chapter 5 Plotting Data Curve Fitting, Good Graphing Practices Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 10 Real Inner Products and Least-Square (cont.)
Physics 2215 Minilab 5: Simple Pendulum Simple Pendulum Purpose Gain experience in analyzing relationships between variables by graphical methods.
Calibration & Curve Fitting
Forecasting using trend analysis
1 1 Slide © 2009 Thomson South-Western. All Rights Reserved Slides by JOHN LOUCKS St. Edward’s University.
Extending that Line into the Future St. Louis CMG February 12, 2008 Wayne Bell – UniGroup, Inc.
Graphical Analysis. Why Graph Data? Graphical methods Require very little training Easy to use Massive amounts of data can be presented more readily Can.
Introduction to MATLAB for Engineers, Third Edition Chapter 6 Model Building and Regression PowerPoint to accompany Copyright © The McGraw-Hill Companies,
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.
Biostatistics Unit 9 – Regression and Correlation.
Chapter 8: Regression Analysis PowerPoint Slides Prepared By: Alan Olinsky Bryant University Management Science: The Art of Modeling with Spreadsheets,
Bivariate Data When two variables are measured on a single experimental unit, the resulting data are called bivariate data. You can describe each variable.
Fitting Exponentials and Polynomials to Data Lesson 11.7.
Applied Quantitative Analysis and Practices LECTURE#22 By Dr. Osman Sadiq Paracha.
CISE301_Topic41 CISE301: Numerical Methods Topic 4: Least Squares Curve Fitting Lectures 18-19: KFUPM Read Chapter 17 of the textbook.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
2014. Engineers often: Regress data  Analysis  Fit to theory  Data reduction Use the regression of others  Antoine Equation  DIPPR We need to be.
Regression Regression relationship = trend + scatter
10B11PD311 Economics REGRESSION ANALYSIS. 10B11PD311 Economics Regression Techniques and Demand Estimation Some important questions before a firm are.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
11/20/2015ENGR 111A - Fall MatLab – Palm Chapter 5 Curve Fitting Class 14.1 Palm Chapter:
Graphing Types of graphs & how to create graphs in Excel.
Revision: Pivot Table 1. Histogram 2. Trends 3. Linear 4. Exponential
Topic 11.2: Measurement and Data Processing Graphing.
Chapter 10: Determining How Costs Behave 1 Horngren 13e.
Vocabulary Algebra 1.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
3-1Forecasting Weighted Moving Average Formula w t = weight given to time period “t” occurrence (weights must add to one) The formula for the moving average.
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.
Plotting in Excel Ken youssefi Engineering 10.
Plotting in Excel KY San Jose State University Engineering 10.
The simple linear regression model and parameter estimation
Chapter 8 Linear Regression.
Linear Regression.
Fitting Equations to Data
Regression Analysis AGEC 784.
Regression and Correlation
CHM 103 Sinex The Best-Fit Line Linear Regression.
Correlation and Regression-II
Simple Linear Regression
LESSON 21: REGRESSION ANALYSIS
Regression Statistics
Least Square Regression
Multivariate Analysis Regression
Lesson 2.2 Linear Regression.
Graphing Data Section 1-3.
Presentation transcript:

EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression

EGR105 – Week 7 Topics Data analysis concepts Regression methods Function discovery by example Regression tools in Excel Assignment # 7

Analysis of x-y Data Independent versus dependent variables y y = f(x) x independentdependent

Finding Other Values Interpolation –Data between known points Regression – curve fitting –Simple representation of data –Understand workings of system –Useful for prediction Extrapolation –Data beyond the measured range data points

EGR105 – Week 7 Topics Data analysis concepts Regression methods Function discovery by example Regression tools in Excel Assignment

EGR105 – Week 7 Topics Data analysis concepts Regression methods Function discovery by example Regression tools in Excel Assignment

Regression Useful for noisy or uncertain data – n pairs of data (x i, y i ) Choose a functional form y = f(x) polynomial exponential etc. and evaluate parameters for a “close” fit

What Does “close” Mean? Want a consistent rule Common is the least squares fit (SSE): (x 1,y 1 ) (x 2,y 2 ) (x 3,y 3 ) (x 4,y 4 ) x y e3e3 e i = y i – f(x i ), i =1,2,…,n sum squared errors

Quality of the Fit: Notes: is the average y value 0  R 2  1 closer to 1 is a “better” fit x y

Linear Regression Functional choice y = m x + b slope intercept Squared errors sum to Set m and b derivatives to zero

Further Regression Possibilities: Could force intercept: y = m x + c Other two parameter ( a and b ) fits: – Logarithmic: y = a ln x + b – Exponential: y = a e bx –Power function:y = a x b Other polynomials with more parameters: – Parabola: y = a x 2 + bx + c – Higher order:y = a x k + bx k-1 + …

EGR105 – Week 7 topics Data analysis concepts Regression methods Function discovery by example Regression tools in Excel Assignment

Function Discovery or How to find the best relationship Look for straight lines on log axes:  linear on semilog x  y = a ln x + b  linear on semilog y  y = a e bx  linear on log log  y = a x b No rule for 2 nd or higher order polynomial fits (not very useful toward real problems)

Previous EGR105 Project Discover how a pendulum’s timing is impacted by the: –length of the string? –mass of the bob? 1.Take experimental data –string, weights, rulers, and watches 2.Analyze data and “discover” relationships

Experimental Setup:

One Team’s Results: Mass appears to have no impact, but length does

To determine the effect of length, first plot the data:

Try a linear fit:

Force a zero intercept:

Try a quadratic polynomial:

Try logarithmic:

Try power function:

On log-log axes, a nice straight line:

EGR105 – Week 7 Topics Data analysis concepts Regression methods Function discovery by example Regression tools in Excel Assignment

Excel’s Regression Tool Highlight your chart On chart menu, select “add trendline” Choose type: –Linear, log, polynomial, exponential, power Set options: –Forecast = extrapolation –Select y intercept –Show R 2 value on chart –Show equation on chart

EGR105 – Week 7 Topics Data analysis concepts Regression methods Function discovery by example Regression tools in Excel Assignment 7