Random variables
A random variable is a function . It basically measures a certain value of each atomic event. Let us look at some examples.
-
Coin tossing: Each atomic event is an outcome of coin tosses. Let be the number of heads and the number of occurrences of two consecutive heads. Then both and are random variables; in particular, for . For , we have and .
-
Random graphs: Each atomic event is a graph in . Let be the degree of vertex , and be the diameter. Then both and are random variables.
For random variable , when we write the event "", it means the set (recall that an event is a subset of the sample space). In this way, the notation is syntactically correct and refers to the probability of the set.
📄️ Expectation
The expected value of random variable $X$ is defined as
📄️ Balls and bins
Recall the balls and bins setting where we randomly put $m$ balls into $n$ bins. The sample space is $\Omega_{m,n} = \{f: [m] \rightarrow [n]\}$ and the distribution is uniform.
📄️ Fixed points of permutation
Recall the example of derangements (Deragements). Let us pick a random permutation $f$ on $[n]$. A fixed point is a value $i \in [n]$ for which $f(i) = i$. (so this is the student who receives their own homework when the homework is returned at random order)
📄️ Professor's misery
Parinya needs to go to a trial for teaching too much mathematical content in the CS department.