Week 2: Random Variables Flashcards

1
Q

Random Variable

A

A random variable is a function that takes an outcome from a random experiment (from the sample space
Ω) and assigns it a value in a set E, known as the outcome or target space.

Target Space (E) may be different than sample space if I assign it numbers for representation. Example: in deck of cards, I make Ace = 1, 2 =2, etc.

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

Real - Valued Random Variable

A

If the values of a random variable come from real numbers (like height, weight, or temperature), it’s called a real-valued random variable. For example, if X represents the temperature, then X is a real-valued random variable because temperature is a real number.

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

Vector Valued Random Variable

A

If the random variable takes multiple values at the same time (like in a list or a point in space), it’s called a vector-valued random variable. For example, if X represents both height and weight together, X would take a pair of values like (height, weight), making it vector-valued.

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

Discrete Random Variable

A

If the random variable can only take a countable number of distinct values, it’s called a discrete random variable. For example, rolling a die can result in only 6 distinct values: 1, 2, 3, 4, 5, or 6. This makes it a discrete random variable.

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

Statistical Analysis and Pushforward Measure

A

Instead of studying the actual random event, we focus on the probability distribution of the random variable—basically, how likely different values of the random variable are. For example, if you roll a die, we are more interested in the chances of getting a certain number (e.g., 1/6 chance of rolling a 3) than the actual physical act of rolling the die.

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

What is a Preimage of a set?

A

The preimage of a set under a random variable is the collection of outcomes in the sample space that lead to a particular result. For example, if you want to know the probability of rolling an even number on a die, the preimage is the set of outcomes that give an even number (i.e., rolling 2, 4, or 6).

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

(X^(−1)) (B)

A

Means pre-image of the set B under the random variable X. Identifies all outcomes in the random space that correspond to values in B. For example, if you want to know the probability of rolling an even number on a die, the preimage is the set of outcomes that give an even number (i.e., rolling 2, 4, or 6).

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

B (subset of target space)

A

Represents a subset of the target space (or range) of the random variable X. This set includes specific values that you are interested in, such as outcomes that meet certain criteria.

For example, if X is a random variable representing the results of rolling a die, B could be the set {3,4}.

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

A

The element-of symbol indicates membership in a set. For example, ω∈Ω means that ω is an element of the set Ω. (Omega is a sample space)

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

Ω

A

Represents the sample space, which is the set of all possible outcomes of a random experiment. It defines the universe of all outcomes that can occur.

For instance, if you roll a die, Ω={1,2,3,4,5,6}

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

X(ω)

A

This denotes the value of the random variable X at the outcome ω. It maps the outcome from the sample space Ω to the target space E where the values of the random variable lie. This is the actual outcome of the random experiment.

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

(X^−1)(B) := {ω∈Ω∣X(ω)∈B}

A

The pre-image of the set B under the random variable X is defined as the set of all outcomes ω in the sample space Ω such that the value of the random variable X at ω is an element of the set B.

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

B ⊂ E

A

B is a subset of E (subset of target space)

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

Px(B)=P(X∈B)

A

Probability of Random Variable X taking on a value within the set B is equal to the notation Px(B)

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

What is a Probability Mass Function?

A

The PMF, denoted px (x), is a function that gives the probability that a discrete random variable X takes a specific value x. It maps each value x in the target space E to its probability.

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

What does px(x) represent?

A

The PMF (probability mass function) px(x) = P(X=x). It is the probability that the random variable X equals a specific value x.

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

Properties of the PMF

A

Non negativity: for each possible outcome x, within the target space E, probabilities cannot be negative (px(x) >= 0)

Normalization: total probability of all possible outcomes must equal 1 (the sum)

Therefore px(x) is between 0 and 1.

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

Probability Density Function

A

A PDF is a function that describes the likelihood of a continuous random variable falling within a certain range. f(x) >= 0 for all x and the total area under the curve is 1.

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

Continuous Random Variable

A

A random variable X is continuous if there is a PDF, fX(x), such that the probability of X being between two values (a and b) is given by the integral of fX(x) from a to b.

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

What is the probability that a continuous random variable X takes on an exact value, i.e., P(X = x)

A

For a continuous random variable, P(X = x) = 0. This is because the probability at a single point is 0, as given by the integral of the PDF from x to x.

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

What is a Bernoulli random variable?

A

A random variable that takes only two possible values: 0 and 1. It is used to model experiments with two outcomes (e.g., success/failure, heads/tails).

22
Q

What does the notation X ∼ Ber(p) mean?

A

It means the random variable X follows a Bernoulli distribution with parameter p, where p is the probability of success (X = 1).

23
Q

What is a Binomial random variable?

A

A random variable that represents the number of successes (e.g., Heads) in n independent trials, where each trial has two possible outcomes (success/failure) and a success probability p

24
Q

What is the Probability Mass Function (PMF) of a Binomial random variable X with parameters n and p?

A

The PMF is:

p_X(x) = (n! / (x! * (n - x)!)) * p^x * ((1 - p)^(n - x))

where n is the number of trials, x is the number of successes, p is the probability of success in a single trial, and 1 - p is the probability of failure.

25
Q

What does the notation X ∼ Bin(n, p) mean?

A

It means the random variable X follows a Binomial distribution with parameters:
* n: the number of trials
* p: the probability of success in each trial.

26
Q

