G. Cowan Computing and Statistical Data Analysis / Stat 1 1 Computing and Statistical Data Analysis London Postgraduate Lectures on Particle Physics; University.

Slides:



Advertisements
Similar presentations
G. Cowan 2009 CERN Summer Student Lectures on Statistics1 Introduction to Statistical Methods for High Energy Physics 2009 CERN Summer Student Lectures.
Advertisements

CS433: Modeling and Simulation
Week 11 Review: Statistical Model A statistical model for some data is a set of distributions, one of which corresponds to the true unknown distribution.
Statistics 101 & Exploratory Data Analysis (EDA)
Probability Review 1 CS479/679 Pattern Recognition Dr. George Bebis.
Maximum likelihood (ML) and likelihood ratio (LR) test
G. Cowan Lectures on Statistical Data Analysis 1 Statistical Data Analysis: Lecture 10 1Probability, Bayes’ theorem, random variables, pdfs 2Functions.
G. Cowan Lectures on Statistical Data Analysis Lecture 2 page 1 Statistical Data Analysis: Lecture 2 1Probability, Bayes’ theorem 2Random variables and.
Maximum likelihood (ML) and likelihood ratio (LR) test
G. Cowan Lectures on Statistical Data Analysis Lecture 12 page 1 Statistical Data Analysis: Lecture 12 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan Lectures on Statistical Data Analysis 1 Statistical Data Analysis: Lecture 8 1Probability, Bayes’ theorem, random variables, pdfs 2Functions of.
Tch-prob1 Chapter 4. Multiple Random Variables Ex Select a student’s name from an urn. S In some random experiments, a number of different quantities.
G. Cowan 2011 CERN Summer Student Lectures on Statistics / Lecture 41 Introduction to Statistics − Day 4 Lecture 1 Probability Random variables, probability.
K. Desch – Statistical methods of data analysis SS10 Statistical methods of data analysis K. Desch Uni Bonn & Köln SS 2010 Course MSc physics716 Lectures:
G. Cowan Lectures on Statistical Data Analysis Lecture 14 page 1 Statistical Data Analysis: Lecture 14 1Probability, Bayes’ theorem 2Random variables and.
Frequently Bayesian The role of probability in data analysis
G. Cowan Lectures on Statistical Data Analysis Lecture 10 page 1 Statistical Data Analysis: Lecture 10 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan Lectures on Statistical Data Analysis 1 Statistical Data Analysis: Lecture 7 1Probability, Bayes’ theorem, random variables, pdfs 2Functions of.
Probability theory 2008 Outline of lecture 5 The multivariate normal distribution  Characterizing properties of the univariate normal distribution  Different.
G. Cowan RHUL Physics Bayesian Higgs combination page 1 Bayesian Higgs combination using shapes ATLAS Statistics Meeting CERN, 19 December, 2007 Glen Cowan.
Maximum likelihood (ML)
Random Variable and Probability Distribution
Lecture II-2: Probability Review
Modern Navigation Thomas Herring
Recitation 1 Probability Review
G. Cowan SUSSP65, St Andrews, August 2009 / Statistical Methods 1 page 1 Statistical Methods in Particle Physics Lecture 1: Bayesian methods SUSSP65.
Short Resume of Statistical Terms Fall 2013 By Yaohang Li, Ph.D.
1 Probability and Statistics  What is probability?  What is statistics?
G. Cowan Lectures on Statistical Data Analysis Lecture 1 page 1 Lectures on Statistical Data Analysis YETI IPPP Durham Young Experimentalists and.
G. Cowan Lectures on Statistical Data Analysis Lecture 3 page 1 Lecture 3 1 Probability (90 min.) Definition, Bayes’ theorem, probability densities and.
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION I Probability Theory Review.
Theory of Probability Statistics for Business and Economics.
Lecture 5a: Bayes’ Rule Class web site: DEA in Bioinformatics: Statistics Module Box 1Box 2Box 3.
פרקים נבחרים בפיסיקת החלקיקים אבנר סופר אביב
G. Cowan Statistical Methods in Particle Physics1 Statistical Methods in Particle Physics Day 1: Introduction 清华大学高能物理研究中心 2010 年 4 月 12—16 日 Glen Cowan.
G. Cowan Computing and Statistical Data Analysis / Stat 2 1 Computing and Statistical Data Analysis Stat 2: Catalogue of pdfs London Postgraduate Lectures.
1 Introduction to Statistical Methods for High Energy Physics Glen Cowan 2006 CERN Summer Student Lectures CERN Summer Student Lectures on Statistics Glen.
G. Cowan Lectures on Statistical Data Analysis Lecture 1 page 1 Lectures on Statistical Data Analysis London Postgraduate Lectures on Particle Physics;
G. Cowan CLASHEP 2011 / Topics in Statistical Data Analysis / Lecture 1 1 Topics in Statistical Data Analysis for HEP Lecture 1: Parameter Estimation CERN.
G. Cowan Statistical Data Analysis / Stat 1 1 Statistical Data Analysis 2015/16 London Postgraduate Lectures on Particle Physics; University of London.
Uniovi1 Some statistics books, papers, etc. G. Cowan, Statistical Data Analysis, Clarendon, Oxford, 1998 see also R.J. Barlow,
G. Cowan Lectures on Statistical Data Analysis Lecture 1 page 1 Lectures on Statistical Data Analysis RWTH Aachen Graduiertenkolleg February, 2007.
G. Cowan Weizmann Statistics Workshop, 2015 / GDC Lecture 11 Statistical Methods for Particle Physics Lecture 1: introduction to frequentist statistics.
Review of Probability. Important Topics 1 Random Variables and Probability Distributions 2 Expected Values, Mean, and Variance 3 Two Random Variables.
G. Cowan Lectures on Statistical Data Analysis Lecture 4 page 1 Statistical Data Analysis: Lecture 4 1Probability, Bayes’ theorem 2Random variables and.
1 Introduction to Statistics − Day 4 Glen Cowan Lecture 1 Probability Random variables, probability densities, etc. Lecture 2 Brief catalogue of probability.
G. Cowan Lectures on Statistical Data Analysis Lecture 8 page 1 Statistical Data Analysis: Lecture 8 1Probability, Bayes’ theorem 2Random variables and.
1 Introduction to Statistics − Day 3 Glen Cowan Lecture 1 Probability Random variables, probability densities, etc. Brief catalogue of probability densities.
G. Cowan TAE 2010 / Statistics for HEP / Lecture 11 Statistical Methods for HEP Lecture 1: Introduction Taller de Altas Energías 2010 Universitat de Barcelona.
G. Cowan Lectures on Statistical Data Analysis Lecture 4 page 1 Lecture 4 1 Probability (90 min.) Definition, Bayes’ theorem, probability densities and.
G. Cowan Computing and Statistical Data Analysis / Stat 9 1 Computing and Statistical Data Analysis Stat 9: Parameter Estimation, Limits London Postgraduate.
R.Kass/F02 P416 Lecture 1 1 Lecture 1 Probability and Statistics Introduction: l The understanding of many physical phenomena depend on statistical and.
G. Cowan Lectures on Statistical Data Analysis Lecture 9 page 1 Statistical Data Analysis: Lecture 9 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan SUSSP65, St Andrews, August 2009 / Statistical Methods 1 page 1 Statistical Methods in Particle Physics Lecture 1: Bayesian methods SUSSP65.
G. Cowan Lectures on Statistical Data Analysis Lecture 6 page 1 Statistical Data Analysis: Lecture 6 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan Lectures on Statistical Data Analysis Lecture 5 page 1 Statistical Data Analysis: Lecture 5 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan Lectures on Statistical Data Analysis Lecture 12 page 1 Statistical Data Analysis: Lecture 12 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan Lectures on Statistical Data Analysis Lecture 10 page 1 Statistical Data Analysis: Lecture 10 1Probability, Bayes’ theorem 2Random variables and.
G. Cowan Aachen 2014 / Statistics for Particle Physics, Lecture 11 Statistical Methods for Particle Physics Lecture 1: probability, random variables, MC.
1 Introduction to Statistical Methods for High Energy Physics Glen Cowan 2005 CERN Summer Student Lectures CERN Summer Student Lectures on Statistics Glen.
Probability Theory and Parameter Estimation I
Lectures on Statistical Data Analysis
TAE 2018 / Statistics Lecture 1
Computing and Statistical Data Analysis / Stat 8
Statistical Methods for Particle Physics (I)
Lecture 3 1 Probability Definition, Bayes’ theorem, probability densities and their properties, catalogue of pdfs, Monte Carlo 2 Statistical tests general.
Statistics for Particle Physics Lecture 1: Fundamentals
Computing and Statistical Data Analysis / Stat 7
Computing and Statistical Data Analysis / Stat 10
Presentation transcript:

