1
$\begingroup$

I want to run a time series regression over data is not spaced out in regular time intervals and where in some time periods there are multiple observations. Such in the picture below.

enter image description here

Is this possible and are there any models that are appropriate for this with out having to alter the data?

$\endgroup$
7
  • $\begingroup$ With the irregular spaces I would not consider it changing the data to interpolate the missing dates with zeroes. Any time series method is going to require that. Regression will not necessarily require evenly spaced data. You could use the data as-is with a linear regression. What are you measuring, and what's your goal (are you trying to predict the future or understand the relationship b/w variables explaining the past)? Answer these questions and we can give suggestions. $\endgroup$ Commented Sep 6, 2018 at 13:29
  • $\begingroup$ The score is a sentiment analysis score which analyses news headlines. I want to see if the sentiment of headlines have a predictive impact on stock prices. I would like to be able to control for a range of other variables too. $\endgroup$ Commented Sep 6, 2018 at 15:26
  • $\begingroup$ And what does one observation mean? why are there more one score sometimes, and zero other times? $\endgroup$ Commented Sep 6, 2018 at 15:29
  • $\begingroup$ I could average the sentiment scores of multiple news articles and perhaps create a variable which counts how many articles there were that day. This is why ideally I would prefer not to average over stories because it will lose a lot of the variation in the stories. $\endgroup$ Commented Sep 6, 2018 at 15:52
  • $\begingroup$ To clarify I think that I would want a model something like this $ P _ { t } = \alpha + P _ { t -1 } + \beta X _ { t - 1 } + \varepsilon _ { t } $ where $ P _ { t } $ is the share price and $ \beta X _ { t - 1 }$ is a range of controls including the news sentiment scores $\endgroup$ Commented Sep 6, 2018 at 16:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.