Parameter Estimation and Fitting to Data

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

The Maximum Likelihood Method
Computational Statistics. Basic ideas  Predict values that are hard to measure irl, by using co-variables (other properties from the same measurement.
Hypothesis Testing Steps in Hypothesis Testing:
CHAPTER 21 Inferential Statistical Analysis. Understanding probability The idea of probability is central to inferential statistics. It means the chance.
Cost of surrogates In linear regression, the process of fitting involves solving a set of linear equations once. For moving least squares, we need to.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
Ch11 Curve Fitting Dr. Deshi Ye
Objectives (BPS chapter 24)
The General Linear Model. The Simple Linear Model Linear Regression.
The Multiple Regression Model Prepared by Vera Tabakova, East Carolina University.
The Simple Linear Regression Model: Specification and Estimation
G. Cowan Lectures on Statistical Data Analysis 1 Statistical Data Analysis: Lecture 10 1Probability, Bayes’ theorem, random variables, pdfs 2Functions.
Final Review Session.
Chi Square Distribution (c2) and Least Squares Fitting
Lecture 5 Correlation and Regression
Regression and Correlation Methods Judy Zhong Ph.D.
Regression Analysis Regression analysis is a statistical technique that is very useful for exploring the relationships between two or more variables (one.
LINEAR REGRESSION Introduction Section 0 Lecture 1 Slide 1 Lecture 5 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall.
1 © Lecture note 3 Hypothesis Testing MAKE HYPOTHESIS ©
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Stat13-lecture 25 regression (continued, SE, t and chi-square) Simple linear regression model: Y=  0 +  1 X +  Assumption :  is normal with mean 0.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Ms. Khatijahhusna Abd Rani School of Electrical System Engineering Sem II 2014/2015.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
MARKETING RESEARCH CHAPTER 18 :Correlation and Regression.
I271B QUANTITATIVE METHODS Regression and Diagnostics.
Brief Review Probability and Statistics. Probability distributions Continuous distributions.
NON-LINEAR REGRESSION Introduction Section 0 Lecture 1 Slide 1 Lecture 6 Slide 1 INTRODUCTION TO Modern Physics PHYX 2710 Fall 2004 Intermediate 3870 Fall.
Machine Learning 5. Parametric Methods.
R. Kass/W03 P416 Lecture 5 l Suppose we are trying to measure the true value of some quantity (x T ). u We make repeated measurements of this quantity.
CHAPTER 4 ESTIMATES OF MEAN AND ERRORS. 4.1 METHOD OF LEAST SQUARES I n Chapter 2 we defined the mean  of the parent distribution and noted that the.
Richard Kass/F02P416 Lecture 6 1 Lecture 6 Chi Square Distribution (  2 ) and Least Squares Fitting Chi Square Distribution (  2 ) (See Taylor Ch 8,
Bivariate Regression. Bivariate Regression analyzes the relationship between two variables. Bivariate Regression analyzes the relationship between two.
Data Modeling Patrice Koehl Department of Biological Sciences
Chapter 4: Basic Estimation Techniques
The Maximum Likelihood Method
Physics 114: Lecture 13 Probability Tests & Linear Fitting
Chapter 4 Basic Estimation Techniques
Chapter 14 Inference on the Least-Squares Regression Model and Multiple Regression.
Regression Analysis AGEC 784.
Parameter Estimation and Hypothesis Testing
Regression Analysis: Statistical Inference
Probability Theory and Parameter Estimation I
Statistics for Managers using Microsoft Excel 3rd Edition
Ex1: Event Generation (Binomial Distribution)
Correlation and Simple Linear Regression
Ch3: Model Building through Regression
Chapter 11: Simple Linear Regression
Lecture 8 Preview: Interval Estimates and Hypothesis Testing
The Maximum Likelihood Method
Chapter 11 Simple Regression
Correlation and Simple Linear Regression
The Maximum Likelihood Method
I271B Quantitative Methods
CHAPTER 29: Multiple Regression*
Modelling data and curve fitting
Chi Square Distribution (c2) and Least Squares Fitting
Discrete Event Simulation - 4
Geology Geomath Chapter 7 - Statistics tom.h.wilson
PENGOLAHAN DAN PENYAJIAN
J.-F. Pâris University of Houston
Correlation and Simple Linear Regression
Simple Linear Regression
Simple Linear Regression and Correlation
The Multiple Regression Model
Chapter 9 Estimation: Additional Topics
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

Parameter Estimation and Fitting to Data Maximum likelihood Least squares Goodness-of-fit Examples Elton S. Smith, Jefferson Lab

Parameter estimation

Properties of estimators

An estimator for the mean

An estimator for the variance

The Likelihood function via example We have a data set given by N data pairs (xi, yi±si) graphically represented below. The goal is to determine the fixed, but unknown, m = f(x). s is known or estimated from the data.

Gaussian probabilities (least-squares) We assume that at a fixed value of xi, we have made a measurement yi and that the measurement was drawn from a Gaussian probability distribution with mean y(xi) = a + bxi and variance si2.

c2 minimization

Solution for linear fit For simplicity, assume constant s = si. Then solve two simultaneous equations for 2 unknowns: Parameter uncertainties can be estimated from the curvature of the c2 function.

Parameter uncertainties In a graphical method the uncertainty in the parameter estimator q0 is obtained by changing c2 by one unit. c2(q0±sq) = c2(q0) + 1 In general, using maximum likelihood lnL(q0±sq) = lnL(q0) – 1/2

The Likelihood function via example What does the fit look like? ROOT fit to ‘pol1’ Additional information about the fit: c2 and probability Were the assumptions for the fit valid? This question is addressed by exploring the significance and the goodness of the fit

Testing significance/goodness of fit Quantify the level of agreement between the data and a hypothesis without explicit reference to alternative hypotheses. This is done by defining a goodness-of-fit statistic, and the goodness-of-fit is quantified using the p-value. For the case when the c2 is the goodness-of-fit statistic, then the p-value is given by The p-value is a function of the observed value c2obs and is therefore itself a random variable. If the hypothesis used to compute the p-value is true, then p will be uniformly distributed between zero and one.

c2 distribution Gaussian-like

p-value for c2 distribution

Using the goodness-of-fit Data generated using Y(x) = 6.0 + 0.2 x, s = 0.5 Compare three different polynomial fits to the same data. y(x) = p0 + p1x y(x) = p0 y(x) = p0 + p1x + p2x2

c2/DOF vs degrees of freedom

More about the likelihood method Recall likelihood for least squares: But the probability density depends on application Proceed as before maximizing lnL (c2 has minus sign). The values of the estimated parameters might not be very different, but the uncertainties can be greatly affected.

Applications si2 = constant si2 = yi si2 = Y(x) Poisson distribution (see PDG Eq. 32.12) Stirling’s approx ln(n!) ~ n ln(n) - n

Exercise 3 - Linear Fits Assume a parent distribution of the form y(x) = a + bx, a=5, b=1 Assume one experiment collects a data set of ten points of the form (xi, yi±s), i=0,1,2,...9, with the measurements yi following a Gaussian distribution with a fixed width s=0.5. Invent the data points yi for one experiment. Fit the data yi to the form y = a + bx. Determine y and the uncertainty of y as a function of x from the fit.

Linear Fit – one “experiment” Fit for one “experiment” showing the fitted parameters Uncertainty on sy can be computed using sy2=sa2+x2sb2+2xsab

Linear Fit

Linear Fit – Covariance Matrix

Fitted Results to 1000 “experiments” For each fit, plot the fitted value of the intercept and slope. Fit the distributions to Gaussian functions Mean = 5.004 ± 0.010 Sigma = 0.303 What is the relation between these two? Mean = 0.9997 ± 0.0018 Sigma = 0.05626

Plot difference between fitted and true values Fit Gaussian to slices y(x)-yfit Uncertainty on sy can be computed using sab=0 sy2=sa2+x2sb2+2xsab Correlation term is important

Statistical tests In addition to estimating parameters, one often wants to assess the validity of statements concerning the underlying distribution Hypothesis tests provide a rule for accepting or rejecting hypotheses depending on the outcome of an experiment. [Comparison of H0 vs H1] In goodness-of-fit tests one gives the probability to obtain a level of incompatibility with a certain hypothesis that is greater than or equal to the level observed in the actual data. [How good is my assumed H0?] Formulation of the relevant question is critical to deciding how to answer it.

Summary of second lecture Parameter estimation Illustrated the method of maximum likelihood using the least squares assumption Use of goodness-of-fit statistics to determine the validity of underlying assumptions used to determine parent parameters