W and Y are discrete random variables. X and Z are continuous.
Probability Models and Random Variables
A probability model is a convenient way to describe the distribution of the outcomes of an experiment. It
consists of all the possible outcomes of an experiment their corresponding probabilities. It is often useful to display the
probability model with a table.
A probability model consists of the experimental outcomes and their probabilities.
What is a random variable?
The sample spaces S={top prize, second prize, third prize, no prize} and S={1000000,100000,500,0} refer to the same outcomes in different ways. In the second sample space, prize status is indicated by the amount of money associated with each prize. We could define a variable X such that \[ X = \begin{cases} 1,000,000 & \text{if top prize} \\ 100,000 & \text{if second prize} \\ 500 & \text{if third prize}\\ 0 & \text{if no prize}\\ \end{cases} \] A variable that assigns each outcome in a sample space to a real number is called a random variable. Random variables enable us to work mathematically with experimental outcomes. For instace, for the VA lottery, we can use random variables to describe how much money lottery players will win on average, how much the winning will vary, or and how much someone who bought multiple tickets would win, on average.
$\rightarrow$ A random variable maps each outcome of an experiment to a real number.
NOTATION
A random variable is usually denoted with a capital letter from near the end of the alphabet. X, Y, and Z are common.
Observed values of a random variable are denoted by corresponding lower-case letters, thus x or x1,x2...xn denote
the specific values that the random variable X can take on.
The notation P(X = x) means 'the probability that random variable X assumes value x'.
Discrete and Continuous Random Variables
Random variables can be discrete or continuous.The outcomes of a discrete random variable are countable. That means they can be mapped to the integers or a subset of the integers. E.g. the number of students in a randomly selected class or the number of times someone rolls two dice before they get doubles. Notice that countable is not the same as finite. For instance, the number of times a student sneezes in a hour is countable but has no definite upper limit.
A continuous random variable is defined over an interval or intervals and is, therefore, always infinite. The time it takes to fill a randomly selected car with gas and the length of time between spotting shooting stars are continuous random variables.
$\rightarrow$ A discrete random variable has countable outcomes.
$\rightarrow$ A continous is defined over an interval or intervals.
W: The outcome of a die roll.
X: The number of 6's in 10 die rolls.
Y: The weight of a randomly chosen die.
Z: The length of time a rolled die tumbles.
W and X are discrete random variables. Y and Z are continuous.
The Distribution of a Random Variable
Much of statistics and probability is concerned with describing the distributions of random variables, that is the values that the variable can assume and the probabilities of those outcomes. For instance, consider the variable: the outcome of a die roll. The distribution of this variable would indicate that the possible values are the numbers 1, 2, 3, 4, 5, 6 and that these outcomes are all equally likely, each with probability 1/6. This information can be presented in a graph, table, or formula.
$\rightarrow$ The distribution of a random variable describes the possible outcomes and their associated probabilities.
In the case of a discrete random variable, such as the outcome of a die roll, a table displays the distribution by listing the possible outcomes with their probabilities. A graph shows bars at each of the possible outcomes with height corresponding to the probability of that outcome.
The table and the graph both show the distribution of the outcome of a die roll.
Since there are infinite possible outcomes for a continuous random variable, the distribution cannot be displayed in a table, rather it is described with a formula or graph.
Example: A machine that fills 15oz chip bags has been calibrated to slightly overfill. The distribution of the weight, W, of the chips in the bag might be described by a formula such as $\small{f(w) = 8.5-\frac{x}{2}}$ for $\small{15 \leq w \leq 17}$. The graph of this distribution is shown.
For every distribution, the probabilities are all non-negative and the total probabilty is 1.