Beginning of Chapter Three

Random Variables

  • Map events to numbers so that we can use math.
  • If we have a random variable, it must be a capital letter (X)
  • A lower case letter (x) is known as a realization. I,e numbers we know

Example 1

Let Xi = 1 is an apple is picked from a barrel on the ith pick, and Xi = 0 if an orange is picked from a barrel.

This means that we picked 17 apples, and if we picked n total items, we picked n - 17 oranges.

Example 2

Be sure to remember to check for independence and disjointedness for unions and overlaps!


  • The most we can say about X (the random variable) is what its probability is of taking on any of its possible values.

  • This is called a Probability Distribution

Cumulative Distribution Function (CDF)

Definition:

  • If there is no β€œmass” at a certain number, it will affect the CDF accordingly.

In the previous example 3.1, the CDF is

(Here, it is the previous chances summed)

This accumulates distributions.

So you also see the rules of these CDF’s listed above!

  1. CDF’s are non-decreasing. They only grow.
  2. The final bar has to be one! The CDF has to be one at the end.

So, you may be asking… How do we get P(X=x) if you know Fx (x)

So we can construct P(X=x) given Fx (x) and vice versa

We can say that these are equivilent.


Types of Random Variables

  1. Discrete:
    • X takes on a countable number of possible values
    • Examples:
      1. 3 - coin toss
      2. A deck of cards
      3. Temperature (if rounded)
      4. Number of students in a class

Note

These are defined by a probability mass function (pmf).

  1. Continuous Random Variables
    • X takes on a uncountable number of possible outcomes

Example

Sample Space: S = all real numbers from 0 to infinity

Distribution?

All P(X = x) =0

  • The curve here is helping us represent the chance of failure at a time. A taller area at a time, with your little slice of dx, shows that at 12, the probability of failure is MUCH higher than at 16. This is what the probability density function is useful for.

  • We are multiplying this β€œdensity function”, by volume (in 1d in this case) to get back to the mass function.

Usually, we look for these probabilities in terms of ranges

And you’ll never guess how we sum all the little parts under the curve!

So, for something like P(X ⇐ a) would be

Something like P(a < x < b) would be

So actually, the integral and CDF are the same thing! The CDF is just a solved integral

In terms of CDF

PDF = fx (The integral, nicer graph, but you have to compute an integral) CDF = Fx (Much easier to solve, but a crappier graph)

Note

These are defined by a probability density function (pdf).

This is denoted by little f(x), and will need to be integrated

  • A higher gradient on a CDF, would indicate a period of higher gradient indicating a period of higher density.

Main Descriptors

Central Tendency:

  • Mean: ΞΌx = balance point of the pdf = Centroid of the area

= Sum of all possible values times their probability of occurrence.