<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=G%E6%A3%80%E9%AA%8C</id>
	<title>G检验 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.statsape.com/index.php?action=history&amp;feed=atom&amp;title=G%E6%A3%80%E9%AA%8C"/>
	<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;action=history"/>
	<updated>2026-05-13T21:21:06Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=8574&amp;oldid=prev</id>
		<title>2024年1月24日 (三) 07:31 RainW</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=8574&amp;oldid=prev"/>
		<updated>2024-01-24T07:31:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2024年1月24日 (三) 15:31的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l88&quot;&gt;第88行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第88行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;G&amp;#039;&amp;#039;-检验统计量与理论分布与实际分布之间的[[Kullback–Leibler divergence|库尔巴克-莱布勒散度]]成正比：&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;G&amp;#039;&amp;#039;-检验统计量与理论分布与实际分布之间的[[Kullback–Leibler divergence|库尔巴克-莱布勒散度]]成正比：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:&lt;/del&gt;[math]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[math]\begin{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aligned&lt;/ins&gt;} G &amp;amp; =2 \sum_{i} O_{i} \cdot \ln \left(\frac{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_{i}&lt;/ins&gt;}{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E_{i}&lt;/ins&gt;}\right)=2 N \sum_{i} &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o_&lt;/ins&gt;{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;i} &lt;/ins&gt;\cdot \ln \left(\frac{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o_{i}&lt;/ins&gt;}{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;e_{i}&lt;/ins&gt;}\right) \\ &amp;amp; =2 N D_{\mathrm{KL}}(o \| e)\end{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aligned&lt;/ins&gt;}[/math]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\begin{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;align&lt;/del&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;G &amp;amp;= 2\sum_{i} &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/del&gt;O_{i} \cdot \ln\left(\frac{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_i&lt;/del&gt;}{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E_i&lt;/del&gt;}\right)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;} &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;= 2 N \sum_{i} {&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o_i &lt;/del&gt;\cdot \ln\left(\frac{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o_i&lt;/del&gt;}{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;e_i&lt;/del&gt;}\right)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;} &lt;/del&gt;\\&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&amp;amp;= 2 N &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;\, &lt;/del&gt;D_{\mathrm{KL}}(o\|e)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\end{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;align&lt;/del&gt;}[/math]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;其中&amp;#039;&amp;#039;N&amp;#039;&amp;#039;是观测总数，[math]o_i[/math] 和 [math]e_i[/math] 分别是实际和理论频率。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;其中&amp;#039;&amp;#039;N&amp;#039;&amp;#039;是观测总数，[math]o_i[/math] 和 [math]e_i[/math] 分别是实际和理论频率。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key statsape_wiki:diff::1.12:old-8573:rev-8574 --&gt;
