Docsity

Probability & Random Variables: Discrete & Continuous, Distributions, Mean & Variance, Study notes of Technology

Partial preview of the text

Download Probability & Random Variables: Discrete & Continuous, Distributions, Mean & Variance and more Study notes Technology in PDF only on Docsity!

Discrete Random

Variables and

Probability Distributions

Stat 4570/ Based on Devore ’ s book (Ed 8)

Random Variables We can associate each single outcome of an experiment with a real number: We refer to the outcomes of such experiments as a “ random variable ”. Why is it called a “ random variable ”?

Random Variables

Notation!

1. Random variables - usually denoted by

uppercase letters near the end of our alphabet

(e.g. X, Y ).

2. Particular value - now use lowercase letters,

such as x, which correspond to the r.v. X.

Birth weight example

Two Types of Random Variables A discrete random variable: Values constitute a finite or countably infinite set A continuous random variable:

  1. Its set of possible values is the set of real numbers R , one interval, or a disjoint union of intervals on the real line (e.g., [0, 10] ∪ [20, 30]).
  2. No one single value of the variable has positive probability, that is, P(X = c) = 0 for any possible value c. Only intervals have positive probabilities.

Example A lab has 6 computers. Let X denote the number of these computers that are in use during lunch hour -- {0, 1, 2… 6}. Suppose that the probability distribution of X is as given in the following table:

Example, cont From here, we can find many things:

  1. Probability that at most 2 computers are in use
  2. Probability that at least half of the computers are in use
  3. Probability that there are 3 or 4 computers free cont’d

Geometric r.v. -- Example Starting at a fixed time, we observe the gender of each newborn child at a certain hospital until a boy ( B ) is born. Let p = P(B) , assume that successive births are independent, and let X be the number of births observed until a first boy is born. Then p (1) = P ( X = 1) = P(B) = p And, p(2)=?, p(3) =?

The Geometric r.v. Continuing in this way, a general formula for the pmf emerges: The parameter p can assume any value between 0 and 1. Depending on what parameter p is, we get different members of the geometric distribution. cont’d p(x) = ( (1 p) x 1 p if x = 1, 2 , 3 ,... 0 otherwise

Example

Suppose we are given the following pmf:

Then, calculate:

F(0), F(1), F(2)

What about F(1.5)? F(20.5)?

Is P(X < 1) = P(X <= 1)?

The Binomial Probability Distribution

Binomial experiments conform to the following:

  1. The experiment consists of a sequence of n identical and independent Bernoulli experiments called trials , where n is fixed in advance.
  2. Each trial outcome is a Bernoulli r.v., i.e. , each trial can result in only one of 2 possible outcomes. We generically denote one outcome by “success” ( S, or 1) and “failure” ( F, or 0).
  3. The probability of success P ( S ) (or P(1) ) is identical across trials; we denote this probability by p. 4. The trials are independent, so that the outcome on any particular trial does not influence the outcome on any other trial.

The Binomial Random Variable and Distribution Suppose, for example, that n = 3. What is the sample space? Using the definition of X, X ( SSF ) =? X ( SFF ) =? What are the possible values for X if there are n trials? NOTATION: We write X ~ Bin( n , p ) to indicate that X is a binomial rv based on n Bernoulli trials with success probability p. What distribution do we have if n = 1?

Example – Binomial r.v. A coin is tossed 6 times. From the knowledge about fair coin-tossing probabilities, p = P ( H ) = P(S) = 0.5. How do we express that X is a binomial r.v. in mathematical notation? What is P(X = 3)? P (X >= 3)? P(X <= 5)? Can we derive the binomial distribution?

Back to theory: Mean (Expected Value) of X

Let X be a discrete r.v. with set of possible values D and pmf p ( x ). The expected value or mean value of X , denoted

by E ( X ) or μ

X

or just μ, is

Note that if p(x)=1/N where N is the size of D then we get the arithmetic average.

Example Consider a university having 15,000 students and let X = of courses for which a randomly selected student is registered. The pmf of X is given to you as follows:

Calculate μ