G. Cowan Computing and Statistical Data Analysis / Stat 1 1 Computing and Statistical Data Analysis London Postgraduate Lectures on Particle Physics; University of London MSci course PH4515 Glen Cowan Physics Department Royal Holloway, University of London Course web page:

Course structure 1 st four to five weeks for first half (3 to 4:30) will be probability and statistical data analysis. 1 st four to five weeks for 2 nd half (4:30 to 6) will be a crash course in C++ MSci/MSc students – this part mandatory PhD students – C++ part is optional depending on your programming skills (consult with your supervisor). After C++ part finished (~week 5), lectures from 3:00 to 5:00 will be on statistical data analysis, using C++ tools for exercises. The hour from 5 to 6 will be for discussion and overflow. G. Cowan 2 Computing and Statistical Data Analysis / Stat 1

Coursework, exams, etc. For C++ part Computer based exercises -- see course web site: For statistical data analysis part More exercises, many computer based For PH4515 students Written exam at end of year (70% of mark), no questions on C++, only statistical data analysis. For PhD students No material from this course in exam (~early 2014) G. Cowan 3 Computing and Statistical Data Analysis / Stat 1

G. Cowan Computing and Statistical Data Analysis / Stat 1 4 Statistical Data Analysis Outline 1Probability, Bayes’ theorem 2Random variables and probability densities 3Expectation values, error propagation 4Catalogue of pdfs 5The Monte Carlo method 6Statistical tests: general concepts 7Test statistics, multivariate methods 8Goodness-of-fit tests 9Parameter estimation, maximum likelihood 10More maximum likelihood 11Method of least squares 12Interval estimation, setting limits 13Nuisance parameters, systematic uncertainties 14Examples of Bayesian approach