&lt;/table&gt;</summary>
		<author><name>RainW</name></author>
	</entry>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=8573&amp;oldid=prev</id>
		<title>2024年1月24日 (三) 07:28 RainW</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=8573&amp;oldid=prev"/>
		<updated>2024-01-24T07:28:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2024年1月24日 (三) 15:28的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l34&quot;&gt;第34行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第34行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[math] G = 2\sum_{i} {O_{i} \cdot \ln\left(\frac{O_i}{E_i}\right)}, [/math]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[math] G = 2\sum_{i} {O_{i} \cdot \ln\left(\frac{O_i}{E_i}\right)}, [/math]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;其中 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]O_i \geq 0[/math] 是某个单元格中的观测计数，[math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]E_i &amp;gt; 0[/math] 是在[[null hypothesis]]下的预期计数，[math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]\ln[/math] 表示[[natural logarithm]]，求和是针对所有非空单元格。此外，总观测计数应等于总预期计数：[math]\sum_i O_i = \sum_i E_i = N[/math]其中 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]N[/math] 是观测总数。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;其中 [math]O_i \geq 0[/math] 是某个单元格中的观测计数，[math]E_i &amp;gt; 0[/math] 是在[[null hypothesis]]下的预期计数，[math]\ln[/math] 表示[[natural logarithm]]，求和是针对所有非空单元格。此外，总观测计数应等于总预期计数：[math]\sum_i O_i = \sum_i E_i = N[/math]其中 [math]N[/math] 是观测总数。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===推导===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;===推导===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;我们可以从[[Likelihood-ratio test|对数似然比检验]]中推导出&amp;#039;&amp;#039;G&amp;#039;&amp;#039;检验的值，其中底层模型为多项式模型。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;我们可以从[[Likelihood-ratio test|对数似然比检验]]中推导出&amp;#039;&amp;#039;G&amp;#039;&amp;#039;检验的值，其中底层模型为多项式模型。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;假设我们有一个样本 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]x = (x_1, \ldots, x_m)[/math]，其中每个 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]x_i[/math] 是观测到的类型 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]i[/math] 物体的次数。此外，让 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]n = \sum_{i=1}^m x_i[/math] 是观测到的物体总数。如果我们假设底层模型是多项式的，那么测试统计量定义为[math]\ln \left( \frac{L(\tilde{\theta}|x)}{L(\hat{\theta}|x)} \right)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;假设我们有一个样本 [math]x = (x_1, \ldots, x_m)[/math]，其中每个 [math]x_i[/math] 是观测到的类型 [math]i[/math] 物体的次数。此外，让 [math]n = \sum_{i=1}^m x_i[/math] 是观测到的物体总数。如果我们假设底层模型是多项式的，那么测试统计量定义为[math]\ln \left( \frac{L(\tilde{\theta}|x)}{L(\hat{\theta}|x)} \right)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= \ln \left( \frac{\prod_{i=1}^m \tilde{\theta}_i^{x_i}}{\prod_{i=1}^m \hat{\theta}_i^{x_i}} \right)[/math]其中 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]\tilde{\theta}[/math] 是零假设，[math]\hat{\theta}[/math] 是给定数据的[[maximum likelihood estimate]] (MLE)。回想一下，对于多项式模型，给定一些数据的 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]\hat{\theta}_i[/math] 的MLE定义为[math]\hat{\theta}_i = \frac{x_i}{n}[/math]此外，我们可以将每个零假设参数 [math]\tilde{\theta}_i[/math] 表示为[math]\tilde{\theta}_i = \frac{e_i}{n}[/math]因此，通过替换对数似然比中的 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]\tilde{\theta}[/math] 和 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]\hat{\theta}[/math] 的表示，方程简化为[math]\begin{align}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= \ln \left( \frac{\prod_{i=1}^m \tilde{\theta}_i^{x_i}}{\prod_{i=1}^m \hat{\theta}_i^{x_i}} \right)[/math]其中 [math]\tilde{\theta}[/math] 是零假设，[math]\hat{\theta}[/math] 是给定数据的[[maximum likelihood estimate]] (MLE)。回想一下，对于多项式模型，给定一些数据的 [math]\hat{\theta}_i[/math] 的MLE定义为[math]\hat{\theta}_i = \frac{x_i}{n}[/math]此外，我们可以将每个零假设参数 [math]\tilde{\theta}_i[/math] 表示为[math]\tilde{\theta}_i = \frac{e_i}{n}[/math]因此，通过替换对数似然比中的 [math]\tilde{\theta}[/math] 和 [math]\hat{\theta}[/math] 的表示，方程简化为[math]\begin{align}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\ln \left( \frac{L(\tilde{\theta}|x)}{L(\hat{\theta}|x)} \right)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\ln \left( \frac{L(\tilde{\theta}|x)}{L(\hat{\theta}|x)} \right)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;amp;= \ln \prod_{i=1}^m \left(\frac{e_i}{x_i}\right)^{x_i} \\&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;amp;= \ln \prod_{i=1}^m \left(\frac{e_i}{x_i}\right)^{x_i} \\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;amp;= \sum_{i=1}^m x_i \ln\left(\frac{e_i}{x_i}\right) \\&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;amp;= \sum_{i=1}^m x_i \ln\left(\frac{e_i}{x_i}\right) \\&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\end{align}[/math]将变量 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]e_i[/math] 重命名为 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]E_i[/math]，将 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]x_i[/math] 重命名为 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]O_i[/math]。最后，乘以一个因子 [math &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;display=&amp;quot;inline&amp;quot;&lt;/del&gt;]-2[/math]（用于使G检验公式[[#Relation to the chi-squared test|与皮尔逊卡方检验公式渐近等价]]），得到以下形式&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\end{align}[/math]将变量 [math]e_i[/math] 重命名为 [math]E_i[/math]，将 [math]x_i[/math] 重命名为 [math]O_i[/math]。最后，乘以一个因子 [math]-2[/math]（用于使G检验公式[[#Relation to the chi-squared test|与皮尔逊卡方检验公式渐近等价]]），得到以下形式&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[math]\begin{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;alignat&lt;/del&gt;}&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{2}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[math]\begin{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aligned&lt;/ins&gt;} G &amp;amp; =-2 \sum_{i=1}^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;m&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;} O_{i} &lt;/ins&gt;\ln \left(\frac{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E_{i&lt;/ins&gt;}&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}{O_&lt;/ins&gt;{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;i}&lt;/ins&gt;}\right) \\ &amp;amp; =2 \sum_{i=1}^&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{&lt;/ins&gt;m&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;} O_{i} &lt;/ins&gt;\ln \left(\frac{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_{i}&lt;/ins&gt;}{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E_{i}&lt;/ins&gt;}\right)\end{&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;aligned&lt;/ins&gt;}[/math]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;G &amp;amp; = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp; \; &lt;/del&gt;-2 \sum_{i=1}^m &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_i &lt;/del&gt;\ln\left(\frac{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E_i&lt;/del&gt;}{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_i&lt;/del&gt;}\right) \\&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt;&amp;amp; = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;amp;     &lt;/del&gt;2 \sum_{i=1}^m &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_i &lt;/del&gt;\ln\left(\frac{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;O_i&lt;/del&gt;}{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;E_i&lt;/del&gt;}\right)&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;\end{&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;alignat&lt;/del&gt;}[/math]&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;直观上，可以将 [math]~ O_i ~[/math] 视为连续的并趋近于零，在这种情况下，[math]~ O_i \ln O_i \to 0 ~,[/math] 并且具有零观测的项可以简单地被丢弃。然而，每个单元格中的&amp;#039;&amp;#039;预期&amp;#039;&amp;#039;计数必须严格大于零（[math]~ E_i &amp;gt; 0 ~ \forall \, i ~[/math]），才能应用该方法。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;直观上，可以将 [math]~ O_i ~[/math] 视为连续的并趋近于零，在这种情况下，[math]~ O_i \ln O_i \to 0 ~,[/math] 并且具有零观测的项可以简单地被丢弃。然而，每个单元格中的&amp;#039;&amp;#039;预期&amp;#039;&amp;#039;计数必须严格大于零（[math]~ E_i &amp;gt; 0 ~ \forall \, i ~[/math]），才能应用该方法。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key statsape_wiki:diff::1.12:old-8571:rev-8573 --&gt;
