Lecture 2 Basic Statistics

Post on 07-May-2022

1 views 0 download

Transcript of Lecture 2 Basic Statistics

Lecture 2Basic Statistics

Jayant MurthyThe Indian Institute of Astrophysics

www.iiap.res.injmurthy@yahoo.com

Recommended Reading

● Philip Bevington & D. Keith Robinson:Data Reduction and Error Analysis for the Physical Sciences

● John R. Taylor: An Introduction to Error Analysis

Different Types of Error

● Illegitimate errors:– Irreproducible errors.

● Systematic errors:– Often due to experimental bias or measurement

errors.

● Random errors:– Measurement or statistical uncertainty.

Random Numbers

● Write a program to flip coins:

● Random numbers– If seed is undefined,

get pseudo random numbers.

– If seed is defined, get the same number.

Note that seed is different in IDLbut the concept is the same.

Use Vectors

Heads or Tails

What is wrong in the above program?

Vector Shortcut

Monte Carlo Tests

More Monte Carlo

More Monte Carlo

More Monte Carlo

More Monte Carlo

Effects of Sample Size

Do it with Style

Central Limit Theorem

● If we take a large enough sample of independent random numbers, the distribution of their mean (μ) will approach a normal distribution with mean μ and standard deviation σ/sqrt(N).