by akamoonknight · 3y ago · 0 comments
Everything else about Bayes’ rule (weighting likelihood by a prior distribution and re-normalizing to obtain a distribution over model parameters) applies just the same.
[0] https://www.statsmodels.org/dev/examples/notebooks/generated...
1) A moving window: you only calculate your updates from the values in the window (say the last n reviews). The downside of this method is that older values drop off precipitously.
2) A forgetting factor: there are many possibilities but one simple one is the EWMA (exponentially weighted moving average). This is pretty standard, and takes the form
Y_updated = alpha x Y_current + (1 - alpha) x Y_previous
with alpha in [0,1]. Applying this recursively, it "forgets" older values by weight alpha. This is also known as exponential smoothing in time series. The advantage of this method is that older values are simply weighed less and drop out more gradually.1. There is a vast literature in "Bayesian Change Point Detection." So you might find a point where something changed and a string of negative reviews began.
https://dataorigami.net/Probabilistic-Programming-and-Bayesi...
2. Similarly, there a bajillion ways to weight recent data. One way is to increase the gain on a kalman filter. That will make recent observations more important. There are bayesian implementations of the Kalman filter.
http://stefanosnikolaidis.net/course-files/CS545/Lecture6.pd...
1. It can provide a probability distribution. So after running bayes, you might have multiple places where it's likely a change has taken place.
2. It generalizes to high dimensional space. It's much harder to tilt the graph in 5-d.