文章分类 -  R与统计

摘要:数据探索 1.数据概况 2.数据离散程度 3.分布形状的探索 4.分布情况探索 5.相关性 6.分类型变量 7.连续变量 数据准备 1. 数据概况 2.离散程度度量 2.1 方差 总体方差计算公式: 为总体方差, 为变量, 为总体均值, 为总体例数。 2.2 标准差 公式为 2.3 极差 半极差 上 阅读全文
posted @ 2017-09-25 11:44 aongao 阅读(759) 评论(0) 推荐(0)
摘要:假设检验 以样本数据的累计频数分布与特定理论分布比较,若两者间的差距很小,则推论该样本取自某特定分布族。 H0:数据集符合正态分布,H1:样本所来自的总体分布不符合正态分布。 令F0(x)表示预先假设的理论分布,Fn(x)表示随机样本的累计概率(频率)函数 D值越小,越接近0,表示样本数据越接近正态 阅读全文
posted @ 2017-09-25 11:41 aongao 阅读(1121) 评论(0) 推荐(0)
摘要:On Box-Cox transform in regression models November 13, 2012 November 13, 2012 By arthur charpentier A few days ago, a former student of mine, David, c 阅读全文
posted @ 2017-09-19 21:18 aongao 阅读(169) 评论(0) 推荐(0)
摘要:数据处理 对数变换 正态变换 Box-Cox的R函数 Box-Cox变换的数学解释 参考 对数变换 研究数据的增长率分布存在一定规律的模型 正态变换 Box-Cox变换是统计建模中常用的一种数据变换,用于连续的响应变量不满足正态分布的情况。比如在使用线性回归的时候,由于残差 epsilon 不符合正 阅读全文
posted @ 2017-09-19 17:17 aongao 阅读(547) 评论(0) 推荐(0)
摘要:正态分布 正态检验 1.直方图 set.seed(100) hist(rnorm(1000,0,10)) 核密度函数 set.seed(100) w<-rnorm(1000,0,10) hist(w,freq=FALSE) lines(density(w),col="red") x<--40:40 阅读全文
posted @ 2017-09-19 15:38 aongao 阅读(147) 评论(0) 推荐(0)
摘要:Dealing with Non-normal Data: Strategies and Tools by Arne Buthmann Normally distributed data is a commonly misunderstood concept in Six Sigma. Some p 阅读全文
posted @ 2017-09-19 15:35 aongao 阅读(310) 评论(0) 推荐(0)
摘要:R FUNCTIONS FOR REGRESSION ANALYSIS https://cran.r-project.org/doc/contrib/Ricci-refcard-regression.pdf 逻辑回归 https://nlp.stanford.edu/~manning/courses 阅读全文
posted @ 2017-09-16 13:42 aongao 阅读(117) 评论(0) 推荐(0)
摘要:Package ‘polycor’ August 27, 2016 Version 0.7-9 Date 2016-08-26 Title Polychoric and Polyserial Correlations Depends R (>= 3.3.0) Imports stats, mvtno 阅读全文
posted @ 2017-09-14 15:56 aongao 阅读(247) 评论(0) 推荐(0)
摘要:相关系数 R一般包括Person,Spearman,Kendall, polychoric, polyserial等相关系数 > X<-c(11,490,14,43,30,3) > Y<-c(2,75,3,44,7,42) > cor(X,Y,method="spearman") [1] 0.657 阅读全文
posted @ 2017-09-13 11:25 aongao 阅读(427) 评论(0) 推荐(0)