DATA605: Assignment #5

Bonnie Cooper

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.

## [1] "B =  0.287577520124614"
## [1] "C =  0.788305135443807"

libraries used:

Find the probability that:
(a) B + C < 1/2
consider the cases in the unit square where B = 0.5, C = 0 and where B = 0 and C = 0.5. A line connecting these two points divides the unit square such that the probability the B + C < 1/2 can be found as the shaded area below the line.

(b) BC < 1/2
consider the cases in the unit square where B = 0.5, C = 1 and where B = 1 and C = 0.5. A line connecting these two points divides the unit square such that the probability the BC < 1/2 can be found as the shaded area below the line.

(c) |B − C| < 1/2
consider the cases in the unit square where B = 0.5, C = 0 and where B = 0 and C = 0.5 and the case where B = 1, C = 0.5 and B = 0.5, C = 1. lines connecting these two sets of points divide the unit square such that the probability the |B − C| < 1/2 can be found as the shaded area below and above each line respectively.

(d) max{B,C} < 1/2

to find the area of the unit square where \(B < \frac{1}{2} \cap C < \frac{1}{2}\) we consider the area of the unit square that lies both below the line B = 0.5 and to the left of C = 0.5

(e) min{B,C} < 1/2 to find the area of the unit square where \(B < \frac{1}{2} \cup C < \frac{1}{2}\) we consider the area of the unit square that lies below the line B = 0.5 or to the left of C = 0.5