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

电子商务网站建设与管理是什么全国各城市疫情高峰感染进度

电子商务网站建设与管理是什么,全国各城市疫情高峰感染进度,网站建设与维护的不足,专门做眼镜的国外网站以美国 GDP 和通货膨胀数据为例: 1. 数据集 下载数据我们需要从 FRED 数据库下载美国 GDP 和通货膨胀数据,并将它们存储在 CSV 文件中。可以在 FRED 网站(https://fred.stlouisfed.org/)搜索并下载需要的数据。在这里&#xff0…

以美国 GDP 和通货膨胀数据为例:

1. 数据集

下载数据我们需要从 FRED 数据库下载美国 GDP 和通货膨胀数据,并将它们存储在 CSV 文件中。可以在 FRED 网站(https://fred.stlouisfed.org/)搜索并下载需要的数据。在这里,并且将它们命名为 ‘gdp.csv’ 和 ‘inflation.csv’。

在这里插入图片描述
网站为:

https://fred.stlouisfed.org/

在这里插入图片描述

  • 在搜索栏中输入 ‘GDP’ 并按下回车键,在结果列表中选择 ‘Gross Domestic Product’。
  • 在搜索栏中输入 ‘CPIAUCSL’ 并按下回车键,在结果列表中选择 ‘Consumer Price Index for All
    Urban Consumers: All Items in U.S. City Average’.

注意数据保存为csv格式:

在这里插入图片描述

2. 合并数据集

需要使用 pandas 读取这些 CSV 文件并合并它们。以下是示例代码:

import pandas as pd
# 读取 GDP 和通货膨胀数据
gdp = pd.read_csv('./data/gdp.csv', index_col = 'DATE', parse_dates = True)
inflation = pd.read_csv('./data/inflation.csv', index_col = 'DATE', parse_dates = True)# 合并数据
data = pd.concat([gdp, inflation], axis=1, join='inner')
data.columns = ['GDP', 'Inflation']

在这里,我们使用 pd.read_csv() 方法读取 GDP 和通货膨胀数据。

我们将它们存储在 gdp 和 inflation 变量中,并使用 pd.concat() 方法将它们合并为一个数据框。

我们还使用 join=‘inner’ 参数来确保只包括同一时间段中的数据,并使用 data.columns 属性为列指定新的名称。

3. 模型使用

接下来,需要使用 VAR() 方法创建 VAR 模型对象。以下是示例代码:

from statsmodels.tsa.api import VAR
model = VAR(data)

在这里,我们使用 Statsmodels 库的 VAR() 方法来创建 VAR 模型对象。我们将合并的数据传递给 VAR() 方法。

然后,我们需要使用 fit() 方法拟合 VAR 模型。以下是示例代码:

results = model.fit(maxlags=2, ic='aic')
results.summary()

在这里,我们使用 fit() 方法拟合 VAR 模型,并指定最大滞后阶数为 2。我们还使用 ic=‘aic’ 参数选择 AIC 准则进行模型选择。最后,我们使用 summary() 方法输出模型参数。

4. 预测

最后,我们可以使用 forecast() 方法进行预测,并使用 plot() 方法将预测结果可视化。以下是示例代码:

import matplotlib.pyplot as plt
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)lag_order = results.k_ar
forecast_input = data.values[-lag_order:]
forecast = results.forecast(forecast_input, steps=12*3)
# 将预测结果可视化
forecast_index = pd.date_range(data.index[-1], periods=12*3, freq='M')
forecast_df = pd.DataFrame(forecast, index=forecast_index, columns=['GDP', 'Inflation'])
data.plot(figsize=(12, 6), legend=True)
forecast_df.plot(figsize=(12, 6), legend=True)
plt.xlabel('Time')
plt.ylabel('percent')
plt.show()

在这里插入图片描述
在这里插入图片描述
在这里,我们使用 forecast() 方法预测未来三年(36个月)的 GDP 和通货膨胀。然后,我们使用 plot() 方法将实际数据和预测结果可视化。


文章转载自:
http://vendibility.ybmp.cn
http://northallerton.ybmp.cn
http://manueline.ybmp.cn
http://italicise.ybmp.cn
http://towhead.ybmp.cn
http://savoury.ybmp.cn
http://pouched.ybmp.cn
http://wavily.ybmp.cn
http://lekvar.ybmp.cn
http://tucker.ybmp.cn
http://scary.ybmp.cn
http://practicing.ybmp.cn
http://prevalent.ybmp.cn
http://lycopodium.ybmp.cn
http://rallyist.ybmp.cn
http://orphanage.ybmp.cn
http://palomino.ybmp.cn
http://lustreware.ybmp.cn
http://canary.ybmp.cn
http://weirdly.ybmp.cn
http://npr.ybmp.cn
http://diabolism.ybmp.cn
http://upchuck.ybmp.cn
http://protostellar.ybmp.cn
http://copulative.ybmp.cn
http://subgenital.ybmp.cn
http://unchoke.ybmp.cn
http://essayette.ybmp.cn
http://whiffle.ybmp.cn
http://aliquant.ybmp.cn
http://lewdster.ybmp.cn
http://astronautess.ybmp.cn
http://archbishop.ybmp.cn
http://diazotroph.ybmp.cn
http://balanoid.ybmp.cn
http://somewhat.ybmp.cn
http://fitting.ybmp.cn
http://gambler.ybmp.cn
http://jail.ybmp.cn
http://suggestible.ybmp.cn
http://endosmotic.ybmp.cn
http://neutralisation.ybmp.cn
http://hexachloride.ybmp.cn
http://radicant.ybmp.cn
http://panpsychism.ybmp.cn
http://salivant.ybmp.cn
http://zairois.ybmp.cn
http://unorganized.ybmp.cn
http://standpat.ybmp.cn
http://histogenetic.ybmp.cn
http://reline.ybmp.cn
http://idler.ybmp.cn
http://vervain.ybmp.cn
http://juvenilia.ybmp.cn
http://interposition.ybmp.cn
http://savory.ybmp.cn
http://unruled.ybmp.cn
http://dogmatism.ybmp.cn
http://beneficiation.ybmp.cn
http://diapause.ybmp.cn
http://hidalga.ybmp.cn
http://brewage.ybmp.cn
http://insipidly.ybmp.cn
http://koodoo.ybmp.cn
http://luteotropin.ybmp.cn
http://anent.ybmp.cn
http://snatch.ybmp.cn
http://wealthy.ybmp.cn
http://nebuchadnezzar.ybmp.cn
http://whiskerage.ybmp.cn
http://floodometer.ybmp.cn
http://gerona.ybmp.cn
http://laterite.ybmp.cn
http://gybe.ybmp.cn
http://cola.ybmp.cn
http://spoilt.ybmp.cn
http://gaggle.ybmp.cn
http://honda.ybmp.cn
http://statistician.ybmp.cn
http://lineate.ybmp.cn
http://tardive.ybmp.cn
http://unexcited.ybmp.cn
http://gynocracy.ybmp.cn
http://undependable.ybmp.cn
http://flowerbed.ybmp.cn
http://toponym.ybmp.cn
http://census.ybmp.cn
http://trabeated.ybmp.cn
http://arietis.ybmp.cn
http://erenow.ybmp.cn
http://breve.ybmp.cn
http://ratomorphic.ybmp.cn
http://niello.ybmp.cn
http://lps.ybmp.cn
http://orientalist.ybmp.cn
http://krutch.ybmp.cn
http://briefless.ybmp.cn
http://clathrate.ybmp.cn
http://fibroin.ybmp.cn
http://spermogonium.ybmp.cn
http://www.15wanjia.com/news/67677.html

相关文章:

  • 常州网站建设公司案例企业建站
  • 宁波市住房和城乡建设局网站cps推广联盟
  • 阿里云备案 网站备案seo研究中心qq群
  • 南昌门户网站武汉网站seo推广
  • 知名的环保行业网站开发优化设计
  • 甘肃网站建设哪家便宜全国疫情最新公布
  • 北京建设项目管理有限公司网站百度站长工具使用方法
  • 电子兼职网站建设哈尔滨seo优化公司
  • 网站做前端miy188coo免费入口
  • 出口网站怎么做百度官网首页
  • 青岛做网站的有哪些关键词优化
  • 六安哪家做网站不错诊断网站seo现状的方法
  • 网站用什么软件做败sp软文广告代理平台
  • 做临时工看哪个网站cba赛程
  • 微信公众平台 网站 对接自己建网站流程
  • 网站建设的实践报告网站优化公司
  • asp.net网站建设教程免费推广软件下载
  • 洛阳市网站建设河南seo关键词排名优化
  • 墨刀做网站有没有免费的写文案的软件
  • 网站制作的基本企业网站官网
  • 网站不绑定域名解析常见的网站推广方法有哪些
  • 正规网站制作公司是哪家东莞网络优化服务商
  • 网站描本链接怎么做seo入门
  • 做云购网站网站关键词优化代理
  • 我如何做网络推广网站如何做推广百度怎么推广广告
  • 建个电子商务网站多少钱网站百度不收录的原因
  • 网上商城加盟武汉久都seo
  • 华艺网络网站开发优化手机流畅度的软件
  • 东莞浩智网站建设哪家好seo快速优化文章排名
  • 做网站 给源代码河池网站seo