1 / 54

Summer School in Statistics for Astronomers V June 1-6, 2009 Robustness, Nonparametrics and some Inconvenient Truths

Summer School in Statistics for Astronomers V June 1-6, 2009 Robustness, Nonparametrics and some Inconvenient Truths. Tom Hettmansperger Dept. of Statistics Penn State University. Least squares. t-tests and F-test. Robust methods. rank tests. Nonparametrics. Some ideas we will explore :

ion
Download Presentation

Summer School in Statistics for Astronomers V June 1-6, 2009 Robustness, Nonparametrics and some Inconvenient Truths

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. Summer School in Statisticsfor Astronomers VJune 1-6, 2009Robustness, Nonparametrics and some Inconvenient Truths Tom Hettmansperger Dept. of Statistics Penn State University

  2. Least squares t-tests and F-test Robust methods rank tests Nonparametrics

  3. Some ideas we will explore: • Robustness • Nonparametric Bootstrap • Nonparametric Density Estimation • Nonparametric Rank Tests • Tests for (non-)Normality The goal: To make you worry or at least think critically about statistical analyses.

  4. Abstract Population Distribution, Model Probability and Expectation Statistical Inference Real World Data

  5. Research Hypothesis or Question in English Measurement, Exp. Design, Data Collection Statistical Model, Population Distribution Translate Res. Hyp. or Quest. into a statement in terms of the model parameters Select a relevant statistic Carry out statistical inference Graphical displays Model criticism Sampling Distributions P-values Significance levels Confidence coefficients State Conclusions and Recommdations in English

  6. Parameters in a population or model Typical Values: mean, median, mode Spread: variance (standard deviation), interquartile range (IQR) Shape: probability density function (pdf), cumulative distribution function (cdf) Outliers

  7. Research Question: How large are the luminosities in NGC 4382? Measure of luminosity (data below) Traditional model: normal distribution of luminosity Translate Res. Q.: What is the mean luminosity of the population? (Here we use the mean to represent the typical value.) The relevant statistic is the sample mean. Statistical Inference: 95% confidence interval for the mean using a normal approximation to the sampling distribution of the mean. orig: 26.905 + .0524 no: 26.917 + .0474 24.000: 26.867 + .1094 NGC 4382 (n = 59) 26.215 26.506 26.542 26.551 26.553 26.607 26.612 26.674 26.687 26.699 26.703 26.727 26.740 26.747 26.765 26.779 26.790 26.800 26.807 ... 27.161 27.169 27.179

  8. Variable N N* Mean SE Mean StDev NGC 4382_no 58 0 26.9170.02370.181 NGC 4382_orig 59 0 26.905 0.0262 0.201 NGC 4382_26 59 0 26.901 0.0280 0.215 NGC 4382_25 59 0 26.884 0.0400 0.307 NGC 4382_24 59 0 26.8670.05470.420 Minimum Q1 Median Q3 26.506 26.776 26.974 27.046 26.215 26.765 26.974 27.042 26.000 26.765 26.974 27.042 25.000 26.765 26.974 27.042 24.000 26.765 26.974 27.042

  9. First Inconvenient Truth: Outliers can have arbitrarily large impact on the sample mean, sample standard deviation, and sample variance. Second Inconvenient Truth: A single outlier can increase the width of the t-confidence interval and inflate the margin of error for the sample mean. Inference can be adversely affected. It is bad for a small portion of the data to dictate the results of a statistical analysis.

  10. Third Very Inconvenient Truth: The construction of a 95% confidence interval for the population variance is very sensitive to the shape of the underlying model distribution. The standard interval computed in most statistical packages assumes the model distribution is normal. If this assumption is wrong, the resulting confidence coefficient can typically vary significantly. I am not aware of a stable 95% confidence interval for the population variance.

  11. The ever hopeful statisticians

  12. Robustness: structural and distributional Structural: We would like to have an estimator and a test statistic that are not overly sensitive to small portions of the data. Influence or sensitivity curves: The rate of change in a statistic as an outlier is varied. Breakdown: The smallest fraction of the data that must be altered to carry the statistic beyond any preset bound. We want bounded influence and high breakdown.

  13. Distributional robustness: We want a sampling distribution for the test statistic that is not sensitive to changes or misspecifications in the model or population distribution. This type of robustness provides stable p-values for testing and stable confidence coefficients for confidence intervals.

  14. Message: The sample mean is not structurally robust; whereas, the median is structurally robust. It takes only one observation to move the sample mean anywhere. It takes roughly 50% of the data to move the median. (Breakdown) Sensitivity Curve: SCmean(x) = x SCmedian(x) = (n+1)x(r) if x < x(r) (n+1)x if x(r) < x < x(r+1) (n+1)x(r+1) if x(r+1)< x when n = 2r

  15. Influence Mean Median x Mean has linear, unbounded influence. Median has bounded influence.

  16. Some good news: The sampling distribution of the sample mean depends only mildly on the population or model distribution. (A Central Limit Theorem effect) Provided our data come from a model with finite variance, for large sample size has an approximate standard normal distribution (mean 0 and variance 1). This means that the sample mean enjoys distributional robustness, at least approximately. We say that the sample mean is asymptotically nonparametric.

  17. More inconvenient truth: the sample variance is neither structurally robust (unbounded sensitivity and breakdown tending to 0), but also lacks distributional robustness. Again, from the Central Limit Theorem: Provided our data come from a model with finite fourth moment, for large sample size has an approximate standard normal distribution with mean 0 and variance: g is called the kurtosis

  18. The kurtosis and is a measure of the tail weight of a model distribution. It is independent of location and scale and has value 3 for any normal model. Assuming 95% confidence:

  19. A very inconvenient truth: A test for normality will also mislead you!!

  20. Some questions: • If statistical methodology based on sample means • and sample variances is non robust, what can we do? • Are you concerned about the last least squares analysis • you carried out? (t-tests and F-tests) If not, you should be! • What if we want to simply replace the mean by the • median as the typical value? The sample median is • robust, at least structurally. What about the distribution? • The mean and the t-test go together. What test goes • with the median?

  21. We know that: How to find SE(median) and estimate it. • Two ways: • Nonparametric Bootstrap (computational) • Estimate the standard deviation of the • approximating normal distribution. (theoretical)

  22. Nonparametric Bootstrap; • 1. Draw a sample of size 59 from the original NGC4382 • data. Sample with replacement. • Compute and store the sample median. • Repeat B times. (I generally take B = 4999) • The histogram of the B medians is an estimate of • sampling distribution of the sample median. • Compute the standard deviation of the B medians. • This is the approximate SE of the sample median. Result for NGC4382: SE(median) = .028 (.027 w/o the outlier, .028 w outlier = 24)

  23. Theoretical (Mathematical Statistics) Moderately Difficult Let M denote the sample median. Provided the density (pdf) of the model distribution is not 0 at the model median, has an approximate normal distribution with mean 0 and variance 1/[4f2(q)]. where f(x) is the density and q is the model median. In other words, SE(median) = and we must estimate the value of the density at the population median.

  24. Nonparametric density estimation: Let f(x) denote a pdf. Based on a sample of size n we wish to estimate f(x0) where x0 is given. Define: Where K(t) is called the kernel and

  25. Then a bit of calculation yields: And a bit more: And so we want:

  26. The density estimate does not much depend on K(t), the kernel. But it does depend strongly on h, the bandwidth. We often choose a Gaussian (normal) kernel: Next we differentiate the integrated mean squared error and set it equal to 0 to find the optimal bandwidth (indept of x0). If we choose the Gaussian kernel and if f is normal then:

  27. Recall, SE(median) = For NGC4382: n = 59, M = 26.974 Bootstrap result for NGC4382: SE(median) = .028 finite sample approx Final note: both bootstrap and density estimate are robust.

  28. The median and the sign test (for testing H0: q = 0) are related through the L1 norm. To test H0: q = 0 we use S+(0) = # Xi > 0 which has a null binomial sampling distribution with parameters n and .5. This test is nonparametric and very robust.

  29. Research Hypothesis: NGC4494 and NGC4392 differ in luminosity. Luminosity measurements (data) NGC 4494 (n = 101) 26.146 26.167 26.173…26.632 26.641 26.643 NGC 4382 (n = 59) 26.215 26.506 26.542…27.161 27.169 27.179 Statistical Model Two normal populations with possibly different means but with the same variance. Translation: H0: m4494= m4382 vs. H0: m4494m4382

  30. Select a statistic: The two sample t statistic VERY STRANGE! The two sided t-test with significanc level .05 rejects the null hyp when |t| > 2. Recall that means and variances are not robust.

  31. Table of true values of the significance level when the assumed level is .05. Another inconvenient truth: the true significance level can differ from .05 when some model assumptions fail.

  32. An even more inconvenient truth: These problems extend to analysis of variance and regression. Seek alternative tests and estimates. We already have alternatives to the mean and t-test: the median and the sign test that are robust.

  33. We next consider nonparametric rank tests and estimates for comparing two samples. (Competes with the two sample t-test and difference in sample means.) Generally suppose: To test H0: D = 0 or to estimate D we introduce is the rank of Yj in the combined data.

  34. The robust estimate of D is Provides the robustness Provides the comparison As opposed to which is not robust.

  35. Research Hypothesis: NGC4494 and NGC4392 differ in luminosity. Luminosity measurements (data) NGC 4494 (n = 101) 26.146 26.167 26.173…26.632 26.641 26.643 NGC 4382 (n = 59) 26.215 26.506 26.542…27.161 27.169 27.179 Statistical Model Two normal populations with possibly different medians but with the same scale. Translation: H0: D = 0vs. H0: D

  36. Mann-Whitney Test and CI: NGC 4494, NGC 4382 N Median NGC 4494 101 26.659 NGC 4382 59 26.974 Point estimate for Delta is -0.253 95.0 Percent CI for Delta is (-0.328,-0.182) W = 6284.5 (Sum of ranks of NGC 4494) Test of Delta = 0 vs Delta not equal 0 is significant at 0.0000 (P-Value)

  37. Recall the two sample t-test is sensitive to the assumption of equal variances. The Mann-Whitney test is less sensitive to the assumption of equal scale parameters. The null distribution is nonparametric. It does not depend on the common underlying model distribution. It depends on the permutation principle: Under the null hypothesis, all (m+n)! permutations of the data are equally likely. This can be used to estimate the p-value of the test: sample the permutations, compute and store the MW statistics, then find the proportion greater than the observed MW.

  38. Here’s a bad idea: Test the data for normality using, perhaps, the Kolmogorov-Smirnov test. If the test accepts normality then use a t-test, and if it rejects normality then use a rank test. You can use the K-S test to reject normality. The inconvenient truth is that it may accept many possible models, some of which can be very disruptive to the t-test and sample means.

  39. Absolute MagnitudePlanetary NebulaeMilky Way Abs Mag (n = 81) 17.537 15.845 15.449 12.710 15.499 16.450 14.695 14.878 15.350 12.909 12.873 13.278 15.591 14.550 16.078 15.438 14.741 …

  40. But don’t be too quick to “accept” normality:

  41. Null Hyp: Pop distribution, F(x) is normal The Kolmogorov-Smirnov Statistic The Anderson-Darling Statistic

  42. A Strategy: Use robust statistical methods whenever possible. If you must use traditional methods (sample means, t and F tests) then carry out a parallel analysis using robust methods and compare the results. Start to worry if they differ substantially. Always explore your data with graphical displays. Attach probability error statements whenever possible.

More Related