<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>parametric tests &#8211; paologironi blog</title>
	<atom:link href="https://www.gironi.it/blog/en/tag/parametric-tests/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.gironi.it/blog</link>
	<description>Scattered notes on (retro) computing, data analysis, statistics, SEO, and things that change</description>
	<lastBuildDate>Thu, 16 Jul 2026 15:12:36 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>Statistical Parametric and Non-Parametric Tests</title>
		<link>https://www.gironi.it/blog/en/statistical-parametric-and-non-parametric-tests/</link>
					<comments>https://www.gironi.it/blog/en/statistical-parametric-and-non-parametric-tests/#respond</comments>
		
		<dc:creator><![CDATA[paolo]]></dc:creator>
		<pubDate>Wed, 22 Sep 2021 14:22:00 +0000</pubDate>
				<category><![CDATA[statistics]]></category>
		<category><![CDATA[non parametric tests]]></category>
		<category><![CDATA[parametric tests]]></category>
		<guid isPermaLink="false">https://www.gironi.it/blog/?p=3309</guid>

					<description><![CDATA[Have you ever run an A/B test and wondered whether you should use a t-test or a Wilcoxon test? The choice matters: using the wrong test can cause you to miss a significant result — or, worse, make you think a result is significant when it’s not. Statistical tests fall into two broad families: parametric &#8230; <a href="https://www.gironi.it/blog/en/statistical-parametric-and-non-parametric-tests/" class="more-link">Continue reading<span class="screen-reader-text"> "Statistical Parametric and Non-Parametric Tests"</span></a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Have you ever run an <a href="https://www.gironi.it/blog/en/ab-testing-statistically-valid-experiments/" target="_blank" rel="noopener noreferrer">A/B test</a> and wondered whether you should use a t-test or a Wilcoxon test? The choice matters: using the wrong test can cause you to miss a significant result — or, worse, make you think a result is significant when it’s not.</p>


<p class="wp-block-paragraph"><a href="https://www.gironi.it/blog/en/hypothesis-testing-a-step-by-step-guide/" target="_blank" rel="noopener noreferrer">Statistical tests</a> fall into two broad families: <strong>parametric</strong> and <strong>non-parametric</strong>. The fundamental difference? Parametric tests assume the data follow a known distribution (usually the normal); non-parametric tests make no such assumption. This is not a technical detail — it determines which tests you can use, how powerful they are, and how much you can trust the results.</p>


<p class="wp-block-paragraph">In this article we’ll look at the differences, when to use each, and how the choice impacts the analysis of your site’s data.</p>


<span id="more-3309"></span>


<p class="wp-block-paragraph"><strong>What we’ll cover</strong></p>
<ul>
<li><a href="#parametric">Parametric tests: the power of normality</a></li>
<li><a href="#non-parametric">Non-parametric tests: flexibility and robustness</a></li>
<li><a href="#comparison">Comparison table</a></li>
<li><a href="#try-it">Try it yourself</a></li>
<li><a href="#choosing">Choosing the right test</a></li>
</ul></p>


<hr class="wp-block-separator has-alpha-channel-opacity"/>


<h2 class="wp-block-heading" id="parametric">Parametric tests: the power of normality</h2>


<p class="wp-block-paragraph">Many <strong>parametric tests</strong> assume the data are an <strong>approximately normally distributed</strong>.</p>


<p class="wp-block-paragraph">The typical conditions for using them are:</p>


<ul class="wp-block-list">
<li><strong>Continuous or interval/ratio</strong> data.
</li>


<li><strong>Approximately normal distribution</strong> of the data (or of sample means, thanks to the <a href="https://www.gironi.it/blog/en/central-limit-theorem/" target="_blank" rel="noopener noreferrer">central limit theorem</a> for large samples).
</li>


<li><strong>Homogeneity of variances</strong> (<em>homoscedasticity</em>) across groups.
</li>


<li>A <strong>sufficiently large sample</strong>, when the model assumptions are reasonably met.
</li>
</ul>


<p class="wp-block-paragraph">The main advantage of parametric tests is <strong>higher statistical power</strong>: for the same effect size and sample size, a parametric test is more likely to detect a real difference. This is because they leverage the information about the data’s distribution — provided the assumption holds.</p>


<p class="wp-block-paragraph"><strong>Examples of parametric tests</strong> we have covered include the <a href="https://www.gironi.it/blog/en/the-normal-distribution/#zscore" target="_blank" rel="noopener noreferrer">Z-test</a>, <a href="https://www.gironi.it/blog/en/the-t-distribution-and-hypothesis-testing/" target="_blank" rel="noopener noreferrer">Student’s t-test</a>, <a href="https://www.gironi.it/blog/en/analysis-of-variance-anova-explained-simply/" target="_blank" rel="noopener noreferrer">ANOVA</a> (Analysis of Variance), the <a href="https://www.gironi.it/blog/en/correlation-and-regression-analysis-linear-regression/#il-coefficiente-di-correlazione-r-di-pearson" target="_blank" rel="noopener noreferrer">Pearson correlation coefficient r</a>, and <a href="https://www.gironi.it/blog/en/correlation-and-regression-analysis-linear-regression/" target="_blank" rel="noopener noreferrer">linear regression</a>.</p>


<hr class="wp-block-separator has-alpha-channel-opacity"/>


<h2 class="wp-block-heading" id="non-parametric">Non-parametric tests: flexibility and robustness</h2>


<p class="wp-block-paragraph"><strong>Non-parametric tests</strong> (also called <em>distribution-free</em> tests) do not require assuming a particular distribution of the data nor estimating the parameters of such a distribution. They often work on <strong>ranks</strong> (the ordering of values) rather than on the values themselves.</p>


<p class="wp-block-paragraph">They fall into two broad categories:</p>


<ul class="wp-block-list">
<li><strong>Goodness-of-fit tests</strong>: compare observed frequencies with those expected under a hypothesis. The prime example is the <a href="https://www.gironi.it/blog/il-test-del-chi-quadrato-bonta-di-adattamento-e-test-di-indipendenza/" target="_blank" rel="noopener noreferrer">chi-square test</a>.
</li>


<li><strong>Non-parametric alternatives to parametric tests</strong>: tests that answer the same question without assuming normality. For example, the <a href="https://www.gironi.it/blog/en/non-parametric-tests-the-wilcoxon-test-for-non-normal-data/" target="_blank" rel="noopener noreferrer">Wilcoxon test</a> is the alternative to the t-test for two samples, and <a href="https://www.gironi.it/blog/en/correlation-and-regression-analysis-linear-regression/#il-coefficiente-di-correlazione-per-ranghi-rho-di-spearman-e-un-accenno-al-tau-di-kendall" target="_blank" rel="noopener noreferrer">Spearman’s rho</a> is the non-parametric alternative to Pearson’s correlation.
</li>
</ul>


<p class="wp-block-paragraph">Other examples include the Mann-Whitney U test (alternative to the t-test for two independent samples), the Kruskal-Wallis test (alternative to ANOVA), and Kendall’s tau (alternative to Spearman for ties).</p>


<p class="wp-block-paragraph">The price of this versatility? Non-parametric tests generally have <strong>lower statistical power</strong> when the assumptions of parametric tests are met. They have lower <em>efficiency</em>: to achieve the same power, you need larger samples.</p>


<div class="wp-block-group has-background" style="background-color:#f5f7f9;margin-top:2.5rem;margin-bottom:2.5rem;padding-top:1.5rem;padding-right:1.5rem;padding-bottom:1rem;padding-left:1.5rem"><div class="wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-eed7543b wp-block-group-is-layout-constrained">

<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1050" height="525" src="https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-distribuzioni.png" alt="Normal distribution (left) and skewed distribution (right): the shape of the data determines the choice between parametric and non-parametric tests." class="wp-image-4365" srcset="https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-distribuzioni.png 1050w, https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-distribuzioni-300x150.png 300w, https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-distribuzioni-1024x512.png 1024w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px" /><figcaption class="wp-element-caption">Normal distribution (left) and skewed distribution (right): the shape of the data determines the choice between parametric and non-parametric tests.</figcaption></figure>

</div></div>


<div class="wp-block-group has-background" style="background-color:#f5f7f9;margin-top:2.5rem;margin-bottom:2.5rem;padding-top:1.5rem;padding-right:1.5rem;padding-bottom:1rem;padding-left:1.5rem"><div class="wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-eed7543b wp-block-group-is-layout-constrained">

<figure class="wp-block-image size-large"><img decoding="async" width="825" height="600" src="https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-potenza.png" alt="Statistical power of the t-test and the Wilcoxon test on normal and skewed data. The t-test loses less power when data deviate from normality." class="wp-image-4366" srcset="https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-potenza.png 825w, https://www.gironi.it/blog/wp-content/uploads/2026/07/parametric-potenza-300x218.png 300w" sizes="(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px" /><figcaption class="wp-element-caption">Statistical power of the t-test and the Wilcoxon test on normal and skewed data. The t-test loses less power when data deviate from normality.</figcaption></figure>

</div></div>


<hr class="wp-block-separator has-alpha-channel-opacity"/>


<h2 class="wp-block-heading" id="comparison">Comparison table</h2>


<p class="wp-block-paragraph">When to use each? Here is a summary:</p>


<figure class="wp-block-table"><table>
<thead><tr><th>Feature</th><th>Parametric tests</th><th>Non-parametric tests</th></tr></thead>
<tbody>
<tr><td><strong>Assumed distribution</strong></td><td>Normal (approx.)</td><td>None</td></tr>
<tr><td><strong>Data type</strong></td><td>Continuous, interval/ratio</td><td>Any (including ordinal, ranks)</td></tr>
<tr><td><strong>Statistical power</strong></td><td>Higher (if assumptions hold)</td><td>Lower (same sample size)</td></tr>
<tr><td><strong>Robustness</strong></td><td>Sensitive to outliers, non-normality</td><td>Robust to outliers and skewness</td></tr>
<tr><td><strong>Minimum sample</strong></td><td>Depends on model assumptions</td><td>Works even with small n</td></tr>
<tr><td><strong>Output</strong></td><td>Parameter estimates + p-value</td><td>Rank-based test statistic</td></tr>
<tr><td><strong>Examples</strong></td><td>t-test, ANOVA, Pearson, Z-test</td><td>Wilcoxon, Mann-Whitney, Kruskal-Wallis, Spearman</td></tr>
</tbody></table>
<figcaption class="wp-element-caption">Quick comparison between parametric and non-parametric tests.</figcaption>
</figure>


<hr class="wp-block-separator has-alpha-channel-opacity"/>


<h3 class="wp-block-heading" id="try-it">Try it yourself</h3>


<p class="wp-block-paragraph">An ecommerce site is testing two versions of a product page (A and B). Session times in seconds for 10 visitors each are:</p>


<pre class="wp-block-code"><code>version_A <- c(45, 52, 48, 61, 55, 49, 53, 47, 58, 51)
version_B <- c(42, 65, 44, 70, 50, 68, 55, 71, 49, 63)</code></pre>


<p class="wp-block-paragraph">Let’s run both a t-test (parametric) and a Wilcoxon test (non-parametric) to see if the difference is significant:</p>


<pre class="wp-block-code"><code># Parametric test (assumes normality)
t.test(version_A, version_B)

# Non-parametric test (rank-based)
wilcox.test(version_A, version_B)</code></pre>


<p class="wp-block-paragraph">Questions:</p>


<p class="wp-block-paragraph">1. <strong>Do the two tests give the same verdict (p &lt; 0.05)?</strong></p>


<p class="wp-block-paragraph">2. <strong>Which test makes more sense given only 10 data points per group?</strong></p>


<p class="wp-block-paragraph">3. <strong>How would the choice change with 100 visitors per version?</strong></p>


<p class="wp-block-paragraph"><strong>Answers:</strong></p>


<p class="wp-block-paragraph">1. With this particular data, the t-test gives p ≈ 0.12 (not significant), while Wilcoxon gives p ≈ 0.16 (not significant). They agree — but that’s not always the case.</p>


<p class="wp-block-paragraph">2. With n = 10 it’s hard to verify normality. Wilcoxon is the safer choice: it makes no distributional assumptions and works well with small samples.</p>


<p class="wp-block-paragraph">3. With n = 100, the <a href="https://www.gironi.it/blog/en/central-limit-theorem/" target="_blank" rel="noopener noreferrer">central limit theorem</a> guarantees the sample mean is approximately normal even if the original data aren’t. The t-test becomes more justified — and more powerful.</p>


<hr class="wp-block-separator has-alpha-channel-opacity"/>


<h3 class="wp-block-heading" id="choosing">Choosing the right test</h3>


<p class="wp-block-paragraph">The choice between a parametric and a non-parametric test does not depend on which is "best" in absolute terms, but on the <strong>nature of the data</strong> and the <strong>assumptions we are reasonably willing to make</strong>.</p>


<p class="wp-block-paragraph">The rule of thumb is:</p>


<ul class="wp-block-list">
<li>If the data are <strong>normal</strong> (or the sample is large) and the variances are <strong>homogeneous</strong> → parametric test (more powerful).
</li>


<li>If the data are not normal, the sample is small, or there are <strong>outliers</strong> → non-parametric test (more robust).
</li>


<li>When in doubt, run <strong>both</strong>: if they agree, the answer is robust. If they disagree, investigate why.
</li>
</ul>


<div class="wp-block-group has-background" style="background-color:#f5f7f9;margin-top:2.5rem;margin-bottom:2.5rem;padding-top:1.5rem;padding-right:1.5rem;padding-bottom:1rem;padding-left:1.5rem"><div class="wp-block-group__inner-container is-layout-constrained wp-container-core-group-is-layout-eed7543b wp-block-group-is-layout-constrained">
<p><strong>Caution: power isn’t everything.</strong></p>
<p>A more powerful parametric test is not always the best choice. If the data violate the assumptions (normality, homoscedasticity), the parametric test’s p-value can be unreliable — exposing you to a false positive or false negative. In such cases, a non-parametric test, though less powerful, gives a more honest result.</p>
<p>For a practical guide to choosing between tests, see the <a href="https://www.gironi.it/blog/en/guide-to-statistical-tests-for-a-b-analysis/" target="_blank" rel="noopener noreferrer">guide to statistical tests for A/B analysis</a>, and for a systematic treatment of assumptions, <a href="https://www.gironi.it/blog/en/effect-size-and-power-analysis-for-seo/" target="_blank" rel="noopener noreferrer">effect size and power analysis</a>.</p>
</div></div>


<hr class="wp-block-separator has-alpha-channel-opacity"/>


<h3 class="wp-block-heading">Further Reading</h3>


<p class="wp-block-paragraph">For a comprehensive treatment of the choice between parametric and non-parametric tests, with the applicability conditions of each, <a href="https://www.amazon.it/dp/8891910651?tag=consulenzeinf-21&#038;ascsubtag=statistical-parametric-and-non-parametric-tests" rel="nofollow sponsored noopener" target="_blank"><em>Statistica</em></a> by Newbold, Carlson and Thorne offers the most systematic coverage available in Italian.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.gironi.it/blog/en/statistical-parametric-and-non-parametric-tests/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
