Random Variables Flashcards

1
Q

Random Variable

A

A random variable is the numerical outcome of a random experiment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Example of a random experiment

A
  1. Imagine a machine that draws a student at random from the student body. (The experiment). The student’s height, weight, sex are all random variables.
  2. The outcome of the toss of a coin is a random variable.
  3. Toss a pair of dice. Let X represent the sum of the dots on the two dice.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Notation for a random variable

A
  1. The random variable is typically named X
  2. The probability that a random variable X has the value x is written as Pr(X=x) or simply p(x)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Let X be the random variable representing the outcome of throwing a pair of dice and summing them. If we draw a probability histogram, what value will it be centered around and what will its probability be?

A

7

p(7) = 1/6

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What principle enables us to use the properties of theoretical distributions to model data?

A

We can think of the frequentist definition of probability: ie: the relative frequence of an event “in the long run.” If a particular random experiment is repeated many times, the outcome begins to look like the theoretical distribution.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What symbols are coventionally used for the statistical properties of population versus sample data?

A

Population mean: µ

Sample mean: x̅

Population standard deviation: σ

Sample standard deviation: s

Population proportion: p

Sample proportion: p̂

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Mean of a random discrete variable

A

µ = ∑ x·p(x)

The sum of all the possible values, each weighted by its probability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A pair of coins is tossed multiple times. At each trial the number of heads is counted (ie 0, 1 or 2 heads). Let x represent the value. The following results are obtained:

x nx

0 260

1 517

2 223

Calculate the mean and compare it to the expected mean.

A

x̅ = 0*(.26) + 1*(.517) + 2*(.223)

= .963

Model µ = 0*.25 + .5*.5 + .25*.5

= 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Variance of a random discrete variable

A

σ<span>2</span> = ∑ (x-µ)2 p(x)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the relationship between the mean and expected value of a random variable?

A

The mean of a random variable is equal to the expected value of the variable.

µ = E[X]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the probability that a random continuous variable will be equal to a particular value?

A

0

Since the random variable is continous, it can take on an infinite number of values. Since all these values are equally likely, the probability that it is a particular value will be 0.

For example, consider a balanced, spinning pointer. The probability that it will stop within a particular range of values can be calculated (for example P(.25 ≤ X ≤ .75) = .5) but not for a particular value such as .5.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

X is a continuous random variable with probability density function given by f(x) = cx for 0 ≤ x ≤ 1, where c is a constant. Find c.

A

c=2

For any continuous random variable with probability density function f(x), we have that: ∫ f(x) dx= 1 when we integrate over all possible values of x.

We know that cdf If we integrate f(x) between 0 and 1 we get c/2. Hence c/2 = 1 (from the useful fact above!), giving c = 2.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Let x be a random variable and f(x) be its probability density function. What is the probability that x will occur in the interval [a, b]

A

∫f(x) dx, definite integral from a to b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If f(x) is the probability density function of a random continous variable X, what is the mean and variance ?

A
  • µ = ∫ x·f(x) dx* from negative infinity to positive infinity (or all possible values of x).
  • σ2 = ∫ (x-µ)2·f(x) dx* from negative infinity to positive infinity (or all possible values of x).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Suppose we are playing a gambling game depending on a coin toss. You ante up $6 to play; you get $10 if the result is a head. $0 if it is a tail.

What is your expected winning?

A

-1

Let W be a random variable representing you winnings:

W = 10X -6

where X is the original random variable with value 1 when a head results.

E[W] = E[10X - 6] = 10*E{X} -6 = -1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Suppose we are playing a gambling game depending on a coin toss. You ante up $6 to play; you get $10 if the result is a head. $0 if it is a tail.

What is the variance of your expected winning?

A

25

σ2(W) = σ2(10X +6)

= 100σ2(X)

= 25

so:

σ(X) = 5

17
Q

Suppose we toss two coins. The value of a head is 1. What is the variance of the outcome?

A

.5

Let X1 and X2 be the two random variables. When two random variables are independent, their variances will add. So:

σ2(X1+X2) = σ2(X1) + σ2(X2)

= .25 + .25

= .5

18
Q

Expectation of the sum of many random variables:

E[∑xi] =?

A

E[∑xi] =∑E[xi]

The expectation of the sum of many random variables is equal to the sum of individual expectations.

(What does this mean?)