当前位置:网站首页>This paper introduces the simple operation of realizing linear quadratic moving average of time series prediction that may be used in modeling and excel
This paper introduces the simple operation of realizing linear quadratic moving average of time series prediction that may be used in modeling and excel
2022-06-26 11:12:00 【Classmate Yan is working hard】
List of articles
One 、 What is the linear moving average method ?
The second moving average method is to carry out the second moving average for the average value of the time series , Based on the last data of the time series composed of the first moving average and the second moving average, a linear model is established for prediction .
1 . The main features
Moving average has the effect of smoothing or smoothing the original sequence , The fluctuation of the original sequence is weakened , And the average number of time interval terms N The bigger it is , The stronger the smoothing effect on the sequence .
The number of moving average items should not be too large .
2. Insufficient
- Increase the number of periods of the moving average method ( Namely increase n value ) Will make the smooth fluctuation effect better , But it will make the predicted value less sensitive to the actual changes of the data ;
- The moving average method consists of a large number of records of past data ;
3. Calculation formula
S t 1 = Y t + Y y − 1 + . . . . + Y t − n + 1 n S_t^1=\dfrac{Y_t+Y_y-_1+....+Y_t-_n+_1}{n} St1=nYt+Yy−1+....+Yt−n+1
S t 2 = S t 1 + S t − 1 1 + . . . . . S t − n + 1 1 n S_t^2=\dfrac{S_t^1+S_t-_1^1+.....S_t-_n+_1^1}{n} St2=nSt1+St−11+.....St−n+11
F t + T = a t + b t T F_t+_T=a_t+b_tT Ft+T=at+btT
a t = 2 S t 1 − S t 2 a_t=2S_t^1-S_t^2 at=2St1−St2
b t = 2 n − 1 ( S t 1 − S t 2 ) b_t=\dfrac{2}{n-1}(S_t^1-S_t^2) bt=n−12(St1−St2)
among :
S t 1 S_t^1 St1 Is the value of the first average shift
S t 2 S_t^2 St2 Is the value of the second average shift
Two 、 Operation steps
1. Prepare the data
We introduced the year - Water supply data , Pictured 2.1 Shown ,
2. Perform the first moving average
The specific operation is shown in the figure 2.2 Shown .PS: Note the position of the output area .
The result is as shown in the figure 2.3 Shown 
3. Carry out the second moving average on the basis of the first moving average
Pictured 2.4 Operation shown , The interval is still selected 3,
The result is as shown in the figure 2.5 Shown 
4. Put it into the formula to predict
We have the formula before :
F t + T = a t + b t T F_t+_T=a_t+b_tT Ft+T=at+btT
a t = 2 S t 1 − S t 2 a_t=2S_t^1-S_t^2 at=2St1−St2
b t = 2 n − 1 ( S t 1 − S t 2 ) b_t=\dfrac{2}{n-1}(S_t^1-S_t^2) bt=n−12(St1−St2)
Suppose we want to predict 2022 Annual water supply , Then you can substitute the data into the formula
a t = 2 ∗ 19274.33 − 18669.67 a_t=2*19274.33-18669.67 at=2∗19274.33−18669.67
b t = 2 3 − 1 ( 19274.33 − 18669.67 ) b_t=\dfrac{2}{3-1}(19274.33-18669.67) bt=3−12(19274.33−18669.67)
F ( 2000 + 20 ) = 2 ∗ 19274.33 − 18669.67 + 2 3 − 1 ( 19274.33 − 18669.67 ) F_(2000+20)=2*19274.33-18669.67+\dfrac{2}{3-1}(19274.33-18669.67) F(2000+20)=2∗19274.33−18669.67+3−12(19274.33−18669.67)
Get F=20483.65
3、 ... and summary
That's what we're going to talk about today , This paper simply introduces the application of the quadratic moving average method in Excel Simple operation of , and Excel Provides a large number of functions and methods that enable us to process data quickly and conveniently .
边栏推荐
猜你喜欢

Qixia housing and Urban Rural Development Bureau and fire rescue brigade carried out fire safety training

Fabric. JS upper dash, middle dash (strikethrough), underline

深度学习中的FLOPs和Params如何计算

APICloud 实现文档下载和预览功能

FasterRCNN

TCP面试

That is to say, "live broadcast" is launched! One stop live broadcast service with full link upgrade

3、 Linked list exercise
![[deep learning theory] (6) recurrent neural network RNN](/img/33/e270b08e7748a6e740eb618ed10c9a.gif)
[deep learning theory] (6) recurrent neural network RNN

FastRCNN
随机推荐
携程机票 App KMM 跨端 KV 存储库 MMKV-Kotlin | 开源
关于印发《深圳市福田区支持战略性新兴产业和未来产业集群发展若干措施》的通知
Recent work report
Group by is used in laravel to group and query the quantity
有手就行的移动平均法、指数平滑法的Excel操作,用来时间序列预测
Dynamic programming to solve stock problems (Part 2)
Laravel-admin 登录添加图形验证码
CEPH operation and maintenance common instructions
Svn installation configuration
MySQL Performance Monitoring and SQL statements
机器学习SVM——实验报告
UDP Flood攻击防御原理
laravel 使用 OSS时拼接 完整路径 及 laravel-admin 的多图片上传
UDP flood attack defense principle
April 13, 2021 interview with beaver family
mysql性能监控和sql语句
工作汇报(2)
基于slate构建文档编辑器
Wangeditor uploading local video modification
PC QQ大廳 上傳更新 修改versionInfo