足球预测_预测足球热

足球预测

By Aditya Pethe

通过阿蒂亚·皮特(Aditya Pethe)

From September to January every year, football takes over America. Games dominate TV Sunday and Monday nights, and my brother tears his hair out each week over his consistently underperforming fantasy teams. The hype seems to reach an unbearable level by the time the playoffs roll around.

每年的9月至1月,足球席卷美国。 游戏在星期日和星期一晚上占据着电视台的主导地位,而我的兄弟每周都在表现不佳的幻想队中大放异彩。 季后赛到来之时,炒作似乎已经到了难以忍受的地步。

But is there a way to measure and forecast that hype? I decided to use one of my favorite NFL players, Peyton Manning, in order to explore seasonality in Deephaven’s Jupyter Notebooks. Using a dataset of Manning’s Wikipedia search frequencies taken over an 8 year period from 2008 to 2016, my goal was to break down how football hype evolved throughout the season.

但是,有没有一种方法可以衡量和预测这种炒作? 我决定使用我最喜欢的NFL球员之一Peyton Manning来探索Deephaven的Jupyter笔记本的季节性。 使用从2008年到2016年的8年期间内Manning的Wikipedia搜索频率的数据集 ,我的目标是弄清整个赛季足球宣传的演变。

To do this, I decided to take two approaches to analyzing seasonality. The first was the traditional ARIMA model, and the second was the newer Fbprophet library. I would use both these methods to fit, predict, and validate models to see which was better at understanding NFL hype.

为此,我决定采用两种方法来分析季节性。 第一个是传统的ARIMA模型,第二个是较新的Fbprophet库。 我将使用这两种方法来拟合,预测和验证模型,以查看哪种方法更适合理解NFL宣传。

我们的数据 (OUR DATA)

We can plot our data in Deephaven with the following code:

我们可以使用以下代码在Deephaven中绘制数据:

At a top-level glance, our data is log-transformed Wikipedia page views for Peyton Manning taken each day for about 8 years. The data appears to exhibit some strong seasonal trends that we can look into.

从最高层次看,我们的数据是对Peyton Manning进行日志转换的Wikipedia页面视图,大约每天进行8年。 数据似乎显示出一些我们可以研究的强烈季节性趋势。

Image for post

Additionally, before we begin breaking down our data, we want a consistent way to visualize our forecasts. We can produce a function that takes our training, testing, and any forecast data and plots it with Deephaven. This allows us to combine analysis from multiple libraries and methods with Deephaven’s powerful and interactive plotting.

此外,在开始分解数据之前,我们需要一种一致的方式来可视化我们的预测。 我们可以产生一个函数,将我们的训练,测试和所有预测数据都用Deephaven进行绘制。 这使我们能够将来自多个库和方法的分析与Deephaven强大而交互式的绘图相结合。

有马 (ARIMA)

The ARIMA model stands for autoregressive, integrated moving average model.

ARIMA模型代表自回归,集成移动平均模型。

The Autoregressive, or AR component of the model, is a linear combination of the previous N seasonal lags. For our Peyton Manning model, this means some linear combination of the previous N weeks, months, or years.

模型的自回归或AR分量是前N个季节滞后

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
足球比赛预测模型是一种利用机器学习和数据分析技术来预测足球比赛结果的模型。Python是一种广泛应用于机器学习和数据分析领域的编程语言,因此在Python中也可以实现足球比赛预测模型。 在Python中,可以使用各种机器学习算法和库来构建足球比赛预测模型。以下是一个简单的步骤示例: 1. 数据收集:收集足球比赛相关的数据,包括球队历史比赛数据、球队阵容、球队排名等信息。 2. 数据预处理:对收集到的数据进行清洗和处理,包括缺失值处理、特征选择、数据标准化等。 3. 特征工程:根据收集到的数据,提取有用的特征,例如球队的进攻能力、防守能力、主场优势等。 4. 模型选择和训练:选择适合的机器学习算法,例如逻辑回归、支持向量机、随机森林等,并使用历史数据进行模型训练。 5. 模型评估:使用测试数据对训练好的模型进行评估,例如计算准确率、精确率、召回率等指标。 6. 模型优化:根据评估结果,对模型进行调优,例如调整模型参数、尝试不同的特征组合等。 7. 预测结果:使用优化后的模型对新的比赛数据进行预测,得到比赛结果的预测值。 在Python中,有一些常用的机器学习库可以帮助实现足球比赛预测模型,例如scikit-learn、TensorFlow、Keras等。这些库提供了丰富的机器学习算法和工具,可以方便地进行数据处理、特征工程、模型训练和预测等操作。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值