G. Cowan Computing and Statistical Data Analysis / Stat 1 5 Some statistics books, papers, etc. G. Cowan, Statistical Data Analysis, Clarendon, Oxford, 1998 see also R.J. Barlow, Statistics: A Guide to the Use of Statistical Methods in the Physical Sciences, Wiley, 1989 see also hepwww.ph.man.ac.uk/~roger/book.html L. Lyons, Statistics for Nuclear and Particle Physics, CUP, 1986 F. James., Statistical and Computational Methods in Experimental Physics, 2nd ed., World Scientific, 2006 S. Brandt, Statistical and Computational Methods in Data Analysis, Springer, New York, 1998 (with program library on CD) C. Amsler et al. (Particle Data Group), Review of Particle Physics, Physics Letters B667 (2008) 1; see also pdg.lbl.gov sections on probability statistics, Monte Carlo

G. Cowan Computing and Statistical Data Analysis / Stat 1 6 Data analysis in particle physics Observe events of a certain type Measure characteristics of each event (particle momenta, number of muons, energy of jets,...) Theories (e.g. SM) predict distributions of these properties up to free parameters, e.g., , G F, M Z,  s, m H,... Some tasks of data analysis: Estimate (measure) the parameters; Quantify the uncertainty of the parameter estimates; Test the extent to which the predictions of a theory are in agreement with the data.

G. Cowan Computing and Statistical Data Analysis / Stat 1 7 Dealing with uncertainty In particle physics there are various elements of uncertainty: theory is not deterministic quantum mechanics random measurement errors present even without quantum effects things we could know in principle but don’t e.g. from limitations of cost, time,... We can quantify the uncertainty using PROBABILITY

G. Cowan Computing and Statistical Data Analysis / Stat 1 8 A definition of probability Consider a set S with subsets A, B,... Kolmogorov axioms (1933) From these axioms we can derive further properties, e.g.

G. Cowan Computing and Statistical Data Analysis / Stat 1 9 Conditional probability, independence Also define conditional probability of A given B (with P(B) ≠ 0): E.g. rolling dice: Subsets A, B independent if: If A, B independent, N.B. do not confuse with disjoint subsets, i.e.,

