Use when interpreting a test result, metric, or new evidence and you risk over-reacting to it. State the base rate first, then update belief by the likelihood ratio.
Installs just this skill. Get the whole plugin for auto-invocation.
β‘ How it fires
How this skill gets triggered: by you, by Claude, or both.
Fires itselfClaude auto-loads it when your prompt matches the work.
You can call itInvoke it directly when you want it.
Slash command/thinking-bayesian
ποΈ Context preview
The summary Claude sees to decide when to auto-load this skill.
Use when interpreting a test result, metric, or new evidence and you risk over-reacting to it. State the base rate first, then update belief by the likelihood ratio.
π Stats
Stars863
Forks126
LanguageJavaScript
LicenseMIT
π¦ Ships with thinking-skills
</> SKILL.md
thinking-bayesian.SKILL.md
---name: thinking-bayesian
description: Use when interpreting a test result, metric, or new evidence and you risk over-reacting to it. State the base rate first, then update belief by the likelihood ratio.
---# Bayesian Reasoning
## Overview
Bayesian thinking provides a framework for updating beliefs based on new evidence. Rather than treating beliefs as binary (true/false), it recognizes degrees of confidence that should shift as evidence accumulates. This approach, rooted in Bayes' Theorem, helps avoid both overconfidence and underreaction to new information.
**Core Principle:** State the base rate *before* you look at the evidence, then update. The single most common error is anchoring on a vivid result and skipping the prior β a positive test for a rare condition is usually still a false alarm.
> **Redirect:** For nearly all uncertainty-reasoning tasks, prefer `thinking-probabilistic` β it covers forecasting with ranges, calibration, and uncertainty communication without requiring explicit priors and likelihood ratios. Reserve this skill for the narrow case where you have a specific, quantified prior AND a specific piece of evidence to combine via Bayes' rule. If you only need a rough updated number, the base-rate-then-likelihood-ratio trigger below is enough β don't run the full theorem.
## Trigger Card
When interpreting a test result, metric, or new evidence where overreaction is a risk:
1. **State the base rate first** β what was the probability before the evidence?
2. **Estimate the likelihood ratio** β how much more expected is the evidence under the hypothesis vs. not?
If the base rate is very low (rare condition), a positive result is usually still a false alarm. Always start with the prior.
## When to Use
- Estimating probabilities or likelihoods
- Interpreting test results or metrics
- Making decisions with incomplete information
- Evaluating competing hypotheses
- Learning from experiments or A/B tests
- Diagnosing problems with uncertain causes
- Predicting outcomes based on historical data
Decision flow:
```
Uncertain about something? β yes β Have prior belief? β yes β New evidence? β APPLY BAYESIAN UPDATE
β no β Establish base rate first
β no β Standard analysis may suffice
```
## When NOT to Use
- **You're reasoning under uncertainty and don't have a specific prior + evidence pair.** Use `thinking-probabilistic` instead β it handles forecasting with ranges, calibration, and uncertainty communication without requiring formal Bayesian machinery.
- **The evidence is conclusive or directly observable.** If you can read the logs, run the query, or look up the answer, do that β don't dress up a near-certainty as a probability.
- **No meaningful prior exists** and you'd just be inventing numbers. A fabricated base rate gives false rigor; say the prior is unknown instead.
- **The decision is the same at any plausible posterior.** If you'd act identically whether the probability is 40% or 70%, skip the update and act.
- **You need to express uncertainty as a calibrated range**, not a point update from a single piece of evidence β that's `thinking-probabilistic` territory.
## Key Concepts
### Prior Probability
Your belief BEFORE seeing new evidence:
```
P(H) = probability that hypothesis H is true
Example: Before any symptoms, what's the probability someone has disease X?
Use base rate: If 1 in 1000 people have it, P(disease) = 0.001
```
### Likelihood
How probable is the evidence IF the hypothesis is true?
```
P(E|H) = probability of seeing evidence E, given H is true
Example: If someone HAS the disease, what's the probability of a positive test?
If test is 99% sensitive: P(positive|disease) = 0.99
```
### Posterior Probability
Your belief AFTER seeing the evidence:
```
P(H|E) = updated probability of H, given you observed E
Even with 99% accurate test, positive result only means ~1% chance of disease!
Base rate dominates when condition is rare.
```
### Debugging
```
Bug report: Users see error X
Prior beliefs:
P(database issue) = 0.20
P(network issue) = 0.30
P(code bug) = 0.40
P(user error) = 0.10
Evidence: Error happens only on mobile
P(mobile-only | database) = 0.05
P(mobile-only | network) = 0.30
P(mobile-only | code bug) = 0.60
P(mobile-only | user error) = 0.40
Update: Code bug becomes most likely (posterior ~0.55)
Next step: Investigate mobile-specific code paths
```
### Project Estimation
```
Prior: Based on similar projects, P(on-time) = 0.40
Evidence 1: Team is experienced with this stack
Likelihood ratio: 1.5x β Posterior: 0.50
Evidence 2: Requirements are unclear
Likelihood ratio: 0.6x β Posterior: 0.38
Evidence 3: Critical dependency has risk
Likelihood ratio: 0.7x β Posterior: 0.30
Final estimate: 30% chance of on-time delivery
```
## Mental Shortcuts
### Strong vs Weak Evidence
| Evidence Type | Typical Likelihood Ratio |
|---------------|-------------------------|
| Definitive proof | 100x+ |
| Strong evidence | 10-100x |
| Moderate evidence | 3-10x |
| Weak evidence | 1.5-3x |
| Noise | ~1x (no update) |
### When to Update Significantly
Update strongly when:
- Evidence is surprising under your current belief
- Evidence comes from reliable source
- Evidence is specific to your hypothesis
Update weakly when:
- Evidence is expected regardless of hypothesis
- Source has unknown reliability
- Evidence is circumstantial
### Base Rate Neglect (Avoid This)
Common error: Ignoring prior probability when evidence arrives
```
Wrong: "Positive test = probably have disease"
Right: "Positive test shifts probability, but base rate matters"
```
## Calibration Check
### Are You Well-Calibrated?
Track predictions and outcomes:
- Of things you said were "70% likely," did ~70% happen?
- If you're always overconfident, widen your uncertainty
- If you're always underconfident, trust your assessments more
### Confidence Levels
| Stated Confidence | Should Mean |
|-------------------|-------------|
| 50% | Coin flip |
| 70% | Would bet 2:1 |
| 90% | Would bet 9:1 |
| 99% | Would bet 99:1 |
## Verification Checklist
- [ ] Established explicit prior probability (not just "I think...")
- [ ] Assessed likelihood ratio of evidence
- [ ] Applied update mathematically (not just "more/less likely")
- [ ] Considered base rates for rare events
- [ ] Checked for base rate neglect
- [ ] Documented reasoning for future calibration
## Key Questions
- "What was my belief before this evidence?"
- "How likely is this evidence if my belief is true? If false?"
- "What's the likelihood ratio?"
- "Am I anchoring on the evidence and ignoring base rates?"
- "How would I bet on this? At what odds?"
## Kahneman's Warning
"People tend to assess the relative importance of issues by the ease with which they are retrieved from memoryβand this is largely determined by the extent of coverage in the media."
Don't let vivid evidence override base rates. A plane crash doesn't make flying more dangerous than driving, even though it feels that way.