











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Random variables are functions that describe the outcomes of an “experiment.” They are usually denoted with a capital letter, such as X or Y. RVs can be either discrete of continuous. A discrete random variable has a “countable” number of values, meaning that they could be listed. A continuous random variable has an uncountable number of numeric values, meaning they cannot be listed. Here are some examples:
Discrete
Continuous
Discrete random variables have probability (mass) function s which we denote p(x). The probability function gives probabilities of each individual value of the RV, e.g. P X ( = x ) = p x ( ).
Continuous random variables have probability density functions which we denote f(x). The probability density function can be used to give probabilities of ranges of values of the continuous RV. For example, 2 (^1 ) ( ) ( )
x x P x < X < x = (^) ∫ f x dx
The Binomial and Normal are very important random variables.
Let X = Number of successes out of n trials, in which the probability of success on each trial is a number π. Then X has a binomial distribution with parameters n and π. This is abbreviated X ~ B(n, π).
Example: Consider flipping a coin, and declare a “success” if a head (H) appears. Then the probability of success is .5. That is, π=P(S)=.5. Suppose the coin is flipped n=3 times, and X = number of heads. Then x ~ B(3, .5). The possible values of x are (0, 1, 2, 3). The probability of any event is (1/2)^3 = 1/8.
Events: HHH HHT HTH THH HTT THT TTH TTT
P(Event) 1/8 1/8 1/8 1/8 1/8 1/8 1/8 1/
In general: P(k H) =
3! 1 3 3! 1 k !(3 k )! 2 k !(3 k )! 8
⋅ ⎛^ ⎞^ = ⋅⎛^ ⎞ − ⎜^ ⎟^ − ⎜^ ⎟ ⎝ ⎠ ⎝ ⎠
0 1 2 3
The notation Y ~ N(μ,σ^2 ) means “The random variable Y is distributed normally with mean μ and variance σ^2.
The standard normal distribution has mean μ=0 and variance σ^2 =1. The letter Z is reserved to represent the standard normal random variable.
Computer programs and tables are available to obtain probabilities from the normal distribution. For example, you can discover that
The probability density function of the normal random variable with mean μ and variance σ^2 is given by the formula
Mean of Normal Distribution: μ Variance of Normal Distribution: σ
Standardizing a Normal Distribution:
If Y ~ N(μ,σ^2 ), then Z = ( Y – μ)/σ ~ N(0,1).
This result allows us to compute probabilities from any normal distribution using tables or a computer program for the standard normal distribution.
If you wanted to calculate the probability that a random variable y is greater that 1.42 standard deviations above its mean, you would compute:
( 1.42 ) ( 1.42) ( 1.42). Y P Y P P Z μ μ σ σ
− > + = > = > =
As a more specific application, suppose you believe the egg weights to be normally distributed with mean 65.4 and standard deviation 5.17. You would calculate the probability that a randomly drawn egg is greater than 72 as:
P Y ( > 72) = P (( Y − 65.4) / 5.2) > (72 − 65.4) / 5.2) = P Z ( > 1.27) =.
You can use the normal distribution to approximate binomial probabilities. This often simplifies a computation. For example, suppose you are shooting free-throws in basketball. You know that you make 75% of your shots; that is, the probability of making any one shot is .75. You have entered a contest that awards a prize if you make at least 18 out of 20 shots. What is the probability that you will win a prize?
You need to calculate P( Y ≥18), where y is the number of shots you make out of 20. The exact probability is given by the binomial formula with π = .75 and n = 20:
The calculation on the previous page would be tedious by hand, but many computer programs are available that can readily do it. However, even good computer programs may fail for computations involving extremely large n.
The normal approximation sets μ = nπ and σ^2 = nπ(1-π), and assumes Y ~N(μ,σ^2 ) to evaluate the probability. The approximation is improved by using a continuity correction , which means you compute P( Y ≥18-.5) = P( Y ≥17.5).
The normal approximation is then computed as:
μ = nπ = 20(.75) = 15 σ^2 = nπ(1-π) = 20(.75)(.25) = 3. σ = 3.75 1/2^ = 1.
P( Y ≥17.5) = P(( y – 15)/1.94 ≥ (17.5 – 15)/1.94)
This is a reasonable approximation to the exact binomial probability of P( Y ≥18) = .091.
If X is an RV with mean μX and variance σ X^2 , and Y = a+bX , where a and b are constants, then:
μ Y = E a ( + bX ) = a + bE X ( )= a + b μ X
and
2 2 2
2 2 2 2
(( ) ) ((( ) ( )) )
( ( ) )
Y Y X
X X
E Y E a bX a b
E b X b
σ μ μ
μ σ
= − = + − +
= − =
If X 1 ,…, Xk are RVs and Y= X,+…+ Xk then
μ Y = E X ( (^) 1 + ... + X (^) k ) = E X ( (^) 1 ) + ... + E X ( (^) k ) = μ 1 + ...+μ k
If X 1 ,…, Xk are independent RVs, each with mean μ and variance σ^2 , and if Y= X,+…+ Xk then
2 2 1 1 2 2 2 2 1 1 1
(( ... ) ( ... ))
( ) ... ( ) ...
Y k k
k k k
E X X
E X E X
σ μ μ
μ μ σ σ
= + + − + +
= − + + − = + +
It follows from the above results that the sample mean,
X = ( X (^) 1 + ... + X (^) n ) / n
is a random variable with mean μ^ X =^ μand variance
The Binomial random variable is the most commonly used discrete random variable. It represents the number of “successes” of out on n independent Bernoulli trials. (“Bernoulli” means that a trial has only two possible outcomes; e.g. S-F, 0-1, Y-N, M-F, T-F, etc.) There are other discrete random variables that are used to represent outcomes from other situations.
Poisson Random Variable: The Poisson RV is used to represent the number of times that randomly occurring items are detected in a given interval of time or space. An example is given by the number of cars crossing a point on a road in a specified interval of time, assuming the cars come at random times. Another example is the number of particles suspended in a specified volume of air or liquid medium, assuming the particles are randomly distributed.
The distinction of the Poisson from the Binomial is that the Poisson counts are out of a given time or space, and the Binomial counts are out of a given number of trials. There is no upper bound on the Poisson counts; its possible values are 0, 1, 2, 3, ….
The probability mass function for the Poisson RV is
x
λ (^) − λ
0
x
x
∞ − =
If data are skewed, and thus do not fit the normal distribution, then other RV’s can be used.
Lognormal Random Variable. In many types of applications the logarithms of data can be assumed normally distributed. It this assumption is true, then the data follow a lognormal distribution. Then, if X has a lognormal distribution, Y=lnX will have a normal distribution. Usually, data are “transformed” and then analyzed in the log scale.
Exponential Random Variable. The exponential distribution is used as a “waiting time” distribution. If items are arriving at random (as with the Poisson distribution) the times between arrivals will follow the exponential distribution. The probability density function is
Probability Plots
Statistical graphs are useful to visually assess certain attributes of probability distributions. The figure below shows several such plots based on a data set containing measured values of bone zinc in 48 sheep. The quantiles and moments at the right of the plots give a computational summary of the data.
At the bottom is a histogram with the best fitting normal probability density curve plotted through it. The curve passes through the histogram bars fairly well, but there are a few departures. There are no data in the 375-400 interval, and a few too many values in the 350-375 interval. The 375-400 interval is empty, and there is only one value in the 400-425 interval. The familiar box-plot does not detect these departures.
Central Limit Theorem
The sampling distribution is one of the most difficult concepts in all of statistics for students to comprehend. In order to grasp the concept of the sampling distribution, imagine obtaining a large number of samples, with each sample consisting of n observations. Then you compute the mean of each sample to generate a “population” of sample means. These means constitute the
sampling distribution of X^.
Previously it was shown that the sampling distribution of the
sample mean X has mean μ and variance σ^2 / n. The Central Limit
Theorem states that the sampling distribution of X also is approximate normally distributed, even though the distribution from which the samples were obtained is not normal. The closeness to the normal distribution increases as the sample size n increases.
To illustrate, consider a Bernoulli distribution that has only 0 and 1 as distinct values, and suppose there is a proportion π of 1’s and a proportion 1- π of 0’s. Imagine taking numerous samples from this population, each of size n, and computing the means for each of the samples. Now imagine doing this for several different values of n, say, n=1, 3, 5, 10, 30, and 100. Following are histograms of the means for each of the sample sizes, with π =.3.