G. Cowan Computing and Statistical Data Analysis / Stat 1 10 Interpretation of probability I. Relative frequency A, B,... are outcomes of a repeatable experiment cf. quantum mechanics, particle scattering, radioactive decay... II. Subjective probability A, B,... are hypotheses (statements that are true or false) Both interpretations consistent with Kolmogorov axioms. In particle physics frequency interpretation often most useful, but subjective probability can provide more natural treatment of non-repeatable phenomena: systematic uncertainties, probability that Higgs boson exists,...

G. Cowan Computing and Statistical Data Analysis / Stat 1 11 Bayes’ theorem From the definition of conditional probability we have, and but, so Bayes’ theorem First published (posthumously) by the Reverend Thomas Bayes (1702−1761) An essay towards solving a problem in the doctrine of chances, Philos. Trans. R. Soc. 53 (1763) 370; reprinted in Biometrika, 45 (1958) 293.

G. Cowan Computing and Statistical Data Analysis / Stat 1 12 The law of total probability Consider a subset B of the sample space S, B ∩ A i AiAi B S divided into disjoint subsets A i such that ∪ i A i = S, → → → law of total probability Bayes’ theorem becomes

G. Cowan Computing and Statistical Data Analysis / Stat 1 13 An example using Bayes’ theorem Suppose the probability (for anyone) to have AIDS is: ← prior probabilities, i.e., before any test carried out Consider an AIDS test: result is  or  ← probabilities to (in)correctly identify an infected person ← probabilities to (in)correctly identify an uninfected person Suppose your result is . How worried should you be?

G. Cowan Computing and Statistical Data Analysis / Stat 1 14 Bayes’ theorem example (cont.) The probability to have AIDS given a + result is i.e. you’re probably OK! Your viewpoint: my degree of belief that I have AIDS is 3.2% Your doctor’s viewpoint: 3.2% of people like this will have AIDS ← posterior probability

G. Cowan Computing and Statistical Data Analysis / Stat 1 15 Frequentist Statistics − general philosophy In frequentist statistics, probabilities are associated only with the data, i.e., outcomes of repeatable observations (shorthand: ). Probability = limiting frequency Probabilities such as P (Higgs boson exists), P (0.117 <  s < 0.121), etc. are either 0 or 1, but we don’t know which. The tools of frequentist statistics tell us what to expect, under the assumption of certain probabilities, about hypothetical repeated observations. The preferred theories (models, hypotheses,...) are those for which our observations would be considered ‘usual’.

G. Cowan Computing and Statistical Data Analysis / Stat 1 16 Bayesian Statistics − general philosophy In Bayesian statistics, use subjective probability for hypotheses: posterior probability, i.e., after seeing the data prior probability, i.e., before seeing the data probability of the data assuming hypothesis H (the likelihood) normalization involves sum over all possible hypotheses Bayes’ theorem has an “if-then” character: If your prior probabilities were  (H), then it says how these probabilities should change in the light of the data. No general prescription for priors (subjective!)

G. Cowan Computing and Statistical Data Analysis / Stat 1 17 Random variables and probability density functions A random variable is a numerical characteristic assigned to an element of the sample space; can be discrete or continuous. Suppose outcome of experiment is continuous value x → f(x) = probability density function (pdf) Or for discrete outcome x i with e.g. i = 1, 2,... we have x must be somewhere probability mass function x must take on one of its possible values

G. Cowan Computing and Statistical Data Analysis / Stat 1 18 Cumulative distribution function Probability to have outcome less than or equal to x is cumulative distribution function Alternatively define pdf with

G. Cowan Computing and Statistical Data Analysis / Stat 1 19 Histograms pdf = histogram with infinite data sample, zero bin width, normalized to unit area.

G. Cowan Computing and Statistical Data Analysis / Stat 1 20 Multivariate distributions Outcome of experiment charac- terized by several values, e.g. an n-component vector, (x 1,... x n ) joint pdf Normalization:

G. Cowan Computing and Statistical Data Analysis / Stat 1 21 Marginal pdf Sometimes we want only pdf of some (or one) of the components: → marginal pdf x 1, x 2 independent if i

G. Cowan Computing and Statistical Data Analysis / Stat 1 22 Marginal pdf (2) Marginal pdf ~ projection of joint pdf onto individual axes.

G. Cowan Computing and Statistical Data Analysis / Stat 1 23 Conditional pdf Sometimes we want to consider some components of joint pdf as constant. Recall conditional probability: → conditional pdfs: Bayes’ theorem becomes: Recall A, B independent if → x, y independent if