What is a Geometric random variable?

A

A random variable that represents the number of trials until the first success (e.g., Heads in a coin toss), where each trial has a success probability p.

27
Q

What is the Probability Mass Function (PMF) of a Geometric random variable X with parameter p?

A

The PMF is:

px(x) = ((1 - p)^{x - 1}) * (p), where x≥1.

This represents the probability of getting the first success on the x-th trial, after x - 1 failures.

28
Q

What does the notation X ∼ Geo(p) mean?

A

It means the random variable X follows a Geometric distribution with parameter p, where p is the probability of success in each trial.

29
Q

What is a Poisson random variable?

A

A random variable that represents the number of occurrences of rare events within a fixed interval (e.g., time, space), where these events occur independently and the average rate is constant.

30
Q

What is the Probability Mass Function (PMF) of a Poisson random variable X with parameter λ?

A

The PMF is:
p_X(x) = (e^(-λ) * λ^x) / x!, where x ≥ 0
* λ = average number of events expected to occur
* x = number of occurrences
* e = Euler’s number (approximately 2.718)

31
Q

What is a Uniform continuous random variable?

A

A continuous random variable that has an equal probability of taking any value within a specified interval [a,b].

32
Q

What is the Probability Density Function (PDF) of a Uniform random variable X over the interval [a,b]?

A

fx(x) = 1 / (b-a) if a<x<b
fx(x) = 0 otherwise

33
Q

What does the notation X ∼ U(a, b) mean?

A

It means that the random variable X follows a Uniform distribution over the interval [a,b]

34
Q

What is an Exponential random variable?

A

A continuous random variable that models the time between events in a Poisson process, representing the time until the first event occurs.

35
Q

What does the notation X ∼ Exp(λ) mean?

A

It means that the random variable X follows an Exponential distribution with parameter λ.

36
Q

What is the Probability Density Function (PDF) of an Exponential random variable X with parameter λ?

A

fx(x) = λe^(-λx), if x>=0
fx(x) = 0, if x <0

X is time until next event occurs

λ is average rate at which events occur in poisson process

37
Q

Exponential distribution vs Poisson distribution

A

Exponential describes time between events in a Poisson process, where events occur continuously at constant average rate λ (uses PDF)

Poisson counts discrete number of events that occur in fixed period of time (uses PMF)

38
Q

Gaussian Random Variable

A

A continuous random variable that follows a normal distribution, characterized by a symmetric bell-shaped curve defined by its mean and standard deviation.

39
Q

What is the Probability Density Function (PDF) of a Gaussian random variable X with parameters mu (mean) and sigma (standard deviation)?

A

The PDF is given by:

f_X(x) = (1 / √(2πσ²)) * e^(-((x - mu)²) / (2σ²)), for x ∈ R
This function describes the likelihood of the random variable taking on a specific value x

x is any real number
mu is mean (expected value) of x
π pi & σ² variance

40
Q

What does the notation X ∼ N(µ, σ²) mean?

A

It means the random variable X follows a Normal distribution with:
* µ: the mean (average value).
* σ²: the variance (square of the standard deviation).

41
Q

What is the Cumulative Distribution Function (CDF) of a random variable X?

A

The CDF, denoted as fx (x), is a function that gives the probability that the random variable X takes on a value less than or equal to x.

fx(x) = P(X <= x)

42
Q

What does the notation Fx :R→[0,1] indicate for the CDF?

A

It indicates that the CDF is defined for all real numbers x and its output is a value between 0 and 1, representing a probability.

43
Q

What are the two key properties of a CDF?

A

Non-Decreasing: As x increases, so does the probability of P(X <= x).

Right continuous: The CDF is smooth at each point, meaning it looks at values just a little bigger than a when evaluating Fx(a). So in P(X<=5), 5.5 is the maximum value of 5 considered.

44
Q

Is the CDF defined for discrete random variables only?

A

No, the CDF is defined for any random variable that takes values in R (real numbers), whether it is discrete, continuous, or a mix of both.

45
Q

P(a<X≤b) for CDF

A

Fx(b) - Fx(a)

P(X≤b) - P(X≤a)

46
Q

P(X>x) for CDF

A

1 − Fx(x)

47
Q

Relationship between Probability Mass Function (PMF) and Cumulative Distribution Function (CDF) in Discrete Case

A

CDF is the sum of the PMF over all values in x in the countable set E (target sample) such that x≤a (where a is the assigned outcome).

48
Q

Relationship between Cumulative Distribution Function (CDF) and Probability Density Function (PDF)

A

CDF is defined as the integral of the PDF form from Negative Infinity to a (a = assigned outcome).

PDF is generally probability of outcome being between two values and PDF is outcome being less than or equal to the assigned outcome. Therefore the CDF is the PDF but with the left boundary being negative infinity.

49
Q

What is the quantile function F^(-1)(q)

A

The quantile function gives the smallest value x such that the CDF F(x) is at least q.

It is defined as the smallest x where P(X<=x) ≥ q. (Q is a probability between 0 and 1)

50
Q

Φ

A

Used to denote a CDF of a normal random variable X ~ N (0,1)

51
Q

Φ^-1

A

Inverse CDF of normal random variable. Inverse Normal CDF = Normal CDF.

Because it is distributed equally to negative and positive infinity from the mean, the inverse and non-inverse CDF P(X<=x) is the same probability.