Docsity

5. Continuous Random Variables Examples Remarks, Study notes of Construction

Toggle sidebar
bg1
5. Continuous Random Variables
Continuous random variables can take any value
in an interval. They are used to model physical
characteristics such as time, length, position, etc.
Examples
(i) Let Xbe the length of a randomly selected
telephone call.
(ii) Let Xbe the volume of coke in a can
marketed as 12oz.
Remarks
•A continuous variable has infinite precision,
hence P(X=x) = 0 for any x.
•In this case, the p.m.f. will provide no useful
information.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22

Partial preview of the text

Download 5. Continuous Random Variables Examples Remarks and more Study notes Construction in PDF only on Docsity!

5. Continuous Random Variables

Continuous random variables can take any value in an interval. They are used to model physical characteristics such as time, length, position, etc.

Examples

(i) Let X be the length of a randomly selected telephone call.

(ii) Let X be the volume of coke in a can marketed as 12oz.

Remarks

  • A continuous variable has infinite precision, hence P(X = x) = 0 for any x.
  • In this case, the p.m.f. will provide no useful information.

Definition. X is a continuous random

variable if there is a function f (x) so that for any constants a and b, with −∞ ≤ a ≤ b ≤ ∞,

P(a ≤ X ≤ b) =

∫ (^) b

a

f (x) dx (1)

  • For δ small, P(a ≤ X ≤ a + δ) ≈ f (a) δ.
  • The function f (x) is called the probability density function (p.d.f.).
  • For any a, P(X = a) = P(a ≤ X ≤ a) =

∫ (^) a a f^ (x)^ dx^ = 0.

  • A discrete random variable does not have a density function, since if a is a possible value of a discrete RV X, we have P(X = a) > 0.
  • Random variables can be partly continuous and partly discrete.

Discussion problem. Let X be the duration of

a telephone call in minutes and suppose X has p.d.f. f (x) = c · e−x/^10 for x ≥ 0. Find c, and also find the chance that the call lasts less than 5 minutes.

Cumulative Distribution Function (c.d.f.)

  • The c.d.f. of a continuous RV is defined exactly the same as for discrete RVs: F (x) = P(X ≤ x) = P (X ∈ (−∞, x])
  • Hence F (x) =

∫ (^) x −∞ f^ (x)dx, and differentiating both sides we get dF dx =^ f^ (x)

Example. Suppose the lifetime, X, of a car

battery has P(X > x) = 2−x. Find the p.d.f. of X.

Example. Suppose X has p.d.f.

f (x) =

(1 − x^2 )(3/4) − 1 ≤ x ≤ 1 0 else

Find the expected value of X.

Solution.

Note. Similarly to discrete RVs, the expected

value is the balancing point of the graph of the p.d.f., and so if the p.d.f. is symmetric then the expected value is the point of symmetry. A sketch of the p.d.f. quickly determines the expected value in this case:

Example. The density function of X is

f (x) =

a + bx^2 0 ≤ x ≤ 1 0 else

If E(X) = 3/5, find a and b.

Solution.

Proposition 2. For X a continuous RV with

p.d.f. f and any real-valued function g

E [g(X)] =

−∞

g(x)f (x)dx

Proof.

Example. A stick of length 1 is split at a point

U that is uniformly distributed over (0, 1). Determine the expected length of the piece that contains the point p, for 0 ≤ p ≤ 1.

Solution.

The Uniform Distribution

Definition: X has the uniform distribution

on [0, 1] (and we write X ∼ Uniform[0, 1] or just X ∼ U[0, 1]) if X has p.d.f.

f (x) =

1 0 ≤ x ≤ 1 0 else

  • This is what people usually mean when they talk of a “random” number between 0 and 1.
  • Each interval of length δ in [0, 1] has equal probability:

∫ (^) x+δ x f^ (y)dy^ =^ δ

  • The chance of X falling into an interval is equal to the length of the interval.

Generalization: X has the uniform

distribution on [a, b] (i.e. X ∼ U[a, b]) if X has p.d.f.

f (x) =

1 /(b − a) a ≤ x ≤ b 0 else

Proposition. If Z ∼ U[0, 1], then

(b − a)Z + a ∼ U[a, b].

Proof.

Example. Your company must make a sealed

bid for a construction project. If you succeed in winning the contract (by having the lowest bid), then you plan to pay another firm $100, 000 to do the work. If you believe that the maximum bid (in thousands of dollars) of the other participating companies can be modeled as being the value of a random variable that is uniformly distributed on (70, 140), how much should you bid to maximize your expected profit?

Solution.

Discussion problem. Suppose X ∼ U [5, 10].

Find the probability that X^2 − 5 X − 6 is greater than zero.

Solution.

The Normal Distribution

Definition. If X has density

f (x) = √^1 2 πσ^2

exp

−(x − μ)^2 2 σ^2

then X has the normal distribution, and we write X ∼ N(μ, σ^2 ).

  • E(X) = μ and Var(X) = σ^2.
  • If Z ∼ N(0, 1) then Z is standard normal.

Proposition. Let Z ∼ N(0, 1) and set

X = μ + σZ for constants μ and σ. Then, X ∼ N(μ, σ^2 ).

Proof.

Exercise. Check that the standard normal

density integrates to 1.

Trick. By changing to polar coordinates, show

( ∫^ ∞

−∞

exp{−x^2 / 2 } dx

= 2π.

Solution.