SLIDE 1
Homework 2 MLE and Naive Bayes
Instructions
Answer the questions and upload your answers to courseville. Answers can be in Thai or English. Answers can be either typed or handwritten and scanned.
MLE
Consider the following very simple model for stock pricing. The price at the end
- f each day is the price of the previous day multiplied by a fixed, but unknown,
rate of return, α, with some noise, w. For a two-day period, we can observe the following sequence y2 = αy1 + w1 y1 = αy0 + w0 where the noises w0, w1 are iid with the distribution N(0, σ2), y0 ∼ N(0, λ) is independent of the noise sequence. σ2 and λ are known, while α is unknown.
- Find the MLE of the rate of return, α, given the observed price at the
end of each day y2, y1, y0. In other words, compute for the value of α that maximizes p(y2, y1, y0|α) Hint: This is a Markov process, e.g. y2 is independent of y0 given y1. In general, a process is Markov if p(yn|yn−1, yn−2, ...) = p(yn|yn−1). In other words, the present is independent of the past (yn−2, yn−3, ...), conditioned on the immediate past yn−1.
- (Optional) Consider the general case, where