<<

Variance and Standard

Christopher Croke

University of Pennsylvania

Math 115 UPenn, Fall 2011

Christopher Croke 115 The next one is the Var(X ) = σ2(X ). The root of the variance σ is called the . If f (xi ) is the distribution for a random with {x1, x2, x3, ...} and µ = E(X ) then:

2 2 2 2 Var(X ) = σ = (x1 −µ) f (x1)+(x2 −µ) f (x2)+(x3 −µ) f (x3)+...

It is a description of how the distribution ”spreads”. Note Var(X ) = E((X − µ)2).

The standard deviation has the same units as X . (I.e. if X is measured in feet then so is σ.)

Variance

The first first important describing a is the mean or E(X ).

Christopher Croke Calculus 115 If f (xi ) is the probability distribution function for a with range {x1, x2, x3, ...} and mean µ = E(X ) then:

2 2 2 2 Var(X ) = σ = (x1 −µ) f (x1)+(x2 −µ) f (x2)+(x3 −µ) f (x3)+...

It is a description of how the distribution ”spreads”. Note Var(X ) = E((X − µ)2).

The standard deviation has the same units as X . (I.e. if X is measured in feet then so is σ.)

Variance

The first first important number describing a probability distribution is the mean or expected value E(X ). The next one is the variance Var(X ) = σ2(X ). The of the variance σ is called the Standard Deviation.

Christopher Croke Calculus 115 Note Var(X ) = E((X − µ)2).

The standard deviation has the same units as X . (I.e. if X is measured in feet then so is σ.)

Variance

The first first important number describing a probability distribution is the mean or expected value E(X ). The next one is the variance Var(X ) = σ2(X ). The square root of the variance σ is called the Standard Deviation. If f (xi ) is the probability distribution function for a random variable with range {x1, x2, x3, ...} and mean µ = E(X ) then:

2 2 2 2 Var(X ) = σ = (x1 −µ) f (x1)+(x2 −µ) f (x2)+(x3 −µ) f (x3)+...

It is a description of how the distribution ”spreads”.

Christopher Croke Calculus 115 The standard deviation has the same units as X . (I.e. if X is measured in feet then so is σ.)

Variance

The first first important number describing a probability distribution is the mean or expected value E(X ). The next one is the variance Var(X ) = σ2(X ). The square root of the variance σ is called the Standard Deviation. If f (xi ) is the probability distribution function for a random variable with range {x1, x2, x3, ...} and mean µ = E(X ) then:

2 2 2 2 Var(X ) = σ = (x1 −µ) f (x1)+(x2 −µ) f (x2)+(x3 −µ) f (x3)+...

It is a description of how the distribution ”spreads”. Note Var(X ) = E((X − µ)2).

Christopher Croke Calculus 115 Variance

The first first important number describing a probability distribution is the mean or expected value E(X ). The next one is the variance Var(X ) = σ2(X ). The square root of the variance σ is called the Standard Deviation. If f (xi ) is the probability distribution function for a random variable with range {x1, x2, x3, ...} and mean µ = E(X ) then:

2 2 2 2 Var(X ) = σ = (x1 −µ) f (x1)+(x2 −µ) f (x2)+(x3 −µ) f (x3)+...

It is a description of how the distribution ”spreads”. Note Var(X ) = E((X − µ)2).

The standard deviation has the same units as X . (I.e. if X is measured in feet then so is σ.)

Christopher Croke Calculus 115 We have seen that the payout and for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen.

Christopher Croke Calculus 115 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15

Christopher Croke Calculus 115 What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 .

Christopher Croke Calculus 115 Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Christopher Croke Calculus 115 Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2.

Christopher Croke Calculus 115 E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

Christopher Croke Calculus 115 = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2)

Christopher Croke Calculus 115 = E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

Christopher Croke Calculus 115 Problem: Remember the game where players pick balls from an urn with 4 white and 2 red balls. The first player is paid $2 if he wins but the second player gets $3 if she wins. No one gets payed if 4 white balls are chosen. We have seen that the payout and probabilities for the first player are: Payout Probability 8 2 15 1 0 15 6 −3 15 2 The expected value was µ = − 15 . What is the variance?

Alternative formula for variance: σ2 = E(X 2) − µ2. Why?

E((X − µ)2) = E(X 2 − 2µX + µ2) = E(X 2) + E(−2µX ) + E(µ2)

