Docsity

Random Variables: Concept, Discrete vs. Continuous, and Independence, Study notes of Statistics

Toggle sidebar
bg1
Random Variables
It is easier to work with numbers that with elementary outcomes. From now
on, we’re going to use real-valued functions called random variables (r.v.’s)
instead of working with Ω and ωdirectly. Random variables allow us to sum-
marize elementary outcomes and events with numbers.
Defn. A random variable (r.v.) is a function
X: Ω →R.
Example: Throw a dart at a board with 8 green squares and 1 red
square three times. The tosses are iid with P(red) = 1
9on any toss.
Count the number of times you hit the red square.
•Let X= # of reds.
•Xis a random variable.
–X=xif there are xreds and 3 −xgreens.
–The set of possible values for Xis {0,1,2,3}.
•What is the probability that you hit the red square exactly twice?
–The event “exactly 2 reds” is formally written as
{ω:X(ω)=2}
–Simpler notation for the event “exactly 2 reds” is X= 2.
P(2 reds) = P(X= 2)
=P(RRG or RGR or GRR)
=P(RRG) + P(RGR) + P(GRR)
=1
9·1
9·8
9+1
9·8
9·1
9+8
9·1
9·1
9
1
pf3
pf4

Partial preview of the text

Download Random Variables: Concept, Discrete vs. Continuous, and Independence and more Study notes Statistics in PDF only on Docsity!

Random Variables

It is easier to work with numbers that with elementary outcomes. From now on, we’re going to use real-valued functions called random variables (r.v.’s) instead of working with Ω and ω directly. Random variables allow us to sum- marize elementary outcomes and events with numbers.

Defn. A random variable (r.v.) is a function

X : Ω → R.

Example: Throw a dart at a board with 8 green squares and 1 red square three times. The tosses are iid with P (red) = 19 on any toss. Count the number of times you hit the red square.

  • Let X = # of reds.
  • X is a random variable.
    • X = x if there are x reds and 3 − x greens.
    • The set of possible values for X is { 0 , 1 , 2 , 3 }.
  • What is the probability that you hit the red square exactly twice?
    • The event “exactly 2 reds” is formally written as {ω : X(ω) = 2}
    • Simpler notation for the event “exactly 2 reds” is X = 2. P (2 reds) = P (X = 2) = P (RRG or RGR or GRR) = P (RRG) + P (RGR) + P (GRR) =
  • Standard Notation:
    • Capital letters for r.v.’s – i.e., X, Y, Z – and lowercase letters for the values of the r.v.’s
    • To simplify, write X = x for{ω : X(ω) = x}

Example (Practice with notation): Send 8 bits of information through a communication channel. Each bit is received correctly with probability p and incorrectly with probability q. The bits are independent. We are interested in the number of bits that are received incorrectly.

  • Sending the 8 bits is a sequence of iid Bernoulli trials.
  • Let X =# of bits received incorrectly.
  • What are the possible values for X? { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 }
  • Write the following events and expressions for their probabil- ities using the r.v. X. (a.) No wrong bits: X = 0, P (X = 0) (b.) At least one wrong bit: X > 0 , P (X > 0) or X ≥ 1 , P (X ≥ 1) (c.) Exactly 2 wrong bits: X = 2, P (X = 2) (d.) Between 2 and 7 wrong bits (inclusive): 2 ≤ X ≤ 7 , P (2 ≤ X ≤ 7)

Random Variables and Bernoulli trials

Defn. A Bernoulli random variable is a r.v. with two possible outcomes. If X is a Bernoulli r.v., then Im(X) = { 0 , 1 }, and P (X = 1) = p, P (X = 0) = q, p + q = 1.

Random Variables and

Independence

Defn. Two discrete r.v.’s X and Y are independent if P (X = x, Y = y) = P (X = x)P (Y = y) for all x ∈ Im(X) and y ∈ Im(Y ). In general, two r.v.’s X and Y are independent if P (X ∈ A, Y ∈ B) = P (X ∈ A)P (Y ∈ B) for any two sets A ⊂ Im(X), and B ⊂ Im(Y ). Note that P (X = x, Y = y) means P (X = x, and Y = y), and P (X ∈ A, Y ∈ B) means P (X ∈ A, and Y ∈ B). Result: Two r.v’s X and Y are independent if P (X ∈ A|Y ∈ B) = P (X ∈ A) for all A ⊂ Im(X), and B ⊂ Im(Y ).

Intuitively, X and Y are independent if knowledge about Y tells

us nothing about what values are more or less likely for X.