ME 392 Chapter 6 Data Processing ME 392 Chapter 6 Data Processing March 12, 2012 week 9 Joseph Vignola.

Slides:



Advertisements
Similar presentations
Sensors and Actuators Chapter 4 ME 392 Sensors and Actuators Chapter 4 ME 392 February 13, 2012 week 5 Joseph Vignola.
Advertisements

1 Chapter 13 Curve Fitting and Correlation This chapter will be concerned primarily with two separate but closely interrelated processes: (1) the fitting.
1 Eng. Mohamed El-Taher Eng. Ahmed Ibrahim. 2 1.FUNCTION SUMMARY polyfun  Polynomial functions are located in the MATLAB polyfun directory. For a complete.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Chapter 15 Above: GPS time series from southern California after removing several curve fits to the data.
Experiment 8 * Op Amp Circuits Review * Voltage Followers and Adders
Sampling Chapter 2 ME 392 Sampling Chapter 2 ME January 2012 week 4 Joseph Vignola.
© NMISA 2010 Implementing a Shock Calibration System Using a Vibration Exciter and Pendulum Presented by Ian Veldman.
EGR 105 Foundations of Engineering I
Excel Part III Curve-Fitting, Regression Section 8 Fall 2013 EGR 105 Foundations of Engineering I.
Propagation of Error Ch En 475 Unit Operations. Quantifying variables (i.e. answering a question with a number) 1. Directly measure the variable. - referred.
ME 392 Chapter 5 Spin Balancing ME 392 Chapter 5 Spin Balancing February 21, 2012 week 7 part 2 Joseph Vignola.
Physics 1.2.
CITS2401 Computer Analysis & Visualisation
Storey: Electrical & Electronic Systems © Pearson Education Limited 2004 OHT 5.1 Signals and Data Transmission  Introduction  Analogue Signals  Digital.
Basic Measurement Concepts ISAT 253 Spring Dr. Ken Lewis Mod. 2 Measurement Concepts So far… In the Design of Experiments In the Design of Experiments.
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
GG313 Lecture 3 8/30/05 Identifying trends, error analysis Significant digits.
CHAPTER 6 Statistical Analysis of Experimental Data
Physics 2215 Minilab 5: Simple Pendulum Simple Pendulum Purpose Gain experience in analyzing relationships between variables by graphical methods.
Rates of Change Rectilinear Motion Lesson 3.4 Rate of Change Consider the linear function y = m x + b rate at which y is changing with respect to x is.
V. Rouillard  Introduction to measurement and statistical analysis ASSESSING EXPERIMENTAL DATA : ERRORS Remember: no measurement is perfect – errors.
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.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
ME 392 Chapter 8 Modal Analysis & Some Other Stuff April 2, 2012 week 12 Joseph Vignola.
Graphs. The results of an experiment are often used to plot a graph. A graph can be used to verify the relation between two variables and, at the same.
ME 392 Chapter 7 Single Degree of Freedom Oscillator ME 392 Chapter 7 Single Degree of Freedom Oscillator March 26, 2012 week 11 Joseph Vignola.
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,
ECE 590 Microwave Transmission for Telecommunications Noise and Distortion in Microwave Systems March 18, 25, 2004.
Time Series Analysis of Elephant Acoustic and Seismic Signals Alex Williamson Physics Dept.
The Simple Pendulum. Recall from lecture that a pendulum will execute simple harmonic motion for small amplitude vibrations. Recall from lecture that.
Linear Kinematics : Velocity & Acceleration. Speed Displacement - the change in position in a particular direction and is always a straight line segment.
Part 1: Basic Principle of Measurements
Biostatistics Lecture 17 6/15 & 6/16/2015. Chapter 17 – Correlation & Regression Correlation (Pearson’s correlation coefficient) Linear Regression Multiple.
Curve Fitting and Regression EEE 244. Descriptive Statistics in MATLAB MATLAB has several built-in commands to compute and display descriptive statistics.
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.
Unit 1, Chapter 2 Integrated Science. Unit One: Forces and Motion 2.1 Using a Scientific Model to Predict Speed 2.2 Position and Time 2.3 Acceleration.
1.1 example these are prices for Internet service packages find the mean, median and mode determine what type of data this is create a suitable frequency.
Lecture I Sensors.
Pearson Prentice Hall Physical Science: Concepts in Action
Chapter 11 Page Motion.
CHAPTER curve fitting with linear functions.
Module 1: Measurements & Error Analysis Measurement usually takes one of the following forms especially in industries: Physical dimension of an object.
Physics 1B03summer - Lecture 7 HOMEWORK QUESTION Please do this question and hand it by Tuesday after the reading week, in class: A 50kg child slides down.
Electronics The sixteenth and seventeenth Lectures Thirteenth week 3 -6/ 2/ 1437 هـ أ / سمر السلمي.
College Algebra & Trigonometry
Digital to Analog Converter (DAC)
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Velocity.   Speed describes the rate of motion of an object. It is a scalar quantity (magnitude only)  Velocity describes the rate of motion AND the.
Jill Luckey Beaufort Academy. What do you already know? In Math classes, you have learned how to make graphs. You have also learned that the SLOPE of.
Motion Notes. Key Terms 1)Motion: 2)Reference point: The state in which one object’s distance from another is changing. A place or object used for comparison.
Curve Fitting the Calibration Data of a Thermistor Voltage Divider Portland State University Department of Mechanical Engineering ME 121: Engineering Problem.
EE 495 Modern Navigation Systems
170 Interpreting Graphs 169 2/10/2016 Starter: What is the difference between speed and velocity? Application Notes Glue here when done Connection : Complete.
ELEC 413 Linear Least Squares. Regression Analysis The study and measure of the statistical relationship that exists between two or more variables Two.
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.
SUR-2250 Error Theory.
MECH 373 Instrumentation and Measurement
EEE 244-7: Curve Fitting.
Salinity Calibration fit with MATLAB
OPSE 301: Lab13 Data Analysis – Fitting Data to Arbitrary Functions
Uncertainty (error) in praticals
Foundations of Physical Science
Lecture 10 2D plotting & curve fitting
Comparing and Contrasting Functions
Chapter 1 Motion.
Measurements & Error Analysis
Presentation transcript:

