|
|
Line 1: |
Line 1: |
| {{About|the term used in probability theory and statistics}}
| | If you are utilizing articles to aid drive traffic to your site you will want to come up with ideas for articles that men and women will want to study and publish. The top quality of articles found on report directories can vary drastically so it is crucial that yours are amongst the best offered for your write-up advertising and marketing campaign to be profitable.<br><br>There is no finish to the [http://Www.ehow.com/search.html?s=subjects subjects] you can create about and you can use any style you wish. However, it has to be something that people will want to read. "How to" articles are quite popular with each website owners and readers and can be a great way to get your report advertising campaign underway. Essentially, the objective of a "how to" write-up is to clarify to a reader how to do some thing.<br><br>Of course, you will have to have a good expertise of how to do the task yourself ahead of you can consider about instructing anyone else how to do it, so stick to what you know. There are a lot of possibilities. If you have experience in networking you could write a "how to" report on how to set up a router at home, or if you love cars you could write an post on "how to service your car". There are endless possibilities for "how to" articles, in fact you are reading a single correct now.<br><br>So let"s get started. When you are writing a "how to" write-up bear in mind that you are the teacher so write in an authoritative tone. You are sharing your expertise with a person who may have tiny understanding of the subject at hand. So preserve your writing style easy and your guidelines clear.<br><br>At the beginning of your report tell your reader what their objective is and summarize how it is going to be achieved. This will prepare them for the activity ahead. You must also inform them of what, if anything, they will require to have to hand to total the process. Going back to the setting up a router example, you would need to have to inform them that they will want their personal computer, router, instruction booklet and maybe and ethernet cable to total the activity.<br><br>Also, you should start at the beginning and function by way of the job step by step. Sometimes it might be useful to use bullet points to aid give the impression that it is a step by step method. Get more on our favorite related paper by navigating to [http://journals.fotki.com/forgetfulcarpenter64/Store-Algebra/ Store Algebra | Fotki.com, photo and video sharing made easy.]. Alternatively you can link the methods with words like "next", "and then" or "now". Be taught further on [http://journals.fotki.com/vulgarmandolin8/Revolver-Cast/ Revolver Cast | Fotki.com, photo and video sharing made easy.] by going to our [http://en.wiktionary.org/wiki/stately+web stately web] page. If you are new to writing the bullet points selection may well be best for you as it keeps things basic, and helps you steer clear of complicated grammatical structures.<br><br>As you write, re-study your text every few paragraphs, and try to read it from the reader"s point of view, assuming they know absolutely nothing about the process at hand. As an professional on the subject it can be too effortless to make issues more than-complex because the activity is second nature to you. Attempt to imagine you are performing it for the very first time and instruct the reader accordingly. Going back to our earlier instance, will the reader really know what an ethernet cable is, or what a router is for that matter?<br><br>If a distinct stage in the task is complicated you might want to repeat the instruction, or ask the reader to check their progress so they are certain they have followed your directions successfully.<br><br>With longer articles it is important to do this regularly so the reader does not drop track. Summarize what they have done so far, inform them what ought to have already been accomplished and ask them to verify that almost everything is as it need to be. If a reader finds that the project does not appear like what you have described, they can then retrace the final handful of measures and see exactly where they went wrong.<br><br>If you work by way of your write-up in this manner you should be left with a clear, concise "how to" report that requires the reader by means of every step of the project to completion. Read it once more, at least twice, to make certain that it is properly written and that directions are clear. Wrap up with a concluding paragraph congratulating the reader for a job properly done.<br><br>And lastly, the icing on the cake, the headline. This does not necessarily have to be done at the finish. It can be accomplished prior to you create the write-up but you may possibly uncover that headline ideas will come to you as you write your content. Be certain to devote some time perfecting your headline as this can be the difference among the success and failure of your post..<br><br>Should you adored this informative article as well as you wish to obtain guidance relating to woman s health - [http://www.iamsport.org/pg/blog/reflectivewall731 simply click the up coming webpage], i implore you to stop by our site. |
| | |
| In [[probability theory]], the '''expected value''' (or '''expectation''', '''mathematical expectation''', '''EV''', '''mean''', or '''first moment''') refers, intuitively, to the value of a [[random variable]] one would "expect" to find if one could repeat the random variable process an [[Infinity|infinite]] number of times and take the average of the values obtained. More formally, the expected value is a [[weighted average]] of all possible values. In other words, each possible value that the random variable can assume is multiplied by its assigned weight, and the resulting products are then added together to find the expected value. The weights used in computing this average are the [[probability mass function|probabilities]] in the case of a [[discrete random variable]] (that is, a random variable that can only take on a finite number of values, such as a roll of a pair of dice), or the values of a [[probability density function]] in the case of a [[continuous random variable]] (that is, a random variable that can assume a theoretically infinite number of values, such as the height of a person).
| |
| | |
| From a rigorous theoretical standpoint, the expected value of a continuous variable is the [[Lebesgue integral|integral]] of the random variable with respect to its [[probability measure]].<ref name=Ross>{{cite book |title=Introduction to probability models |author=Sheldon M Ross |edition=9th |publisher=Academic Press |isbn=0-12-598062-0 |year=2007 |chapter=§2.4 Expectation of a random variable |page=38 ''ff'' |url=http://books.google.com/books?id=12Pk5zZFirEC&pg=PA38 }}</ref><ref name=Hamming>{{cite book |title=The art of probability for scientists and engineers |author=[[Richard W Hamming]] |chapter=§2.5 Random variables, mean and the expected value |page=64 ''ff'' |publisher=Addison-Wesley |year=1991 |isbn=0-201-40686-1 |url=http://books.google.com/books?id=jX_F-77TA3gC&pg=PA64 }}</ref> Since probability can never be negative (although it can be zero), one can intuitively understand this as the [[area]] under the [[curve]] of the [[graph]] of the values of a random variable multiplied by the probability of that value. Thus, for a continuous random variable the expected value is the [[Limit (mathematics)|limit]] of the weighted sum, i.e. the integral.
| |
| | |
| The intuitive explanation of the expected value above is a consequence of the [[law of large numbers]]: the expected value, when it exists, is [[almost surely]] the limit of the [[sample mean]] as the sample size grows to infinity. More informally, it can be interpreted as the long-run average of the results of many independent repetitions of an experiment (e.g. a dice roll). The value may not be [[expectation (epistemic)|expected]] in the ordinary sense—the "expected value" itself may be unlikely or even impossible (such as having 2.5 children), as is also the case with the sample mean.
| |
| | |
| The expected value does not exist for random variables having some [[probability distribution|distributions]] with [[Heavy tails|large "tails"]], such as the [[Cauchy distribution]].<ref name=Hamming2>{{cite book |title=The art of probability for scientists and engineers |author=[[Richard W Hamming]] |chapter=Example 8.7–1 The Cauchy distribution |page=290 ''ff'' |publisher=Addison-Wesley |year=1991 |isbn=0-201-40686-1 |url=http://books.google.com/books?id=jX_F-77TA3gC&printsec=frontcover&dq=isbn:0201406861&cd=1#v=onepage&q=Cauchy&f=false |quote=Sampling from the Cauchy distribution and averaging gets you nowhere — one sample has the same distribution as the average of 1000 samples!}}</ref> For random variables such as these, the long-tails of the distribution prevent the sum/integral from converging.
| |
| | |
| The expected value is a key aspect of how one characterizes a [[probability distribution]]; it is one type of [[location parameter]]. By contrast, the [[variance]] is a measure of [[Statistical dispersion|dispersion]] of the possible values of the random variable around the expected value. The variance itself is defined in terms of two expectations: it is the expected value of the squared deviation of the variable's value from the variable's expected value.
| |
| | |
| The expected value plays important roles in a variety of contexts. In [[regression analysis]], one desires a formula in terms of observed data that will give a "good" estimate of the parameter giving the effect of some [[explanatory variable]] upon a [[dependent variable]]. The formula will give different estimates using different samples of data, so the estimate it gives is itself a random variable. A formula is typically considered good in this context if it is an [[unbiased estimator]]—that is, if the expected value of the estimate (the average value it would give over an arbitrarily large number of separate samples) can be shown to equal the true value of the desired parameter.
| |
| | |
| In [[decision theory]], and in particular in [[Expected utility hypothesis#Expected value and choice under risk|choice under uncertainty]], an agent is described as making an optimal choice in the context of incomplete information. For [[risk neutrality|risk neutral]] agents, the choice involves using the expected values of uncertain quantities, while for [[risk aversion|risk averse]] agents it involves maximizing the expected value of some [[objective function]] such as a [[von Neumann-Morgenstern utility function]].
| |
| | |
| ==Definition==
| |
| | |
| ===Univariate discrete random variable, finite case===
| |
| Suppose [[random variable]] ''X'' can take value ''x''<sub>1</sub> with probability ''p''<sub>1</sub>, value ''x''<sub>2</sub> with probability ''p''<sub>2</sub>, and so on, up to value ''x<sub>k</sub>'' with probability ''p<sub>k</sub>''. Then the '''expectation''' of this random variable ''X'' is defined as
| |
| : <math> \operatorname{E}[X] = x_1p_1 + x_2p_2 + \dotsb + x_kp_k \;.</math>
| |
| Since all probabilities ''p<sub>i</sub>'' add up to one (''p''<sub>1</sub> + ''p''<sub>2</sub> + ... + ''p<sub>k</sub>'' = 1), the expected value can be viewed as the [[weighted average]], with ''p<sub>i</sub>''’s being the weights:
| |
| : <math> \operatorname{E}[X] = \frac{x_1p_1 + x_2p_2 + \dotsb + x_kp_k}{1} = \frac{x_1p_1 + x_2p_2 + \dotsb + x_kp_k}{p_1 + p_2 + \dotsb + p_k}\;.</math>
| |
| If all outcomes ''x<sub>i</sub>'' are equally likely (that is, ''p''<sub>1</sub> = ''p''<sub>2</sub> = ... = ''p<sub>k</sub>''), then the weighted average turns into the simple [[arithmetic mean|average]]. This is intuitive: the expected value of a random variable is the average of all values it can take; thus the expected value is what one expects to happen ''on average''. If the outcomes ''x<sub>i</sub>'' are not equally probable, then the simple average must be replaced with the weighted average, which takes into account the fact that some outcomes are more likely than the others. The intuition however remains the same: the expected value of ''X'' is what one expects to happen ''on average''.
| |
| | |
| [[File:Largenumbers.svg|An illustration of the convergence of sequence averages of rolls of a {{dice}} to the expected value of 3.5 as the number of rolls (trials) grows.|thumb|right|400 px]]
| |
| '''Example 1'''. Let ''X'' represent the outcome of a roll of a six-sided {{dice}}. More specifically, ''X'' will be the number of [[Pip (counting)|pips]] showing on the top face of the {{dice}} after the toss. The possible values for ''X'' are 1, 2, 3, 4, 5, and 6, all equally likely (each having the probability of {{frac2|1|6}}). The expectation of ''X'' is
| |
| : <math> \operatorname{E}[X] = 1\cdot\frac16 + 2\cdot\frac16 + 3\cdot\frac16 + 4\cdot\frac16 + 5\cdot\frac16 + 6\cdot\frac16 = 3.5.</math>
| |
| | |
| If one rolls the {{dice}} ''n'' times and computes the average ([[arithmetic mean]]) of the results, then as ''n'' grows, the average will [[almost surely]] [[Convergent sequence|converge]] to the expected value, a fact known as the [[strong law of large numbers]]. One example sequence of ten rolls of the {{dice}} is 2, 3, 1, 2, 5, 6, 2, 2, 2, 6, which has the average of 3.1, with the distance of 0.4 from the expected value of 3.5. The convergence is relatively slow: the probability that the average falls within the range {{nowrap|3.5 ± 0.1}} is 21.6% for ten rolls, 46.1% for a hundred rolls and 93.7% for a thousand rolls. See the figure for an illustration of the averages of longer sequences of rolls of the {{dice}} and how they converge to the expected value of 3.5. More generally, the rate of convergence can be roughly quantified by e.g. [[Chebyshev's inequality]] and the [[Berry-Esseen theorem]].
| |
| | |
| '''Example 2'''. The [[roulette]] game consists of a small ball and a wheel with 38 numbered pockets around the edge. As the wheel is spun, the ball bounces around randomly until it settles down in one of the pockets. Suppose random variable ''X'' represents the (monetary) outcome of a $1 bet on a single number ("straight up" bet). If the bet wins (which happens with probability {{frac2|1|38}}), the payoff is $35; otherwise the player loses the bet. The expected profit from such a bet will be
| |
| : <math> \operatorname{E}[\,\text{gain from }$1\text{ bet}\,] = -$1 \cdot \frac{37}{38}\ +\ $35 \cdot \frac{1}{38} = -$0.0526.</math>
| |
| | |
| ===Univariate discrete random variable, countable case===
| |
| Let ''X'' be a [[discrete random variable]] taking values ''x''{{su|b=1}}, ''x''{{su|b=2}}, ... with probabilities ''p''{{su|b=1}}, ''p''{{su|b=2}}, ... respectively. Then the expected value of this random variable is the [[infinite sum]]
| |
| : <math> \operatorname{E}[X] = \sum_{i=1}^\infty x_i\, p_i,</math>
| |
| provided that this series [[absolute convergence|converges absolutely]] (that is, the sum must remain finite if we were to replace all ''x{{su|b=i}}'''s with their absolute values). If this series does not converge absolutely, we say that the expected value of ''X'' does not exist.
| |
| | |
| For example, suppose random variable ''X'' takes values 1, −2, 3, −4, ..., with respective probabilities {{frac2|''c''|1<sup>2</sup>}}, {{frac2|''c''|2<sup>2</sup>}}, {{frac2|''c''|3<sup>2</sup>}}, {{frac2|''c''|4<sup>2</sup>}}, ..., where {{nowrap|''c'' {{=}} {{frac2|6|''π''<sup>2</sup>}}}} is a normalizing constant that ensures the probabilities sum up to one. Then the infinite sum
| |
| : <math> \sum_{i=1}^\infty x_i\,p_i = c\,\bigg( 1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \dotsb \bigg)</math>
| |
| converges and its sum is equal to {{nowrap|[[natural logarithm|ln]](2) ≃ 0.69315}}. However it would be incorrect to claim that the expected value of ''X'' is equal to this number—in fact E[''X''] does not exist, as this series does not converge absolutely (see [[harmonic series (mathematics)|harmonic series]]).
| |
| | |
| ===Univariate continuous random variable===
| |
| If the [[probability distribution]] of <math>X</math> admits a [[probability density function]] <math>f(x)</math>, then the expected value can be computed as
| |
| : <math> \operatorname{E}[X] = \int_{-\infty}^\infty x f(x)\, \mathrm{d}x . </math>
| |
| | |
| ===General definition===
| |
| In general, if ''X'' is a [[random variable]] defined on a [[probability space]] {{nowrap|(Ω, Σ, ''P'')}}, then the expected value of ''X'', denoted by E[''X''], ⟨''X''⟩, <span style="text-decoration:overline">''X''</span> or '''E'''[''X''], is defined as the [[Lebesgue integration|Lebesgue integral]]
| |
| :<math>\operatorname{E} [X] = \int_\Omega X \, \mathrm{d}P = \int_\Omega X(\omega) P(\mathrm{d}\omega) </math>
| |
| | |
| When this integral exists, it is defined as the expectation of ''X''. Note that not all random variables have a finite expected value, since the integral may not converge absolutely; furthermore, for some it is not defined at all (e.g., [[Cauchy distribution]]). Two variables with the same [[probability distribution]] will have the same expected value, if it is defined.
| |
| | |
| It follows directly from the discrete case definition that if ''X'' is a [[constant random variable]], i.e. ''X'' = ''b'' for some fixed [[real number]] ''b'', then the expected value of ''X'' is also ''b''.
| |
| | |
| The expected value of a measurable function of ''X'', ''g''(''X''), given that ''X'' has a probability density function ''f''(''x''), is given by the [[inner product]] of ''f'' and ''g'':
| |
| :<math>\operatorname{E}[g(X)] = \int_{-\infty}^\infty g(x) f(x)\, \mathrm{d}x .</math>
| |
| | |
| This is sometimes called the [[law of the unconscious statistician]]. Using representations as [[Riemann–Stieltjes integral]] and [[integration by parts]] the formula can be restated as
| |
| :<math>\operatorname{E}[g(X)] = \int_a^\infty g(x) \, \mathrm{d} \mathrm{P}(X \le x)= \begin{cases} g(a)+ \int_a^\infty g'(x)\mathrm{P}(X > x) \, \mathrm{d} x & \mathrm{if}\ \mathrm{P}(g(X) \ge g(a))=1 \\ g(b) - \int_{-\infty}^b g'(x)\mathrm{P}(X \le x) \, \mathrm{d} x & \mathrm{if}\ \mathrm{P}(g(X) \le g(b))=1. \end{cases}</math>
| |
| | |
| As a special case let ''α'' denote a positive real number. Then
| |
| | |
| :<math> \operatorname{E}\left [\left|X \right|^\alpha \right ] = \alpha \int_{0}^{\infty} t^{\alpha -1}\mathrm{P}(\left|X \right|>t) \, \mathrm{d}t.</math>
| |
| | |
| In particular, if α = 1 and {{nowrap|Pr[''X'' ≥ 0] {{=}} 1}}, then this reduces to
| |
| | |
| :<math> \operatorname{E}[|X|] = \operatorname{E}[X] = \int_0^\infty \lbrace 1-F(t) \rbrace \, \mathrm{d}t,</math>
| |
| | |
| where ''F'' is the [[cumulative distribution function]] of ''X''. This last identity is an instance of what, in a non-probabilistic setting, has been called the [[layer cake representation]].
| |
| | |
| The law of the unconscious statistician applies also to a measurable function ''g'' of several random variables ''X''<sub>1</sub>, ... ''X''<sub>n</sub> having a [[Probability density function#Densities associated with multiple variables|joint density]] ''f'':<ref name=wolframMultipleContinuousVariables>{{Citation
| |
| | url = http://mathworld.wolfram.com/ExpectationValue.html
| |
| | title = Expectation Value
| |
| | work =
| |
| | publisher =
| |
| | accessdate = October 2013
| |
| }}</ref>
| |
| <ref name=Pap84>{{Citation
| |
| | last = Papoulis
| |
| | first = A.
| |
| | year = 1984
| |
| | title = Probability, Random Variables, and Stochastic Processes
| |
| | publisher = New York: McGraw-Hill
| |
| | publication-place =
| |
| | page = pp. 139–152
| |
| | url =
| |
| | accessdate =
| |
| }}</ref>
| |
| : <math> \operatorname{E}[g(X_1,\dots,X_n)] = \int_{-\infty}^\infty\cdots \int_{-\infty}^\infty g(x_1,\cdots,x_n)~f(x_1,\cdots,x_n)~\mathrm{d}x_1\cdots \mathrm{d}x_n . </math>
| |
| | |
| ==Properties==
| |
| | |
| ===Constants===
| |
| The expected value of a constant is equal to the constant itself; i.e., if ''c'' is a constant, then {{nowrap|E[''c''] {{=}} ''c''}}.
| |
| | |
| ===Monotonicity===
| |
| If ''X'' and ''Y'' are random variables such that {{nowrap|''X'' ≤ ''Y''}} [[almost surely]], then {{nowrap|E[''X''] ≤ E[''Y'']}}.
| |
| | |
| ===Linearity===
| |
| The expected value operator (or '''expectation operator''') E is [[linear operator|linear]] in the sense that
| |
| :<math>\begin{align}
| |
| \operatorname{E}[X + c] &= \operatorname{E}[X] + c \\
| |
| \operatorname{E}[X + Y] &= \operatorname{E}[X] + \operatorname{E}[Y] \\
| |
| \operatorname{E}[aX] &= a \operatorname{E}[X]
| |
| \end{align}</math>
| |
| | |
| Note that the second result is valid even if ''X'' is not [[statistically independent]] of ''Y''. Combining the results from previous three equations, we can see that
| |
| | |
| :<math>\operatorname{E}[a X + b Y + c] = a \operatorname{E}[X] + b \operatorname{E}[Y] + c\,</math>
| |
| | |
| for any two random variables ''X'' and ''Y'' (which need to be defined on the same probability space) and any real numbers ''a'', ''b'' and ''c''.
| |
| | |
| ===Iterated expectation===
| |
| | |
| ====Iterated expectation for discrete random variables====
| |
| For any two [[discrete probability distribution|discrete]] random variables ''X'', ''Y'' one may define the [[conditional expectation]]:<ref name=Ross3>
| |
| {{cite book |title=cited work |author=Sheldon M Ross |isbn=0-12-598062-0 |chapter=Chapter 3: Conditional probability and conditional expectation |page=97 ''ff'' |url=http://books.google.com/books?id=12Pk5zZFirEC&pg=PA97 }}
| |
| </ref>
| |
| | |
| :<math> \operatorname{E}[X|Y=y] = \sum\limits_x x \cdot \operatorname{P}(X=x|Y=y).</math>
| |
| | |
| which means that E[''X''|''Y'' = ''y''] is a function of ''y''. Let ''g''(''y'') be that function of ''y''; then the notation E[''X''|''Y''] is then a random variable in its own right, equal to ''g''(''Y'').
| |
| | |
| '''Lemma.''' Then the expectation of ''X'' satisfies:<ref name=Ross4>{{cite book |title=cited work |author=Sheldon M Ross |isbn=0-12-598062-0 |chapter=§3.4: Computing expectations by conditioning |page=105 ''ff'' |url=http://books.google.com/books?id=12Pk5zZFirEC&pg=PA105 }}</ref>
| |
| | |
| :<math>\operatorname{E}[X] = \operatorname{E}\left[ \operatorname{E}[X|Y] \right].</math>
| |
| | |
| '''Proof.'''
| |
| : <math> \begin{align}
| |
| \operatorname{E}\left[ \operatorname{E}[X|Y] \right] &= \sum\limits_y \operatorname{E}[X|Y=y] \cdot \operatorname{P}(Y=y) \\
| |
| &=\sum\limits_y \left( \sum\limits_x x \cdot \operatorname{P}(X=x|Y=y) \right) \cdot \operatorname{P}(Y=y)\\
| |
| &=\sum\limits_y \sum\limits_x x \cdot \operatorname{P}(X=x|Y=y) \cdot \operatorname{P}(Y=y)\\
| |
| &=\sum\limits_y \sum\limits_x x \cdot \operatorname{P}(Y=y|X=x) \cdot \operatorname{P}(X=x) \\
| |
| &=\sum\limits_x x \cdot \operatorname{P}(X=x) \cdot \left( \sum\limits_y \operatorname{P}(Y=y|X=x) \right) \\
| |
| &=\sum\limits_x x \cdot \operatorname{P}(X=x) \\
| |
| &=\operatorname{E}[X]
| |
| \end{align}</math>
| |
| | |
| The left-hand side of this equation is referred to as the ''iterated expectation''. The equation is sometimes called the ''tower rule'' or the ''tower property''; it is treated under [[law of total expectation]].
| |
| | |
| ====Iterated expectation for continuous random variables====
| |
| In the [[Probability distribution|continuous]] case, the results are completely analogous. The definition of conditional expectation would use inequalities, density functions, and integrals to replace equalities, mass functions, and summations, respectively. However, the main result still holds:
| |
| : E[''X''] = E[E[''X''|''Y'']]
| |
| | |
| ===Inequality===
| |
| If a random variable ''X'' is always less than or equal to another random variable ''Y'', the expectation of ''X'' is less than or equal to that of ''Y'':
| |
| | |
| If {{nowrap|''X'' ≤ ''Y''}}, then {{nowrap|E[''X''] ≤ E[''Y'']}}.
| |
| | |
| In particular, if we set Y to |''X''| we know ''X'' ≤ ''Y'' and −''X'' ≤ ''Y''. Therefore we know E[''X''] ≤ E[''Y''] and E[−''X''] ≤ E[''Y'']. From the linearity of expectation we know −E[''X''] ≤ E[''Y'']. Therefore the absolute value of expectation of a random variable is less than or equal to the expectation of its absolute value:
| |
| | |
| :<math>|\operatorname{E}[X]| \leq \operatorname{E}[|X|]</math>
| |
| | |
| ===Non-multiplicativity===
| |
| If one considers the joint probability density function of ''X'' and ''Y'', say ''j(x,y)'', then the expectation of ''XY'' is
| |
| | |
| :<math> \operatorname{E}[XY] = \iint xy \, j(x,y)\,\mathrm{d}x\,\mathrm{d}y.</math>
| |
| | |
| In general, the expected value operator is not multiplicative, i.e. E[''XY''] is not necessarily equal to E[''X'']·E[''Y'']. In fact, the amount by which multiplicativity fails is called the [[covariance]]:
| |
| | |
| :<math> \operatorname{Cov}(X,Y)=\operatorname{E}[XY]-\operatorname{E}[X]\operatorname{E}[Y].</math>
| |
| | |
| Thus multiplicativity holds precisely when {{nowrap|Cov(''X'', ''Y'') {{=}} 0}}, in which case ''X'' and ''Y'' are said to be [[uncorrelated]] ([[statistical independence|independent]] variables are a notable case of uncorrelated variables).
| |
| | |
| Now if ''X'' and ''Y'' are independent, then by definition {{nowrap|''j''(''x,y'') {{=}} ''f''(''x'')''g''(''y'')}} where ''f'' and ''g'' are the marginal PDFs for ''X'' and ''Y''. Then
| |
| | |
| :<math>\begin{align}
| |
| \operatorname{E}[XY]
| |
| &= \iint xy \,j(x,y)\,\mathrm{d}x\,\mathrm{d}y = \iint x y f(x) g(y)\,\mathrm{d}y\,\mathrm{d}x \\
| |
| & = \left[\int x f(x)\,\mathrm{d}x\right]\left[\int y g(y)\,\mathrm{d}y\right] = \operatorname{E}[X]\operatorname{E}[Y]
| |
| \end{align}</math>
| |
| | |
| and {{nowrap|Cov(''X'', ''Y'') {{=}} 0}}.
| |
| | |
| Observe that independence of ''X'' and ''Y'' is required only to write ''j''(''x'', ''y'') = ''f''(''x'')''g''(''y''), and this is required to establish the second equality above. The third equality follows from a basic application of the [[Fubini's theorem|Fubini-Tonelli theorem]].
| |
| | |
| ===Functional non-invariance===
| |
| In general, the expectation operator and [[function (mathematics)|functions]] of random variables do not [[commutative operation|commute]]; that is
| |
| | |
| :<math>\operatorname{E}[g(X)] = \int_{\Omega} g(X)\, \mathrm{d}\mathrm{P} \neq g(\operatorname{E}[X]),</math>
| |
| | |
| A notable inequality concerning this topic is [[Jensen's inequality]], involving expected values of convex (or concave) functions.
| |
| | |
| ==Uses and applications==
| |
| It is possible to construct an expected value equal to the probability of an event by taking the expectation of an [[indicator function]] that is one if the event has occurred and zero otherwise. This relationship can be used to translate properties of expected values into properties of probabilities, e.g. using the law of large numbers to justify estimating probabilities by [[Statistical frequency|frequencies]].
| |
| | |
| The expected values of the powers of ''X'' are called the [[moment (mathematics)|moments]] of ''X''; the [[moment about the mean|moments about the mean]] of ''X'' are expected values of powers of ''X'' − E[''X'']. The moments of some random variables can be used to specify their distributions, via their [[moment generating function]]s.
| |
| | |
| To empirically [[Estimation theory|estimate]] the expected value of a random variable, one repeatedly measures observations of the variable and computes the [[arithmetic mean]] of the results. If the expected value exists, this procedure estimates the true expected value in an [[estimator bias|unbiased]] manner and has the property of minimizing the sum of the squares of the [[errors and residuals in statistics|residuals]] (the sum of the squared differences between the observations and the [[estimator|estimate]]). The [[law of large numbers]] demonstrates (under fairly mild conditions) that, as the [[Sample size|size]] of the [[statistical sample|sample]] gets larger, the [[variance]] of this [[estimator|estimate]] gets smaller.
| |
| | |
| This property is often exploited in a wide variety of applications, including general problems of [[statistical estimation]] and [[machine learning]], to estimate (probabilistic) quantities of interest via [[Monte Carlo methods]], since most quantities of interest can be written in terms of expectation, e.g. <math>\operatorname{P}({X \in \mathcal{A}}) = \operatorname{E}[I_{\mathcal{A}}(X)]</math> where <math> I_{\mathcal{A}}(X)</math> is the indicator function for set <math>\mathcal{A}</math>, i.e. <math> X \in \mathcal{A} \rightarrow I_{\mathcal{A}}(X)= 1, X \not \in \mathcal{A} \rightarrow I_{\mathcal{A}}(X)= 0 </math>.
| |
| | |
| [[File:Beta first moment.svg|thumb|The mass of probability distribution is balanced at the expected value, here a Beta(α,β) distribution with expected value α/(α+β).]] In [[classical mechanics]], the [[center of mass]] is an analogous concept to expectation. For example, suppose ''X'' is a discrete random variable with values ''x<sub>i</sub>'' and corresponding probabilities ''p<sub>i</sub>''. Now consider a weightless rod on which are placed weights, at locations ''x<sub>i</sub>'' along the rod and having masses ''p<sub>i</sub>'' (whose sum is one). The point at which the rod balances is E[''X''].
| |
| | |
| Expected values can also be used to compute the [[variance]], by means of the [[computational formula for the variance]]
| |
| | |
| :<math>\operatorname{Var}(X)= \operatorname{E}[X^2] - (\operatorname{E}[X])^2.</math>
| |
| | |
| A very important application of the expectation value is in the field of [[quantum mechanics]]. The expectation value of a quantum mechanical operator <math>\hat{A}</math> operating on a [[quantum state]] vector <math>|\psi\rangle</math> is written as <math>\langle\hat{A}\rangle = \langle\psi|A|\psi\rangle</math>. The [[uncertainty principle|uncertainty]] in <math>\hat{A}</math> can be calculated using the formula <math>(\Delta A)^2 = \langle\hat{A}^2\rangle - \langle \hat{A} \rangle^2 </math>.
| |
| | |
| ==Expectation of matrices==
| |
| If ''X'' is an ''m'' × ''n'' [[Matrix (mathematics)|matrix]], then the expected value of the matrix is defined as the matrix of expected values:
| |
| | |
| :<math> \operatorname{E}[X] =
| |
| \operatorname{E} \left [\begin{pmatrix}
| |
| x_{1,1} & x_{1,2} & \cdots & x_{1,n} \\
| |
| x_{2,1} & x_{2,2} & \cdots & x_{2,n} \\
| |
| \vdots & \vdots & \ddots & \vdots \\
| |
| x_{m,1} & x_{m,2} & \cdots & x_{m,n}
| |
| \end{pmatrix} \right ] =
| |
| \begin{pmatrix}
| |
| \operatorname{E}[x_{1,1}] & \operatorname{E}[x_{1,2}] & \cdots & \operatorname{E}[x_{1,n}] \\
| |
| \operatorname{E}[x_{2,1}] & \operatorname{E}[x_{2,2}] & \cdots & \operatorname{E}[x_{2,n}] \\
| |
| \vdots & \vdots & \ddots & \vdots \\
| |
| \operatorname{E}[x_{m,1}] & \operatorname{E}[x_{m,2}] & \cdots & \operatorname{E}[x_{m,n}]
| |
| \end{pmatrix}.</math>
| |
| | |
| This is utilized in [[covariance matrix|covariance matrices]].
| |
| | |
| ==Formulas for special cases==
| |
| | |
| ===Discrete distribution taking only non-negative integer values===
| |
| When a random variable takes only values in {0, 1, 2, 3, ...} we can use the following formula for computing its expectation (even when the expectation is infinite):
| |
| :<math> \operatorname{E}[X]=\sum\limits_{i=1}^\infty P(X\geq i).</math>
| |
| | |
| '''Proof.'''
| |
| :<math> \sum\limits_{i=1}^\infty \mathrm{P}(X\geq i) = \sum\limits_{i=1}^\infty \sum\limits_{j=i}^\infty P(X = j). </math>
| |
| Interchanging the order of summation, we have
| |
| :<math>\begin{align}
| |
| \sum\limits_{i=1}^\infty \sum\limits_{j=i}^\infty P(X = j) &=\sum\limits_{j=1}^\infty \sum\limits_{i=1}^j P(X = j)\\
| |
| &=\sum\limits_{j=1}^\infty j\, P(X = j)\\
| |
| &=\operatorname{E}[X].
| |
| \end{align}</math>
| |
| | |
| This result can be a useful computational shortcut. For example, suppose we toss a coin where the probability of heads is ''p''. How many tosses can we expect until the first heads (not including the heads itself)? Let ''X'' be this number. Note that we are counting only the tails and not the heads which ends the experiment; in particular, we can have ''X'' = 0. The expectation of ''X'' may be computed by <math>\sum_{i= 1}^\infty (1-p)^i=\frac{1}{p}-1 </math>. This is because, when the first ''i'' tosses yield tails, the number of tosses is at least ''i''. The last equality used the formula for a [[geometric progression]], <math> \sum_{i=1}^\infty r^i=\frac{r}{1-r}, </math> where ''r'' = 1−''p''.
| |
| | |
| ===Continuous distribution taking non-negative values===
| |
| Analogously with the discrete case above, when a continuous random variable ''X'' takes only non-negative values, we can use the following formula for computing its expectation (even when the expectation is infinite):
| |
| :<math> \operatorname{E}[X]=\int_0^\infty P(X \ge x)\; \mathrm{d}x</math>
| |
| | |
| Proof: It is first assumed that ''X'' has a density ''f<sub>X</sub>''(''x''). We present two techniques:
| |
| *Using integration by parts (a special case of [[Expected value#General definition|Section 1.4 above]]):
| |
| :<math> \operatorname{E}[X] = \int_0^\infty (-x)(-f_X(x))\;\mathrm{d}x = \left[ -x(1 - F(x)) \right]_0^\infty + \int_0^\infty (1 - F(x))\;\mathrm{d}x </math>
| |
| | |
| and the bracket vanishes because (see [[Cumulative distribution function#Derived functions]])
| |
| | |
| <math> 1-F(x) = o\left(\frac{1}{x}\right)</math> as <math>x \rightarrow \infty.</math>
| |
| | |
| * Using an interchange in [[order of integration (calculus)|order of integration]]:
| |
| :<math> \int_0^\infty \! \mathrm{P}(X\ge x)\;\mathrm{d}x =\int_0^\infty \int_x^\infty f_X(t)\;\mathrm{d}t\;\mathrm{d}x = \int_0^\infty \int_0^t f_X(t)\;\mathrm{d}x\;\mathrm{d}t = \int_0^\infty t f_X(t)\;\mathrm{d}t = \operatorname{E}[X]</math>
| |
| | |
| In case no density exists, it is seen that
| |
| :<math> \operatorname{E}[X] = \int_0^\infty \int_0^x \! \mathrm{d}t \, \mathrm{d}F(x) = \int_0^\infty \int_t^\infty \! \mathrm{d}F(x)\mathrm{d}t = \int_0^\infty \! (1-F(t))\,\mathrm{d}t.</math>
| |
| | |
| ==History==
| |
| The idea of the expected value originated in the middle of the 17th century from the study of the so-called [[problem of points]]. This problem is: how to divide the stakes ''in a fair way'' between two players who have to end their game before it's properly finished? This problem had been debated for centuries, and many conflicting proposals and solutions had been suggested over the years, when it was posed in 1654 to [[Blaise Pascal]] by French writer and amateur mathematician [[Antoine Gombaud|Chevalier de Méré]]. de Méré claimed that this problem couldn't be solved and that it showed just how flawed mathematics was when it came to its application to the real world. Pascal, being a mathematician, was provoked and determined to solve the problem once and for all. He began to discuss the problem in a now famous series of letters to [[Pierre de Fermat]]. Soon enough they both independently came up with a solution. They solved the problem in different computational ways but their results were identical because their computations were based on the same fundamental principle. The principle is that the value of a future gain should be directly proportional to the chance of getting it. This principle seemed to have come naturally to both of them. They were very pleased by the fact that they had found essentially the same solution and this in turn made them absolutely convinced they had solved the problem conclusively. However, they did not publish their findings. They only informed a small circle of mutual scientific friends in Paris about it.<ref>{{cite journal |title=Ore, Pascal and the Invention of Probability Theory |journal=The American Mathematical Monthly |volume=67 |issue=5 |year=1960 |pages=409–419 }}</ref>
| |
| | |
| Three years later, in 1657, a Dutch mathematician [[Christiaan Huygens]], who had just visited Paris, published a treatise (see {{harvtxt|Huygens|1657}}) "''De ratiociniis in ludo aleæ''" on probability theory. In this book he considered the problem of points and presented a solution based on the same principle as the solutions of Pascal and Fermat. Huygens also extended the concept of expectation by adding rules for how to calculate expectations in more complicated situations than the original problem (e.g., for three or more players). In this sense this book can be seen as the first successful attempt of laying down the foundations of the [[theory of probability]].
| |
| | |
| In the foreword to his book, Huygens wrote: "It should be said, also, that for some time some of the best mathematicians of France have occupied themselves with this kind of calculus so that no one should attribute to me the honour of the first invention. This does not belong to me. But these savants, although they put each other to the test by proposing to each other many questions difficult to solve, have hidden their methods. I have had therefore to examine and go deeply for myself into this matter by beginning with the elements, and it is impossible for me for this reason to affirm that I have even started from the same principle. But finally I have found that my answers in many cases do not differ from theirs." (cited by {{harvtxt|Edwards|2002}}). Thus, Huygens learned about [[de Méré's Problem]] in 1655 during his visit to France; later on in 1656 from his correspondence with Carcavi he learned that his method was essentially the same as Pascal's; so that before his book went to press in 1657 he knew about Pascal's priority in this subject.
| |
| | |
| Neither Pascal nor Huygens used the term "expectation" in its modern sense. In particular, Huygens writes: "That my Chance or Expectation to win any thing is worth just such a Sum, as wou'd procure me in the same Chance and Expectation at a fair Lay. ... If I expect a or b, and have an equal Chance of gaining them, my Expectation is worth {{frac2|a+b|2}}." More than a hundred years later, in 1814, [[Pierre-Simon Laplace]] published his tract "''Théorie analytique des probabilités''", where the concept of expected value was defined explicitly:
| |
| | |
| {{quote|… this advantage in the theory of chance is the product of the sum hoped for by the probability of obtaining it; it is the partial sum which ought to result when we do not wish to run the risks of the event in supposing that the division is made proportional to the probabilities. This division is the only equitable one when all strange circumstances are eliminated; because an equal degree of probability gives an equal right for the sum hoped for. We will call this advantage ''mathematical hope''.}}
| |
| | |
| The use of the letter ''E'' to denote expected value goes back to [[William Allen Whitworth|W.A. Whitworth]] in 1901,<ref>Whitworth, W.A. (1901) ''Choice and Chance with One Thousand Exercises''. Fifth edition. Deighton Bell, Cambridge. [Reprinted by Hafner Publishing Co., New York, 1959.]</ref> who used a script E. The symbol has become popular since for English writers it meant "Expectation", for Germans "Erwartungswert", and for French "Espérance mathématique".<ref>{{cite web|title=Earliest uses of symbols in probability and statistics|url=http://jeff560.tripod.com/stat.html}}</ref>
| |
| | |
| ==See also==
| |
| *[[Center of mass]]
| |
| *[[Chebyshev's inequality]] (an inequality on location and scale parameters)
| |
| *[[Conditional expectation]]
| |
| *Expected value is also a key concept in [[economics]], [[finance]], and many other subjects
| |
| *The general term [[Expectation (epistemic)|expectation]]
| |
| *[[Expectation value (quantum mechanics)]]
| |
| *[[Moment (mathematics)]]
| |
| *[[Nonlinear expectation]] a generalization of the expected value
| |
| *[[Wald's equation]] for calculating the expected value of a random number of random variables
| |
| | |
| ==Notes==
| |
| {{reflist}}
| |
| | |
| ==Literature==
| |
| {{refbegin}}
| |
| * {{cite book
| |
| | last = Edwards | first = A.W.F
| |
| | title = Pascal's arithmetical triangle: the story of a mathematical idea
| |
| | year = 2002
| |
| | edition = 2nd
| |
| | publisher = JHU Press
| |
| | isbn = 0-8018-6946-3
| |
| | ref = harv
| |
| }}
| |
| * {{cite book
| |
| | last = Huygens | first = Christiaan
| |
| | title = De ratiociniis in ludo aleæ
| |
| | format = English translation, published in 1714: | url = http://www.york.ac.uk/depts/maths/histstat/huygens.pdf
| |
| | year = 1657
| |
| | ref = harv
| |
| }}{{refend}}
| |
| | |
| {{Theory of probability distributions}}
| |
| | |
| {{DEFAULTSORT:Expected Value}}
| |
| [[Category:Theory of probability distributions]]
| |
| [[Category:Gambling terminology]]
| |