Load Packages

Problem set

Choose independently two numbers B and C at random from the interval [0, 1] with uniform density. Prove that B and C are proper probability distributions. Note that the point (B,C) is then chosen at random in the unit square.

Proof:

## [1] "Is all the probabilities of B is between 0 and 1 inclusive?  TRUE"
## [1] "Similarly, all the probabilities of B is between 0 and 1 inclusive "
## [1] 1
## [1] "The sum of the probabilities of the outcomes of B is 1"
## [1] "Similarly,The sum of the probabilities of the outcomes of C is 1"

For both B or C, all the probabilities is between 0 and 1 inclusive.

For both B or C,the sum of the probabilities of the outcomes is 1.

This proof that B and C are proper probability distributions.

Find the probability that
(a) \(B+C<1/2\)

## [1] "The Probabilty B+C < 1/2 = 0.1288"

The probabilty is 12.5%. For this to be true B and C must be <12, which is 0.5∗0.5=0.25 and C or B must be <12−[Compliment] the range where is can be true is [0,0.5]. The overall probabilty is 0.25∗0.5=0.125 which is what we see in the simulation.

  1. \(BC<1/2\)
## [1] "The Probabilty BC < 1/2 = 0.8446"
  1. \(|B−C|<1/2\)
## [1] "The Probabilty |B-C| < 1/2 = 0.7482"
  1. \(max{B,C}<1/2\)
## [1] "The Probabilty max(B,C) < 1/2 = 0.2479"
  1. \(min{B,C}<1/2\)
## [1] "The Probabilty min(B,C) < 1/2 = 0.7495"