Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kehaowu/predictpm25
基于贝叶斯方法的pm2.5预测
https://github.com/kehaowu/predictpm25
Last synced: 3 months ago
JSON representation
基于贝叶斯方法的pm2.5预测
- Host: GitHub
- URL: https://github.com/kehaowu/predictpm25
- Owner: KehaoWu
- License: mit
- Created: 2015-09-17T22:23:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-23T04:14:28.000Z (over 9 years ago)
- Last Synced: 2023-02-27T16:22:39.997Z (almost 2 years ago)
- Language: R
- Size: 336 KB
- Stars: 8
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Predict pm2.5 using Bayes method
# 基于贝叶斯方法的pm2.5预测理论公式推导见:[Conda's Blog](http://blog.how-to-code.info/r/Bayes-to-predict-PM25-based-on-China-data.html)
Crawler.R用来抓取pm2.5数据,抓取后结果见pm.RData
Predict.R包括一些预测pm2.5的函数,最新添加了最大似然估计期望值,并引入了LaPlace变换。
使用方法(基于长沙pm2.5数据):
```R
> predictPM25(pm25 = 72,city = "长沙市")
Expected value: 61-90
Pr
1-30 0.09730849
31-60 0.10724638
61-90 0.11138716
91-120 0.10186335
121-150 0.09772257
151-180 0.09689441
181-210 0.09689441
211-240 0.09689441
241-270 0.09689441
271-more 0.09689441
```