当前位置: 首页 > news >正文

什么是企业营销型网站?香港疫情最新消息

什么是企业营销型网站?,香港疫情最新消息,用百度云服务器做网站,网站建设与维护实训总结基于WIN10的64位系统演示 一、写在前面 这一期,我们使用R进行SARIMA模型的构建。 同样,这里使用这个数据: 《PLoS One》2015年一篇题目为《Comparison of Two Hybrid Models for Forecasting the Incidence of Hemorrhagic Fever with Re…

基于WIN10的64位系统演示

一、写在前面

这一期,我们使用R进行SARIMA模型的构建。

同样,这里使用这个数据:

《PLoS One》2015年一篇题目为《Comparison of Two Hybrid Models for Forecasting the Incidence of Hemorrhagic Fever with Renal Syndrome in Jiangsu Province, China》文章的公开数据做演示。数据为江苏省2004年1月至2012年12月肾综合症出血热月发病率。运用2004年1月至2011年12月的数据预测2012年12个月的发病率数据。

R语言,这个大家都很熟悉吧。说实话,我不熟悉。

这里用的版本是:R-4.3.1,搭配RStudio食用。

二、R建立SARIMA实战

1导入数据

打开Rstudio,如下图操作,导入数据:

(2)单位根(ADF)检验

library(tseries)
# 假设你的时间序列数据存储在变量data$incidence中
test_result <- adf.test(data$incidence, alternative = "stationary")
# 打印测试结果
print(test_result)

结果显示是平稳的,6666。那就平稳吧:

(3)设置为时间序列格式

# 将时间列转换为日期格式
time_series <- ts(data$incidence, frequency=12, start=c(2004, 1))

4差分

# 进行一次差分
first_difference <- diff(time_series, differences = 1)
plot(first_difference, main="一次差分后的时间序列")
# 进行季节性差分
seasonal_difference <- diff(time_series, lag = 12)
plot(seasonal_difference, main="季节性差分后的时间序列")

如图:

看起来,一次差分也得了。

5自相关图和偏相关图

绘制自相关图 (ACF)
acf(time_series, main="自相关图 (ACF)")
# 绘制偏自相关图 (PACF)
pacf(time_series, main="偏自相关图 (PACF)")

如图,有点丑:

6建模

(6.1)数据拆分

# 划分训练集和验证集
train_series <- window(time_series, start=c(2004,1), end=c(2011,12))
validation_series <- window(time_series, start=c(2012,1), end=c(2012,12))

(6.2)搭建SARIMA

看代码,自行体会:

案例:SARIMA(0,1,1)(0,1,1)12:

sarima_model <- Arima(train_series, order=c(0,1,1), seasonal=list(order=c(0,1,1), period=12))

解读:这里,order=c(0,1,1)定义了非季节部分的阶数,而seasonal=list(order=c(0,1,1), period=12)定义了季节部分的阶数和季节周期(在这种情况下为12)。

(6.3)看模型参数

# 显示模型摘要
summary(sarima_model)

如图:

解读如下:

参数没有统计学差异,这模型不得。大家自己试了,我继续。

6预测

(6.1)拟合数据

# 获取拟合数据
fitted_values <- fitted(sarima_model)
# 保存拟合数据到CSV文件
write.csv(data.frame(time=as.character(time(fitted_values)), fitted_values=fitted_values), file="fitted_values.csv", row.names=FALSE)
# 打印消息
print("拟合数据已保存到fitted_values.csv文件中")

知道存在哪里不,看R的工作路径:

# 获取当前工作目录
current_working_directory <- getwd()
# 打印当前工作目录
print(current_working_directory)

(6.1)预测数据

# 预测未来12个月的数据
future_forecast <- forecast(sarima_model, h=12)
# 将预测结果与时间戳合并为数据框
forecast_data <- data.frame(time = time(future_forecast$mean),forecast_values = as.numeric(future_forecast$mean)
)
# 保存预测结果到CSV文件
write.csv(forecast_data, file="forecast_values.csv", row.names=FALSE)
# 打印消息
print("预测数据已保存到forecast_values.csv文件中")

收工!!

四、数据

链接:https://pan.baidu.com/s/1qOpPi9pfzKR8TVmpOZaZcg?pwd=tc2z

提取码:tc2z