= E(X 2) − 2µE(X ) + µ2 = E(X 2) − 2µ2 + µ2 = E(X 2) − µ2.

Christopher Croke Calculus 115 Problem: Compute E(X ) and Var(X ) where X is a random variable with probability given by the chart below: X Pr(X = x) 1 0.1 2 0.2 3 0.3 4 0.3 5 0.1

We will see later that for X a binomial random variable σ2 = npq. Problem: What is the variance of the number of hits for our batter that bats .300 and comes to the plate 4 times?

This often makes it easier to compute since we can compute µ and E(X 2) at the same time.

Christopher Croke Calculus 115 We will see later that for X a binomial random variable σ2 = npq. Problem: What is the variance of the number of hits for our batter that bats .300 and comes to the plate 4 times?

This often makes it easier to compute since we can compute µ and E(X 2) at the same time. Problem: Compute E(X ) and Var(X ) where X is a random variable with probability given by the chart below: X Pr(X = x) 1 0.1 2 0.2 3 0.3 4 0.3 5 0.1

Christopher Croke Calculus 115 Problem: What is the variance of the number of hits for our batter that bats .300 and comes to the plate 4 times?

This often makes it easier to compute since we can compute µ and E(X 2) at the same time. Problem: Compute E(X ) and Var(X ) where X is a random variable with probability given by the chart below: X Pr(X = x) 1 0.1 2 0.2 3 0.3 4 0.3 5 0.1

We will see later that for X a binomial random variable σ2 = npq.

Christopher Croke Calculus 115 This often makes it easier to compute since we can compute µ and E(X 2) at the same time. Problem: Compute E(X ) and Var(X ) where X is a random variable with probability given by the chart below: X Pr(X = x) 1 0.1 2 0.2 3 0.3 4 0.3 5 0.1

We will see later that for X a binomial random variable σ2 = npq. Problem: What is the variance of the number of hits for our batter that bats .300 and comes to the plate 4 times?

Christopher Croke Calculus 115 (note that this does not always exist if B = ∞.) The variance will be: Z B σ2(X ) = Var(X ) = E((X − E(X ))2) = (x − E(X ))2f (x)dx. A

Problem:(uniform probability on an ) Let X be the random variable you get when you randomly choose a point in [0, B]. a) find the probability density function f . b) find the cumulative distribution function F (x). c) find E(X ) and Var(X ) = σ2.

For continuous random variable X with probability density function f (x) defined on [A, B] we saw:

Z B E(X ) = xf (x)dx. A

Christopher Croke Calculus 115 The variance will be: Z B σ2(X ) = Var(X ) = E((X − E(X ))2) = (x − E(X ))2f (x)dx. A

Problem:(uniform probability on an interval) Let X be the random variable you get when you randomly choose a point in [0, B]. a) find the probability density function f . b) find the cumulative distribution function F (x). c) find E(X ) and Var(X ) = σ2.

For continuous random variable X with probability density function f (x) defined on [A, B] we saw:

Z B E(X ) = xf (x)dx. A (note that this does not always exist if B = ∞.)

Christopher Croke Calculus 115 Problem:(uniform probability on an interval) Let X be the random variable you get when you randomly choose a point in [0, B]. a) find the probability density function f . b) find the cumulative distribution function F (x). c) find E(X ) and Var(X ) = σ2.

For continuous random variable X with probability density function f (x) defined on [A, B] we saw:

Z B E(X ) = xf (x)dx. A (note that this does not always exist if B = ∞.) The variance will be: Z B σ2(X ) = Var(X ) = E((X − E(X ))2) = (x − E(X ))2f (x)dx. A

Christopher Croke Calculus 115 For continuous random variable X with probability density function f (x) defined on [A, B] we saw:

Z B E(X ) = xf (x)dx. A (note that this does not always exist if B = ∞.) The variance will be: Z B σ2(X ) = Var(X ) = E((X − E(X ))2) = (x − E(X ))2f (x)dx. A

Problem:(uniform probability on an interval) Let X be the random variable you get when you randomly choose a point in [0, B]. a) find the probability density function f . b) find the cumulative distribution function F (x). c) find E(X ) and Var(X ) = σ2.

Christopher Croke Calculus 115 b) Find σ2. It is easier in this case to use the alternative definition of σ2: Z B σ2 = E(X 2) − E(X )2 = x2f (x)dx − E(X )2. A This holds for the same reason as in the discrete case.

Problem: Consider our random variable X which is the sum of the coordinates of a point chosen randomly from [0; 1] × [0; 1]? What is Var(X )?

