Divide by $2$ to account for redundancy in the letter 'e' $$ \frac{7!}{2} = 2520 $$
can start at 0 or 1, if you believe no toppings are valid sandwhiches. Changes answer by 1 $$ \sum_{i=0}^{20} \frac{20}{i!(20 - i)!} = 2^{20} = 1048576 $$
Use your ability to compute combinations and permutations to calculate number of possible schedules.
[1 point] Using the above graph, take all possible paths from the root (node A) to at least one other node to be the sample space. What is that sample space? An example of on path would be ACF.
[1 point] What is the probability of one of the paths?
[2 points] Take a random variable $L$ to be the length (number of nodes) of the paths. What is $P(L = 3)$?
[2 points] Take the random variable $C$ to be $1$ when a path contains node C and $0$ otherwise. What is $P(C = 1)$?
[2 points] What is $P(C = 1, L = 3)$?
[2 points] What about $P(C = 1 \, | \, L = 3)$?
[5 points] Write out all possible paths with $L = 3$ and mark as bold those which have $C = 1$. Use this as justification for your answer to 3.6.
[3 points] Are random variables C and L independent?
[3 points] Define a third random variable, D, to indicate if node D is in the path. Are D and C conditionally independent of L?
Take $n$ to be the number of samples with $L = 3$ $$ P(L = 3) = \frac{n}{\left|Q\right|} = \frac{4}{9} $$
How many samples have $C = 1$ and $L = 3$ simultaneously?
$$ \frac{1}{9} $$There are 4 possibilities when $L = 3$ and only one contains $C$, hence the probability is $1 / 4$
No, because
$$ P(C = 1 \,|\, L = 3) = \frac{1}{4} $$$$ P(C = 1) = \frac{3}{9} $$$$ P(C = 1\,|\, L = 3) \neq P(C = 1) $$Does $$ P(C = c, D = d\,|\, L = l) = P(C = c\,|\,L = l) \times P( D = d \,|\,L = l) $$
for all possible $c, d, l$?
No, for example
$$ P(C = 1, D = 1 \,|\, L = 3) = 0 $$but
$$ P(C = 1 \, |\, L = 3) P(D = 1\,|\,L = 3) = \frac{1}{4} \times \frac{1}{4}\neq 0 $$
In [ ]: