Confidence Intervals: the 95% doesn’t mean what you think (here’s what it really says)

In previous articles, we examined how hypothesis testing works and how the t-distribution allows us to work even when we don’t know the population standard deviation. In both cases, we focused on a specific question: “can I reject the null hypothesis, yes or no?”

But there’s another question, equally important, that we ask ourselves constantly in daily practice: what is the approximate value of the parameter I’m estimating? It’s not enough to know whether the mean differs from a certain value; we want to know where it lies, and with what margin of uncertainty.

This is where confidence intervals (often abbreviated as CI) come into play—one of the most useful and, at the same time, most misunderstood tools in all of inferential statistics.

Continue reading “Confidence Intervals: the 95% doesn’t mean what you think (here’s what it really says)”

Anomaly Detection: How to Identify Outliers in Your Data

Throughout this journey, we’ve examined tools to describe data, test hypotheses, and build models. But there’s a question that comes before all others—one that’s too often ignored: are these data reliable?

In any dataset—daily sessions, organic clicks, conversion rates—values that don’t behave like the others can hide. Values that deviate abnormally from the rest of the distribution. In statistics, we call them outliers, or anomalous values.

Let’s make one point clear immediately: an anomalous value isn’t necessarily an error. It can be a measurement error, certainly (a broken tracking tag, a bot inflating sessions). But it can also be the most important signal in the entire dataset: a Google algorithm update, content going viral, a technical issue crushing traffic. The issue isn’t eliminating anomalies—it’s recognizing them and then deciding what to do about them.

In this article, we’ll examine three statistical methods for identifying outliers, from the most intuitive to the most formal. For each, we’ll look at the logic, the limitations, and practical application with R.

Continue reading “Anomaly Detection: How to Identify Outliers in Your Data”

Bayesian Statistics: How to Learn from Data, One Step at a Time

In previous articles, we’ve examined statistical inference from a precise and coherent perspective: formulate a hypothesis, collect data, calculate a p-value, construct a confidence interval. We’ve conducted hypothesis tests, compared variants with A/B testing, and seen with the Central Limit Theorem why all of this works even when data isn’t normal.

This approach—called frequentist—has a clear logic: the parameter we want to estimate is a fixed value (even if unknown), and we “chase” it with data. But there’s another way to think about uncertainty, one that allows us to update our beliefs as new data arrives. It’s called the Bayesian approach, and in this article we’ll build its foundations.

Let’s start with a concrete example. Imagine we’ve just launched an advertising campaign and we don’t know the true click rate. We have an initial opinion based on experience (“click rates usually fall between 0% and 20%”), and then data starts coming in. The Bayesian approach lets us combine our initial opinion with the observed data to get an updated estimate—and repeat this process every time new information arrives.

Continue reading “Bayesian Statistics: How to Learn from Data, One Step at a Time”

The Central Limit Theorem: Why Statistics Works (Even When Data Isn’t Normal)

Your website data isn’t normal. Almost never is. Organic traffic, conversion rates, session durations: in most cases their distribution doesn’t look anything like a bell curve. Yet confidence intervals work, hypothesis tests are reliable, statistical inference holds up. How is that possible?

The answer lies in one of the most elegant and powerful results in all of mathematics: the Central Limit Theorem (often abbreviated as CLT). It’s the theorem that, in a sense, justifies the entire edifice of inferential statistics.

We’ve already met it — implicitly — when we built confidence intervals and conducted hypothesis tests: through all those steps, the normal distribution was there, always present, like a quiet thread running through everything. But the question we may have asked ourselves without a satisfying answer is: why does it work so well even when our data aren’t normal at all? Who said organic traffic, conversion rates, or session durations follow a bell curve? In most cases, they don’t.

Continue reading “The Central Limit Theorem: Why Statistics Works (Even When Data Isn’t Normal)”

Which Statistical Test Should You Use for A/B Testing? Practical Guide with R

Statistical tests are fundamental tools for data analysis and informed decision-making. Choosing the appropriate test depends on the characteristics of the data, the hypotheses to be tested, and the underlying assumptions.

Continue reading “Which Statistical Test Should You Use for A/B Testing? Practical Guide with R”