首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 皮尔逊χ²检验(Pearsons Chi-squared Test)

    起源 皮尔逊χ²检验(Pearson's Chi-squared Test),也称为卡方检验,是由英国统计学家卡尔·皮尔逊(Karl Pearson)在19世纪末提出的。

    1.3K10编辑于 2025-04-05
  • 来自专栏医学和生信笔记

    R语言卡方检验方法总结

    --------|-----------|-----------| ## ## ## Statistics for All Table Factors ## ## ## Pearson's Chi-squared ------------------------ ## Chi^2 = 12.85707 d.f. = 1 p = 0.0003362066 ## ## Pearson's Chi-squared -------------------- ## Chi^2 = 11.3923 d.f. = 1 p = 0.0007374901 ## ## ## McNemar's Chi-squared ---------------------------- ## Chi^2 = 50.7 d.f. = 1 p = 1.076196e-12 ## ## McNemar's Chi-squared test with continuity correction ## ## data: ana ## McNemar's chi-squared = 5.7857, df = 1, p-value

    4.3K30编辑于 2022-11-15
  • 来自专栏优雅R

    「R」统计检验函数汇总

    data = mtcars) #> #> Kruskal-Wallis rank sum test #> #> data: wt by factor(cyl) #> Kruskal-Wallis chi-squared #> Fligner-Killeen test of homogeneity of variances #> #> data: wt by cyl #> Fligner-Killeen:med chi-squared chisq.test(TeaTasting) #> Warning in chisq.test(TeaTasting): Chi-squared approximation may be incorrect #> #> Pearson's Chi-squared test with Yates' continuity correction #> #> data: TeaTasting #> X-squared test with continuity correction #> #> data: Performance #> McNemar's chi-squared = 17, df = 1, p-value

    2.7K20发布于 2020-07-03
  • 来自专栏优雅R

    「R」频数检验

    想要检验有不同期望频率的样本(比如下面一个0.75,一个0.25): # 概率表 —— 和必须为1 pt <- c(.75, .25) chisq.test(ct, p=pt) #> #> Chi-squared : Named num 1 #> ..- attr(*, "names")= chr "df" #> $ p.value : num 0.0204 #> $ method : chr "Chi-squared #> 0 1 #> control 11 3 #> treatment 6 10 chisq.test(ct) #> #> Pearson's Chi-squared #> X-squared = 3.593, df = 1, p-value = 0.05802 chisq.test(ct, correct=FALSE) #> #> Pearson's Chi-squared test with continuity correction #> #> data: ct #> McNemar's chi-squared = 4, df = 1, p-value = 0.0455

    1.6K10发布于 2020-07-06
  • 来自专栏python3

    利用Python的pip命令安装nump

    necessary packages import numpy as np def chi2_distance(histA, histB, eps = 1e-10):         # compute the chi-squared :         E  = ((a - b) ** 2) / (a + b + eps)         Sum += E         print Sum/2     # return the chi-squared

    87021发布于 2020-01-07
  • 来自专栏优雅R

    「R」变量同质性检验

    Fligner-Killeen test of homogeneity of variances #> #> data: count by spray #> Fligner-Killeen:med chi-squared test of homogeneity of variances #> #> data: len by interaction(supp, dose) #> Fligner-Killeen:med chi-squared Fligner-Killeen test of homogeneity of variances #> #> data: len by dose #> Fligner-Killeen:med chi-squared

    1.8K10发布于 2020-07-02
  • 来自专栏R语言及实用科研软件

    🤔 艾录叔 | 多组比较及绘图

    mean sd group 低剂组 14.2 2.167948 低剂组 高剂组 25.0 1.581139 高剂组 模型组 7.2 3.420526 模型组 $低剂组 Chi-squared test for given probabilities data: X[[i]] X-squared = 1.3239, df = 4, p-value = 0.8573 $高剂组 Chi-squared test for given probabilities data: X[[i]] X-squared = 0.4, df = 4, p-value = 0.9825 $模型组 Chi-squared value adjustment method: bonferroni Kruskal-Wallis rank sum test data: y$V1 and a1 Kruskal-Wallis chi-squared

    56910编辑于 2022-10-31
  • 来自专栏百味科研芝士

    R语言系列第四期:③R语言表格数据率的比较

    > chisq.test(a) Pearson's Chi-squared test with Yates' continuity correction data: a X-squared = 4.3672 0.14583333 0.14814815 0.06666667 Warning message: In prop.test(caesar.shoe.yes, caesar.shoe.total) : Chi-squared > prop.trend.test(caesar.shoe.yes,caesar.shoe.total) Chi-squared Test for Trend in Proportions data: Divorced 36 46 38 21 Single 218 327 106 67 > chisq.test(caff.marital) Pearson's Chi-squared 也可以对原始数据使用chisq.test(),这里我们使用之前的juul数据作为例子: > attach(juul) > chisq.test(tanner,sex) Pearson's Chi-squared

    1.1K10发布于 2019-05-23
  • 来自专栏sci666

    R语言系列第四期:③R语言表格数据率的比较

    > chisq.test(a) Pearson’s Chi-squared test with Yates’ continuity correction data:  a X-squared = 4.3672 0.14583333 0.14814815 0.06666667 Warning message: In prop.test(caesar.shoe.yes, caesar.shoe.total) : Chi-squared > prop.trend.test(caesar.shoe.yes,caesar.shoe.total) Chi-squared Test for Trend in Proportions data:   Divorced  36    46      38   21 Single   218   327     106   67 > chisq.test(caff.marital) Pearson’s Chi-squared 也可以对原始数据使用chisq.test(),这里我们使用之前的juul数据作为例子: > attach(juul) > chisq.test(tanner,sex) Pearson’s Chi-squared

    3.3K10发布于 2019-05-11
  • 来自专栏医学和生信笔记

    R语言非参数检验后的多重比较

    mydata) fit ## ## Kruskal-Wallis rank sum test ## ## data: death_rate by drug ## Kruskal-Wallis chi-squared Friedman M检验: fit <- friedman.test(df) fit ## ## Friedman rank sum test ## ## data: df ## Friedman chi-squared

    1.7K20编辑于 2022-11-15
  • 来自专栏医学和生信笔记

    R语言倾向性评分:回归和分层

    1 ## 0 1610 222 ## 1 2987 729 chisq.test(tab,correct = F) ## ## Pearson's Chi-squared 1 ## 0 2777 751 ## 1 1820 200 chisq.test(tab,correct = F) ## ## Pearson's Chi-squared $catholic, correct = F): Chi-squared ## approximation may be incorrect ## [1] 0.4755703 0.8423902 0.5696924 $catholic, correct = F): Chi-squared ## approximation may be incorrect ## Warning in chisq.test(. $catholic, correct = F): Chi-squared ## approximation may be incorrect ## [1] 0.3022080 0.5994507 0.9316443

    1.8K00编辑于 2023-02-14
  • 来自专栏杨熹的专栏

    机器学习模型算法 List

    Tree (CART) Iterative Dichotomiser 3 (ID3) C4.5 and C5.0 (different versions of a powerful approach) Chi-squared

    68320发布于 2019-02-20
  • 来自专栏机器学习与统计学

    R in action读书笔记(16)第十二章 重抽样与自助法之 置换检验

    (Treatment~Improved,data=Arthritis,distribution=approximate(B=9999)) ApproximativePearson's Chi-Squared Test data: Treatment byImproved (1, 2, 3) chi-squared = 13.055, p-value = 0.0018 需要把变量Improved从一个有序因子变成一个分类因子是因为

    1.2K31发布于 2019-04-10
  • 来自专栏单细胞天地

    marker基因的表达量可视化

    rpubs.com/chixinzero/490992)就能看出区别 > chisq.test(table(count_matrix['HLA-A',]>0, cluster)) Pearson's Chi-squared , df = 1, p-value = 0.01347 > chisq.test(table(count_matrix['HLA-B',]>0, cluster)) Pearson's Chi-squared

    1.5K30发布于 2020-03-30
  • 来自专栏生信修炼手册

    mutagene:肿瘤突变频谱数据库

    多个突变频谱的比较,结果用热图来呈现,定义了以下4种距离来衡量不同突变频谱之间的差异 Chi-squared distance Cosine distance Helliger distance Jensne-Shannon

    97820发布于 2019-12-19
  • 来自专栏生物信息学、python、R、linux

    R中的常用的检验方法

    chisq.test(mytable) 输出: Pearson's Chi-squared test data: mytable X-squared = 13.055, df = 2, p-value

    1.3K20发布于 2020-11-26
  • 来自专栏拓端tecdat

    R语言实现向量自回归VAR模型

    .)#>#> Portmanteau Test (asymptotic)#>#> data: Residuals of VAR object var3#> Chi-squared = 34, df =

    1.6K00发布于 2020-09-26
  • 来自专栏计算机与AI

    通俗易懂讲解机器学习中的特征工程

    单一特征选择: 根据每个特征属性和目标属性之间的计算值来进行排序选择 排序标准: 皮尔逊相关系数 Distance Metrics距离(相似性度量) Chi-Squared test(卡方检验) Information

    75820发布于 2020-12-14
  • 来自专栏拓端tecdat

    R语言向量自回归模型(VAR)及其实现|附代码数据

    type="PT.asymptotic") #> #> Portmanteau Test (asymptotic) #> #> data: Residuals of VAR object var3 #> Chi-squared

    1.3K10编辑于 2023-09-13
  • 来自专栏数据指象

    哦-用残差分布选择最优模型?

    end) as 差 from data group by X1") 3,运用卡方检验:模型的优劣与残差的相关行 chisq.test(a) ## 去除多余的列:实验次数 Pearson's Chi-squared

    65210编辑于 2022-04-27
领券