Sorry ARIMA, but I’m Going Bayesian
multithreaded.stitchfix.com
multithreaded.stitchfix.com
Here's a tip for any R users who read through the code and (like me) is pained by repetition. Instead of using
library(lubricate)
library(bts)
library(...)
Just use apply! packages <- c("lubricate", "bts", "...")
lapply(packages, library, character.only = TRUE) library(pacman)
pacman::p_load("lubridate", "bts", ...)
with the added benefit of installing missing packages (I find this especially useful because my school's computer lab deletes user-installed packages weekly)these sorts of discussions, people who write blog posts about 'library' vs. 'require', kind of feel like 'R smell'.
wouldn't it be better for a language to just take a list of libraries for import, maybe with a readable syntax?
so... have we got to where Julia can re-use R packages yet?
packages is a character vector of package names, lapply is by definition 'list apply'. We're taking a list of packages and applying the library function on them.
This seems complicated if you're not used to it but R is a functional language. Approaching R from this perspective makes it a powerful, flexible.
I work with time series data every day in the domain of commercial real estate. One of my constant struggles is to extract an underlying long-term trend from the real estate cycle. I would love to try this here.
Can anyone suggest some Bayesian learning resources for a non-statistician?
http://xcelab.net/rm/statistical-rethinking/
Edit: neither this book nor Kruschke's are going to help you with time series in particular. Bayesian time series methods are based on state space models and are relatively complex (http://www.eurasip.org/Seminars/Tutorials/EUSIPCO2014%20Tuto...). You might want to read some introductory text on time series covering state space models first.
Edit again: The full text of "Bayesian Filtering and Smoothing" by Simo Sarkka is available online: http://users.aalto.fi/~ssarkka/pub/cup_book_online_20131111....
It gives a gentle but through introduction from first principles; lots of good intuition and 'why'.
It works well with "Probabilistic Programming & Bayesian Methods for Hackers" also mentioned, but I'd start with this. It is much more accessible than many other introductory books, IMO.
I'm currently using it to define priors on measure spaces. I think it's awesome to have so few abstractions in a discipline and be able to do inference anyway. I'd definitely recommend to look into Dirichlet Processes if you haven't before. It's a nice entry point.
he also has some very cool uses of dirichlet processes (modelling entire competitive industries)
Does anyone else have a _really_ hard time reading the light gray-on-white font?
Any good references for an intro to the traditional arima models?
And for a longer, a book by the author of R forecast library: https://www.otexts.org/fpp/
I use the Elements of Forecasting book in an undergrad forecasting class that I teach. Forecasting will be better, but I'm not sure if it's completed.