Consider a deck with three cards number 1, 2, and 3. Furthermore, assume that 1 and 2 cards are colored green (G) and the 3 card is colored blue (B). Two of the cards are drawn without replacement. Let $M_{1}$ be the first card drawn and $M_{2}$ be the second card drawn. Let $S$ be the sum of (the numbers written on) the two cards drawn and let $N$ be the number of green cards drawn.
$\textbf{Part a})$ Write down the $\sigma-$algebra of all possible events on this probability space.
$\textbf{My attempt}:$ The sample space is $\Omega = \{\{12\},\{13\},\{23\},\{21\},\{31\},\{32\},\{GG\},\{GB\},\{BG\}\}$. The $\sigma-$algebra will be the $\sigma-$algebra generated by this $\Omega$.
$\textbf{Part b})$ What is the $\sigma-$algebra of events generated by $S$?
$\textbf{My attempt}:$ The sample space is $\Omega = \{3,4,5\}$. So, $\sigma(S) = \{\phi, \Omega, \{3\},\{4\},\{5\}\} = \{\phi, \Omega, \{12,21\}, \{13,22,31\}, \{23,32\}\}$.
$\textbf{Part c})$ What is the $\sigma-$algebra of events generated by $N$?
$\textbf{My attempt}:$ The sample space is $\Omega = \{1,2\}$. So, $\sigma(N) = \{\phi, \Omega, \{1\},\{2\}\} = \{\phi, \Omega, \{13,31\}, \{12,21\}\}$.
$\textbf{Part d})$ Is $S$ measurable with respect to $\sigma(N)$?
$\textbf{My attempt}:$ No, S is not measurable with to $\sigma(N)$. This is because the information about the number of green cards does not give us all the information about the sum of the cards. For example, if the number of green cards are 1, the both the sums of $4$ and $5$ are possible.
$\textbf{Part e})$ Is $N$ measurable with respect to $\sigma(S)$?
$\textbf{My attempt}:$ Yes, N is measurable with to $\sigma(S)$. This is because the all information about the sum of cards of the draw gives us all the information about the color of the cards.
$\textbf{Part f})$ Calculate $\mathbb{E}(S|\sigma(N))$
$\textbf{My attempt}:$ I could use a little help in this one. I know I can split it in to disjoint events and calculate the individual expectations.
$\textbf{My questions}$
1) I am not sure about part a).
2) Can I write parts (b-e) more formally?
3) How to go about part f)?
hint: You have three cards and drawn two cards so $$\Omega = \{(1,2),(1,3),(2,3),(2,1),(3,1),(3,2)\}$$ but for make easy to understand $$\Omega = \{(1_g,2_g),(1_g,3_b),(2_g,3_b),(2_g,1_g),(3_b,1_g),(3_b,2_g)\}$$
so \begin{eqnarray} \begin{array}{c|ccc} \omega & (1_g ,2_g) & (1_g,3_b)& (2_g,3_b)& (2_g,1_g)& (3_b,1_g)&(3_b,2_g) \\ \hline S & 3 & 4 & 5 & 3 & 4 & 5 \\ N & 2 & 1 & 1 & 2 & 1 &1 \\ \end{array} \end{eqnarray}
$$\sigma(S)=\sigma\left(\color{red}{\Bigg\{} \bigg\{(1_g ,2_g) , (2_g,1_g) \bigg\} , \bigg\{(1_g,3_b) , (3_b,1_g) \bigg\} ,\bigg\{(2_g,3_b) ,(3_b,2_g) \bigg\} \color{red}{\Bigg\}} \right)$$
$$\sigma(N)=\sigma \left( \color{red}{\Bigg\{} \bigg\{(1_g ,2_g) , (2_g,1_g) \bigg\} , \bigg\{(1_g,3_b) , (3_b,1_g) ,(2_g,3_b) ,(3_b,2_g) \bigg\} \color{red}{\Bigg\}} \right)$$
For part "f" These links may help you
conditional-expectation-example-and-sigma-algebra
conditional-expectations-when-conditioning-on-a-discrete-sigma-algebra
$$E(S|\sigma(N))= E(S|A_1)1_{A_1}+E(S|A_2)1_{A_2}$$
when $A_1= \bigg\{(1_g ,2_g) , (2_g,1_g) \bigg\}$ and $A_2=\bigg\{(1_g,3_b) , (3_b,1_g) ,(2_g,3_b) ,(3_b,2_g) \bigg\}$
you can calculate $E(S|A_1)$ by $E(X|B)=\frac{E(X1_B)}{P(B)}$ Conditional_expectation_with_respect_to_an_event