A worked example: user activity to coefficients, out loud
Here's the Airbnb question, worked out loud.
You have a table of user events. Aggregate each user's activity, fit a regression of their bookings on it, and interpret the coefficients.
1. Pick the unit and the window. One row per user, with activity counted before the outcome window, so no predictor is caused by the outcome.
2. Name the question. Prediction, or the effect of one thing? Gelman and Hill warn that a causal reading needs much stricter assumptions than prediction.
Users who used the wishlist book 30% more, controlling for their search count. What's the safe way to say it?
Which belongs in the model of bookings on wishlist use: searches in the month before, or messages to hosts after the wishlist?
Each user has 30 rows, one per day. Treat the rows as independent, and the standard errors come out how?