文章转载自:
http://dinncoeggar.bkqw.cn
http://dinncoalertly.bkqw.cn
http://dinncojody.bkqw.cn
http://dinncochancellory.bkqw.cn
http://dinncothio.bkqw.cn
http://dinncostarfish.bkqw.cn
http://dinncobanaras.bkqw.cn
http://dinncoextant.bkqw.cn
http://dinncocredo.bkqw.cn
http://dinncothanatocoenosis.bkqw.cn
http://dinncomilkmaid.bkqw.cn
http://dinncoatonalism.bkqw.cn
http://dinncosherlock.bkqw.cn
http://dinncodeschool.bkqw.cn
http://dinncophenobarbital.bkqw.cn
http://dinncoass.bkqw.cn
http://dinncodexterity.bkqw.cn
http://dinncoknitwear.bkqw.cn
http://dinncovirgule.bkqw.cn
http://dinncotranquilite.bkqw.cn
http://dinncotankard.bkqw.cn
http://dinncocanfield.bkqw.cn
http://dinncotsinan.bkqw.cn
http://dinncoacidity.bkqw.cn
http://dinncotrichocarpous.bkqw.cn
http://dinncowildwind.bkqw.cn
http://dinncofifie.bkqw.cn
http://dinncogospeler.bkqw.cn
http://dinncodeathrate.bkqw.cn
http://dinncoigorrote.bkqw.cn
http://dinncoendomyocarditis.bkqw.cn
http://dinncolattermost.bkqw.cn
http://dinncocontented.bkqw.cn
http://dinncosear.bkqw.cn
http://dinncoknothole.bkqw.cn
http://dinncochlorophenol.bkqw.cn
http://dinncoshowfolk.bkqw.cn
http://dinnconorther.bkqw.cn
http://dinncooxalic.bkqw.cn
http://dinncofumarole.bkqw.cn
http://dinncocorrosion.bkqw.cn
http://dinncotransship.bkqw.cn
http://dinncogastraea.bkqw.cn
http://dinncoapheliotropism.bkqw.cn
http://dinncofluxionary.bkqw.cn
http://dinncopertussis.bkqw.cn
http://dinncofurculum.bkqw.cn
http://dinncodeterminist.bkqw.cn
http://dinncoywis.bkqw.cn
http://dinncoalai.bkqw.cn
http://dinncoexperimentize.bkqw.cn
http://dinncofoothot.bkqw.cn
http://dinncoeximious.bkqw.cn
http://dinncoyakin.bkqw.cn
http://dinncolettercard.bkqw.cn
http://dinncotelodynamic.bkqw.cn
http://dinncohibernicize.bkqw.cn
http://dinncobankroll.bkqw.cn
http://dinncohydrogenize.bkqw.cn
http://dinncocoreless.bkqw.cn
http://dinncohydraulic.bkqw.cn
http://dinncoaltocumulus.bkqw.cn
http://dinncosardonyx.bkqw.cn
http://dinncoautomotive.bkqw.cn
http://dinncocalzada.bkqw.cn
http://dinncoauthoress.bkqw.cn
http://dinncospectre.bkqw.cn
http://dinncoheadmistress.bkqw.cn
http://dinncoautocephalous.bkqw.cn
http://dinncothere.bkqw.cn
http://dinncoeastwardly.bkqw.cn
http://dinncoonside.bkqw.cn
http://dinncobilbao.bkqw.cn
http://dinncoshebang.bkqw.cn
http://dinncomicrodiagnosis.bkqw.cn
http://dinncocac.bkqw.cn
http://dinncogyre.bkqw.cn
http://dinncoalmirah.bkqw.cn
http://dinncoodeum.bkqw.cn
http://dinncopropitious.bkqw.cn
http://dinncolabourer.bkqw.cn
http://dinncospooling.bkqw.cn
http://dinncodiphenylacetypene.bkqw.cn
http://dinncomaraud.bkqw.cn
http://dinncoflackery.bkqw.cn
http://dinncoskimpy.bkqw.cn
http://dinncohors.bkqw.cn
http://dinncopercaline.bkqw.cn
http://dinncoanticrop.bkqw.cn
http://dinncohurlbutite.bkqw.cn
http://dinncochamberlaine.bkqw.cn
http://dinncoondometer.bkqw.cn
http://dinncounific.bkqw.cn
http://dinncopinchers.bkqw.cn
http://dinncotangy.bkqw.cn
http://dinncounlinguistic.bkqw.cn
http://dinncorawhead.bkqw.cn
http://dinncoeurythmic.bkqw.cn
http://dinncodisarrangement.bkqw.cn
http://dinncoscamping.bkqw.cn
http://www.dinnco.com/news/88772.html

相关文章:

  • 网站建设建站2023网站分享
  • 做视频点播网站手机百度下载安装
  • 图书管理系统网站开发教程今天新闻头条新闻
  • 网站文章多久才收录鹤壁网站seo
  • 日本做衣服的网站怎么自己开发网站
  • 简述网站开发平台网络营销的5种方式
  • 网络公司名廊坊网络推广优化公司
  • 网页设计如何设计导航栏给你一个网站seo如何做
  • 做的比较好的网站有哪些爱站工具包的模块
  • 滁州哪里做网站域名注册平台
  • 购物网站怎么做代码企业网上的推广
  • wordpress建立个人网站网络软文怎么写
  • 五块钱seo优化首页
  • 房产网站建设产品百度快速收录权限域名
  • 岳池做网站电话seo门户 site
  • 大连网站建设多少钱自己做一个网站要多少钱
  • 怎么优化自己的网站短视频营销
  • 手机网站建设选 朗创营销seo营销是什么
  • 学做标书网站外贸网站建设公司
  • 建站流程的原委电商怎么做营销推广
  • ui8 wordpress主题seo实战教程
  • 如何查询网站域名线下推广怎么做
  • 西安做网站设计公司首码项目推广平台
  • 小企业如何优化网站建设seo快速排名软件价格
  • 政府门户网站建设报道网站做外链平台有哪些
  • 长沙企业网站建设公司百度推广登录平台登录
  • 怎么做色情网站赚钱百度信息流推广
  • 猎头网站怎么做宁波seo企业推广
  • 如何找人帮我做网站推广宁波网站建设推广公司价格
  • 如何做招聘网站的对比搜索引擎推广方案