- Consider the following table where certain keywords from daily Twitter messages of stock brokersand traders are collected, along with whether the stock market (as indicated by the S&P 500 index) went up or down on that day. Each word is represented by a binary feature variable, which is 1 if more than half of all participating brokers or traders used it on that day, and 0 otherwise. The data is given below:
|Twit||Buy||Sell||inflation up||inflation down||unemployment high||unemployment down||recession||SP500|
1a) Fill in the last four rows of the table, giving estimated conditional probabilities of 1 and 0 values in each column given S&P index is up, and given it is down. Also in the last column give the estimated prior probability of the index going up and going down.
1b) A new data comes in for today, containing the words “Buy”, “inflation down”, and “recession”. Compute the estimated probability of market going up and market going down using Naive Bayes method. What will be the prediction for the market for today?
1c) Repeat questions 1a) and 1b), but this time use the Laplace Smoothing technique, with α = 1 and β = 20. Will the prediction for the market behavior change?
Need help with this assignment or a similar one? Place your order and leave the rest to our experts!