<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c" -->

---
title: An introduction to uncertainty in machine learning
description: Every model carries an assumption about uncertainty, and where data is rare that assumption decides the answer. A network trained with mean squared error...
canonical: https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: An introduction to uncertainty in machine learning | daily.dev
og:description: Every model carries an assumption about uncertainty, and where data is rare that assumption decides the answer. A network trained with mean squared error...
og:url: https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c
og:image: https://api.daily.dev/og/posts/dTt8RWP4c.png
og:image:alt: An introduction to uncertainty in machine learning
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# An introduction to uncertainty in machine learning

**[Hacker News](https://daily.dev/sources/hn)** · 13 min read · 1 upvotes · 0 comments

## Summary

Every model carries an assumption about uncertainty, and where data is rare that assumption decides the answer. A network trained with mean squared error already has an uncertainty model, even if nobody chose it. In a steering example, a single-peak model averages left and right lanes into 'straight ahead, into the divider'; a two-Gaussian mixture containing the truth can fix it. Bayesian posteriors capture uncertainty where data is missing, and conformal prediction sets (for example 90% coverage) give a statistical guarantee on average. Wind reserve planning shows faithful uncertainty matters most in the rare tail, where data is scarcest.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://chrhenning.com/blog/2026/introduction-to-uncertainty>

## Questions this post answers

### Why does training a neural network with mean squared error imply a Gaussian uncertainty model?

Minimizing mean squared error is equivalent to minimizing the negative log-likelihood of a single Gaussian with fixed variance. So a network trained with it already has an uncertainty model, even if nobody chose it deliberately. When the true output distribution has two peaks, such as left or right lanes, the single-peak model predicts the average, steering straight into the divider.

_Developers choosing loss functions and uncertainty assumptions follow this kind of ML reasoning on daily.dev._

### What does split conformal prediction guarantee, and what does it not guarantee?

Split conformal prediction wraps any trained model and outputs a prediction set containing the true output at a chosen rate, such as 90% coverage, provided calibration and test data are exchangeable. The guarantee holds on average over inputs, not for any particular input, and it does not ensure the sets are small or useful; for rare defects, coverage must be calibrated on defects alone.

_Anyone deploying calibrated ML predictions can keep up with conformal prediction practice on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 1 discussion and 22 comments across hackernews (as of 2026-11-27).

**TL;DR:** Commenters largely appreciated the introduction, especially the wind power tail-risk example, and extended the discussion with real-world analogies like incomplete test data and financial risk metrics; one notable complaint was about perceived AI-generated writing style.

**Sentiment:** 55% positive · 35% mixed · 10% skeptical

**The case for**

- The wind power example resonated as a clear illustration of why uncertainty matters most where data is scarce.
- Several people connected the post's ideas to other fields like VaR/Expected Shortfall in finance and operational monitoring, showing the concept has broad applicability.
- The author engaged directly and thoughtfully with technical follow-up questions about non-parametric models.

**The pushback**

- One commenter was put off by writing that seemed LLM-generated and stopped reading, criticizing the lack of disclosure.
- A tangential point noted that dashboards and metrics can hide uncertainty by only counting completed/successful cases, missing the failures that matter most.

**By community**

- hackernews (positive): Mostly appreciative, with technical extensions and one complaint about writing style suspected to be AI-generated.

**Open questions**

- How do Chebyshev-type bounds and other non-parametric uncertainty bounds fit into the framework described?
- How should systems account for cases that don't complete or finish, which are excluded from standard metrics?

**Highlights**

> I really liked the wind power example. It's a bit unsettling that the cases where you most need to get the probabilities right are also the ones you have the least data on
> — [Renina on hackernews · 1 comments](https://news.ycombinator.com/item?id=50665947)

> say nine restore tests finish in an hour and you give up on the tenth after four. a dashboard that only counts completed jobs says 100% finished in an hour. you could collect years of data that way and get very precise about the restores that finish. when someone asks how sure we are that we can recover in four hours, that tenth test is the one i want to talk about.
> — [lnxsxu on hackernews · 1 comments](https://news.ycombinator.com/item?id=50664387)

> Looks interesting, but the LLM-based writing had me stop after~10% of the webpage with how sick I was of it. Not declaring it is a big issue IMO. Why should I read your text if you clearly cannot be bothered to write it yourself?
> — [luiwammus on hackernews](https://news.ycombinator.com/item?id=50666156)

> Hey, thanks for the feedback, really appreciate it! I would need to study Chebyshev-type bounds again in more detail to give a convincing answer, but they roughly fit into the "Getting a Guarantee" section. On non-parametric models like GPs: I use parameters theta to index hypotheses for simplicity, but the overall story carries over directly when you move from weight space to function space. For instance, GP regression with a Gaussian likelihood still can't represent the bimodal steering angle at the lane split. Hope that help :)
> — [chrhenning on hackernews](https://news.ycombinator.com/item?id=50665182)

> What you are referring to is basically the difference between 'Value at Risk' and 'Expected Shortfall'. VaR is the e.g. 95th percentile of the loss/time spent in this case, while ES is the average of the loss/time spent beyond the 95th percentile. ES harder to estimate than VaR, but there are methods, tail estimations,... it's a whole field in engineering and finance.
> — [europoorean on hackernews · 1 comments](https://news.ycombinator.com/item?id=50665868)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=50658498) · 117 points · 22 comments

## Similar posts on daily.dev

- [Uncertainty in Machine Learning: Probability & Noise](https://daily.dev/posts/uncertainty-in-machine-learning-probability-noise-zlvwhs5ee) · Machine Learning Mastery · 4 upvotes · 0 comments
- [Bayesian Guardrails for AI Decisions: Measuring Uncertainty Before Automating Decisions](https://daily.dev/posts/bayesian-guardrails-for-ai-decisions-measuring-uncertainty-before-automating-decisions-bpwxolimh) · Towards Data Science · 0 upvotes · 0 comments
- [“MLshorts” 56: Your model is not very sure. Is it because of aleatoric or epistemic uncertainty?](https://daily.dev/posts/mlshorts-56-your-model-is-not-very-sure-is-it-because-of-aleatoric-or-epistemic-uncertainty--m0s6xsai7) · Medium · 0 upvotes · 0 comments
- [Reading ‘Radical Uncertainty’](https://daily.dev/posts/reading-radical-uncertainty--xqhzti1nk) · R-bloggers · 0 upvotes · 0 comments

---

Tags: [#machine-learning](https://daily.dev/tags/machine-learning)

[View this post on daily.dev](https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"An introduction to uncertainty in machine learning","url":"https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c"},"datePublished":"2026-11-27T15:37:25.575Z","dateModified":"2026-11-27T15:37:53.110Z","description":"Every model carries an assumption about uncertainty, and where data is rare that assumption decides the answer. A network trained with mean squared error...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4f4b2b35b743bbd4aa156e3b3656fc64?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/4f4b2b35b743bbd4aa156e3b3656fc64?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Hacker News","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hacker News","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/hn","url":"https://daily.dev/sources/hn"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"machine-learning","timeRequired":"PT13M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hacker News","item":"https://daily.dev/sources/hn"},{"@type":"ListItem","position":3,"name":"An introduction to uncertainty in machine learning"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/an-introduction-to-uncertainty-in-machine-learning-dtt8rwp4c#faq","mainEntity":[{"@type":"Question","name":"Why does training a neural network with mean squared error imply a Gaussian uncertainty model?","acceptedAnswer":{"@type":"Answer","text":"Minimizing mean squared error is equivalent to minimizing the negative log-likelihood of a single Gaussian with fixed variance. So a network trained with it already has an uncertainty model, even if nobody chose it deliberately. When the true output distribution has two peaks, such as left or right lanes, the single-peak model predicts the average, steering straight into the divider. Developers choosing loss functions and uncertainty assumptions follow this kind of ML reasoning on daily.dev."}},{"@type":"Question","name":"What does split conformal prediction guarantee, and what does it not guarantee?","acceptedAnswer":{"@type":"Answer","text":"Split conformal prediction wraps any trained model and outputs a prediction set containing the true output at a chosen rate, such as 90% coverage, provided calibration and test data are exchangeable. The guarantee holds on average over inputs, not for any particular input, and it does not ensure the sets are small or useful; for rare defects, coverage must be calibrated on defects alone. Anyone deploying calibrated ML predictions can keep up with conformal prediction practice on daily.dev."}}]}
```

