← Field notes
Mathematics / Note / 2 min read

Discrete random variables

For example, we pick a random student out of a class at the end of the experiment we may want to know if the student was female or male, that is we may want to know whether a ce…

Introduction:

For example, we pick a random student out of a class at the end of the experiment we may want to know if the student was female or male, that is we may want to know whether a certain event has occurred. But besides events we want to know some other result of the experiment, for example the weight of the student and it's not quite like reporting an event instead we are giving the numerical value of some quantity associated with the outcome of the student, such quantity is called a random variable.

Notation:

Random variable XX / Numerical value xx

Random Variables:

Random variables make the subject of probability much richer and allow us to talk about random numerical quantities and their relations, we will be talking about:

  • Their distribution
  • expectation, variance A random variable associates a value (a number) to every possible outcome, Mathematically it is a function from the sample space to the real numbers, it can take discrete or continuous values.
  • we can have several random variable defined on the same sample space
  • A function of one or several random variables is also a random variable
    • meaning of X+YX + Y : r.v takes value x+yx + y when XX takes value xx and YY takes value yy

Probability mass functions (Discrete Random Variable)

Introduction:

A random variable can take different numerical values depending on the outcome of the experiment, some outcomes are more likely than others, and similarly some of the possible numerical values of a random variable will be more likes than others

  • It is the "probability law" or "probability distribution" of XX
  • If we fix some xx, then X=xX = x is an event for example: Research figure x=5 then X=5x = 5\ then \ X = 5 {ω:X(ω)=5}={a,b}\{\omega:X(\omega)=5\} = \{a,b\} we denote the following notation: PX(5)=1/2P_X(5) = 1/2 for the probability of the random variable XX is equals to 5. PX(x)=P(X=x)=P({ωΩ s.t X(ω)=x})P_X(x) = P(X=x) = P(\{\omega \in \Omega \ s.t \ X(\omega)=x\})

So The probability mass function PMFPMF is a function of an argument xx and for any xx it specifies the probability that the random variable takes on this particular value.

  • Properties:
    • PX(x)0P_X(x) \geq 0 since we are talking about a probability and probabilities are always positive
    • xPX(x)=1\sum_xP_X(x)=1 the sum of all probabilities of xx should add to 1

Calculation:

let's have the sample space of two rolls of tetrahedral die: Screenshot_20220929_112856 XX and YY are random variables. Let every possible outcome have probability 1/16