Method of Least Squares

Slides:



Advertisements
Similar presentations
Kin 304 Regression Linear Regression Least Sum of Squares
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Chapter 7 Statistical Data Treatment and Evaluation
Errors in Chemical Analyses: Assessing the Quality of Results
CHEMISTRY ANALYTICAL CHEMISTRY Fall
Learning Objectives Copyright © 2004 John Wiley & Sons, Inc. Bivariate Correlation and Regression CHAPTER Thirteen.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Simple Linear Regression. G. Baker, Department of Statistics University of South Carolina; Slide 2 Relationship Between Two Quantitative Variables If.
Chapter 10 Curve Fitting and Regression Analysis
Learning Objectives 1 Copyright © 2002 South-Western/Thomson Learning Data Analysis: Bivariate Correlation and Regression CHAPTER sixteen.
Design of Experiments and Data Analysis. Let’s Work an Example Data obtained from MS Thesis Studied the “bioavailability” of metals in sediment cores.
Objectives (BPS chapter 24)
ANALYTICAL CHEMISTRY ERT 207
Chapter 10 Simple Regression.
Chapter 13 Introduction to Linear Regression and Correlation Analysis
Chapter Topics Types of Regression Models
1 Simple Linear Regression Chapter Introduction In this chapter we examine the relationship among interval variables via a mathematical equation.
Data Handling l Classification of Errors v Systematic v Random.
Regression Chapter 10 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
SIMPLE LINEAR REGRESSION
Chapter 14 Introduction to Linear Regression and Correlation Analysis
Correlation and Regression Analysis
Lorelei Howard and Nick Wright MfD 2008
Analytical Chemistry Definition: the science of extraction, identification, and quantitation of an unknown sample. Example Applications: Human Genome Project.
Simple Linear Regression. Introduction In Chapters 17 to 19, we examine the relationship between interval variables via a mathematical equation. The motivation.
CALIBRATION METHODS.
Chemometrics Method comparison
Correlation and Regression
Hydrologic Statistics
SIMPLE LINEAR REGRESSION
Introduction to Linear Regression and Correlation Analysis
Chapter 11 Simple Regression
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
Version 2012 Updated on Copyright © All rights reserved Dong-Sun Lee, Prof., Ph.D. Chemistry, Seoul Women’s University Chapter 5 Errors in Chemical.
12a - 1 © 2000 Prentice-Hall, Inc. Statistics Multiple Regression and Model Building Chapter 12 part I.
Basic Probability (Chapter 2, W.J.Decoursey, 2003) Objectives: -Define probability and its relationship to relative frequency of an event. -Learn the basic.
Introduction to Linear Regression
Chap 12-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 12 Introduction to Linear.
Chapter 5 Errors In Chemical Analyses Mean, arithmetic mean, and average (x) are synonyms for the quantity obtained by dividing the sum of replicate measurements.
Applications of Regression to Water Quality Analysis Unite 5: Module 18, Lecture 1.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
ANALYTICAL PROPERTIES PART III ERT 207 ANALYTICAL CHEMISTRY SEMESTER 1, ACADEMIC SESSION 2015/16.
CALIBRATION METHODS. For many analytical techniques, we need to evaluate the response of the unknown sample against the responses of a set of standards.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
CHEMISTRY ANALYTICAL CHEMISTRY Fall Lecture 6.
LECTURE 3: ANALYSIS OF EXPERIMENTAL DATA
Correlation & Regression Analysis
Lesson 14 - R Chapter 14 Review. Objectives Summarize the chapter Define the vocabulary used Complete all objectives Successfully answer any of the review.
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.
L Berkley Davis Copyright 2009 MER301: Engineering Reliability Lecture 12 1 MER301: Engineering Reliability LECTURE 12: Chapter 6: Linear Regression Analysis.
Chapter 8 Relationships Among Variables. Outline What correlational research investigates Understanding the nature of correlation What the coefficient.
LECTURE 13 QUALITY ASSURANCE METHOD VALIDATION
Copyright © Cengage Learning. All rights reserved. 8 9 Correlation and Regression.
Chapter 8: Sampling, Standardization, and Calibration
Chapter 5: Errors in Chemical Analysis. Errors are caused by faulty calibrations or standardizations or by random variations and uncertainties in results.
Chapter 1: The Nature of Analytical Chemistry
7 Statistical Data Treatment and Evaluation CHAPTER.
Fundamentals of Analytical Chemistry Eighth Edition.
MECH 373 Instrumentation and Measurements
OVERVIEW ANALYTICAL SAMPLES AND METHODS
Chapter 4 Basic Estimation Techniques
AP Statistics Chapter 14 Section 1.
Kin 304 Regression Linear Regression Least Sum of Squares
CHAPTER 29: Multiple Regression*
Introduction to Instrumentation Engineering
Chapter 5 Quality Assurance and Calibration Methods
Chapter 1: The Nature of Analytical Chemistry
Product moment correlation
Presentation transcript:

