| advertise add site services publishers database health videos | ![]() | about toolbar stats live show health store more stuff JOIN/LOGIN |
Losing weight can mean gaining a sex life online-ambulance.com | Changing ways and means, means just that for our future yoga-ez-fitness-wear.com |
The weighted mean is similar to an arithmetic mean (the most common type of average), where instead of each of the data points contributing equally to the final average, some data points contribute more than others. The notion of weighted mean plays a role in descriptive statistics and also occurs in a more general form in several other areas of mathematics. If all the weights are equal, then the weighted mean is the same as the arithmetic mean. While weighted means generally behave in a similar fashion to arithmetic means, they do have a few counter-intuitive properties, as captured for instance in Simpson's paradox. The term weighted average usually refers to a weighted arithmetic mean, but weighted versions of other means can also be calculated, such as the weighted geometric mean and the weighted harmonic mean. [edit] ExampleGiven two school classes, one with 20 students, and one with 30 students, the grades in each class on a test were:
The straight average for the morning class is 80 and the straight average of the afternoon class is 90. The straight average of 80 and 90 is 85, the mean of the two class means. However, this does not account for the difference in number of students in each class, and the value of 85 does not reflect the average student grade (independent of class). The average student grade can be obtained by either averaging all the numbers without regard to classes, or weighting the class means by the number of students in each class: Or, using a weighted mean of the class means: The weighted mean makes it possible to find the average student grade also in the case where only the class means and the number of students in each class are available. [edit] Mathematical definitionFormally, the weighted mean of a non-empty set of data with non-negative weights is the quantity which means: Therefore data elements with a high weight contribute more to the weighted mean than do elements with a low weight. The weights cannot be negative. Some may be zero, but not all of them (since division by zero is not allowed). The formulas are simplified when the weights are normalized such that they sum up to 1, i.e. The common mean [edit] Length-weighted meanThis is used for weighting a response variable based upon its dependency on x, a distance variable. [edit] Convex combinationSince only the relative weights are relevant, any weighted mean can be expressed using coefficients that sum to one. Such a linear combination is called a convex combination. Using the previous example, we would get the following: This simplifies to: [edit] Statistical propertiesThe weighted sample mean If the observations have expected values For uncorrelated observations with standard deviations σi, the weighted sample mean has standard deviation [edit] Dealing with varianceFor the weighted mean of a list of data for which each element The weighted mean in this case is: and the variance of the weighted mean is: which reduces to The significance of this choice is that this weighted mean is the maximum likelihood estimator of the mean of the probability distributions under the assumption that they are independent and normally distributed with the same mean. [edit] Correcting for over/under dispersionWeighted means are typically used to find the weighted mean of experimental data, rather than theoretically generated data. In this case, there will be some error in the variance of each data point. Typically experimental errors may be underestimated due to the experimenter not taking into account all sources of error in calculating the variance of each data point. In this event, the variance in the weighted mean must be corrected to account for the fact that χ2 is too large. The correction that must be made is where [edit] Weighted sample varianceTypically when a mean is calculated it is important to know the variance and standard deviation of that mean. When a weighted mean μ * with normalized weights is used, the variance of the weighted sample is different from the variance of the unweighted sample. The biased weighted sample variance is defined similarly to the normal biased sample variance: For small samples, it is customary to use an unbiased estimator for the population variance. In normal unweighted samples, the N in the denominator (corresponding to the sample size) is changed to N − 1. While this is simple in unweighted samples, it is not straightforward when the sample is weighted. The unbiased estimator of a weighted population variance is given by [1]:
where V2 was introduced previously. The degrees of freedom of the weighted, unbiased sample variance vary accordingly from N − 1 down to 0. The standard deviation is simply the square root of the variance above. [edit] Accounting for correlationsIn the general case, suppose that and [edit] Decreasing strength of interactionsConsider the time series of an independent variable x and a dependent variable y, with n observations sampled at discrete times ti. In many common situations, the value of y at time ti depends not only on xi but also on its past values. Commonly, the strength of this dependence decreases as the separation of observations in time increases. To model this situation, one may replace the independent variable by its sliding mean z for a window size m.
[edit] Exponentially decreasing weightsIn the scenario described in the previous section, most frequently the decrease in interaction strength obeys a negative exponential law. If the observations are sampled at equidistant times, then exponential decrease is equivalent to decrease by a constant fraction 0 < Δ < 1 at each time step. Setting w = 1 − Δ we can define m normalized weights by The damping constant w must correspond to the actual decrease of interaction strength. If this cannot be determined from theoretical considerations, then the following properties of exponentially decreasing weights are useful in making a suitable choice: at step (1 − w) − 1, the weight approximately equals e − 1(1 − w) = 0.39(1 − w), the tail area the value e − 1, the head area 1 − e − 1 = 0.61. The tail area at step n is [edit] Weighted averages of functionsThe concept of weighted average can be extended to functions.[2] [edit] See also
[edit] Notes
[edit] Further Reading
[edit] External links
|
| ↑ top of page ↑ | about thumbshots |