I am new to this area of maths and am not feeling confident with my answers, I was wondering if someone could go through them with me and tell me if I'm right or where I've gone wrong.
Let $Z=\{(x,y)\in\mathbb{Z}\times\mathbb{Z} | 0\leq x\leq3, 0\leq y \leq10, y\leq x^2$}, and let Z be the discrete random variable that is uniform on the set of outcomes $Z$. Let X and Y be the discrete random variables representing the $x$ and $y$ coordinates of Z respectively.
a) Determine H(Y)
b) Determine H(Z|Y)
My attempts:
a) I know that H(Y) is given by $-\sum_{i=1}^np_i\log(p_i)$ (with log base 2) So would I get $-10\sum \frac{1}{10}\log(\frac{1}{10})$ = $3.322$?
b) I know H(Z|Y) is $-\sum_{y\in Y}\sum_{z\in Z}Pr(y)Pr(z|y)\log(Pr(z|y))$ and I got $-\sum_{y\in Y}\sum_{z\in Z}\frac{1}{10}\cdot \frac{1}{4}\log(\frac{1}{4}) = 0.05$ Which I know can't be right as it does not make sense to have such a low entropy.