Skip to main content
Global

11.5: 同质性测试

  • Page ID
    204579
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\dsum}{\displaystyle\sum\limits} \)

    \( \newcommand{\dint}{\displaystyle\int\limits} \)

    \( \newcommand{\dlim}{\displaystyle\lim\limits} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \(\newcommand{\longvect}{\overrightarrow}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    拟合优度检验可用于确定一个总体是否与给定分布相吻合,但仅仅决定两个总体是否遵循相同的未知分布是不够的。 另一种检验称为同质性检验,可用于得出两个群体是否具有相同分布的结论。 要计算同质性检验的检验统计量,请遵循与独立性检验相同的程序。

    注意

    要使用此测试,每个单元格内的预期值必须至少为五个。

    假设

    • \(H_0\): 两个总体的分布是相同的。
    • \(H_a\): 两个总体的分布不相同。

    测试统计

    使用\(\chi^2\)测试统计数据。 它的计算方法与独立性检验相同。

    自由度 (\(\bf{df}\))

    \(df = \text{ number of columns }- 1\)

    要求

    表中的所有值都必须大于或等于五。

    常见用途

    比较两个种群。 例如:男性与女性,之前与之后,东方与西方。 该变量是分类变量,可能有两个以上的响应值。

    示例\(\PageIndex{1}\)

    男女大学生的生活安排分布是否相同? 使用显著性水平 0.05。 假设向随机选择的250名男大学生和300名随机选择的女大学生询问了他们的生活安排:宿舍、公寓、与父母在一起等。 结果如表所示\(\PageIndex{18}\)。 男女大学生的生活安排分布是否相同?

    \ (\ pageIndex {18}\) 大学男生和女大学生生活安排的分布 “>
    宿舍 公寓 和父母在一起 其他
    男性 72 84 49 45
    女性 91 86 88 35
    表:大学男生和女大学生生活安排的\(\PageIndex{18}\)分布情况
    回答

    解决方案 11.11

    \(H_0\): 男大学生生活安排的分配与女大学生生活安排的分配相同。

    \(H_a\): 男大学生生活安排的分配与女大学生生活安排的分配不同。

    自由度 (\(\bf{df}\))检验的
    \(df =\text{ number of columns }– 1 = 4 – 1 = 3\)

    分布:\(\chi_3^2\)

    计算检验统计数据:\(\chi_c^2 = 10.129\)

    \(\PageIndex{9}\)

    卡方图显示了分布并以三个自由度标记临界值,置信度为 95%\(\alpha = 0.05\),即 7.815。 该图还标记了计算得出的 10.129 的\(\chi^2\)检验统计量。 将检验统计量与临界值进行比较,就像我们在所有其他假设检验中所做的那样,得出结论。

    做出决定:因为计算出的测试统计数据在尾部,所以我们无法接受\(H_0\)。 这意味着分布不一样。

    结论:从数据来看,重要程度为5%,有足够的证据得出结论,男女大学生生活安排的分布不一样。

    请注意,结论只是分布不相同。 我们不能用同质性检验来得出关于它们有何不同之处的任何结论。

    练习\(\PageIndex{1A}\)

    家庭和单身人士的汽车分布是否相同? 使用显著性水平 0.05。 假设有 100 个随机选择的家庭和 200 个随机选择的单身人士被问及他们驾驶的是哪种类型的汽车:运动车、轿车、掀背车、卡车、货车/越野车。 结果如表所示\(\PageIndex{19}\)。 家庭和单身人士的汽车分布是否相同? 在显著性水平为 0.05 时进行测试。

    \ (\ pageIndex {19}\) “>
    运动 四门轿车 掀背车 卡车 货车/越野车
    家庭 5 15 35 17 28
    单身 45 65 37 46 7
    桌子\(\PageIndex{19}\)

    练习\(\PageIndex{1B}\)

    常春藤盟校收到许多申请,但只有一部分可以被接受。 在表中列出的学校中\(\PageIndex{20}\),接受两种类型的申请:常规申请和早期决定申请。

    \ (\ pageIndex {20}\) “>
    申请类型已接受 棕色 哥伦比亚 康奈尔 达特茅斯 佩恩 耶鲁大学
    常规 2,115 1,792 5,306 1,734 2,685 1,245
    尽早做出决定 577 627 1,228 444 1,195 761
    桌子\(\PageIndex{20}\)

    我们想知道接受的常规申请数量是否与接受的早期申请数量的分布相同。 陈述原假设和备择假设、自由度和检验统计量,绘制\(\chi^2\)分布图,显示检验统计量的临界值和计算值,并得出关于同质性检验的结论。


    This page titled 11.5: 同质性测试 is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.