Probability mass function: Difference between revisions

Content deleted Content added
Bjcairns (talk | contribs)
m 'state space' -> 'sample space', and X is a function.
Bjcairns (talk | contribs)
The old version was too confusing and more than a little abusive of notation.
Line 3:
==Mathematical description==
 
Suppose that ''X'' is a discrete random variable, that is, that it takestaking values on some [[countable]] [[sample space]] ''S''. We may assume that ''S'' &sub; '''R''' (this will suffice, but more accurately &nbsp;''XS''&nbsp; is a function, &nbspsube;''X'': ''S''&rarr;'''R'''). Then the probability mass function &nbsp;''f''<sub>''X''</sub>(''x'')&nbsp; for ''X'' is given by
:<math>f_X(x) = \begin{cases}\mathrm{Pr}(X = x), &x\in S,\\0, &x\in \mathbb{R}\backslash S.\end{cases}</math>
Note that this explicitly defines &nbsp;''f''<sub>''X''</sub>(''x'')&nbsp; for all [[real number]]s, including all values in '''R''' that ''X'' could never take; indeed, it assigns such values a probability of zero. (Alternatively, think of &nbsp;Pr(''X'' = ''x'')&nbsp; as 0 when &nbsp;''x'' &isin; '''R'''\''S''.)