1 / 10

Chi-squared distribution  2 N

Chi-squared distribution  2 N. N = number of degrees of freedom Computed using incomplete gamma function: Moments of  2 distribution:. Constructing  2 from Gaussians - 1. Let G(0,1) be a normally-distributed random variable with zero mean and unit variance. For one degree of freedom:

Download Presentation

Chi-squared distribution  2 N

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chi-squared distribution 2N • N = number of degrees of freedom • Computed using incomplete gamma function: • Moments of 2 distribution:

  2. Constructing 2 from Gaussians - 1 • Let G(0,1) be a normally-distributed random variable with zero mean and unit variance. • For one degree of freedom: • This means that: -a a i.e. The 2 distribution with 1 degree of freedom is the same as the distribution of the square of a single normally distributed quantity. G(0,1) a2 21

  3. X2 X1 Constructing 2 from Gaussians - 2 • For two degrees of freedom: • More generally: • Example: Target practice! • If X1 and X2 are normally distributed: • i.e. R2 is distributed as chi-squared with 2 d.o.f

  4. Data points with no error bars • If the individual i are not known, how do we estimate for the parent distribution? • Sample mean: • Variance of parent distribution: • By analogy, define sample variance: • Is this an unbiased estimator, i.e. is <s2>=2?

  5. Estimating 2 – 1 • Express sample variance as: • Use algebra of random variables to determine: • Expand: (Don’t worry, all will be revealed...)

  6. X <X> Xi <Xi> Aside: what is Cov(Xi,X)?

  7. Estimating 2 – 2 • We now have • For s2 to be an unbiased estimator for 2, need A=1/(N-1):

  8. Degrees of freedom – 1 <X> • If all observations Xi have similar errors : • If we don’t know <X> use X instead: • In this case we have N-1 degrees of freedom. Recall that: • (since <2N>=N)

  9. Degrees of freedom – 2 • Suppose we have just one data point. In this case N=1 and so: • Generalising, if we fit N data points with a function A involving M parameters 1... M: • The number of degrees of freedom is N-M.

  10. Example: bias on CCD frames • Suppose you want to know whether the zero-exposure (bias) signal of a CCD is uniform over the whole image. • First step: determine s2(X) over a few sub-regions of the frame. • Second step: determine X over the whole frame. • Third step: Compute • In this case we have fitted a function with one parameter (i.e. the constant X), so M=1 and we expect < 2 > = N - 1 • Use 2N - 1 distribution to determine probability that 2> 2obs

More Related