Problem Consider the problem of the age of a cell in a culture. We had the probability density function was f (x) = 2ke−kx on ln(2) [0, T ] where k = T . a) Find E(X ).

Christopher Croke Calculus 115 Problem: Consider our random variable X which is the sum of the coordinates of a point chosen randomly from [0; 1] × [0; 1]? What is Var(X )?

Problem Consider the problem of the age of a cell in a culture. We had the probability density function was f (x) = 2ke−kx on ln(2) [0, T ] where k = T . a) Find E(X ). b) Find σ2. It is easier in this case to use the alternative definition of σ2: Z B σ2 = E(X 2) − E(X )2 = x2f (x)dx − E(X )2. A This holds for the same reason as in the discrete case.

Christopher Croke Calculus 115 Problem Consider the problem of the age of a cell in a culture. We had the probability density function was f (x) = 2ke−kx on ln(2) [0, T ] where k = T . a) Find E(X ). b) Find σ2. It is easier in this case to use the alternative definition of σ2: Z B σ2 = E(X 2) − E(X )2 = x2f (x)dx − E(X )2. A This holds for the same reason as in the discrete case.

Problem: Consider our random variable X which is the sum of the coordinates of a point chosen randomly from [0; 1] × [0; 1]? What is Var(X )?

Christopher Croke Calculus 115 Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1. Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 What is Pr(X=0,Y=3)? 2 0.1 0.4 0 4 0.1 0 0.1 Pr(X ≥ 3, Y ≥ 2)? Pr(X = 2)?

Bivariate Distributions

This is the joint probability when you are given two random variables X and Y .

Christopher Croke Calculus 115 So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1. Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 What is Pr(X=0,Y=3)? 2 0.1 0.4 0 4 0.1 0 0.1 Pr(X ≥ 3, Y ≥ 2)? Pr(X = 2)?

Bivariate Distributions

This is the joint probability when you are given two random variables X and Y . Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

Christopher Croke Calculus 115 Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 What is Pr(X=0,Y=3)? 2 0.1 0.4 0 4 0.1 0 0.1 Pr(X ≥ 3, Y ≥ 2)? Pr(X = 2)?

Bivariate Distributions

This is the joint probability when you are given two random variables X and Y . Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1.

Christopher Croke Calculus 115 What is Pr(X=0,Y=3)?

Pr(X ≥ 3, Y ≥ 2)? Pr(X = 2)?

Bivariate Distributions

This is the joint probability when you are given two random variables X and Y . Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1. Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 2 0.1 0.4 0 4 0.1 0 0.1

Christopher Croke Calculus 115 Pr(X ≥ 3, Y ≥ 2)? Pr(X = 2)?

Bivariate Distributions

This is the joint probability when you are given two random variables X and Y . Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1. Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 What is Pr(X=0,Y=3)? 2 0.1 0.4 0 4 0.1 0 0.1

Christopher Croke Calculus 115 Pr(X = 2)?

Bivariate Distributions

This is the joint probability when you are given two random variables X and Y . Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1. Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 What is Pr(X=0,Y=3)? 2 0.1 0.4 0 4 0.1 0 0.1 Pr(X ≥ 3, Y ≥ 2)?

Christopher Croke Calculus 115 Bivariate Distributions

This is the joint probability when you are given two random variables X and Y . Consider the case when both are discrete random variables. Then the joint probability function f (x, y) is the function:

f (xi , yj ) = Pr(X = xi , Y = yj ).

So of course f (xi , yj ) ≥ 0 and the sum over all pairs (xi , yj ) of f (xi , yj ) is 1. Often it is given in the form of a table.

X ↓ Y → 1 2 3 0 0.1 0 0.2 What is Pr(X=0,Y=3)? 2 0.1 0.4 0 4 0.1 0 0.1 Pr(X ≥ 3, Y ≥ 2)? Pr(X = 2)?

Christopher Croke Calculus 115 R ∞ R ∞ We want f (x, y) ≥ 0 and −∞ −∞ f (x, y)dxdy = 1. Problem: Let f be a joint probability density function (j.p.d.f.) for X and Y where  c(x + y) if x ≥ 0, y ≥ 0, y ≤ 1 − x f (x, y) = 0 othewise

a) What is c? 1 b) Find Pr(X ≤ 2 ). c) up for Pr(Y ≤ X ).

Bivariate Distributions