G. Cowan Computing and Statistical Data Analysis / Stat 1 24 Conditional pdfs (2) E.g. joint pdf f(x,y) used to find conditional pdfs h(y|x 1 ), h(y|x 2 ): Basically treat some of the r.v.s as constant, then divide the joint pdf by the marginal pdf of those variables being held constant so that what is left has correct normalization, e.g.,

G. Cowan Computing and Statistical Data Analysis / Stat 1 25 Functions of a random variable A function of a random variable is itself a random variable. Suppose x follows a pdf f(x), consider a function a(x). What is the pdf g(a)? dS = region of x space for which a is in [a, a+da]. For one-variable case with unique inverse this is simply →

G. Cowan Computing and Statistical Data Analysis / Stat 1 26 Functions without unique inverse If inverse of a(x) not unique, include all dx intervals in dS which correspond to da: Example:

G. Cowan Computing and Statistical Data Analysis / Stat 1 27 Functions of more than one r.v. Consider r.v.s and a function dS = region of x-space between (hyper)surfaces defined by

G. Cowan Computing and Statistical Data Analysis / Stat 1 28 Functions of more than one r.v. (2) Example: r.v.s x, y > 0 follow joint pdf f(x,y), consider the function z = xy. What is g(z)? → (Mellin convolution)

G. Cowan Computing and Statistical Data Analysis / Stat 1 29 More on transformation of variables Consider a random vectorwith joint pdf Form n linearly independent functions for which the inverse functions exist. Then the joint pdf of the vector of functions is where J is the Jacobian determinant: For e.g. integrate over the unwanted components.

G. Cowan Computing and Statistical Data Analysis / Stat 1 30 Expectation values Consider continuous r.v. x with pdf f (x). Define expectation (mean) value as Notation (often): ~ “centre of gravity” of pdf. For a function y(x) with pdf g(y), (equivalent) Variance: Notation: Standard deviation:  ~ width of pdf, same units as x.

G. Cowan Computing and Statistical Data Analysis / Stat 1 31 Covariance and correlation Define covariance cov[x,y] (also use matrix notation V xy ) as Correlation coefficient (dimensionless) defined as If x, y, independent, i.e.,, then →x and y, ‘uncorrelated’ N.B. converse not always true.

G. Cowan Computing and Statistical Data Analysis / Stat 1 32 Correlation (cont.)

G. Cowan Computing and Statistical Data Analysis / Stat 1 33 Error propagation which quantify the measurement errors in the x i. Suppose we measure a set of values and we have the covariances Now consider a function What is the variance of The hard way: use joint pdf to find the pdf then from g(y) find V[y] = E[y 2 ]  (E[y]) 2. Often not practical, may not even be fully known.

G. Cowan Computing and Statistical Data Analysis / Stat 1 34 Error propagation (2) Suppose we had in practice only estimates given by the measured Expandto 1st order in a Taylor series about since To find V[y] we need E[y 2 ] and E[y].

G. Cowan Computing and Statistical Data Analysis / Stat 1 35 Error propagation (3) Putting the ingredients together gives the variance of

G. Cowan Computing and Statistical Data Analysis / Stat 1 36 Error propagation (4) If the x i are uncorrelated, i.e.,then this becomes Similar for a set of m functions or in matrix notation where

G. Cowan Computing and Statistical Data Analysis / Stat 1 37 Error propagation (5) The ‘error propagation’ formulae tell us the covariances of a set of functions in terms of the covariances of the original variables. Limitations: exact only iflinear. Approximation breaks down if function nonlinear over a region comparable in size to the  i. N.B. We have said nothing about the exact pdf of the x i, e.g., it doesn’t have to be Gaussian. x y(x)y(x) xx yy x xx ? y(x)y(x)

G. Cowan Computing and Statistical Data Analysis / Stat 1 38 Error propagation − special cases → → That is, if the x i are uncorrelated: add errors quadratically for the sum (or difference), add relative errors quadratically for product (or ratio). But correlations can change this completely...

G. Cowan Computing and Statistical Data Analysis / Stat 1 39 Error propagation − special cases (2) Consider with Now suppose  = 1. Then i.e. for 100% correlation, error in difference → 0.