Lesson 12 of 27
Already have access? Sign in here
Already have access? Sign in here
Ask questions about this lesson and get instant answers.
Since the data shows changing variance over time, the first thing we will do is stabilize the variance by applying log transformation using the log() function. The resulting series will be a linear time series.
1> sp_linear<-log(sp_ts)
2> plot.ts(sp_linear, main="Daily Stock Prices (log)", ylab="Price", col=4)
3