Error Analysis, Statistics, Graphing and Excel Necessary skills for Chem V01BL.

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

Lesson 10: Linear Regression and Correlation
Kin 304 Regression Linear Regression Least Sum of Squares
Welcome to PHYS 225a Lab Introduction, class rules, error analysis Julia Velkovska.
Chapter 7 Statistical Data Treatment and Evaluation
Inference for Regression
Accuracy and Precision. Accuracy O refers to how close a measured or calculated value is to the correct or accepted value of the quantity measured O the.
Regression Analysis Simple Regression. y = mx + b y = a + bx.
Regression Analysis Once a linear relationship is defined, the independent variable can be used to forecast the dependent variable. Y ^ = bo + bX bo is.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
Regression Analysis Using Excel. Econometrics Econometrics is simply the statistical analysis of economic phenomena Here, we just summarize some of the.
Regression Regression: Mathematical method for determining the best equation that reproduces a data set Linear Regression: Regression method applied with.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
Experimental Uncertainties: A Practical Guide What you should already know well What you need to know, and use, in this lab More details available in handout.
Lecture 4: Correlation and Regression Laura McAvinue School of Psychology Trinity College Dublin.
Chapter Topics Types of Regression Models
Simple Linear Regression Analysis
Example: Cows Milk Benefits –Strong Bones –Strong Muscles –Calcium Uptake –Vitamin D Have you ever seen any statistics on cow’s milk? What evidence do.
Statistical Treatment of Data Significant Figures : number of digits know with certainty + the first in doubt. Rounding off: use the same number of significant.
1 Simple Linear Regression 1. review of least squares procedure 2. inference for least squares lines.
Relationships Among Variables
SIMPLE LINEAR REGRESSION
1 c. The t Test with Multiple Samples Till now we have considered replicate measurements of the same sample. When multiple samples are present, an average.
Inference for regression - Simple linear regression
IB Chemistry Chapter 11, Measurement & Data Processing Mr. Pruett
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.
Correlation and Regression
1 Least squares procedure Inference for least squares lines Simple Linear Regression.
Error Analysis, Statistics, Graphing and Excel Necessary skills for Chem V01BL.
Ch4 Describing Relationships Between Variables. Pressure.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Linear Regression Handbook Chapter. Experimental Testing Data are collected, in scientific experiments, to test the relationship between various measurable.
Uncertainty & Error “Science is what we have learned about how to keep from fooling ourselves.” ― Richard P. FeynmanRichard P. Feynman.
Lecture 8 Simple Linear Regression (cont.). Section Objectives: Statistical model for linear regression Data for simple linear regression Estimation.
Chapter 4 Linear Regression 1. Introduction Managerial decisions are often based on the relationship between two or more variables. For example, after.
Lesson Multiple Regression Models. Objectives Obtain the correlation matrix Use technology to find a multiple regression equation Interpret the.
10B11PD311 Economics REGRESSION ANALYSIS. 10B11PD311 Economics Regression Techniques and Demand Estimation Some important questions before a firm are.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
CHEMISTRY ANALYTICAL CHEMISTRY Fall Lecture 6.
Regression Analysis Deterministic model No chance of an error in calculating y for a given x Probabilistic model chance of an error First order linear.
V. Rouillard  Introduction to measurement and statistical analysis CURVE FITTING In graphical form, drawing a line (curve) of best fit through.
Quantitative Methods. Bivariate Regression (OLS) We’ll start with OLS regression. Stands for  Ordinary Least Squares Regression. Relatively basic multivariate.
PreCalculus 1-7 Linear Models. Our goal is to create a scatter plot to look for a mathematical correlation to this data.
Week 2 Normal Distributions, Scatter Plots, Regression and Random.
Bivariate Regression. Bivariate Regression analyzes the relationship between two variables. Bivariate Regression analyzes the relationship between two.
Chapter 13 Linear Regression and Correlation. Our Objectives  Draw a scatter diagram.  Understand and interpret the terms dependent and independent.
Regression and Correlation of Data Summary
CHAPTER 3 Describing Relationships
Correlation & Regression
Have you got your workbook with you
AP Statistics Chapter 14 Section 1.
Kin 304 Regression Linear Regression Least Sum of Squares
Inference for Regression
Introduction, class rules, error analysis Julia Velkovska
BPK 304W Regression Linear Regression Least Sum of Squares
POSC 202A: Lecture Lecture: Substantive Significance, Relationship between Variables 1.
BPK 304W Correlation.
CHAPTER 29: Multiple Regression*
CHAPTER 26: Inference for Regression
Comparing k Populations
Statistical Inference about Regression
BA 275 Quantitative Business Methods
Chapter 14 Inference for Regression
Correlation and Regression
Simple Linear Regression and Correlation
SIMPLE LINEAR REGRESSION
Error Analysis, Statistics, Graphing and Excel
Multivariate Analysis Regression
Chapter 14 Inference for Regression
Presentation transcript:

