Variance and Standard Deviation Math 217 Probability and Statistics

Total Page:16

File Type:pdf, Size:1020Kb

Variance and Standard Deviation Math 217 Probability and Statistics Pair of dice. Let's take as an example the roll X of one fair die. We know µ = E(X) = 3:5. What's the variance and standard deviation of X? Variance and standard deviation Var(X) Math 217 Probability and Statistics = E(X − µ)2 Prof. D. Joyce, Fall 2014 6 X = (x − 3:5)2 P (X = x) Variance for discrete random variables. The x=1 variance of a random variable X is intended to give 6 1 X 2 a measure of the spread of the random variable. If = 6 (x − 3:5) X takes values near its mean µ = E(X), then the x=1 1 5 2 3 2 1 2 1 2 3 2 5 2 variance should be small, but if it takes values from = 6 (− 2 ) + (− 2 ) + (− 2 ) + ( 2 ) + ( 2 ) + ( 2 ) from µ, then the variance should be large. 35 = 12 The measure we'll use for distance from the mean 2 35 will be the square of the distance from the mean, Since the variance is σ = 12 , therefore the stan- p (x − µ)2, rather than the distance from the mean, dard deviation is σ = 35=12 ≈ 1:707. jx−µj. There are three reasons for using the square of the distance rather than the absolute value of the Properties of variance. Although the defini- difference. First, the square is easier to work with tion works okay for computing variance, there is an mathematically. For instance, x2 has a derivative, alternative way to compute it that usually works but jxj doesn't. Second, large distances from the better, namely, mean become more significant, and it has been ar- 2 2 2 gued that this is a desirable property. Most impor- σ = Var(X) = E(X ) − µ tant, though, is that the square is the right measure Here's why that works. to use in order to derive the important theorems in the theory of probability, in particular, the Central σ2 = Var(x) Limit Theorem. = E(X − µ)2 Anyway, we define the variance Var(X) of a ran- = E(X2 − 2µX + µ2) dom variable X as the expectation of the square of 2 2 the distance from the mean, that is, = E(X ) − 2µE(X) + µ = E(X2) − 2µµ + µ2 Var(X) = E(X − µ)2: = E(X2) − µ2 As the square is used in the definition of vari- Here are a couple more properties of variance. ance, we'll use the square root of the variance to First, if you multiply a random variable X by a normalize this measure of the spread of the ran- constant c to get cX, the variance changes by a dom variable. The square root of the variance is factor of the square of c, that is called the standard deviation, denoted in our text as SD(X) Var(cX) = c2 Var(X): q SD(X) = pVar(X) = E(X − µ)2: That's the main reason why we take the square root of variance to normalize it|the standard deviation Just as we have a symbol µ for the mean, or expec- of cX is c times the standard deviation of X: tation, of X, we denote the standard deviation of X as σ, and so the variance is σ2. SD(cX) = jcj SD(x): 1 (Absolute value is needed in case c is negative.) It's S = X1 + X2 + ··· + Xn where each Xi equals 1 easy to show that Var(cX) = c2 Var(X): with probability p and 0 with probability q = 1−p. By the preceding theorem, Var(cX) = E(cX − µ)2 Var(S) = Var(X ) + Var(X ) + ··· + Var(X ): = Ec2(X − µ)2 1 2 n = c2E(X − µ)2 We can determine that if we can determine the vari- = c2 Var(X) ance of one Bernoulli trial X. Now, Var(X) = E(X2) − µ2, and for a Bernoulli 2 2 The next important property of variance is that trial µ = p. Let's compute E(X ). E(X ) = it's translation invariant, that is, if you add a con- P (X=0)0 + P (X=1)1 = p. Therefore, the variance 2 stant to a random variable, the variance doesn't of one Bernoulli trial is Var(X) = p − p = pq. change: From that observation, we conclude the variance Var(X + c) = Var(X): of the binomial distribution is In general, the variance of the sum of two random Var(S) = n Var(X) = npq: variables is not the sum of the variances of the two Taking the square root, we see that the standardp random variables. But it is when the two random deviation of that binomial distribution is npq. variables are independent. That gives us the important observation that the Theorem. If X and Y are independent random spread of a binomial distribution is proportional to variables, then Var(X + Y ) = Var(X) + Var(Y ). the square root of n, the number of trials. Proof: This proof relies on the fact that E(XY ) = The argument generalizes to other distributions: E(X) E(Y ) when X and Y are independent. The standard deviation of a random sample is pro- portional to the square root of the number of trials Var(X + Y ) in the sample. = E((X + Y )2) − µ2 X+Y Variance of a geometric distribution. Con- = E(X2 + 2XY + Y 2) − (µ + µ )2 X Y sider the time T to the first success in a Bernoulli 2 2 = E(X ) + 2E(X)E(Y ) + E(Y ) process. Its probability mass function is f(t) = 2 2 t−1 − µX − 2µX µY − µY pq . We saw that its mean was µ = E(T ) = 2 2 1 = E(X ) + 2µX µY + E(Y ) p . We'll compute its variance using the formula 2 2 Var(X) = E(X2) − µ2. − µX − 2µX µY − µY 2 2 2 2 1 = E(X ) − µX + E(Y ) − µY X E(T 2) = t2pqt−1 = Var(X) + Var(Y ) t=1 2 2 2 2 n−1 q.e.d. = 1p + 2 pq + 3 pq + ··· + n pq + ··· The last power series we got when we evaluated Variance of the binomial distribution. Let S E(T ) was be the number of successes in n Bernoulli trials, 1 where the probability of success is p. This random = 1 + 2x + 3x2 + ··· + nxn−1 + ··· (1 − x)2 variable S has a binomial distribution, and we could use its probability mass function to compute it, but Multiply it by x to get there's an easier way. The random variable S is x = x + 2x2 + 3x3 + ··· + nxn + ··· actually a sum of n independent Bernoulli trials (1 − x)2 2 Differentiate that to get 1 + x = 1 + 22x + 32x2 + ··· + n2xn−1 + ··· (1 − x)3 Set x to q, and multiply the equation by p, and we get 1 + q = p + 22pq + 32pq2 + ··· + n2pqn−1 + ··· p2 1 + q Therefore E(T 2) = . Finally, p2 1 + q 1 q Var(X) = E(X2) − µ2 = − = : p2 p2 p2 Math 217 Home Page at http://math.clarku. edu/~djoyce/ma217/ 3.
Recommended publications
  • Applied Biostatistics Mean and Standard Deviation the Mean the Median Is Not the Only Measure of Central Value for a Distribution
    Health Sciences M.Sc. Programme Applied Biostatistics Mean and Standard Deviation The mean The median is not the only measure of central value for a distribution. Another is the arithmetic mean or average, usually referred to simply as the mean. This is found by taking the sum of the observations and dividing by their number. The mean is often denoted by a little bar over the symbol for the variable, e.g. x . The sample mean has much nicer mathematical properties than the median and is thus more useful for the comparison methods described later. The median is a very useful descriptive statistic, but not much used for other purposes. Median, mean and skewness The sum of the 57 FEV1s is 231.51 and hence the mean is 231.51/57 = 4.06. This is very close to the median, 4.1, so the median is within 1% of the mean. This is not so for the triglyceride data. The median triglyceride is 0.46 but the mean is 0.51, which is higher. The median is 10% away from the mean. If the distribution is symmetrical the sample mean and median will be about the same, but in a skew distribution they will not. If the distribution is skew to the right, as for serum triglyceride, the mean will be greater, if it is skew to the left the median will be greater. This is because the values in the tails affect the mean but not the median. Figure 1 shows the positions of the mean and median on the histogram of triglyceride.
    [Show full text]
  • 1. How Different Is the T Distribution from the Normal?
    Statistics 101–106 Lecture 7 (20 October 98) c David Pollard Page 1 Read M&M §7.1 and §7.2, ignoring starred parts. Reread M&M §3.2. The eects of estimated variances on normal approximations. t-distributions. Comparison of two means: pooling of estimates of variances, or paired observations. In Lecture 6, when discussing comparison of two Binomial proportions, I was content to estimate unknown variances when calculating statistics that were to be treated as approximately normally distributed. You might have worried about the effect of variability of the estimate. W. S. Gosset (“Student”) considered a similar problem in a very famous 1908 paper, where the role of Student’s t-distribution was first recognized. Gosset discovered that the effect of estimated variances could be described exactly in a simplified problem where n independent observations X1,...,Xn are taken from (, ) = ( + ...+ )/ a normal√ distribution, N . The sample mean, X X1 Xn n has a N(, / n) distribution. The random variable X Z = √ / n 2 2 Phas a standard normal distribution. If we estimate by the sample variance, s = ( )2/( ) i Xi X n 1 , then the resulting statistic, X T = √ s/ n no longer has a normal distribution. It has a t-distribution on n 1 degrees of freedom. Remark. I have written T , instead of the t used by M&M page 505. I find it causes confusion that t refers to both the name of the statistic and the name of its distribution. As you will soon see, the estimation of the variance has the effect of spreading out the distribution a little beyond what it would be if were used.
    [Show full text]
  • On the Meaning and Use of Kurtosis
    Psychological Methods Copyright 1997 by the American Psychological Association, Inc. 1997, Vol. 2, No. 3,292-307 1082-989X/97/$3.00 On the Meaning and Use of Kurtosis Lawrence T. DeCarlo Fordham University For symmetric unimodal distributions, positive kurtosis indicates heavy tails and peakedness relative to the normal distribution, whereas negative kurtosis indicates light tails and flatness. Many textbooks, however, describe or illustrate kurtosis incompletely or incorrectly. In this article, kurtosis is illustrated with well-known distributions, and aspects of its interpretation and misinterpretation are discussed. The role of kurtosis in testing univariate and multivariate normality; as a measure of departures from normality; in issues of robustness, outliers, and bimodality; in generalized tests and estimators, as well as limitations of and alternatives to the kurtosis measure [32, are discussed. It is typically noted in introductory statistics standard deviation. The normal distribution has a kur- courses that distributions can be characterized in tosis of 3, and 132 - 3 is often used so that the refer- terms of central tendency, variability, and shape. With ence normal distribution has a kurtosis of zero (132 - respect to shape, virtually every textbook defines and 3 is sometimes denoted as Y2)- A sample counterpart illustrates skewness. On the other hand, another as- to 132 can be obtained by replacing the population pect of shape, which is kurtosis, is either not discussed moments with the sample moments, which gives or, worse yet, is often described or illustrated incor- rectly. Kurtosis is also frequently not reported in re- ~(X i -- S)4/n search articles, in spite of the fact that virtually every b2 (•(X i - ~')2/n)2' statistical package provides a measure of kurtosis.
    [Show full text]
  • Volatility Modeling Using the Student's T Distribution
    Volatility Modeling Using the Student’s t Distribution Maria S. Heracleous Dissertation submitted to the Faculty of the Virginia Polytechnic Institute and State University in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Economics Aris Spanos, Chair Richard Ashley Raman Kumar Anya McGuirk Dennis Yang August 29, 2003 Blacksburg, Virginia Keywords: Student’s t Distribution, Multivariate GARCH, VAR, Exchange Rates Copyright 2003, Maria S. Heracleous Volatility Modeling Using the Student’s t Distribution Maria S. Heracleous (ABSTRACT) Over the last twenty years or so the Dynamic Volatility literature has produced a wealth of uni- variateandmultivariateGARCHtypemodels.Whiletheunivariatemodelshavebeenrelatively successful in empirical studies, they suffer from a number of weaknesses, such as unverifiable param- eter restrictions, existence of moment conditions and the retention of Normality. These problems are naturally more acute in the multivariate GARCH type models, which in addition have the problem of overparameterization. This dissertation uses the Student’s t distribution and follows the Probabilistic Reduction (PR) methodology to modify and extend the univariate and multivariate volatility models viewed as alternative to the GARCH models. Its most important advantage is that it gives rise to internally consistent statistical models that do not require ad hoc parameter restrictions unlike the GARCH formulations. Chapters 1 and 2 provide an overview of my dissertation and recent developments in the volatil- ity literature. In Chapter 3 we provide an empirical illustration of the PR approach for modeling univariate volatility. Estimation results suggest that the Student’s t AR model is a parsimonious and statistically adequate representation of exchange rate returns and Dow Jones returns data.
    [Show full text]
  • Random Variables and Applications
    Random Variables and Applications OPRE 6301 Random Variables. As noted earlier, variability is omnipresent in the busi- ness world. To model variability probabilistically, we need the concept of a random variable. A random variable is a numerically valued variable which takes on different values with given probabilities. Examples: The return on an investment in a one-year period The price of an equity The number of customers entering a store The sales volume of a store on a particular day The turnover rate at your organization next year 1 Types of Random Variables. Discrete Random Variable: — one that takes on a countable number of possible values, e.g., total of roll of two dice: 2, 3, ..., 12 • number of desktops sold: 0, 1, ... • customer count: 0, 1, ... • Continuous Random Variable: — one that takes on an uncountable number of possible values, e.g., interest rate: 3.25%, 6.125%, ... • task completion time: a nonnegative value • price of a stock: a nonnegative value • Basic Concept: Integer or rational numbers are discrete, while real numbers are continuous. 2 Probability Distributions. “Randomness” of a random variable is described by a probability distribution. Informally, the probability distribution specifies the probability or likelihood for a random variable to assume a particular value. Formally, let X be a random variable and let x be a possible value of X. Then, we have two cases. Discrete: the probability mass function of X specifies P (x) P (X = x) for all possible values of x. ≡ Continuous: the probability density function of X is a function f(x) that is such that f(x) h P (x < · ≈ X x + h) for small positive h.
    [Show full text]
  • Calculating Variance and Standard Deviation
    VARIANCE AND STANDARD DEVIATION Recall that the range is the difference between the upper and lower limits of the data. While this is important, it does have one major disadvantage. It does not describe the variation among the variables. For instance, both of these sets of data have the same range, yet their values are definitely different. 90, 90, 90, 98, 90 Range = 8 1, 6, 8, 1, 9, 5 Range = 8 To better describe the variation, we will introduce two other measures of variation—variance and standard deviation (the variance is the square of the standard deviation). These measures tell us how much the actual values differ from the mean. The larger the standard deviation, the more spread out the values. The smaller the standard deviation, the less spread out the values. This measure is particularly helpful to teachers as they try to find whether their students’ scores on a certain test are closely related to the class average. To find the standard deviation of a set of values: a. Find the mean of the data b. Find the difference (deviation) between each of the scores and the mean c. Square each deviation d. Sum the squares e. Dividing by one less than the number of values, find the “mean” of this sum (the variance*) f. Find the square root of the variance (the standard deviation) *Note: In some books, the variance is found by dividing by n. In statistics it is more useful to divide by n -1. EXAMPLE Find the variance and standard deviation of the following scores on an exam: 92, 95, 85, 80, 75, 50 SOLUTION First we find the mean of the data: 92+95+85+80+75+50 477 Mean = = = 79.5 6 6 Then we find the difference between each score and the mean (deviation).
    [Show full text]
  • 4. Descriptive Statistics
    4. Descriptive statistics Any time that you get a new data set to look at one of the first tasks that you have to do is find ways of summarising the data in a compact, easily understood fashion. This is what descriptive statistics (as opposed to inferential statistics) is all about. In fact, to many people the term “statistics” is synonymous with descriptive statistics. It is this topic that we’ll consider in this chapter, but before going into any details, let’s take a moment to get a sense of why we need descriptive statistics. To do this, let’s open the aflsmall_margins file and see what variables are stored in the file. In fact, there is just one variable here, afl.margins. We’ll focus a bit on this variable in this chapter, so I’d better tell you what it is. Unlike most of the data sets in this book, this is actually real data, relating to the Australian Football League (AFL).1 The afl.margins variable contains the winning margin (number of points) for all 176 home and away games played during the 2010 season. This output doesn’t make it easy to get a sense of what the data are actually saying. Just “looking at the data” isn’t a terribly effective way of understanding data. In order to get some idea about what the data are actually saying we need to calculate some descriptive statistics (this chapter) and draw some nice pictures (Chapter 5). Since the descriptive statistics are the easier of the two topics I’ll start with those, but nevertheless I’ll show you a histogram of the afl.margins data since it should help you get a sense of what the data we’re trying to describe actually look like, see Figure 4.2.
    [Show full text]
  • Variance Difference Between Maximum Likelihood Estimation Method and Expected a Posteriori Estimation Method Viewed from Number of Test Items
    Vol. 11(16), pp. 1579-1589, 23 August, 2016 DOI: 10.5897/ERR2016.2807 Article Number: B2D124860158 ISSN 1990-3839 Educational Research and Reviews Copyright © 2016 Author(s) retain the copyright of this article http://www.academicjournals.org/ERR Full Length Research Paper Variance difference between maximum likelihood estimation method and expected A posteriori estimation method viewed from number of test items Jumailiyah Mahmud*, Muzayanah Sutikno and Dali S. Naga 1Institute of Teaching and Educational Sciences of Mataram, Indonesia. 2State University of Jakarta, Indonesia. 3 University of Tarumanegara, Indonesia. Received 8 April, 2016; Accepted 12 August, 2016 The aim of this study is to determine variance difference between maximum likelihood and expected A posteriori estimation methods viewed from number of test items of aptitude test. The variance presents an accuracy generated by both maximum likelihood and Bayes estimation methods. The test consists of three subtests, each with 40 multiple-choice items of 5 alternatives. The total items are 102 and 3159 respondents which were drawn using random matrix sampling technique, thus 73 items were generated which were qualified based on classical theory and IRT. The study examines 5 hypotheses. The results are variance of the estimation method using MLE is higher than the estimation method using EAP on the test consisting of 25 items with F= 1.602, variance of the estimation method using MLE is higher than the estimation method using EAP on the test consisting of 50 items with F= 1.332, variance of estimation with the test of 50 items is higher than the test of 25 items, and variance of estimation with the test of 50 items is higher than the test of 25 items on EAP method with F=1.329.
    [Show full text]
  • Annex : Calculation of Mean and Standard Deviation
    Annex : Calculation of Mean and Standard Deviation • A cholesterol control is run 20 times over 25 days yielding the following results in mg/dL: 192, 188, 190, 190, 189, 191, 188, 193, 188, 190, 191, 194, 194, 188, 192, 190, 189, 189, 191, 192. • Using the cholesterol control results, follow the steps described below to establish QC ranges . An example is shown on the next page. 1. Make a table with 3 columns, labeled A, B, C. 2. Insert the data points on the left (column A). 3. Add Data in column A. 4. Calculate the mean: Add the measurements (sum) and divide by the number of measurements (n). Mean= ∑ x +x +x +…. x 3809 = 190.5 mg/ dL 1 2 3 n N 20 5. Calculate the variance and standard deviation: (see formulas below) a. Subtract each data point from the mean and write in column B. b. Square each value in column B and write in column C. c. Add column C. Result is 71 mg/dL. d. Now calculate the variance: Divide the sum in column C by n-1 which is 19. Result is 4 mg/dL. e. The variance has little value in the laboratory because the units are squared. f. Now calculate the SD by taking the square root of the variance. g. The result is 2 mg/dL. Quantitative QC ● Module 7 ● Annex 1 A B C Data points. 2 xi −x (x −x) X1-Xn i 192 mg/dL 1.5 2.25 mg 2/dL 2 188 mg/dL -2.5 6.25 mg 2/dL2 190 mg/dL -0.5 0.25 mg 2/dL2 190 mg/dL -0.5 0.25 mg 2/dL2 189 mg/dL -1.5 2.25 mg 2/dL2 191 mg/dL 0.5 0.25 mg 2/dL2 188 mg/dL -2.5 6.25 mg 2/dL2 193 mg/dL 2.5 6.25 mg 2/dL2 188 mg/dL -2.5 6.25 mg 2/dL2 190 mg/dL -0.5 0.25 mg 2/dL2 191 mg/dL 0.5 0.25 mg 2/dL2 194 mg/dL 3.5 12.25 mg 2/dL2 194 mg/dL 3.5 12.25 mg 2/dL2 188 mg/dL -2.5 6.25 mg 2/dL2 192 mg/dL 1.5 2.25 mg 2/dL2 190 mg/dL -0.5 0.25 mg 2/dL2 189 mg/dL -1.5 2.25 mg 2/dL2 189 mg/dL -1.5 2.25 mg 2/dL2 191 mg/dL 0.5 0.25 mg 2/dL2 192 mg/dL 1.5 2.25 mg 2/dL2 2 2 2 ∑x=3809 ∑= -1 ∑ ( x i − x ) Sum of Col C is 71 mg /dL 2 − 2 ∑ (X i X) 2 SD = S = n−1 mg/dL SD = S = 71 19/ = 2mg / dL The square root returns the result to the original units .
    [Show full text]
  • Measures of Dispersion
    CHAPTER Measures of Dispersion Studying this chapter should Three friends, Ram, Rahim and enable you to: Maria are chatting over a cup of tea. • know the limitations of averages; • appreciate the need for measures During the course of their conversation, of dispersion; they start talking about their family • enumerate various measures of incomes. Ram tells them that there are dispersion; four members in his family and the • calculate the measures and average income per member is Rs compare them; • distinguish between absolute 15,000. Rahim says that the average and relative measures. income is the same in his family, though the number of members is six. Maria 1. INTRODUCTION says that there are five members in her family, out of which one is not working. In the previous chapter, you have She calculates that the average income studied how to sum up the data into a in her family too, is Rs 15,000. They single representative value. However, are a little surprised since they know that value does not reveal the variability that Maria’s father is earning a huge present in the data. In this chapter you will study those measures, which seek salary. They go into details and gather to quantify variability of the data. the following data: 2021-22 MEASURES OF DISPERSION 75 Family Incomes in values, your understanding of a Sl. No. Ram Rahim Maria distribution improves considerably. 1. 12,000 7,000 0 For example, per capita income gives 2. 14,000 10,000 7,000 only the average income. A measure of 3.
    [Show full text]
  • Analysis of Variance with Summary Statistics in Microsoft Excel
    American Journal of Business Education – April 2010 Volume 3, Number 4 Analysis Of Variance With Summary Statistics In Microsoft Excel David A. Larson, University of South Alabama, USA Ko-Cheng Hsu, University of South Alabama, USA ABSTRACT Students regularly are asked to solve Single Factor Analysis of Variance problems given only the sample summary statistics (number of observations per category, category means, and corresponding category standard deviations). Most undergraduate students today use Excel for data analysis of this type. However, Excel, like all other statistical software packages, requires an input data set in order to invoke its Anova: Single Factor procedure. The purpose of this paper is therefore to provide the student with an Excel macro that, given just the sample summary statistics as input, generates an equivalent underlying data set. This data set can then be used as the required input data set in Excel for Single Factor Analysis of Variance. Keywords: Analysis of Variance, Summary Statistics, Excel Macro INTRODUCTION ost students have migrated to Excel for data analysis because of Excel‟s pervasive accessibility. This means, given just the summary statistics for Analysis of Variance, the Excel user is either limited to solving the problem by hand or to solving the problem using an Excel Add-in. Both of Mthese options have shortcomings. Solving by hand means there is no Excel counterpart solution that puts the entire answer „right there in front of the student‟. Using an Excel Add-in is often not an option because, typically, Excel Add-ins are not available. The purpose of this paper, therefore, is to explain how to accomplish analysis of variance using an equivalent input data set and also to provide the Excel user with a straight-forward macro that accomplishes this technique.
    [Show full text]
  • The Multivariate Normal Distribution
    Multivariate normal distribution Linear combinations and quadratic forms Marginal and conditional distributions The multivariate normal distribution Patrick Breheny September 2 Patrick Breheny University of Iowa Likelihood Theory (BIOS 7110) 1 / 31 Multivariate normal distribution Linear algebra background Linear combinations and quadratic forms Definition Marginal and conditional distributions Density and MGF Introduction • Today we will introduce the multivariate normal distribution and attempt to discuss its properties in a fairly thorough manner • The multivariate normal distribution is by far the most important multivariate distribution in statistics • It’s important for all the reasons that the one-dimensional Gaussian distribution is important, but even more so in higher dimensions because many distributions that are useful in one dimension do not easily extend to the multivariate case Patrick Breheny University of Iowa Likelihood Theory (BIOS 7110) 2 / 31 Multivariate normal distribution Linear algebra background Linear combinations and quadratic forms Definition Marginal and conditional distributions Density and MGF Inverse • Before we get to the multivariate normal distribution, let’s review some important results from linear algebra that we will use throughout the course, starting with inverses • Definition: The inverse of an n × n matrix A, denoted A−1, −1 −1 is the matrix satisfying AA = A A = In, where In is the n × n identity matrix. • Note: We’re sort of getting ahead of ourselves by saying that −1 −1 A is “the” matrix satisfying
    [Show full text]