2 Random variables
A random variable is a quantity whose value cannot be predicted with certainty. We assume that for every real number the probability in a trial is well-defined. In practice, engineers are often concerned with two broad types of variables and their probability distributions: discrete random variables and their distributions, and continuous random variables and their distributions. Discrete distributions arise from experiments involving counting, for example, road deaths, car production and aircraft sales, while continuous distributions arise from experiments involving measurement, for example, voltage, corrosion and oil pressure.
2.1 Discrete random variables and probability distributions
A random variable and its distribution are said to be discrete if the values of can be presented as an ordered list say with probability values . That is . For example, the number of times a particular machine fails during the course of one calendar year is a discrete random variable.
More generally a discrete distribution may be defined by:
The distribution function (sometimes called the cumulative distribution function) is obtained by taking sums as defined by
We sum the probabilities for which is less than or equal to . This gives a step function with jumps of size at each value of . The step function is defined for all values, not just the values of .
Key Point 1
Probability Distribution of a Discrete Random Variable
Let be a random variable associated with an experiment. Let the values of be denoted by and let be the probability that occurs. We have two necessary conditions for a valid probability distribution:
Note that may be uncountably large (infinite).
(These two statements are sufficient to guarantee that for all .)
Example 5
Turbo Generators plc manufacture seven large turbines for a customer. Three of these turbines do not meet the customer’s specification. Quality control inspectors choose two turbines at random. Let the discrete random variable be defined to be the number of turbines inspected which meet the customer’s specification.
- Find the probabilities that takes the values or .
- Find and graph the cumulative distribution function.
Solution
-
The possible values of
are clearly
or
and may occur as follows:
Sample Space Value of X Turbine faulty, Turbine faulty 0 Turbine faulty, Turbine good 1 Turbine good, Turbine faulty 1 Turbine good, Turbine good 2 We can easily calculate the probability that takes the values or as follows:
The values of are clearly
-
The graph of the step function
is shown below.
Figure 1