Introduction  Today we are looking at how to interpret experimental data  Normally, data is acquired with random errors  How do we take the data and.

Slides:



Advertisements
Similar presentations
1 Chapter 13 Curve Fitting and Correlation This chapter will be concerned primarily with two separate but closely interrelated processes: (1) the fitting.
Advertisements

Correlation and regression
12 Multiple Linear Regression CHAPTER OUTLINE
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
EGR 105 Foundations of Engineering I
CITS2401 Computer Analysis & Visualisation
Part 4 Chapter 13 Linear Regression
Lecture 12 Projection and Least Square Approximation Shang-Hua Teng.
Lecture 12 Least Square Approximation Shang-Hua Teng.
1 Curve-Fitting Regression – Examples. 2 Example 1 x y Using least-square regression Fit a line to the data Fit a parabola to the data.
© Copyright 2000, Julia Hartman 1 An Interactive Tutorial for SPSS 10.0 for Windows © by Julia Hartman Creating Scatterplots Next.
Fitting a Function to Data Adapted from Walch Education.
Numerical Operations S. Awad, Ph.D. M. Corless, M.S.E.E. E.C.E. Department University of Michigan-Dearborn Introduction to Matlab: Polynomial Manipulations.
Physics 114: Lecture 17 Least Squares Fit to Polynomial
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 11 Regression.
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
Introduction to MATLAB for Engineers, Third Edition Chapter 6 Model Building and Regression PowerPoint to accompany Copyright © The McGraw-Hill Companies,
Curve Fitting and Interpolation: Lecture (I)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
Fitting Exponentials and Polynomials to Data Lesson 11.7.
Recap Summary of Chapter 6 Interpolation Linear Interpolation.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Biostatistics Lecture 17 6/15 & 6/16/2015. Chapter 17 – Correlation & Regression Correlation (Pearson’s correlation coefficient) Linear Regression Multiple.
Advanced Topics- Polynomials
MATLAB for Engineers 4E, by Holly Moore. © 2014 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. This material is protected by Copyright.
ES 240: Scientific and Engineering Computation. Chapter 13: Linear Regression 13. 1: Statistical Review Uchechukwu Ofoegbu Temple University.
Regression. Population Covariance and Correlation.
Lecture 10 2D plotting & curve fitting Subplots Other 2-D Plots Other 2-D Plots Curve fitting © 2007 Daniel Valentine. All rights reserved. Published by.
Recap Sum and Product Functions Matrix Size Function Variance and Standard Deviation Random Numbers Complex Numbers.
Graphical Analysis in Excel EGN 1006 – Introduction to Engineering.
11/20/2015ENGR 111A - Fall MatLab – Palm Chapter 5 Curve Fitting Class 14.1 Palm Chapter:
Example 13.2 Quarterly Sales of Johnson & Johnson Regression-Based Trend Models.
Microsoft Excel: Line of Best Fit Tim Courtney Aileen Richards Joshua Tunzi Dewey Ward.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
1-d Arrays & Plotting.
Recap Cubic Spline Interpolation Multidimensional Interpolation Curve Fitting Linear Regression Polynomial Regression The Polyval Function The Interactive.
Polynomials, Curve Fitting and Interpolation. In this chapter will study Polynomials – functions of a special form that arise often in science and engineering.
^ y = a + bx Stats Chapter 5 - Least Squares Regression
Math 4030 – 11b Method of Least Squares. Model: Dependent (response) Variable Independent (control) Variable Random Error Objectives: Find (estimated)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
1 Lecture 5 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
ABE425 Engineering Measurement Systems Ordinary Least Squares (OLS) Fitting Dr. Tony E. Grift Dept. of Agricultural & Biological Engineering University.
We are tracking the position of an object as it is launched with an initial speed of 40m/s at an angle of 45 o. The system we are using to track the object.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Chapters 8 Linear Regression. Correlation and Regression Correlation = linear relationship between two variables. Summarize relationship with line. Called.
1 Lecture 8 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
MATLAB ® for Engineers, Holly Moore Fourth Edition, Global Edition © Pearson Education Limited 2015 All rights reserved. Figure 13.1 Interpolation between.
M ATLAB – What Is It ? Name is from matrix laboratory Powerful tool for – Computation and visualization of engineering and science mathematics – Communication.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Applied Numerical Methods With MATLAB ® for Engineers.
Date of download: 9/18/2016 Copyright © ASME. All rights reserved. From: Effect of Calibration Method on Tekscan Sensor Accuracy J Biomech Eng. 2008;131(3):
Lecture 29: Modeling Data. Data Modeling Interpolate between data points, using either linear or cubic spline models Model a set of data points as a polynomial.
Matlab Training Session 11: Nonlinear Curve Fitting
Introduction to Programming for Mechanical Engineers
Fitting Equations to Data
Part 5 - Chapter 17.
EEE 244-7: Curve Fitting.
Salinity Calibration fit with MATLAB
Physics 114: Lecture 14 Linear Fitting
ECE 1304 Introduction to Electrical and Computer Engineering
The Simple Linear Regression Model: Specification and Estimation
Lecture 10 2D plotting & curve fitting
Part 5 - Chapter 17.
Chapter 3 Section 3.
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
Least Squares Fitting A mathematical procedure for finding the best-fitting curve to a given set of points by minimizing the sum of the squares of the.
Physics 114: Lecture 14-a Linear Fitting Using Matlab
Residuals and Residual Plots
Nonlinear Fitting.
Curve Fitting in Matlab
Presentation transcript:

Introduction  Today we are looking at how to interpret experimental data  Normally, data is acquired with random errors  How do we take the data and determine a model that explains the experiment?

Warm-Up Problem How far is the point from the line in the y- direction?

Curve Fitting (regression)  Engineers often have to fit imperfect data to models of how a system behaves  Material tests  Circuit output  Wind tunnel tests  There are always errors in experimental data  Imperfect models  Imperfect sensors  We need to find the “best fit” of the model to the data  Minimize the cumulative error in the measurements

Curve Fitting (regression)  MATLAB has tools to fit lines and curves to data  In Class example:  Download “Curve Fitting Data” from the course webpage  In MATLAB, load curve_fit  plot(x,y)  We need to fit a curve to this data In the figure window, go to the “tools” menu and select “Basic Fitting” Select “linear” This line is chosen to fit the data in a way that minimizes the difference between the measurements and the curve Check the “show equations” box Check the “plot residuals” box Check the “show norms of residuals” box Now select higher order curves to fit to the data Are these solutions better? Why?

Curve Fitting (regression)  We can also use the MATLAB command “polyfit” to do the same job in the command window  The result is the polynomial vector  Try polyfit(x,y,2) to give a quadratic curve fit

Concept Questions  What are 2 sources of errors in experimental data?  In what sense is a curve the “best fit” of the data?  If you want to fit a line to a set of 2 data points, what will the resulting error between the model and the data points be?

Group Problem  You are a part of a firm designing nanoscale speedometers to measure speeds of asmall moving creatures like centipedes. To test your sensor, you gather a centipede and you measure the follwing data, in MATLAB notation:  T = [ ]; %time (sec)  S = [ ]; %position (mm)  Use the data to create a graph and a mathematical model  Use polyfit to fit a line to the data  Use polyval to calculate points on the line over a range of T = 0 to 120  Plot the line fit as a line and the data as indivdual points on the same plot  Add appropriate labels and a title to the plot  Add a legend to the plot

For Next Time  Read Chapter 11 in the Gilat book (prepare for a quiz on the reading)