Expected value Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.Anti-spam check. Do not fill this in! ===Infinite expected values=== Expected values as defined above are automatically finite numbers. However, in many cases it is fundamental to be able to consider expected values of {{math|Β±β}}. This is intuitive, for example, in the case of the [[St. Petersburg paradox]], in which one considers a random variable with possible outcomes {{math|''x''<sub>''i''</sub> {{=}} 2<sup>''i''</sup>}}, with associated probabilities {{math|''p''<sub>''i''</sub> {{=}} 2<sup>β''i''</sup>}}, for {{mvar|i}} ranging over all positive integers. According to the summation formula in the case of random variables with countably many outcomes, one has <math display="block"> \operatorname{E}[X]= \sum_{i=1}^\infty x_i\,p_i =2\cdot \frac{1}{2}+4\cdot\frac{1}{4} + 8\cdot\frac{1}{8}+ 16\cdot\frac{1}{16}+ \cdots = 1 + 1 + 1 + 1 + \cdots.</math> It is natural to say that the expected value equals {{math|+β}}. There is a rigorous mathematical theory underlying such ideas, which is often taken as part of the definition of the Lebesgue integral.{{sfnm|1a1=Billingsley|1y=1995|1loc=Section 15}} The first fundamental observation is that, whichever of the above definitions are followed, any ''nonnegative'' random variable whatsoever can be given an unambiguous expected value; whenever absolute convergence fails, then the expected value can be defined as {{math|+β}}. The second fundamental observation is that any random variable can be written as the difference of two nonnegative random variables. Given a random variable {{mvar|X}}, one defines the [[positive and negative parts]] by {{math|''X''<sup> +</sup> {{=}} max(''X'', 0)}} and {{math|''X''<sup> β</sup> {{=}} βmin(''X'', 0)}}. These are nonnegative random variables, and it can be directly checked that {{math|''X'' {{=}} ''X''<sup> +</sup> β ''X''<sup> β</sup>}}. Since {{math|E[''X''<sup> +</sup>]}} and {{math|E[''X''<sup> β</sup>]}} are both then defined as either nonnegative numbers or {{math|+β}}, it is then natural to define: <math display="block"> \operatorname{E}[X] = \begin{cases} \operatorname{E}[X^+] - \operatorname{E}[X^-] & \text{if } \operatorname{E}[X^+] < \infty \text{ and } \operatorname{E}[X^-] < \infty;\\ +\infty & \text{if } \operatorname{E}[X^+] = \infty \text{ and } \operatorname{E}[X^-] < \infty;\\ -\infty & \text{if } \operatorname{E}[X^+] < \infty \text{ and } \operatorname{E}[X^-] = \infty;\\ \text{undefined} & \text{if } \operatorname{E}[X^+] = \infty \text{ and } \operatorname{E}[X^-] = \infty. \end{cases} </math> According to this definition, {{math|E[''X'']}} exists and is finite if and only if {{math|E[''X''<sup> +</sup>]}} and {{math|E[''X''<sup> β</sup>]}} are both finite. Due to the formula {{math|{{!}}''X''{{!}} {{=}} ''X''<sup> +</sup> + ''X''<sup> β</sup>}}, this is the case if and only if {{math|E{{!}}''X''{{!}}}} is finite, and this is equivalent to the absolute convergence conditions in the definitions above. As such, the present considerations do not define finite expected values in any cases not previously considered; they are only useful for infinite expectations. * In the case of the St. Petersburg paradox, one has {{math|''X''<sup> β</sup> {{=}} 0}} and so {{math|E[''X''] {{=}} +β}} as desired. * Suppose the random variable {{mvar|X}} takes values {{math|1, β2,3, β4, ...}} with respective probabilities {{math|6Ο<sup>β2</sup>, 6(2Ο)<sup>β2</sup>, 6(3Ο)<sup>β2</sup>, 6(4Ο)<sup>β2</sup>, ...}}. Then it follows that {{math|''X''<sup> +</sup>}} takes value {{math|2''k''β1}} with probability {{math|6((2''k''β1)Ο)<sup>β2</sup>}} for each positive integer {{mvar|k}}, and takes value {{math|0}} with remaining probability. Similarly, {{math|''X''<sup> β</sup>}} takes value {{math|2''k''}} with probability {{math|6(2''k''Ο)<sup>β2</sup>}} for each positive integer {{mvar|k}} and takes value {{math|0}} with remaining probability. Using the definition for non-negative random variables, one can show that both {{math|E[''X''<sup> +</sup>] {{=}} β}} and {{math|E[''X''<sup> β</sup>] {{=}} β}} (see [[harmonic series (mathematics)|Harmonic series]]). Hence, in this case the expectation of {{mvar|X}} is undefined. * Similarly, the Cauchy distribution, as discussed above, has undefined expectation. Summary: Please note that all contributions to Christianpedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here. You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Christianpedia:Copyrights for details). Do not submit copyrighted work without permission! Cancel Editing help (opens in new window) Discuss this page