I am trying to work through some probability and statistics questions. We recently covered joint probability distributions but it is still quite fuzzy to me. I am not sure if this question (at least all of it) uses JPD's but here goes.
There are three varieties of a particular type of plant: variety A, variety B and a hybrid variety. 50% of the plants are of variety A, 20% of variety B and the remainder are hybrids.
(a) If a random sample of 10 plants is collected, nd the probability that the sample contains:
(i) Exactly three plants of variety A;
(ii) Exactly two plants of variety B;
(iii) Exactly three plants of variety A and two plants of variety B.
In the sample, are the numbers of plants of each variety independent of each other? Justify your answer clearly.
(b) Suppose now that the sample of 10 plants contains exactly four plants of variety A. In this case, what is the distribution of the number of variety B plants in the sample?
For part a), I think that for i and ii, it is enough to use Binomial but I feel like there is a catch and that I will have to change the parameters for the 2 or 3 picks (namely, taking away one of the plants from the sample size and changing the probability accordingly). In iii I have to use Bayes from what I understand
For part b), I am not quite sure where to begin.
For ($i$) the context seems to imply that these plants are coming from an infinite source. i.e. picking a variety A plant won't make you less likely to in the future. So we just have a standard binomial:
$${10 \choose 3} \left(\frac{1}{2}\right)^3 \left(\frac{1}{2}\right)^7\approx0.1172$$
Similarly for ($ii$) we have
$${10 \choose 2} \left(\frac{1}{5}\right)^2 \left(\frac{4}{5}\right)^8\approx0.302$$
For ($iii$) we have a multinomial distribution:
Let $X,Y,Z$ be random variables denoting the number of $A,B,$ and $C$ varieties.
Then
$$\begin{align*} P(X=3, Y=2, Z=5) &= \frac{10!}{3!\cdot2!\cdot5!}\left(\frac{1}{2}\right)^3 \left(\frac{1}{5}\right)^2 \left(\frac{3}{10}\right)^5\\\\ &\approx0.0306 \end{align*}$$
For ($iv$) no these events are not independent. For two events to be independent we need
$$P(A\cap B)=P(A)\cdot P(B)$$
but $$0.1172\cdot0.302\neq0.0306$$
($b$)
We are given that four of the plants are $A$. Now we know that the probability of a $B$ variety goes to $\frac{0.2}{0.2+0.3}=0.4$. Using the standard binomial as before and letting $X$ denote the number of variety $B$ plants, we get a pmf of
$$ p_{X}(x)= \begin{cases} 0.046656 & x =0 \\ 0.186624 & x=1 \\ 0.311040 & x=2 \\ 0.276480 & x=3 \\ 0.138240 & x =4\\ 0.036864 & x=5\\ 0.004096 & x=6\\ 0 & otherwise \end{cases} $$
These calculations were made in R using the following command: