1 / 32

GG 313 Lecture 5

GG 313 Lecture 5. Elementary Statistics. Class Web Site is UP. http://www.soest.hawaii.edu/~fred/GG313/. CRUISE:. Please email me your phone number if you think you may come. I will need this to let you know of last-minute changes. Homework 2. What’s the contrast in density?

jbaxley
Télécharger la présentation

GG 313 Lecture 5

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. GG 313 Lecture 5 Elementary Statistics

  2. Class Web Site is UP http://www.soest.hawaii.edu/~fred/GG313/ CRUISE: Please email me your phone number if you think you may come. I will need this to let you know of last-minute changes.

  3. Homework 2 • What’s the contrast in density? What’s the uncertainty? 2) Trick is to set it up correctly All independent.

  4. 3rd question?

  5. Statistics We often want to quantify the characteristics of data sets using a small number of parameters (statistics), often just a representative value. The POPULATION consists of all the possible observations of a phenomenon. A population could be finite or infinite. Any subset of a population is called a SAMPLE. For example 10 coin tosses is a subset of all coin tosses, which is infinite. Often our aim is to discover characteristics of a population by sampling the population. Political polls sample a small fraction of the voter population to determine what the total population thinks.

  6. A geo-example: You want to sample the population of dinosaurs living in the late Mesozoic in Wyoming. You look at existing fossils and collect fossils yourself to determine the characteristics of the dinosaur population. Because some dinosaurs may have lived in habitats where fossil formation was not likely, the sample is probably not representative. We often want to know the central value of a population and sample, but there are several different “centers”.

  7. The three M’s - Mean, Median, and Mode The best known estimate of central location is the arithmetic MEAN. The mean of the sample is: The population mean (µ) is identical in form, but all members of the population are included. More often than not, we really don’t know µ, and are trying to determine it.

  8. Characteristics of the mean: • It always exists and can be calculated • It is unique • It is stable, not fluctuating much from sample-to-sample • means from different samples can be combined to form new statistics • Every value is used to obtain the mean

  9. Sample MEDIAN In cases where there a few wild data points, the sample mean may yield a poor estimate of the central value. A statistic that tends to ignore wild data is the sample median: The median is the middle value when the data are arranged in ascending order. It always exists and it is unique. Since the median does not depend on the value of other points in the sample, it is not sensitive to wild values.

  10. Consider the sample: 1,2,2,5,5,7,99. It has a mean of 17.3 and a median of 5. The great difference between the mean and median in this case is because of the one wild value (99). Mode: The mode of a sample is the most frequent value. In the sample above, the mode is non-unique - both 2 and 5 occur twice. It may not exist at all if no two values occur more than once. We can usually make a sample with at least one mode by grouping the samples into bins of almost-identical values. The mode is often denoted as

  11. In some cases, some elements of a sample are considered more important than others. Some measurements may be more precise, or better documented than others. Large earthquakes may have better statistics than small ones, for example. We may want large earthquakes to count more than small ones when determining the location of an earthquake swarm. For situations such as this we can use a weighted mean. Where wi is the weight of the ith measurement.

  12. VARIATIONS While the central value of a sample is important, the variations around that value are often equally important. When we talked about exploratory data analysis we talked about the largest and smallest values and the “hinges”, or values bounding the middle half of the values. We could look at the deviations of each point from the mean: And take the average of the deviations:

  13. But this value is always zero, since the mean is defined to be the mid-point of all deviations. You could take the absolute value of the deviations before summing, but this isn’t often done. The most common deviation of a population is defined by: Where 2 is called the variance of the population, and  is called the standard deviation of the population.

  14. Usually, we’ll be working with samples of the population, not the population itself, and the functions of variance and standard deviation are almost the same: the sum is divided by n-1, rather than N: While this change isn’t very important in most cases, if n is small, the difference between n and n-1 can be significant. Why the change? In going from the population to the sample, we’ve lost one degree of freedom. The number of independent pieces of information that go into the estimate of a parameter are called the degrees of freedom. The number of values that can vary in the variance is n-1, since the mean utilizes one of those values. BUT……..?????

  15. Let’s look at the equation for variance of a sample closer. What value of minimizes the value of s2 ? We already know the answer, but can we prove it? Let: Then we want to know the value of x that occurs when d(f(x)/dx=0, insuring either a maximum or minimum in f(x). If d2(f(x)/dx2>0, the value must be a minimum. Differentiating:

  16. The 2nd derivative of the function is So, the value of x that minimizes the variance is the mean that was defined earlier. This value, the mean, minimizes the least-squares mis-fit in the data samples, and is often called the L2 estimateof the central value.

  17. Similarly, we can show that the mean absolute deviation is minimized by using the median central estimate rather than the mean. The median is called the L1 estimate of central location. Look at the term in the sum, it can only take on values of ±1/1 or 0/0. For the sum to be zero, the numbers of values greater than must equal the number of values less than , which defines the median.

  18. ROBUST Estimation Estimation of central values and deviations don’t do us much good if they are sensitive to which sample we take. We are better off using estimators that are robust, that is insensitive to variations in the sample. We introduce the concept of “breakdown point” - the smallest fraction of points in a sample that have to be replaced by outliers to cause the estimator to lie outside reasonable values. The mean is sensitive to even one outlier, thus its breakdown point is 1/n. The median, on the other hand will not be thrown off until about half of the data values have been replaced by outliers, so its breakdown point is 50%.

  19. Example of robustness of mean and median The column on the left is the original series of n=12 random numbers. Each successive column to the right has had one value replaced by an outlier. The mean, median, and standard deviation are calculated at the bottom.

  20. This is a plot of the above results. Note that the standard deviation increases rapidly with the number of outliers, while the mean shows far more variation than the median. Thus, the median is more robust than the mean.

  21. From the above graph, we also see that the standard deviation is not robust, growing steadily as the number of outliers increases. We don’t need to look far for a robust variation statistic; recall that the median of is minimized if is the median of the sample.We can thus define the median absolute deviation (MAD) as: The factor 1.482 is a fudge factor that makes the MAD values equivalent to the values of standard deviation.

  22. The MAD value has been added to the previous graph. Note that it is FAR more robust than the standard deviation until the number of outliers reaches n/2.

  23. How do we identify outliers? We don’t want to delete real data! This is a real problem - as noted earlier. Great care must be taken when deleting data from consideration - and a search should be made for why the data are bad. A data point being statistically “off” is not sufficient reason to delete it. We can normalize the MAD value by defining a new variable: This new variable is unitless, and we can arbitrarily cut off all points with values where |zi|>3. This implies that data points to be deleted are more than 3 deviation units away from the median.

  24. These are the zi values for the previous example. Note that each of the outliers shows up as having values far greater than 3, indicating that they are somehow “bad” and can be safely deleted.

  25. What should you get from this? You now have a robust method for removal of outliers from a data set. You must also realize that the mean and standard deviation are NOT good statistics to use for removal of outliers. Removal of outliers can be very important in many applications, and while least-squares operations, such as mean and standard variation, are extremely useful, they are best applied to data with NO outliers. An excellent method for data analysis is thus provided: Plot your raw data Calculate the median, MAD, and zi values Remove the outliers Calculate the mean and standard deviation These are sometimes called the least-trimmed squares estimates (LTS)

  26. Inferences about the mean We are usually working with samples from some population. How well do the statistics of our sample compare with the statistics of the population? In some cases, like the age of a rock, there is only one correct answer, and no standard deviation. But how well does our estimate of the age compare with the “true” age? In other cases, we would like the distribution of our sample to reflect the distribution of the population. An important concept is presented by the Central Limit Theorum. It states that: If n (the sample size) is large, then the then the variation of sample means closely approximates a normal distribution. The sample mean, x, is an unbiased estimate of the population mean, µ.

  27. It can also be shown that the standard deviation of the means of many samples, , is related to the population standard deviation, , by: or: Depending on whether N is finite or infinite. Note that approaches zero as n gets large. The variance of for many samples has a mean value of 2. The variance of the estimate of the variance is related to the population variance by:

  28. Covariance and correlation Earlier we noted that the sample variance is defined as: We often deal with pairs of properties, such as temperature vs depth, nitrogen vs oxygen, silica vs potassium, etc. And we would like to know how these parameters are related to each other. We can devine a variance for each property, x and y. For y:

  29. We define the covariance as: The covariance tells us how x and y vary together. But what does it mean, particularly if the units of x and y are different. Note that the covariance can be negative! We overcome this problem by normalizing and getting rid of units: This value, r, is the correlation coefficient.

  30. If |r| is 1, x nd y are perfectly correlated. If r=1, x and y are identical. If r=-1, they are identical but opposite in phase. If r is close to zero, x and y are uncorrelated. Consider the correlations on the next slide:

  31. Note the circle in f). The correlation is zero despite the fact that x and y are highly related to each other. The correlation coefficient is looking for a linear correlation.

  32. Moments The rth moment of a sample is defined as: Thus, L1 : µ: mean L2 : 2 : variance L3 : SK: skewness (symmetry) L4 : K: kurtosis (sharpness)

More Related