<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>統計 on Tarragon</title><link>https://tarrragon.github.io/blog/tags/%E7%B5%B1%E8%A8%88/</link><description>Recent content in 統計 on Tarragon</description><generator>Hugo -- gohugo.io</generator><language>zh-TW</language><copyright>Tarragon (CC BY 4.0)</copyright><lastBuildDate>Thu, 18 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tarrragon.github.io/blog/tags/%E7%B5%B1%E8%A8%88/index.xml" rel="self" type="application/rss+xml"/><item><title>Type I error：統計學給假陽性的編號</title><link>https://tarrragon.github.io/blog/til/terms/type-i-error/</link><pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate><guid>https://tarrragon.github.io/blog/til/terms/type-i-error/</guid><description>&lt;blockquote>
&lt;p>這個詞出現在「&lt;a href="../detection-errors/">你的自動判斷會犯兩種錯：誤報與漏接&lt;/a>」這個問題裡——它是統計學給「誤報」的編號。&lt;/p>&lt;/blockquote>
&lt;p>統計學的假設檢定，把 &lt;a href="../false-positive/">false positive&lt;/a> 編號叫 &lt;strong>Type I error&lt;/strong>、把 false negative 叫 &lt;strong>Type II error&lt;/strong>。&lt;/p>
&lt;h2 id="兩個編號的意思">兩個編號的意思&lt;/h2>
&lt;p>假設檢定先立一個虛無假設（H₀，預設「沒有效果 / 沒有差異」），再用資料決定要不要拒絕它：&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Type I error（型一錯誤）&lt;/strong>：H₀ 其實為真，卻拒絕了它——宣稱「有效果」，實際沒有。這就是 false positive。&lt;/li>
&lt;li>&lt;strong>Type II error（型二錯誤）&lt;/strong>：H₀ 其實為假，卻沒拒絕——漏掉了真實存在的效果。這就是 false negative。&lt;/li>
&lt;/ul>
&lt;h2 id="與顯著水準-α-的關係">與顯著水準 α 的關係&lt;/h2>
&lt;p>設計檢定時會先訂一個 &lt;strong>顯著水準 α&lt;/strong>（常見 0.05），它就是&lt;strong>容許的 Type I error 機率上限&lt;/strong>。在樣本數固定的前提下，把 α 設得越小，越不容易誤報（Type I 降低），但相對更容易漏掉真實效果（Type II 升高）——兩者此消彼長，這是檢定設計的核心取捨。（加大樣本數則可同時壓低兩者。）&lt;/p>
&lt;h2 id="一個好記的順序">一個好記的順序&lt;/h2>
&lt;p>哪個是 Type I、哪個是 Type II 容易記混。一個記法：&lt;strong>Type I 是「太急著宣稱有」（過度反應、誤報），Type II 是「太保守而漏掉」&lt;/strong>。可把編號順序記成「先有過度反應，才談漏接」——這純為助記，不是 Neyman-Pearson 當初編號的歷史定義。&lt;/p>
&lt;h2 id="相關概念">相關概念&lt;/h2>
&lt;ul>
&lt;li>概念本身與源頭：&lt;a href="../false-positive/">false positive&lt;/a>。&lt;/li>
&lt;li>對偶錯誤：&lt;a href="../type-ii-error/">Type II error&lt;/a>（= false negative）。&lt;/li>
&lt;li>量化的尺：&lt;a href="../precision/">precision&lt;/a>（誤報多則 precision 低）。&lt;/li>
&lt;li>程式領域描述同一件事的本土詞：&lt;a href="../over-match/">over-match&lt;/a>、&lt;a href="../false-trigger/">false trigger&lt;/a>、&lt;a href="../spurious-warning/">spurious warning&lt;/a> 等。&lt;/li>
&lt;/ul></description><content:encoded><![CDATA[<blockquote>
<p>這個詞出現在「<a href="../detection-errors/">你的自動判斷會犯兩種錯：誤報與漏接</a>」這個問題裡——它是統計學給「誤報」的編號。</p></blockquote>
<p>統計學的假設檢定，把 <a href="../false-positive/">false positive</a> 編號叫 <strong>Type I error</strong>、把 false negative 叫 <strong>Type II error</strong>。</p>
<h2 id="兩個編號的意思">兩個編號的意思</h2>
<p>假設檢定先立一個虛無假設（H₀，預設「沒有效果 / 沒有差異」），再用資料決定要不要拒絕它：</p>
<ul>
<li><strong>Type I error（型一錯誤）</strong>：H₀ 其實為真，卻拒絕了它——宣稱「有效果」，實際沒有。這就是 false positive。</li>
<li><strong>Type II error（型二錯誤）</strong>：H₀ 其實為假，卻沒拒絕——漏掉了真實存在的效果。這就是 false negative。</li>
</ul>
<h2 id="與顯著水準-α-的關係">與顯著水準 α 的關係</h2>
<p>設計檢定時會先訂一個 <strong>顯著水準 α</strong>（常見 0.05），它就是<strong>容許的 Type I error 機率上限</strong>。在樣本數固定的前提下，把 α 設得越小，越不容易誤報（Type I 降低），但相對更容易漏掉真實效果（Type II 升高）——兩者此消彼長，這是檢定設計的核心取捨。（加大樣本數則可同時壓低兩者。）</p>
<h2 id="一個好記的順序">一個好記的順序</h2>
<p>哪個是 Type I、哪個是 Type II 容易記混。一個記法：<strong>Type I 是「太急著宣稱有」（過度反應、誤報），Type II 是「太保守而漏掉」</strong>。可把編號順序記成「先有過度反應，才談漏接」——這純為助記，不是 Neyman-Pearson 當初編號的歷史定義。</p>
<h2 id="相關概念">相關概念</h2>
<ul>
<li>概念本身與源頭：<a href="../false-positive/">false positive</a>。</li>
<li>對偶錯誤：<a href="../type-ii-error/">Type II error</a>（= false negative）。</li>
<li>量化的尺：<a href="../precision/">precision</a>（誤報多則 precision 低）。</li>
<li>程式領域描述同一件事的本土詞：<a href="../over-match/">over-match</a>、<a href="../false-trigger/">false trigger</a>、<a href="../spurious-warning/">spurious warning</a> 等。</li>
</ul>
]]></content:encoded></item><item><title>Type II error：統計學給假陰性的編號</title><link>https://tarrragon.github.io/blog/til/terms/type-ii-error/</link><pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate><guid>https://tarrragon.github.io/blog/til/terms/type-ii-error/</guid><description>&lt;blockquote>
&lt;p>這個詞出現在「&lt;a href="../detection-errors/">你的自動判斷會犯兩種錯：誤報與漏接&lt;/a>」這個問題裡——它是統計學給「漏接」的編號。&lt;/p>&lt;/blockquote>
&lt;p>Type II error（型二錯誤）是 &lt;a href="../false-negative/">false negative&lt;/a> 在統計假設檢定裡的編號：&lt;strong>虛無假設（H₀，預設「沒有效果 / 沒有差異」）其實為假，卻沒拒絕它&lt;/strong>——漏掉了真實存在的效果。&lt;/p>
&lt;p>它和 &lt;a href="../type-i-error/">Type I error&lt;/a>（誤報、宣稱有實無）成對：&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Type I&lt;/strong>：H₀ 為真卻拒絕 → false positive（誤報）。&lt;/li>
&lt;li>&lt;strong>Type II&lt;/strong>：H₀ 為假卻沒拒絕 → false negative（漏接）。&lt;/li>
&lt;/ul>
&lt;h2 id="β-與檢定力">β 與檢定力&lt;/h2>
&lt;p>Type II error 的機率記為 &lt;strong>β&lt;/strong>。與它互補的是&lt;strong>檢定力（statistical power）= 1 − β&lt;/strong>，也就是「H₀ 確實為假時，正確抓到的機率」。提高檢定力（少漏接）通常靠加大樣本數或放大效果量。&lt;/p>
&lt;p>把 β 對應到偵測語境，「少漏接」就是提高 &lt;a href="../recall/">recall&lt;/a>——兩者衡量的是同一件事的不同領域 framing。&lt;/p>
&lt;h2 id="相關概念">相關概念&lt;/h2>
&lt;ul>
&lt;li>對偶錯誤：&lt;a href="../false-positive/">false positive&lt;/a> / &lt;a href="../type-i-error/">Type I error&lt;/a>。&lt;/li>
&lt;li>同概念的偵測語境：&lt;a href="../false-negative/">false negative&lt;/a>。&lt;/li>
&lt;li>量化的尺：&lt;a href="../recall/">recall&lt;/a>（被 false negative 拉低）。&lt;/li>
&lt;/ul></description><content:encoded><![CDATA[<blockquote>
<p>這個詞出現在「<a href="../detection-errors/">你的自動判斷會犯兩種錯：誤報與漏接</a>」這個問題裡——它是統計學給「漏接」的編號。</p></blockquote>
<p>Type II error（型二錯誤）是 <a href="../false-negative/">false negative</a> 在統計假設檢定裡的編號：<strong>虛無假設（H₀，預設「沒有效果 / 沒有差異」）其實為假，卻沒拒絕它</strong>——漏掉了真實存在的效果。</p>
<p>它和 <a href="../type-i-error/">Type I error</a>（誤報、宣稱有實無）成對：</p>
<ul>
<li><strong>Type I</strong>：H₀ 為真卻拒絕 → false positive（誤報）。</li>
<li><strong>Type II</strong>：H₀ 為假卻沒拒絕 → false negative（漏接）。</li>
</ul>
<h2 id="β-與檢定力">β 與檢定力</h2>
<p>Type II error 的機率記為 <strong>β</strong>。與它互補的是<strong>檢定力（statistical power）= 1 − β</strong>，也就是「H₀ 確實為假時，正確抓到的機率」。提高檢定力（少漏接）通常靠加大樣本數或放大效果量。</p>
<p>把 β 對應到偵測語境，「少漏接」就是提高 <a href="../recall/">recall</a>——兩者衡量的是同一件事的不同領域 framing。</p>
<h2 id="相關概念">相關概念</h2>
<ul>
<li>對偶錯誤：<a href="../false-positive/">false positive</a> / <a href="../type-i-error/">Type I error</a>。</li>
<li>同概念的偵測語境：<a href="../false-negative/">false negative</a>。</li>
<li>量化的尺：<a href="../recall/">recall</a>（被 false negative 拉低）。</li>
</ul>
]]></content:encoded></item></channel></rss>