ENME 392 Regression Theory

Slides:



Advertisements
Similar presentations
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
Chapter 10 Curve Fitting and Regression Analysis
Ch11 Curve Fitting Dr. Deshi Ye
Least Square Regression
Least Square Regression
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 CURVE.
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Relationships Among Variables
Linear Regression Analysis
Least-Squares Regression
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
Chapter 14 – Correlation and Simple Regression Math 22 Introductory Statistics.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 12-1 Correlation and Regression.
Applied Quantitative Analysis and Practices LECTURE#22 By Dr. Osman Sadiq Paracha.
Curve-Fitting Regression
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Chapter 6 Simple Regression Introduction Fundamental questions – Is there a relationship between two random variables and how strong is it? – Can.
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.
Correlation – Recap Correlation provides an estimate of how well change in ‘ x ’ causes change in ‘ y ’. The relationship has a magnitude (the r value)
Basic Statistics Linear Regression. X Y Simple Linear Regression.
Correlation & Regression Analysis
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 18 Introduction to Simple Linear Regression (Data)Data.
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression.
CSE 5331/7331 F'07© Prentice Hall1 CSE 5331/7331 Fall 2007 Regression Margaret H. Dunham Department of Computer Science and Engineering Southern Methodist.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
BUSINESS MATHEMATICS & STATISTICS. Module 6 Correlation ( Lecture 28-29) Line Fitting ( Lectures 30-31) Time Series and Exponential Smoothing ( Lectures.
Introduction Many problems in Engineering, Management, Health Sciences and other Sciences involve exploring the relationships between two or more variables.
The simple linear regression model and parameter estimation
Department of Mathematics
Chapter 4: Basic Estimation Techniques
Linear Regression.
Chapter 4 Basic Estimation Techniques
Chapter 7. Classification and Prediction
Regression Analysis AGEC 784.
11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Part 5 - Chapter
Part 5 - Chapter 17.
Basic Estimation Techniques
The Simple Linear Regression Model: Specification and Estimation
Ch12.1 Simple Linear Regression
Understanding Standards Event Higher Statistics Award
Simple Linear Regression
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Section 11.1: Least squares estimation CIS Computational.
Basic Estimation Techniques
I271B Quantitative Methods
Correlation and Regression
Part 5 - Chapter 17.
6-1 Introduction To Empirical Models
Linear regression Fitting a straight line to observations.
Undergraduated Econometrics
BA 275 Quantitative Business Methods
STEM Fair Graphs.
The Least-Squares Line Introduction
Residuals and Residual Plots
Correlation and Regression
Least Square Regression
Product moment correlation
11C Line of Best Fit By Eye, 11D Linear Regression
Chapter 14 Inference for Regression
Ch 4.1 & 4.2 Two dimensions concept
REGRESSION ANALYSIS 11/28/2019.
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

ENME 392 Regression Theory Regression Analysis Regression analysis is an approach to develop a mathematical function from the experimental data in which uses a rigorous procedure that controls prediction errors. Not just “curve fitting” Guided by physics ENME 392 Regression Theory

ENME 392 Regression Theory Physical modeling – when you do not know the exact relationship, you can use Regression Analysis to identify the important factors AND using your understanding help identify the appropriate relationship. Remember from the previous lecture the possible relationships: Linear regression (Single independent variable) Nonlinear regression Multiple regression (Many independent variables) Polynomial regression ENME 392 Regression Theory

Regression Physical Example In extrusion, fill length as a function of throughput is important. Suppose Dr. Bigio conducts some experiments and he wants to figure out what is the relation between the two variables. Why? This model would help in defining a simple to use relationship between the variables. Could be used in a controls algorithm ENME 392 Regression Theory

ENME 392 Regression Theory Sample data ENME 392 Regression Theory

ENME 392 Regression Theory Data Plot ENME 392 Regression Theory

ENME 392 Regression Theory Method of Least Squares Principle: Minimize [ - Yi]2 Assume = a+bXi (linear relationship) Minimize [Yi-(a+bXi)]2 ENME 392 Regression Theory

ENME 392 Regression Theory Linear regression ENME 392 Regression Theory

ENME 392 Regression Theory Linear regression Minimizing w.r.t. “a” (1) Minimizing w.r.t. “b” (2) ENME 392 Regression Theory

ENME 392 Regression Theory Linear regression Solving (1) and (2) we get: ENME 392 Regression Theory

Linear regression line This is a linear regression line, with Y linearly dependent on X ENME 392 Regression Theory

ENME 392 Regression Theory

ENME 392 Regression Theory Regression Line The regression line from the output comes out as: ENME 392 Regression Theory

ENME 392 Regression Theory Interpretations What do you observe from the results: R-squared value – Nature of the residuals Is the result physically possible NO! you cannot have a negative fill length. Can you use the model? YES!! It could be fine for a controls algorithm, as long as the range of the specific throughput is limited!! ENME 392 Regression Theory

Standard Error -Single Variable Estimates the error between the predicted values of Y and the actual values From the output the value of = 7.29 ENME 392 Regression Theory

Correlation Coefficient Correlation Coefficient ( r ) Estimates the strength of the linear relationship between X and Y. Varies between -1 and 1 The closer “r” is in absolute value to 1, the greater the degree of correlation ENME 392 Regression Theory

Correlation Coefficient Mathematical expression where, From the output r = 0.948 ENME 392 Regression Theory

ENME 392 Regression Theory Nonlinear regression Suppose one assumed a nonlinear relationship between Y and X. Would there be a better fit in that case? ENME 392 Regression Theory

ENME 392 Regression Theory Non linear regression ENME 392 Regression Theory

ENME 392 Regression Theory Nonlinear regression Let us assume: Taking a natural log on both sides: This is now a linear relationship between lnY and X ENME 392 Regression Theory

ENME 392 Regression Theory Nonlinear regression In this case, ENME 392 Regression Theory

ENME 392 Regression Theory Nonlinear regression ENME 392 Regression Theory

ENME 392 Regression Theory

ENME 392 Regression Theory Nonlinear regression From the output data, the regression equation comes out to be: This implies ENME 392 Regression Theory

ENME 392 Regression Theory Nonlinear regression In this case, r=.9899 and Standard error = 0.05 This clearly shows that for the given set of values nonlinear regression achieved a better fit ENME 392 Regression Theory

What happens when Y is dependent on more than one variable? Multiple regression What happens when Y is dependent on more than one variable? ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Suppose gasoline mileage (Y) is dependent on two variables: Fuel Octane rating (X1) Average Speed (X2) How can one establish a regression equation relating Y with X1, X2 given the values of Y, X1 and X2 for some experiments? ENME 392 Regression Theory

ENME 392 Regression Theory Sample data ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Let = a + b1X1+b2X2 Using Method of Least Squares, one gets: ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Minimizing (1) w.r.t. a, b1, b2 (b) (c) ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Solving the three equations, one can get the values of a, b1 and b2 Multiple Linear Regression Equation: ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression In our example, a = -63.535 b1 = 1.1789 b2= -.24743 This implies: ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Standard error: Similar to single variable linear regression, one can have standard error in multiple variables ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression In our example: This summarizes the degree to which points are scattered around the regression plane. ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Advantages rYX1=.74, rYX2=.081 and rX1X2=.53 There is poor correlation between Y and X2, and at the same time a good correlation between X1 and X2 This shows that the effect of X2 on Y is camouflaged by its interaction with X1 ENME 392 Regression Theory

ENME 392 Regression Theory

ENME 392 Regression Theory Multiple regression Advantages (contd.) Thus, it would be a mistake not to include the effect of X2 on Y just on the fact that its correlation coefficient is low. ENME 392 Regression Theory

Polynomial regression ENME 392 Regression Theory

Polynomial regression Suppose one had to develop a regression equation for the stress strain curve. It is difficult to apply any nonlinear transformation. What can one do in this case? ENME 392 Regression Theory

Polynomial regression Assume In other words, incorporate higher powers of X to obtain a better fit ENME 392 Regression Theory

Polynomial regression Data for the stress strain curve ENME 392 Regression Theory

Polynomial regression ENME 392 Regression Theory

ENME 392 Regression Theory

Polynomial regression Regression Equation Correlation Coefficient ( r ) = .922 ENME 392 Regression Theory

ENME 392 Regression Theory Wrap Up Regression Linear (single variable) Non linear Multiple Polynomial Correlation coefficient Standard error ENME 392 Regression Theory