Starting off as a muggle that naïve to the Math's and Data Science world.

Day 55

Objective of time series

  • Describe – visualize current data
  • Forecast – create continues data point at the end of chart
  • Improve

Time Series Chart

  • in regular interval, eg. 5s, 5s, 5s; not 5s, 10s, 3s.
Excel

1. Raw Data

YearQuarter 1Quarter 2Quarter 3Quarter 4
1667631675699
2739695751779
3823795835875
4931855939967

2. Copy & paste again but holding “Ctrl” button
3. Click on “Transpose” button


4. Copy and format accordingly.


5. Create scatter plot


6. Modify Major Axis Tick


7. Modify Major Axis Gridline




R

ts(data, start, end, frequency) create time series object

imported_earthquakes <- ts(data=Earthquakes$earthquakes)

plot(imported_earthquakes,
main="title here",
xlab="Year",
ylab="Magnitude")

Result:

imported_sales <- ts(data=sales$Sales, 
start=c(2007, 7),
frequency=4)

plot(imported_sales,
main="title here",
xlab="Year",
ylab="Sales")

Result:

Leave a comment