Presentation is loading. Please wait.

Presentation is loading. Please wait.

Statistical inference form observational data Parameter estimation: Method of moments Use the data you have to calculate first and second moment To fit.

Similar presentations


Presentation on theme: "Statistical inference form observational data Parameter estimation: Method of moments Use the data you have to calculate first and second moment To fit."— Presentation transcript:

1 Statistical inference form observational data Parameter estimation: Method of moments Use the data you have to calculate first and second moment To fit a certain distribution, use “relation to moments” formulae Method of maximum likelihood (too difficult) Interval estimation – confidence interval

2 Method of moments Suppose you have 10 data about x 0.3, 4, 5, 1, 1.3, 6.5, 0.85, 2.5, 4.56, 3.14 After calculation, mean = 2.915, var = 4.2981

3 Method of moments Suppose we want to fit with uniform, Now Solving, b = 6.5142, a = -0.684 f X (x) x b a

4 Method of moments Suppose we want to fit with normal, Now E(X) = 2.915 = μ Var(X) = 4.2981 = σ 2 N (2.915, 2.07) is suitable Try Lognormal yourself

5 Confidence interval of μ To calculate confidence interval, you need to know 1) One sided / two sided? 2) (true) variance known / unknown? Normal student-t

6 Confidence interval of μ- one sided Suppose you have 25 samples, sample mean = 9, sample s.d. = 2. Assume sample s.d. = true s.d. (why confidence interval?) P (True mean) < 10?

7 Confidence interval of μ- one sided true mean is smaller than a certain value with probability 0.98? 0.98 Φ (0.98) = 2.055 0.02

8 0.95 Φ (0.975) = 1.96 -1.96 0.025 Confidence interval of μ- two sided

9 Confidence interval of μ Compare k 0.02 k 0.025 k 1-α k 1- α/2 α=0.02 α=0.05 k depends on 1) Confidence level α you want 2) One sided / two sided

10 Confidence interval of μ- student-t When the true variance is unknown, we use t and sample variance Suppose you have 25 samples, sample mean = 9, sample s.d. = 2 You keep everything the same but just check on another table! To check t, you need 1) confidence level, 2) d.o.f.

11 Confidence interval of μ- student-t true mean is smaller than a certain value with probability 0.98? T depends on 1) Confidence level α you want 2) One sided / two sided 3) Degree of freedom

12

13 Confidence interval of μ Compare k 0.02 k 0.025 T 0.02, 24 k 1-α k 1- α/2 T 1- α, 24 α=0.02 α=0.05 α=0.02 compare 1.96 and 2.2066

14 As you only have limited data points, your sample variance will also subject to variation JUST AS variation of sample mean Example DO data: n = 30, s 2 = 4.2 Variance of variance? To check chi-square, you need 1) Probability level α 2) d.o.f. We usually construct one-sided confidence interval of variance (why?)

15 Probability Paper (old) Chi-square test (χ 2 ) (common) Kolmogorov-Smirnov test (K-S) (difficult to use) Chi-square test ei No. of parameters in the model Goodness of fit test of distribution


Download ppt "Statistical inference form observational data Parameter estimation: Method of moments Use the data you have to calculate first and second moment To fit."

Similar presentations


Ads by Google