9. Data Fitting Fitting Experimental Spectrum

Slides:



Advertisements
Similar presentations
Modeling of Data. Basic Bayes theorem Bayes theorem relates the conditional probabilities of two events A, and B: A might be a hypothesis and B might.
Advertisements

CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
Data mining and statistical learning - lecture 6
Chapter 18 Interpolation The Islamic University of Gaza
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
Numerical Analysis –Interpolation
Curve-Fitting Interpolation
Probability (Kebarangkalian) EBB 341. Probability and Statistics Parameters population sample before observation after observation data random variables.
Probability Densities
Curve-Fitting Polynomial Interpolation
Statistics.
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
Chapter 6 Numerical Interpolation
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Regression analysis Control of built engineering objects, comparing to the plan Surveying observations – position of points Linear regression Regression.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Interpolation and Approximation To the question, "Why approximate?", we can only answer, "Because we must!" Mathematical models of physical or natural.
ENGR 610 Applied Statistics Fall Week 3 Marshall University CITE Jack Smith.
Methodology Solving problems with known distributions 1.
Stats Probability Theory Summary. The sample Space, S The sample space, S, for a random phenomena is the set of all possible outcomes.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Principles of Extrapolation
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
R. Kass/Sp07P416/Lecture 71 More on Least Squares Fit (LSQF) In Lec 5, we discussed how we can fit our data points to a linear function (straight line)
Basic Counting StatisticsBasic Counting StatisticsBasic Counting StatisticsBasic Counting Statistics.
Chapter 3 Applied Statistics and Probability for Engineers
MECH 373 Instrumentation and Measurements
Physics 114: Lecture 13 Probability Tests & Linear Fitting
Data manipulation II: Least Squares Fitting
Chapter 7. Classification and Prediction
Probability Distributions: a review
Probability and Statistics for Particle Physics
STATISTICAL INFERENCE
Curve-Fitting Spline Interpolation
Discrete Probability Distributions
Numerical Analysis Lecture 25.
Chapter 3, Interpolation and Extrapolation
Elementary Statistics
The Bernoulli distribution
St. Edward’s University
St. Edward’s University
Probability and Statistics for Computer Scientists Second Edition, By: Michael Baron Section 11.1: Least squares estimation CIS Computational.
Chapter 5 Statistical Models in Simulation
Discrete Probability Distributions
Physics 114: Exam 2 Review Material from Weeks 7-11
Today’s class Multiple Variable Linear Regression
Chi Square Distribution (c2) and Least Squares Fitting
Probability distributions
Lesson: _____ Section 2.5 The Fundamental Theorem of Algebra
5.1 Power Series Method Section 5.1 p1.
Numerical Analysis Lecture 26.
Copyright © Cengage Learning. All rights reserved.
Probability Theory and Specific Distributions (Moore Ch5 and Guan Ch6)
Counting Statistics and Error Prediction
MATH 174: Numerical Analysis
MATH 2140 Numerical Methods
Least Square Regression
Numerical Integration
SKTN 2393 Numerical Methods for Nuclear Engineers
Curve Fitting Filling in the gaps.
Chapter 5 Discrete Probability Distributions
5.6 Complex Zeros; Fundamental Theorem of Algebra
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Theory of Approximation: Interpolation
Presentation transcript:

9. Data Fitting Fitting Experimental Spectrum Fitting Exponential Decay Theory: Probability & Statistics Least-Square Fitting Calling LAPACK from C

9.1. Fitting Experimental Spectrum Two types of techniques for fitting data : Interpolation: polynomials passing through all data points. Least-squares: model with adjustable parameters. Model :

Lagrange Interpolation nth order polynomial passing through n + 1 data points { ( xi , fi ) ; i = 0,1,...,n } : where i  j   k  i ,   x 1 2 4 f(x) 12 24 60 E.g.

Assuming f describe the 1st n derivatives exactly, then the remainder theorem gives : Ex. 9.1. Do § 9.1.2.

Cubic Splines Ref: D.Kincaid, W.Cheney, "Numerical Analysis", § 6.4, Brook (1991) Given a set of n + 1 data points { ( xi , yi ) ; i = 0,1,..., n }, the cubic spline S(x) interpolates each of the n intervals with a 3rd degree polynomial such that S passes through all n + 1 data points. f  & f  are continuous in all n  1 interior points. # of parameters = P = 4 n. # of constraints = C = 2n + 2(n 1) = 4n 2 Natural spline : S 0 = S n = 0

For Si on interval [ xi , xi+1 ] : Since Si is a 3rd degree polynomial, Si is linear in x.  where   

With z0 = zn = 0, is a tri-diagonal linear system for the unknowns { zi ; i = 1,..., n1 } Once it’s solved, say, by Gaussian elimination ( Thomas algorithm ), one has Ex. 9.2. Do a spline fit for the cross section data ( see § 9.1.5).

9.2. Fitting Exponential Decay Theory : stochastic events:  Task: ‘Fit’ theory to experimental data by choosing the ‘best’ values of N0 and .

9.3. Theory: Probability & Statistics Basics ( discrete events ) : Probability P(x) of event x (occurring) : 0  P(x)  1. 1  P(x)  Probability of event x not occurring. In the sampling of a population, P(x) of a particular sample having value x is : Mean value of a function f(x) is :

Binomial Distribution Let the probability of success in each trial be p. After N trials, the probability of having succeeded x times is

Gaussian & Poisson Distribution See F.Reif, “Fundamentals of Statistical & Thermal Physics, §1.6 & Prob 1.9. As N   while   Np remains finite, PB becomes the Gaussian distribution As N   while p  0, PB becomes the Poisson distribution

9.4. Least-Square Fitting Given ND data points { xi , yi ± i } , i = 1,..., ND , & a model function g(x) = g(x; {m} ) of Np parameters m, m = 1,..., Np, find the values of {m} by minimizing Thus, m = 1,..., Np Ex. 9.3. Do Exercise in § 9.4.4.

Linear Regression   

To minimize subtractive cancellation error, let    where

Nonlinear Fit of Breit-Wigner to Cross Section Breit-Wigner resonance formula :

 

9.5. Calling LAPACK from C