Method of Least Squares Version 2012 Updated on 030212 Copyright © All rights reserved Dong-Sun Lee, Prof., Ph.D. Chemistry, Seoul Women’s University Chapter 7-2 Sampling and Method of Least Squares

Sampling is one of the most important operations in a chemical analysis. Chemical analyses use only a small fraction of the available sample. The fractions of the samples that collected for analyses must be representative of the bulk materials. Knowing how much sample to collect and how to further subdivide the collected sample to obtain a laboratory sample is vital in the analytical process. All three steps of sampling, standardization, and calibration require a knowledge of statistics.

Analytical samples and methods Sample size Type of analysis > 0.1g Macro 0.01~0.1g Semimicro 0.0001~0.01g Micro < 10–4 g Ultramicro Analytical level Type of constituent 1%~100% Major 0.01%(100ppm)~1% Minor 1ppb~100ppm Trace <1 ppb Ultratrace

Interlaboratory error as a function of analyte concentration Interlaboratory error as a function of analyte concentration. Note that the relative standard deviation dramatically increase as the analyte concentration decreases. W. Horowitz, Anal. Chem., 1982, 54, 67A-76A.

Real Samples Matrix is the medium containing analyte. A matrix effect is a change in the analytical signal caused by anything in the sample other than analyte. Sample are analyzed, but constituents or concentrations are determined.

Sampling is the process by which a sample population is reduced in size to an amount of homogeneous material that can be conveniently handled in the lab and whose composition is representative of the population (unbiased estimate of population mean). Ex. Population : 100 coins Each coin is a sampling unit or an increment Gross sample: 5 coins the collection of individual sampling units or increments Lab sample : the gross sample is reduced in size and made homogeneous

Reduce the gross sample to a lab sample Identify the population Collect a gross sample Reduce the gross sample to a lab sample Steps in obtaining a lab sample ( a few grams ~ a few hundred grams). Lab sample may constitute as little as 1 part in 107 or 108 of the bulk material.

QUARTERING SAMPLES A method of obtaining a representative sample for analysis or test of an aggregate with occasional shovelsful, of which a heap or cone is formed, This is flattened out and two opposite quarter parts are rejected. Another cone is formed from the remainder which is again quartered, the process being repeated until a sample of the required size is left. The procedures vary somewhat, depending upon the size of the sample. Quartering Method Mix samples thoroughly. Pour it onto a large flat surface. Divide the sample into four equal parts. Save the 2 opposite quarters. Be sure to save the fine material at the bottom of the saved quarter. If the sample is still to large, divide the sample again. Save Discard

Sampling Sampling is the process of extracting from a large quantity of material a small portion, which is truly representative of the composition of the whole material. 1) Three main group of sampling: 1>   Census : all the material is examined  impracticable 2>   Casual sampling on an ad hoc basis  unscientific 3>  Statistical sampling 2) Sampling procedure Bulk sample homogeneous or heterogeneous     Increment Gross sample Sub sample Analysis sample

Census vs Random sampling Census A complete enumeration, usually of a population, but also businesses and commercial establishments, farms, governments, and so forth. A complete study of the population as compared to a sample. Random sampling A commonly used sampling technique in which sample units are selected so that all combinations of n units under consideration have an equal chance of being selected as the sample. (Statistical sampling meaning) A sampling method in which every possible sample has the same chance of being selected.

3) Sampling statistics : Total error = sampling error + analytical error sT = ( sS2 + sA2 )1/2 In designing a sampling plan the following points should be considered. 1>   the number of samples to be taken 2>   the size of the sample 3>   should individual samples be analysed or should a sample composed of two or more increments (composite) be prepared.

How much should be analyzed ? mR2  KS where m = mass of each sample analyzed, R= desired relative SD. How many portions should be analyzed ? e = (tsS) / (n)1/2  n = t2sS2 / e2 where n = the number of samples needed t = Student’s t for the 95% confidence level and n1 degree of freedom. Statistics of sampling segregated materials sS2 = [A / mn] + [ B / n] where sS is the standard deviation of n samples, each of mass m. The constant A and B are properties of the bulk material and must be measured in preliminary experiments.

Sampling uncertainties Both systematic and random errors in analytical data can be traced to instrument, method, and personal causes. Most systematic errors can be eliminated by exercising care, by calibration, and by the proper use of standards, blanks, and reference materials. For random and independent uncertainties, the overall standard deviation s0 for an analytical measurement is related to the standard deviation of the sampling process ss and the the standard deviation of the method sm by the relationship s02 = ss2 + sm2 When sm< ss/3, there is no point in trying to improve the measurement precision.