Error Analysis, Statistics, Graphing and Excel Necessary skills for Chem V01BL

Accuracy and Precision In a quantitative experiment we need to report how accurate and how precise our results are – Accuracy – is how close our value is to a reference (accepted value) - it is normally reported as the % error and measures systematic error – Precision – how repeatable is our result from trial to trial? It is reported in terms of the standard deviation this is a measure of random error

Accuracy and Precision Accurate but not precise Random error > systematic error Precise but not accurate Systematic error > random error

Error Analysis Percent Error (How accurate?) Good way to determine how good your experimental design/technique is, is by calculating the percent error Requires you measure some observable for which there is an accepted “true” value Accuracy: the % error measures closeness of agreement between a measured and true value. Accuracy is a measure of systematic errors (biases)

Error Analysis Mean Value In experiments random errors exist. When measuring some observable to assess these random errors we repeat measurements in independent trials We report the mean value We generally then report the % error for the mean value % error measures systematic error

Error Analysis Standard Deviation (Precision) It is important to measure how large the random errors are in an experiment We measure this using the standard deviation σ This normally requires at least 6 independent trials Can be evaluated for a column of data in Excel with the =STDEV(A1:A10) type syntax σ is a measure of precision. The smaller σ is, the more precise the measurement was.

Error Analysis Standard Deviation Continued In particle physics they use the standard of 5σ for the declaration of a discovery At this level there is only a chance of 1 in 2,000,000 that the value was arrived at was a random fluctuation about the true value

Error Analysis Standard Deviation Continued

Error Analysis Rejecting Outliers: Q Test In our experiments we often won’t have enough time to take at least 6 independent trials The Q test is a way of deciding if any given trial is an outlier The Q test tells us with 90%, 95% or 99% confidence that a trial point is in error and can be thrown out If so the average and standard deviation can be recalculated without that point

Error Analysis Q Test If Q > Q x% then the point is rejected at the x% confidence level N: Q 90% : Q 95% : Q 99% :

Error Analysis Q Test With the data as it stands the average is 0.255±0.057 Q 90% = 0.642, Q 95% = 0.710, and Q 99% = If Q > Q x% then the point is rejected at the x% confidence level Here Q = 0.8 which means it can be rejected at both the 90% and 95% level but not at the 99% level If we reject it the average becomes 0.230±0.031 Nxd^2xgapQ E av0.2546sum d^ range0.135 σ0.0565

Graphing and Excel Graphing is a widely used technique for determining mathematical relationships (correlations) between a dependent and independent variable To determine if two variables are correlated can be measured by calculating the coefficient of determination R 2 Here y(x i ) is the value of the independent value for the dependent value and f(x i ) is the function attempting model y=f(x i ) As we shall see if R 2 >0.99 data fits the model We will routinely use Excel to plot two variables which are linearly correlated and use Excel to determine the equation for the line The slope of that line, and the intercept will both correspond to scientific observables that are of considerable value to us

Graphing and Excel Correlated data: ideal gas law Find the relationship between the volume of 1 mole of O 2 and its temperature at 1 atmosphere The equation for the straight line where y = V and x = T gives The R 2 =1 means there is a perfect linear correlation between T and V V(L)T( o C)

Graphing and Excel Correlated data: ideal gas law Find the relationship between the volume of 1 mole of O 2 and its Pressure at 273K. P is the independent variable (x) and Volume the dependent variable (y) P(torr)V(mL) Black line is a linear trendline y = mx + b Orange line is a power trendline y = mx b

Graphing and Excel Correlated data: ideal gas law Find the relationship between the volume of 1 mole of O 2 and its Pressure at 273K. P is the independent variable (x) and Volume the dependent variable (y) When we plot P vs 1/V R 2 = , when we plot P vs V R 2 = So P(torr)1/V(mL)

Graphing and Excel Uncorrelated data House value versus Street Address

Graphing and Excel Often data from a trendline fit is used to obtain certain observables. With any experimentally measured quantity we need to estimate the random error In kinetics σ Ea and σ ln(A) are needed! can be calculated with LINEST function in Excel

Summary using LINEST In a free cell type =LINEST(Y Values,X Values,TRUE,TRUE) enter Select 2 columns x 5 rows with the cell which you types LINEST in being the top left In the formula window hit Command Enter on a mac In the formula window hit Control Shift Enter on windows Slope intercept σ slope σ intercept R 2 s(y) s(y) error bar in y F degrees freedom (terms calculating R) σ reg σ residual (terms calculating R)

Tonight Answer the problem set on pages Each student must individually make a graphs of V vs T, V vs P, 1/V vs P. Each graph curve should be fitted using a linear trendline where the equation and R 2 value is shown. Use the graphing procedure given on page 9 For question 4 calculate the standard deviations for the slope and the intercept and attempt to put error bars using dy