← Back to list

Son of B…ayesian

This article is a note on my understanding of Frequentist and Bayesian.

Shao-Peng Chen · 2026-01-31 22:35 · 1 claps · 3.4 min read
#reliability-engineering #bayesian #frequentists
Open on Medium ↗

Son of B…ayesian

This article is a note on my understanding of Frequentist and Bayesian.

For me the Bayesian mindset is:

We don’t know what the truth looks like, and we can’t access it directly. All we ever have is a belief about uncertainty.

On the other hand, the Frequentist (the one we are more used to ) mindset is:

There is a true value out there. Our job is to design procedures that, over repeated experiments, will reliably land close to it.

The core difference between Bayesian and frequentist inference is less about formulas and more about how we think about truth and uncertainty. They are both a way of reasoning about the world when outcomes vary and information is incomplete.

Reliability Example

Here is a reliability analysis example to illustrate the difference.

Suppose we collect 16 time‑to‑failure samples and assume the data follow a Weibull distribution. Our goal is to estimate the shape (beta) and scale (alpha) parameters so that we can calculate the reliability at 50 days.

The Frequentist Perspective: An ultimate truth seeker

Frequentist Logic Flow

Frequentist Logic Flow

From a frequentist perspective,

  • There exists a true but unknown Weibull shape and scale parameter.
  • The observed failure samples are realizations drawn from this true time‑to‑failure distribution.
  • Using model‑fitting methods, we obtain estimators of the shape and scale parameters.

Weibull Analysis Results

Weibull Analysis Results

Are these estimators the true values? We do not know. Instead, frequentist statistics use tools such as, variance, covariance ,confidence intervals to describe how well the estimation process would perform if we repeated the experiment many times.

At the end, we typically obtain a reliability curve with confidence bounds. In this example, at t=50 days: Estimated reliability: 20.6%, 90% confidence interval: [6.3%, 40.5%]

Weibull Plot with Confidence Intervals

Weibull Plot with Confidence Intervals

The Bayesian Perspective: Belief from an observer

Bayesian Logic Flow

Bayesian Logic Flow

In Bayesian inference, everything starts with prior belief.

Before observing data, we express our belief about the parameters. For example, shape (beta) between 0.1 and 3, scale (alpha) between 0 and 200 days. This belief may be subjective or informed by prior experience.

Once the 16 time‑to‑failure samples are collected, we combine the prior belief and the observed data and throw them into a Bayesian inference algorithm, such as MCMC (Markov Chain Monte Carlo).

The output of MCMC is thousands of sampled parameter values for shape and scale. These samples represent the posterior distribution, i.e., our updated belief after seeing the data.

Posterior of the Parameters

Posterior of the Parameters

To compute reliability at t=50 days, Each posterior sample of shape and scale produces one reliability value. Together, these values form a posterior distribution of reliability

From this posterior reliability distribution, we can obtain:

  • Posterior mean reliability: 17.4%
  • 90% credible interval: [5.9%, 32.7%], obtained from the 5% and 95% posterior quantiles

Two Ways of Thinking About the Same Uncertainty

In this example, Both approaches attempt to estimate reliability at t=50 days using the same data:

  • Frequentist: Reliability = 20.6% 90% confidence interval = [6.3%, 40.5%]
  • Bayesian: Reliability = 17.4% 90% credible interval = [5.9%, 32.7%]

Both provide a point estimate and a range to describe uncertainty. (We are not focused on which number is “correct” because we will never know the true value.) However, their core philosophies for interpreting uncertainty are fundamentally different.

  • Frequentist view: A confidence interval represents how often this interval‑construction process can capture the true value if the experiment were repeated many times.
  • Bayesian view: A credible interval is based on the posterior distribution and is obtained by taking quantiles (e.g., the 5% and 95% quantiles) of the posterior samples.

I also made a meme for frequentist. I don’t know where to put it so I will just leave it here.


메타데이터
post_id
d0e08f0e7a62
slug
son-of-b-ayesian-d0e08f0e7a62
url
https://medium.com/@shaopp/son-of-b-ayesian-d0e08f0e7a62
canonical_url
https://medium.com/@shaopp/son-of-b-ayesian-d0e08f0e7a62
author_url
https://medium.com/@shaopp
status
ok
fetched_at
2026-07-14 14:55:07