[root@new-host yiyujia]# yum install coreutils [root@new-host yiyujia]# wget https://raw.githubusercontent.com/yuroyoro/svm/master/svm [root@new-host yiyujia]# vi /usr/local/bin/svm [root@new-host yiyujia]# chmod +x /usr/local/bin/svm [root@new-host yiyujia]# chmod 755 /usr/local/bin/svm [root@new-host yiyujia]# vi ~/.bash_profile export SCALA_HOME=~/.svm/current/rt export PATH=$SCALA_HOME/bin:$PATH source ~/.bash_profile 01:26 yiyujia@new-host:~ $ svm install 2.11.2
Thursday, May 15, 2014
setup scala version manager on CentOS
Monday, April 7, 2014
several methods collecting for time series analysis
It is normal for data analysis processing have missing data for reasons. Once the data is missing. It is nature for people ask how the gap on the plot can be "fixed/smoothed". Also, it is very often to be asked to predict next several points ased on previous 7 to 8 points. For example, given history stock level, I am asked to predict stock level for beverage market data analysis.
With the asspumption of whatever has occured in the past will continue to happen in the future, we can treat these questions as time series analysis. Below are list of four methods to do forcecasting for a short time series.
With the asspumption of whatever has occured in the past will continue to happen in the future, we can treat these questions as time series analysis. Below are list of four methods to do forcecasting for a short time series.
- Moving averages
install.packages("zoo") library(zoo) ma = rollmean(ts, k) - For data without any systematic trend or seasonal components, we can use exponential smoothing
- Accounting for data seasonality using Winter's smoothing
- Accounting for data trend using Holt's smoothing
install.packages("forecast")
library(forecast)
x = c(1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5 )
x = ts(x, frequency = 5)
plot(hw(x, 5), byt = "1")
1.11 Time Series- exponential smoothing
1.12 Time Series- moving averages
Labels:
data analysis,
data mining,
statistical modeling
Subscribe to:
Posts (Atom)