If X and Y are continuous random variables then the joint probability density function is a function f (x, y) of two real variables such that for any domain A in the plane: ZZ Pr((X , Y ) ∈ A) = f (x, y)dxdy. A

Christopher Croke Calculus 115 Problem: Let f be a joint probability density function (j.p.d.f.) for X and Y where  c(x + y) if x ≥ 0, y ≥ 0, y ≤ 1 − x f (x, y) = 0 othewise

a) What is c? 1 b) Find Pr(X ≤ 2 ). c) Set up integral for Pr(Y ≤ X ).

Bivariate Distributions

If X and Y are continuous random variables then the joint probability density function is a function f (x, y) of two real variables such that for any domain A in the plane: ZZ Pr((X , Y ) ∈ A) = f (x, y)dxdy. A

R ∞ R ∞ We want f (x, y) ≥ 0 and −∞ −∞ f (x, y)dxdy = 1.

Christopher Croke Calculus 115 1 b) Find Pr(X ≤ 2 ). c) Set up integral for Pr(Y ≤ X ).

Bivariate Distributions

If X and Y are continuous random variables then the joint probability density function is a function f (x, y) of two real variables such that for any domain A in the plane: ZZ Pr((X , Y ) ∈ A) = f (x, y)dxdy. A

R ∞ R ∞ We want f (x, y) ≥ 0 and −∞ −∞ f (x, y)dxdy = 1. Problem: Let f be a joint probability density function (j.p.d.f.) for X and Y where  c(x + y) if x ≥ 0, y ≥ 0, y ≤ 1 − x f (x, y) = 0 othewise

a) What is c?

Christopher Croke Calculus 115 c) Set up integral for Pr(Y ≤ X ).

Bivariate Distributions

If X and Y are continuous random variables then the joint probability density function is a function f (x, y) of two real variables such that for any domain A in the plane: ZZ Pr((X , Y ) ∈ A) = f (x, y)dxdy. A

R ∞ R ∞ We want f (x, y) ≥ 0 and −∞ −∞ f (x, y)dxdy = 1. Problem: Let f be a joint probability density function (j.p.d.f.) for X and Y where  c(x + y) if x ≥ 0, y ≥ 0, y ≤ 1 − x f (x, y) = 0 othewise

a) What is c? 1 b) Find Pr(X ≤ 2 ).

Christopher Croke Calculus 115 Bivariate Distributions

If X and Y are continuous random variables then the joint probability density function is a function f (x, y) of two real variables such that for any domain A in the plane: ZZ Pr((X , Y ) ∈ A) = f (x, y)dxdy. A

R ∞ R ∞ We want f (x, y) ≥ 0 and −∞ −∞ f (x, y)dxdy = 1. Problem: Let f be a joint probability density function (j.p.d.f.) for X and Y where  c(x + y) if x ≥ 0, y ≥ 0, y ≤ 1 − x f (x, y) = 0 othewise

a) What is c? 1 b) Find Pr(X ≤ 2 ). c) Set up integral for Pr(Y ≤ X ).

Christopher Croke Calculus 115 R ∞ In this case we would want −∞ Σxi f (xi , y)dy = 1.

The (cumulative) joint distribution function for continuous random variables X and Y is Z x Z y F (x, y) = Pr(X ≤ x, Y ≤ y) = f (s, t)dtds. −∞ −∞ (Use sums if discrete.)

Thus we see that if F is differentiable ∂2F f (x, y) = ∂x∂y

Bivariate Distributions

In some cases X might be discrete and Y continuous (or vice versa).

Christopher Croke Calculus 115 The (cumulative) joint distribution function for continuous random variables X and Y is Z x Z y F (x, y) = Pr(X ≤ x, Y ≤ y) = f (s, t)dtds. −∞ −∞ (Use sums if discrete.)

Thus we see that if F is differentiable ∂2F f (x, y) = ∂x∂y

Bivariate Distributions

In some cases X might be discrete and Y continuous (or vice versa). R ∞ In this case we would want −∞ Σxi f (xi , y)dy = 1.

Christopher Croke Calculus 115 (Use sums if discrete.)

Thus we see that if F is differentiable ∂2F f (x, y) = ∂x∂y

Bivariate Distributions

In some cases X might be discrete and Y continuous (or vice versa). R ∞ In this case we would want −∞ Σxi f (xi , y)dy = 1.

The (cumulative) joint distribution function for continuous random variables X and Y is Z x Z y F (x, y) = Pr(X ≤ x, Y ≤ y) = f (s, t)dtds. −∞ −∞

