# Logprob

> Logprob: The natural log of a token's probability. Useful for debugging, but not a measure of whether an answer is true.

Canonical: https://llmdojo.dev/glossary/logprob

Also called logprobs.

The natural log of a token's probability. Useful for debugging, but not a measure of whether an answer is true.

Learn it in the lesson: [Probabilities are not correctness, and wrap-up](https://llmdojo.dev/learn/model-foundations/sampling/probabilities-and-confidence) (Model Foundations · Next-Token Prediction and Sampling).

## Interview questions about Logprob

- [A PM wants to show users a 'confidence' percentage computed from the answer's token probabilities. What's your position, and what would you build instead?](https://llmdojo.dev/interview/q/a-pm-wants-to-show-users-a-confidence-percentage-computed-from-the)

## Related
- [Logit](https://llmdojo.dev/glossary/logit)
- [LM head](https://llmdojo.dev/glossary/lm-head)
- [Autoregressive generation](https://llmdojo.dev/glossary/autoregressive)
- [Greedy decoding](https://llmdojo.dev/glossary/greedy-decoding)
- [Temperature](https://llmdojo.dev/glossary/temperature)
- [Top-k](https://llmdojo.dev/glossary/top-k)
- [Top-p (nucleus sampling)](https://llmdojo.dev/glossary/top-p)
- [Seed](https://llmdojo.dev/glossary/seed)
- [Glossary of every term](https://llmdojo.dev/glossary)
