data science foll


  • Home

  • Tags

  • Categories

  • Archives

  • Search

时间序列分析 forecast

Posted on 2018-09-23 | In R | Visitors:
1
2
3
4
5
6
7
8
install.packages("forecast")
library(forecast)
# 使用英国每月死于肺病的人数数据
fit<- auto.arima(mdeaths)
# 设置置信区间
forecast(fit, level=c(80, 95, 99), h=3)
# 绘制时间序列趋势图
plot(forecast(fit), shadecols="oldstyle")

forecast.png

相关性系数矩阵(椭圆) ellipse

Posted on 2018-09-23 | In R | Visitors:
1
2
3
4
5
install.packages("ellipse")
library(ellipse)
data(mtcars)
fit <- lm(mpg ~ ., mtcars)
plotcorr(summary(fit, correlation = TRUE)$correlation)

plotcorr by ellipse.png

时间序列数据的可视化 dygraphs

Posted on 2018-09-23 | In R | Visitors:
1
2
3
4
5
install.packages("dygraphs")
library(dygraphs)
data=data.frame( time=c( seq(0,20,0.5), 40), value=runif(42))
str(data)
dygraph(data)

dygraph.jpg

相关系数矩阵 corrgram

Posted on 2018-09-23 | In R | Visitors:
1
2
3
4
5
6
7
8
9
install.packages(corrgram)
library(corrgram)
library(mtcarData)
library(mtcar)
corrgram(mtcars, order=TRUE, lower.panel=panel.ellipse,
upper.panel=panel.pts, text.panel=panel.txt,
diag.panel=panel.minmax,
main="Corrgram of mtcars data using scatter plots
and ellipses")

Corrgram of mtcars data using scatter plots and ellipses.png

1
2
3
4
5
6
cols <- colorRampPalette(c("darkgoldenrod4", "burlywood1",
"darkkhaki", "darkgreen"))
corrgram(mtcars, order=TRUE, col.regions=cols,
lower.panel=panel.shade,
upper.panel=panel.conf, text.panel=panel.txt,
main="A Corrgram (or Horse) of a Different Color")

A Corrgram (or Horse) of a Different Color.png

theme: next 相关配置优化

Posted on 2018-09-22 | In themes | Visitors:

作者:Alvabill
链接:https://www.jianshu.com/p/1f8107a8778c
来源:简书

相关系数矩阵 corrgram

Posted on 2018-09-21 | In R | Visitors:
1
2
3
4
5
6
7
8
9
10
11
12
install.packages("iterators")
install.packages("corrgram")
install.packages("kernlab")
library(iterators)
library(kernlab)
library(corrgram)
corrgram(mtcars,
order=TRUE,
lower.panel=panel.shade,
upper.panel=panel.pie,
text.panel=panel.txt,
main="Correlogram of mtcar intercorrelations")

Correlogram of mtcar intercorrelations.png

哈夫曼图 CMplot

Posted on 2018-09-21 | In R | Visitors:
1
2
3
4
5
6
7
8
9
10
install.packages("CMplot")
library("CMplot")
data(pig60K)
CMplot(pig60K[sample(1:nrow(pig60K),10000),c(1:4)],
plot.type="c",
threshold=c(0.01,0.05)/nrow(pig60K),
threshold.col=c('red','orange'),
multracks=FALSE,
chr.den.col=NULL,
file.output = F)

CMplot.png

使用Markdown编辑数学公式

Posted on 2018-09-20 | In Markdown | Visitors:
Cmd Markdown 公式指导手册

markdownmath

在线使用 LaTex 进行编辑

数据归一化与标准化

Posted on 2018-09-18 | In R | Visitors:
归一化(Normalization)

为了将数据映射到0~1之间,去掉量纲的过程,让计算更加合理,不会因为量纲问题导致1米与100mm产生不同。

标准化(Standardization)

消除分布产生的度量偏差,例如:班级数学考试,数学成绩在90-100之间,语文成绩在60-100之间,那么,小明数学90,语文100,小花数学95,语文95,如何评价两个综合成绩好坏的数学处理方式。

R语言处理函数

scale(dt,center = T,scale = T)
scale方法中的两个参数center和scale的解释:
1.center和scale默认为真,即T或者TRUE
2.center为真表示数据中心化(只减去均值不做其他处理)
3.scale为真表示数据标准化

DataGirls Visual Vocabulary

Posted on 2018-09-17 | In Tableau | Visitors:
收藏 Tableau 报表

DataGirls Visual Vocabulary.twbx
Change over Time.png
Correlation.png
Deviation.png
Distribution.png
Flow.png
Magnitude.png
Overview.png
Part-to-Whole.png
Ranking.png
Spatial.png

1…4567
庞锦烽

庞锦烽

山高路远,道阻且长

61 posts
14 categories
90 tags
RSS
GitHub weibo
© 2018 — 2019 庞锦烽
Powered by Hexo
|
Theme — NexT.Muse v5.1.4