Discrete Random Variables
In questa pagina 4
Random variables are a powerful tool to model uncertainty. The packaging is different, but everything is based on the concept of probability space, which remains the main building block.
There are often situations where one finds it convenient to summarise, in numerical form, the information contained in a complex sample space .
Example. Let the sample space contain as elementary outcomes the health records of all the patients of the General Hospital. So refers to patient and contains e.g. Suppose that for a certain study we are interested only in the age of the hospital patients. Then it is natural to simplify the model by extracting from only the relevant information. This can be done by introducing a map where is the projection of onto its fourth component, containing the age of patient .
Definition
Definition. Let be a probability space and , , be a map such that
- (i) (the image space of ) is a discrete set, i.e. . The discrete set is called the alphabet of , often denoted .
- (ii) for all . Assumption (ii) is called measurability; it guarantees that one can assign the probability to all the possible sets , .
A map satisfying (i) and (ii) is called a discrete random variable (r.v.).
Remark. If is a discrete probability space where (all subsets of ), then any function with discrete is a discrete random variable, since (ii) is automatically satisfied.
Examples of random variables
Let and let (the outcome of the -th toss). The , , are discrete random variables: they satisfy (i) because the image space of all of them is the finite set (binary alphabet), and (ii) is trivially satisfied since for discrete probability spaces.
One can operate on r.v.'s as with functions. For example, in terms of the one can define the r.v. and clearly , therefore too is a discrete random variable (it counts the number of 1s).
More examples. Let be the sample space of two tetrahedral dice. Some r.v.'s that can be defined on are
Remarks on the terminology
Compare the terminology used in analysis and in probability.
- In analysis, , : is the name of the function, is the name of the variable.
- In probability, , : is the name of the function.
is called "random variable", which is extremely misleading. First of all is a function, not a variable. Moreover there is nothing random about , which is a deterministic map. The randomness is all in : the values are random, not the map.
The induced measure on the alphabet
Problem: how to construct a measure on . The r.v. maps points of to the points of the alphabet , and is the set of all outcomes sent to .
Since is discrete, to assign a probability on it it is enough to assign it to each elementary event . A most natural measure on is the induced measure defined as
Discussion. Recall that . Since is a function, and moreover . Therefore the sets , , form a partition of . The induced measure transfers the probability measure from into in the natural way.
Notation. There are several equivalent ways of denoting the induced measure, used depending on convenience: where is the measure on and the measure on .
Lemma. is a probability measure.
Proof. (i) for all . (ii) Using the partition property, Since is a discrete set, for all and , the conclusion is that is a probability measure on .
Example. Let (two tetrahedral dice, equiprobable outcomes, 16 in total) and . In the grid of outcomes (rows: first die, columns: second die) the level sets of are the "L-shaped" regions:
II -> 1 2 3 4
I
4 x x x x Z = 4 (7 outcomes)
3 x x x x Z = 3 (5 outcomes)
2 x x x x Z = 2 (3 outcomes)
1 x x x x Z = 1 (1 outcome)(outcome belongs to the L-shaped region with .) Counting outcomes: which add up to (checked on the page).
Discrete probability density
When random variables are used as models of random phenomena they are almost never specified as functions , i.e. neither the sample space on which they are defined nor the functional form of are explicitly given. What is given is the set of its possible values, i.e. the alphabet , and the measure on in the form of a discrete density.
Definition. Let be a discrete random variable with alphabet . The map is called the discrete density of the r.v. .
Warning. The discrete density is known only as the set of non-negative real numbers that add up to 1. In general the connection to the original through the relation is not available.
Properties of the discrete density :
- (i) for all ;
- (ii) ;
- (iii) for all .
Critical example: random variables with identical densities
Let and let be the (binomial) measure on with , . Then Consider the random variables sends to and to ; sends to and to . Clearly and are different r.v.'s by (as functions) but share a common density. The density does not specify the r.v. as a function!
See Distribution FunctionThe distribution function F_X(x) = P(X <= x) is an alternative to the discrete density; for a discrete random variable it is a right-continuous non-decreasing step function whose jumps are the values of the density.Distribution Function → for the alternative description of a r.v., Bernoulli, Uniform and Binomial Random VariablesBernoulli, discrete uniform and binomial random variables are the basic families with finite alphabet; the binomial counts successes in n independent identical trials, and when independence or constant probability fails (urns without replacement) the hypergeometric density appears instead.Bernoulli, Uniform and Binomial Random Variables → for the main finite-alphabet examples, and Functions of Random Variables and LOTUSA function g(X) of a discrete random variable is again a discrete random variable whose density is obtained by summing p_X over the preimage, and the LOTUS computes E(g(X)) directly from p_X without finding the density of g(X).Functions of Random Variables and LOTUS → for operating on r.v.'s.
Versione ripasso
Definition. On , is a discrete r.v. if (i) its image (the alphabet) is a discrete set and (ii) for all (measurability). If , (ii) is automatic.
is a deterministic function; the randomness is in . Operations on r.v.'s are operations on functions (e.g. counts the 1s in a bit string).
Induced measure. . The sets partition , so is a probability measure on (non-negative, sum ).
Discrete density. ; properties: , , .
Example: for two tetrahedral dice: for .
Typical mistake: the density does not identify the r.v. as a function. With , , on the two bits are different functions with the same density , .