Natural Language Processing · TEE · read
Small probabilities, logs and calculator use
Start here · language & probability
Shared language and probability foundations · TEE
Repeated multiplication of probabilities produces small numbers. A calculator may show 0.0000125 as 1.25 × 10⁻⁵; they are the same value. A logarithm turns a product into a sum. Log probabilities are often negative because probabilities between 0 and 1 have negative logs.
\log(ab)=\log a+\log b\log_b x=y\quad\Longleftrightarrow\quad b^y=xUse the log base specified in the question. Natural log is ln (base e); ordinary calculator log is usually base 10. Perplexity is simplest to evaluate using the direct power formula. Do not mix bases in the same calculation.
Calculator example · roots in perplexity
A model assigns probability 1/16 to a test sequence with 4 predicted tokens. Calculate perplexity.
P = 1/16; N = 4 predicted tokens.
To findPerplexity PP.
Formula and why it applies
PP=P^{-1/N}=\left(\frac1P\right)^{1/N}Perplexity takes the reciprocal probability and then its Nth root. N must match the number of predicted events in the product.
Solution
Step 1. Take the reciprocal
\frac{1}{1/16}=16Step 2. Take the fourth root
PP=16^{1/4}=2Step 3. Interpret
A perplexity of 2 means an effective average uncertainty comparable to two equally likely alternatives. It is not 2% error.
Calculator entry order
Enter the full product with parentheses. For the Nth root enter (1 ÷ P)^(1 ÷ N). Keep at least 6 significant digits while working; round the final answer. If your calculator offers Ans, reuse the stored value instead of typing a heavily rounded result.
Yaad rakho: Probability ke factors multiply; log mein add; perplexity mein ulta karke root.
M2 06 — Perplexity, logarithms and calculator working
- id
- nlp-m2-06-perplexity-logs-calculator
- title
- M2 06 — Perplexity, logarithms and calculator working
- title_confirmed
- false
- topic_title
- Perplexity, logarithms and calculator working
- mode
- m2
- kind
- focused
- status
- queued
- duration
- reviewed
- false
- notebook_url
- https://notebook.google.com/notebook/a270ef1e-c285-4d31-9db1-302090c5f8b1
- youtube_url
- corrected_visuals
- false
- upload_pending_correction
- false
- correction_note
- related_topic_ids
These are recorded generation statuses, not a live service check. Private YouTube and signed-in NotebookLM links require the owner's account. This export publishes existing catalog metadata, not private video files or an invented transcript.
NLP M2 — Perplexity | Reviewed formulas and solved numericals
- id
- overview-perplexity-logs
- title
- NLP M2 — Perplexity | Reviewed formulas and solved numericals
- title_confirmed
- true
- topic_title
- NLP M2 — Perplexity | Reviewed formulas and solved numericals
- mode
- m2
- kind
- supplemental
- status
- available
- duration
- 9:35
- reviewed
- true
- notebook_url
- https://notebook.google.com/notebook/a270ef1e-c285-4d31-9db1-302090c5f8b1
- youtube_url
- https://www.youtube.com/watch?v=OPlh9cXnfTA
- corrected_visuals
- true
- upload_pending_correction
- false
- correction_note
- Readable formulas and all worked examples; corrected comparison conditions and context claims. Full transcript and detected slides checked; short voice corrections included.
- related_topic_ids
- nlp-m2-06-perplexity-logs-calculator
These are recorded generation statuses, not a live service check. Private YouTube and signed-in NotebookLM links require the owner's account. This export publishes existing catalog metadata, not private video files or an invented transcript.