Fitting Equations to Data

Slides:



Advertisements
Similar presentations
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.
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Forecasting Using the Simple Linear Regression Model and Correlation
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
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.
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
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
Chapter Topics Types of Regression Models
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 CURVE.
Chapter 5 Plotting Data Curve Fitting, Good Graphing Practices Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Introduction to Regression Analysis, Chapter 13,
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
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.
CPE 619 Simple Linear Regression Models Aleksandar Milenković The LaCASA Laboratory Electrical and Computer Engineering Department The University of Alabama.
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.
Jon Curwin and Roger Slater, QUANTITATIVE METHODS: A SHORT COURSE ISBN © Thomson Learning 2004 Jon Curwin and Roger Slater, QUANTITATIVE.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
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.
Statistical Methods Statistical Methods Descriptive Inferential
Chapter 8 Curve Fitting.
Curve-Fitting Regression
CHAPTER 3 Model Fitting. Introduction Possible tasks when analyzing a collection of data points: Fitting a selected model type or types to the data Choosing.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Graphical Analysis in Excel EGN 1006 – Introduction to Engineering.
^ y = a + bx Stats Chapter 5 - Least Squares Regression
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 18 Introduction to Simple Linear Regression (Data)Data.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression.
STATISTICS 12.0 Correlation and Linear Regression “Correlation and Linear Regression -”Causal Forecasting Method.
Regression Analysis in Microsoft Excel MS&T Physics 1135 and 2135 Labs.
Section 1.6 Fitting Linear Functions to Data. Consider the set of points {(3,1), (4,3), (6,6), (8,12)} Plot these points on a graph –This is called a.
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Linear Regression. Regression Consider the following 10 data pairs comparing the yield of an experiment to the temperature at which the experiment was.
Chapter 5 EXCEL Graphing Data. Intro In EXCEL graphs are referred to as CHARTS. We will do 2-D graphs known as Scatter Charts or X-Y Charts. Vocabulary:
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.
Linear Regression Essentials Line Basics y = mx + b vs. Definitions
The simple linear regression model and parameter estimation
Regression Analysis AGEC 784.
FW364 Ecological Problem Solving Class 6: Population Growth
Part 5 - Chapter
Fitting Exponentials and Polynomials to Data
Part 5 - Chapter 17.
The Simple Linear Regression Model: Specification and Estimation
Chapter 11 Simple Regression
Simple Linear Regression
Fitting Linear Functions to Data
The Least Squares Line Lesson 1.3.
CHAPTER 29: Multiple Regression*
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Part 5 - Chapter 17.
Graphing Review.
^ y = a + bx Stats Chapter 5 - Least Squares Regression
PENGOLAHAN DAN PENYAJIAN
Regression Statistics
Discrete Least Squares Approximation
Least Square Regression
Multivariate Analysis Regression
Lesson 2.2 Linear Regression.
5/30/2019 Charts and Graphs William Klingelsmith William Klingelsmith.
Presentation transcript:

Fitting Equations to Data Chapter 7

Introduction Engineers look at fitting equations to data. The data is paired-value (has an X and a Y). Want to understand the characteristics of an object or system. Data may include spatial variation, time history, cause-and-effect relationships, system output as a function of a changing input parameter. If we want to know a value that was NOT obtained during the data collection, we usually graph the data, fit an equation (line, quadratic, square root, exponential decay, etc) through the data, and then use that equation to find other values.

Introduction – con’t Data usually exhibits scatter due to fluctuations in measurements or error. You need to decide upon the BEST form of an equation to use to describe your data. Usually you fit the curve through the aggregate of the data, rather than all the individual data points. You also have to consider if a data point is an outlier (and to be discarded) or not. The METHOD OF LEAST SQUARES answers this question. AKA LINEAR REGRESSION.

Linear Interpolation Used when there are only two data points. Used when the aggregate data clearly define a line and the scatter is small. Based upon finding the slope and intercept of a line using two data points and the POINT-SLOPE method. Given two data points (x1, y1), (x2, y2), the equation of the line between the two points passing through is: Y= y1 + (y2-y1)(x2-x1)/(x-x1)

Linear Interpolation Example: Given the two points (-2, 7) and (5,0), find the value at x=-1 and x=3. Step 1. Find the equation of the line. Y=-x+5. Step 2. For x=-1, y=6. For x=3, y=2. Works fine for two points.

Linear Interpolation – con’t You can also use the Excel FORECAST function. Form is FORECAST (x, range of known y-values, range of known x- values), where x is the value you are interpolating for to find the associated y-value. The range of known values are the values that bracket the choisen x-value. Do Problem 7-1 as Classwork.

Methods of Least Squares (Sec 7.2 and 7.3) If a lot of scatter, then use a trendline and method of least squares (LINEAR REGRESSION). Used when you are working with measured data. Process wants the line to pass through as many of the data points as possible while at the same time MINIMIZING the distance from the line to the other points. The distance of the line to the actual data point is known as the error, and the method of least squares seeks to minimize the sum of the square of the errors. Works for lines and other types of equations.

Least Squares Curve Fitting in EXCEL – Sec 7.4 The process of fitting a regression line (least squares) is lengthy and tedious and involves the use of partial derivatives. YUCK! You can learn this in your ENGR Statistics course later. Excel lets you fit a TRENDLINE to a given set of data. Options (functions) include: Exponential, Linear, Logarithmic, Polynomial (degree 2 or higher), Power, Moving Average

Fitting a Regression Line Enter the data. Plot as an x-y Graph. Do not connect the data points. Right-click on a data point (data set is active), then choose ADD TRENDLINE. OR, if the graph is active, click on Layout tab and select ADD TRENDLNE from the ANALYSIS group. Specify the type of curve and any other options. Usually is good to select the equation of the curve and the associated curve fit error known as r2 value. Can force the curve through a specific value and can extrapolate forward or backward. Does NOT provide the SSE (sum of square of errors)

Regression Analysis Enter the data. Select Data Analysis/Regression for the Analysis group in the Ribbon Data tab. Choose the type of trendline to use. Look at the r2 and the SS (want r2 near 1, SS near 0). Fix up the graph. Input the data point(s) that you wish to find data for using the regression equation.

How Do I Choose Which Regression FN to Use? NO SIMPLE ANSWER. Choose based upon underlying theory. Try to plot as a straight line. Look at graph and BOTH the SSE and r2 value. Try different types of curves. Try using different scales such as x vs 1/y or 1/x vs y based upon some knowledge of the process being studied. Try scaling the data so the magnitude of the x values is about the same as the magnitude of the y values.

Regression Analysis Do Problems 7.8 and 7.13 for CW. Homework for Chapter 7 is: 7.2, 7.9, 7.22, 7.23