ME 392 Chapter 6 Data Processing ME 392 Chapter 6 Data Processing March 12, 2012 week 9 Joseph Vignola

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity)

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in.

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want for the accelerates

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want for the accelerates for the speaker

Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want for the accelerates for the speaker

Experimental Error The error can be broke down into two categories

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise)

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run.

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration 2)Non-linearity

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration 2)Non-linearity 3)Digitizer noise (bit noise)

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration 2)Non-linearity 3)Digitizer noise (bit noise) 4)Saturating the digitizer (hitting the rail)

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise)

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment.

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error 1)Electronic noise

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error 1)Electronic noise 2)You lab partner

Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error 1)Electronic noise 2)You lab partner 3)Environmental effect (room temperature, humidity…)

Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error

Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity)

Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) And we make the measurement many times

Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) And we make the measurement many times

Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error For this plot we can think of this as finding the “best” horizontal line that represents the data

Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error For this plot we can think of this as finding the “best” horizontal line that represents the data But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

Curve Fitting If we have reason to expect that the data will follow some functional form But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

Curve Fitting If we have reason to expect that the data will follow some functional form But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

Curve Fitting If we have reason to expect that the data will follow some functional form But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Horizontal line (average)

Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Sloping line (linear fit)

Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a

Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Any polynomial (linear fit)

Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Maybe a parabola

Ultimately we would like to make a plot where we can compare data to some predictive model

Using “polyfit.m” for Curve Fitting So in Matlab we can make these fits by first reading in the data infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t);

Using “polyfit.m” for Curve Fitting … using “polyfit.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,1); % p is a vector of the coefficients of the polynomial The first two inputs are your x – y data pair The third input is the order of the fit, 1 for a straight line

Using “polyfit.m” for Curve Fitting … using “polyfit.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial The first two inputs are your x – y data pair The third input is the order of the fit, 2 for a parabola

Using “polyfit.m” for Curve Fitting … using “polyfit.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,6); % p is a vector of the coefficients of the polynomial The first two inputs are your x – y data pair The third input is the order of the fit, 6 for a …

Using “polyfit.m” for Curve Fitting..and then evaluate the polynomial using “polyval.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial [y_fit] = polyval(p,t);% polyval evaluates the polynomial

Using “polyfit.m” for Curve Fitting …and plotting as we have earlier. infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial [y_fit] = polyval(p,t);% polyval evaluates the polynomial zf(5) = figure(5);clf za(1) = axes; zp = plot(t,height,'o’,t,y_fit);grid xlabel('time (months)’) ylabel('childs height (in)’) ss0 = ['data']; ss1 = ['fit = ' num2str(p2(1)) 'x^2 + ' num2str(p2(2)) 'x +' num2str(p2(3))]; zl = legend(ss0,ss1);

Using “polyfit.m” for Curve Fitting infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial [y_fit] = polyval(p,t);% polyval evaluates the polynomial zf(5) = figure(5);clf za(1) = axes; zp = plot(t,height,'o’,t,y_fit);grid xlabel('time (months)’) ylabel('childs height (in)’) ss0 = ['data']; ss1 = ['fit = ' num2str(p2(1)) 'x^2 + ' num2str(p2(2)) 'x +' num2str(p2(3))]; zl = legend(ss0,ss1);

Today’s Assignment There are notes on the web page for fitting to a function of your choosing

Today's Assignment The current assignment is to put an accelerometer on the tip of the shaker and shake it

Today's Assignment The current assignment is to put an accelerometer on the tip of the shaker and shake it At something like 10 amplitudes

Today's Assignment The current assignment is to put an accelerometer on the tip of the shaker and shake it At something like 10 amplitudes And something like 3 frequencies maybe 10Hz, 100Hz, 1kHz

Today's Assignment Then for each frequencies

Today's Assignment Then for each frequencies Determine the displacement amplitude per input voltage to the shaker using a linear curve fit.

Today's Assignment Then for each frequencies Determine the displacement amplitude per input voltage to the shaker using a linear curve fit. You will need the amplifier gain for this.

Today's Assignment Then for each frequencies Determine the displacement amplitude per input voltage to the shaker using a linear curve fit. You will need the amplifier gain for this. Please measure it with something like a 0.1 V sinusoid at about 500Hz.

Non-Linearity There is one other thing I would like you to look at that is not on the assignment sheet Non-linearity Both the amplifier and the shaker will start producing harmonic responses when the their inputs exceed some level