Christopher Croke Calculus 115 Thus we see that if F is differentiable ∂2F f (x, y) = ∂x∂y

Bivariate Distributions

In some cases X might be discrete and Y continuous (or vice versa). R ∞ In this case we would want −∞ Σxi f (xi , y)dy = 1.

The (cumulative) joint distribution function for continuous random variables X and Y is Z x Z y F (x, y) = Pr(X ≤ x, Y ≤ y) = f (s, t)dtds. −∞ −∞ (Use sums if discrete.)

Christopher Croke Calculus 115 Bivariate Distributions

In some cases X might be discrete and Y continuous (or vice versa). R ∞ In this case we would want −∞ Σxi f (xi , y)dy = 1.

The (cumulative) joint distribution function for continuous random variables X and Y is Z x Z y F (x, y) = Pr(X ≤ x, Y ≤ y) = f (s, t)dtds. −∞ −∞ (Use sums if discrete.)

Thus we see that if F is differentiable ∂2F f (x, y) = ∂x∂y

Christopher Croke Calculus 115 F (b, d) − F (a, d) − F (b, c) + F (a, c). Given F (x, y) a c.j.d.f. for X and Y we can find the two c.d.f.’s by:

F1(x) = Pr(X ≤ x) = lim Pr(X ≤ x, Y ≤ y) = lim F (x, y). y→∞ y→∞

Similarly F2(y) = lim F (x, y). x→∞

Bivariate Distributions

What is the probability in a rectangle? I.e.

Pr(a ≤ X ≤ b, c ≤ Y ≤ d)?

Christopher Croke Calculus 115 Given F (x, y) a c.j.d.f. for X and Y we can find the two c.d.f.’s by:

F1(x) = Pr(X ≤ x) = lim Pr(X ≤ x, Y ≤ y) = lim F (x, y). y→∞ y→∞

Similarly F2(y) = lim F (x, y). x→∞

Bivariate Distributions

What is the probability in a rectangle? I.e.

Pr(a ≤ X ≤ b, c ≤ Y ≤ d)?

F (b, d) − F (a, d) − F (b, c) + F (a, c).

Christopher Croke Calculus 115 = lim Pr(X ≤ x, Y ≤ y) = lim F (x, y). y→∞ y→∞

Similarly F2(y) = lim F (x, y). x→∞

Bivariate Distributions

What is the probability in a rectangle? I.e.

Pr(a ≤ X ≤ b, c ≤ Y ≤ d)?

F (b, d) − F (a, d) − F (b, c) + F (a, c). Given F (x, y) a c.j.d.f. for X and Y we can find the two c.d.f.’s by:

F1(x) = Pr(X ≤ x)

Christopher Croke Calculus 115 = lim F (x, y). y→∞

Similarly F2(y) = lim F (x, y). x→∞

Bivariate Distributions

What is the probability in a rectangle? I.e.

Pr(a ≤ X ≤ b, c ≤ Y ≤ d)?

F (b, d) − F (a, d) − F (b, c) + F (a, c). Given F (x, y) a c.j.d.f. for X and Y we can find the two c.d.f.’s by:

F1(x) = Pr(X ≤ x) = lim Pr(X ≤ x, Y ≤ y) y→∞

Christopher Croke Calculus 115 Similarly F2(y) = lim F (x, y). x→∞

Bivariate Distributions

What is the probability in a rectangle? I.e.

Pr(a ≤ X ≤ b, c ≤ Y ≤ d)?

F (b, d) − F (a, d) − F (b, c) + F (a, c). Given F (x, y) a c.j.d.f. for X and Y we can find the two c.d.f.’s by:

F1(x) = Pr(X ≤ x) = lim Pr(X ≤ x, Y ≤ y) = lim F (x, y). y→∞ y→∞

Christopher Croke Calculus 115 Bivariate Distributions

What is the probability in a rectangle? I.e.

Pr(a ≤ X ≤ b, c ≤ Y ≤ d)?

F (b, d) − F (a, d) − F (b, c) + F (a, c). Given F (x, y) a c.j.d.f. for X and Y we can find the two c.d.f.’s by:

F1(x) = Pr(X ≤ x) = lim Pr(X ≤ x, Y ≤ y) = lim F (x, y). y→∞ y→∞

Similarly F2(y) = lim F (x, y). x→∞

Christopher Croke Calculus 115