&lt;/table&gt;</summary>
		<author><name>RainW</name></author>
	</entry>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=8571&amp;oldid=prev</id>
		<title>2024年1月24日 (三) 07:24 RainW</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=8571&amp;oldid=prev"/>
		<updated>2024-01-24T07:24:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;amp;diff=8571&amp;amp;oldid=6052&quot;&gt;显示更改&lt;/a&gt;</summary>
		<author><name>RainW</name></author>
	</entry>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=6052&amp;oldid=prev</id>
		<title>2024年1月19日 (五) 11:03 Zeroclanzhang</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=6052&amp;oldid=prev"/>
		<updated>2024-01-19T11:03:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2024年1月19日 (五) 19:03的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;第7行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第7行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|productionstate={{图标文件|Win}} / {{图标文件|W10}} Win10及以上可用&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|productionstate={{图标文件|Win}} / {{图标文件|W10}} Win10及以上可用&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|productionstatedesc=在[[Update:DecisionLinnc 1.0.2.0|V1.0.2]]部署&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|productionstatedesc=在[[Update:DecisionLinnc 1.0.2.0|V1.0.2]]部署&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|nodeenglishname=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Has english name::&lt;/del&gt;G_Test&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|nodeenglishname=G_Test&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|abbreviation=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Has abbreviation::&lt;/del&gt;GTest&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|abbreviation=GTest&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|funcmaincategory=数据分析&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|funcmaincategory=数据分析&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|funcsubcategory=[[DataAGM Lv1 Cat::频数表检验]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|funcsubcategory=[[DataAGM Lv1 Cat::频数表检验]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;第24行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第24行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|nodeoutputports=WorkFlow-Control ➤;Transfer-Variable ◆;Transfer-Table ■&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|nodeoutputports=WorkFlow-Control ➤;Transfer-Variable ◆;Transfer-Table ■&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|statsapewikiurl=https://wiki.statsape.com/G检验&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|statsapewikiurl=https://wiki.statsape.com/G检验&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|previousnode=[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;游程检验&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|previousnode=[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;McNemar检验&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|nextnode=[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;多元方差分析&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|nextnode=[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;F检验&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key statsape_wiki:diff::1.12:old-5305:rev-6052 --&gt;
&lt;/table&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
	<entry>
		<id>https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=5305&amp;oldid=prev</id>
		<title>Zeroclanzhang：​创建页面，内容为“{{Infobox nodebasic  |nodename=G检验 |nodeimage=G_Test.png |icon=G_Test.svg |simpleicon=G_Test_Pure.svg |developer=Dev.Team-DPS |productionstate={{图标文件|Win}} / {{图标文件|W10}} Win10及以上可用 |productionstatedesc=在V1.0.2部署 |nodeenglishname=Has english name::G_Test |abbreviation=Has abbreviation::GTest |funcmaincategory=数据分析 |funcsubcategory=DataAGM Lv1 Cat::频数表检验 |nodecateg…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.statsape.com/index.php?title=G%E6%A3%80%E9%AA%8C&amp;diff=5305&amp;oldid=prev"/>
		<updated>2024-01-18T14:08:34Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“{{Infobox nodebasic  |nodename=G检验 |nodeimage=G_Test.png |icon=G_Test.svg |simpleicon=G_Test_Pure.svg |developer=Dev.Team-DPS |productionstate={{图标文件|Win}} / {{图标文件|W10}} Win10及以上可用 |productionstatedesc=在&lt;a href=&quot;/index.php?title=Update:DecisionLinnc_1.0.2.0&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Update:DecisionLinnc 1.0.2.0（页面不存在）&quot;&gt;V1.0.2&lt;/a&gt;部署 |nodeenglishname=&lt;a href=&quot;/index.php?title=Has_english_name::G_Test&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Has english name::G Test（页面不存在）&quot;&gt;Has english name::G_Test&lt;/a&gt; |abbreviation=&lt;a href=&quot;/index.php?title=Has_abbreviation::GTest&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Has abbreviation::GTest（页面不存在）&quot;&gt;Has abbreviation::GTest&lt;/a&gt; |funcmaincategory=数据分析 |funcsubcategory=&lt;a href=&quot;/index.php?title=DataAGM_Lv1_Cat::%E9%A2%91%E6%95%B0%E8%A1%A8%E6%A3%80%E9%AA%8C&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;DataAGM Lv1 Cat::频数表检验（页面不存在）&quot;&gt;DataAGM Lv1 Cat::频数表检验&lt;/a&gt; |nodecateg…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox nodebasic &lt;br /&gt;
|nodename=G检验&lt;br /&gt;
|nodeimage=G_Test.png&lt;br /&gt;
|icon=G_Test.svg&lt;br /&gt;
|simpleicon=G_Test_Pure.svg&lt;br /&gt;
|developer=Dev.Team-DPS&lt;br /&gt;
|productionstate={{图标文件|Win}} / {{图标文件|W10}} Win10及以上可用&lt;br /&gt;
|productionstatedesc=在[[Update:DecisionLinnc 1.0.2.0|V1.0.2]]部署&lt;br /&gt;
|nodeenglishname=[[Has english name::G_Test]]&lt;br /&gt;
|abbreviation=[[Has abbreviation::GTest]]&lt;br /&gt;
|funcmaincategory=数据分析&lt;br /&gt;
|funcsubcategory=[[DataAGM Lv1 Cat::频数表检验]]&lt;br /&gt;
|nodecategory=数据挖掘&lt;br /&gt;
|nodeinterpretor=R&lt;br /&gt;
|nodeshortdescription=&amp;lt;p&amp;gt;G检验（G-test）是一个用于假设检验的统计方法，主要用来检验一组或多组观察到的频数分布是否与某个理论分布有显著性差异。它是基于似然比统计量的一种检验，适用于样本量较大的情况。&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;用途：用来检验观察到的数据分布与特定的理论分布之间是否存在显著差异。&amp;lt;/p&amp;gt;&amp;lt;p&amp;gt;参数：选择分类变量进行检验。&amp;lt;/p&amp;gt;&lt;br /&gt;
|nodeinputnumber=4&lt;br /&gt;
|nodeoutputnumber=3&lt;br /&gt;
|nodeloopsupport=是&lt;br /&gt;
|nodeifswitchsupport=否&lt;br /&gt;
|nodeavailableplotlist=nodenoplotoutput&lt;br /&gt;
|nodeavailabletablelist=Stats-Value;P-Value;df&lt;br /&gt;
|nodeconfiguration=VariableList;DropMenu&lt;br /&gt;
|nodeinputports=WorkFlow-Control ➤;Transfer-Variable ◆;Transfer-Table ■&lt;br /&gt;
|nodeoutputports=WorkFlow-Control ➤;Transfer-Variable ◆;Transfer-Table ■&lt;br /&gt;
|statsapewikiurl=https://wiki.statsape.com/G检验&lt;br /&gt;
|previousnode=[[游程检验]]&lt;br /&gt;
|nextnode=[[多元方差分析]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Navplate AlgorithmNodeList}}&lt;br /&gt;
&lt;br /&gt;
[[Category:频数表检验]]&lt;/div&gt;</summary>
		<author><name>Zeroclanzhang</name></author>
	</entry>
</feed>