Size of the gross sample Basically, gross sample weight is determined by The uncertainty that can be tolerated between the composition of the gross sample and that of the whole, The degree of heterogeneity of the whole, The level of particle size at which heterogeneity begins. To obtain a truly representative gross sample, a certain number N of particles must be taken. The number of particles required in a gross sample ranges from a few particles to 1012 particles.

Sampling homogeneous solutions of liquids and gases Well mixed solutions of liquids and gases require only a very small sample because they are homogeneous down to the molecular level. Homogeneous ? Which portion? Flowing stream? Gas sampling : Sampling bag (Tedlar® bag) with a Teflon fitting Trap in a liquid Adsorbed onto the surface of a solid SPME

Tedlar® bag http://www.tedlarbag.com/tedlarbag.asp#tedlar

Lake stratification from spring to summer Epilinion 17oC Thermocline 5~17oC Hypolimnion 5~6oC Lake stratification from spring to summer Depth profile of nitrate in sediment from freshwater Lake Sobygard in Denmark.

SAMPLE PREPARATION (1) Is the sample a Solid or a Liquid? Liquids (2) Are you interested in all sample components or only one or a few? If only a few then separation is necessary by extraction or chromatography. (3) Is the concentration of the analytes appropriate for the measurement technique? If not, dilute or concentrate with extraction, evaporation, lyophilization. (4) Is sample unstable ? If yes, derivatize, cool, freeze, store in dark (5) Is the liquid or solvent compatible with the analytical method? If not, do solvent exchange with extraction, distillation, lyophilization. http://www.trincoll.edu/~dhenders/textfi~1/Chem%20208%20notes/sample_preparation.htm

Sampling particulate solids Identify the population to be analyzed Randomly collect N particles to give a gross sample Reduce particle size of gross sample and homogenize Randomly collect N particles No Is this sample of a suitable size for the lab Store the lab sample Remove portions of the lab sample for analysis

Steps in sampling and measurement of salt in a potato chip Steps in sampling and measurement of salt in a potato chip. Step 1 introduces the sampling variance. Steps 2 to 4 introduce the analytical variance.

Linear regression Linear regression uses the method of least squares to determine the best linear equation to describe a set of x and y data points. The method of least squares minimizes the sum of the square of the residuals - the difference between a measured data point and the hypothetical point on a line. The residuals must be squared so that positive and negative values do not cancel. Spreadsheets will often have built-in regression functions to find the best line for a set of data. A common application of linear regression in analytical chemistry is to determine the best linear equation for calibration data to generate a calibration or working curve. The concentration of an analyte in a sample can then be determined by comparing a measurement of the unknown to the calibration curve.

The slope-intercept form of a straight line. Calibration curve for the determination of isooctane in a hydrocarbon mixture.

Least-square curve fitting. Linear least-squares analysis gives you the equation for the best straight line among a set of x, y data points when the x data contain negligible uncertainty.

Determining the best line for calibration data is done using linear regression. Equation of calibration line: y(sy) = [m(sm)]x + [b(sb)] The Least squares method finds the sum of the squares of the residuals ssresid and minimizes these according to the minimization technique of calculus. ssresid = [yi (b+mxi)]2 A total sum of the squares : sstot = syy = (yi y)2 = yi 2  yi 2/N The coefficient of determination (R2) is a measure of the fraction of the total variation in y that can be explained by the linear relationship between x and y. R2 = 1  (ssresid / sstot) The closer R2 is to unity, the better the linear model explains the y variations.

Correlation coefficient Pearson correlation coefficient : r = [(xi x)(yiy) / nsxsy ] = [xiyi(nxy)] / [(xi2 nx2)(yi2ny2)] 1/2 = (nxiyixiyi) / [{nxi2(xi)2}{nyi2(yi)2}]1/2 rmax = 1, rmin = 1, r = 0 (when xy=0), 0.90 < r < 0.95 linearity 0.95 < r < 0.99 good linearity 0.99 < r excellent linearity

For the linear equation: y = mx + b Useful quantities: Standard deviation of the intercept: Standard deviation of the slope: Standard deviation of a unknown read from a calibration curve: Standard deviation of the residuals: Where: N is the number of calibration data points. L is the number of replicate measurements of the unknown. and is the mean of the unknown measurements.

Practice Report 1 Protein (μg ) Absorbance at 595 nm 0.00 0.466 9.36 Calculation of linear regression : least square method Protein (μg ) Absorbance at 595 nm 0.00 0.466 9.36 0.676 18.72 0.883 28.08 1.986 37.44 1.280