Problem
Suppose we use a Gaussian PDF to express the likelihood of light intensity prevalent on Clear, Cloudy, and Eclipse weather. The probability of a certain amount of light value (positive or negative) given the weather is given by the Rayleigh probability function.
$$ P(light | w) = \frac{light}{\sigma_w^2}e^{\frac{-light^2}{2\sigma_w^2}}$$
defined for non-negative light values, where $w$ denotes the weather class $ \in \{Clear, Cloudy, Eclipse\}$ and $light$ denotes the light intensity level (integer).
We're given 200 arbitrary light measurements labeled $light_1$, $light_2$, ..., $light_{200}$ while an eclipse is occurring.
- Derive the maximum likelihood estimate for $\sigma_{eclipse}$.
- Given the prior probability function, $P(\sigma)=2e^{-2\sigma}$, derive the maximum posterior estimate for $\sigma_{eclipse}$.
Assume $ \sigma_w $, the standard deviation of weather, $ = 3 $.
Attempt
Taking the equation $ P(light_1, light_2, ..., light_{200} | \theta) = \prod_i{P(light_i|\sigma_w)}$, I began plugging in for the arbitrary light intensities as follows.
$ \prod_i{P(light_i|\sigma_w)} = (\frac{light_1}{\sigma_w^2}e^{\frac{-(light_1)^2}{2\sigma_w^2}}) (\frac{light_2}{\sigma_w^2}e^{\frac{-(light_2)^2}{2\sigma_w^2}}) (\frac{light_3}{\sigma_w^2}e^{\frac{-(light_3)^2}{2\sigma_w^2}})...$ $ \prod_i{P(light_i|\sigma_w)} = \frac{1}{\sigma_w^2}(light_1e^{\frac{-(light_1)^2}{2\sigma_w^2}}) (light_2e^{\frac{-(light_2)^2}{2\sigma_w^2}}) (light_3e^{\frac{-(light_3)^2}{2\sigma_w^2}})...$
Plugging the known value $ \sigma_w = 3 $, $ \prod_i{P(light_i|3)} = \frac{1}{9}(light_1e^{\frac{-(light_1)^2}{18}}) (light_2e^{\frac{-(light_2)^2}{18}}) (light_3e^{\frac{-(light_3)^2}{18}})...$
$ \prod_i{P(light_i|3)} = \frac{1}{9}\prod_i{light_ie^{\frac{-(light_i)^2}{18}}}$
I don't know how to progress from here.
After finding the maximum likelihood estimate in (1), I assume finding the maximum posterior estimate requires simply multiplying the MLE value by the prior probabilities, which can easily be obtained from the equation above.
Notes
Here, my question is how to proceed with part (1). Currently taking a grad-level ML course without exposure to undergraduate probability so any help would be greatly appreciated. Thank you!