Physics Forums Insights
  • Physics
    • Physics Articles
    • Physics Tutorials
    • Physics Guides
    • Physics FAQs
  • Math
    • Math Articles
    • Math Tutorials
    • Math Guides
    • Math FAQs
  • Bio/Chem/Tech
    • Bio/Chem Articles
    • Computer Science Tutorials
    • Technology Guides
  • Education
    • Education Articles
    • Education Guides
  • Interviews
  • Quizzes
  • Forums
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
Distributions

Errors in Probability: Continuous and Discrete Distributions

May 30, 2015/1 Comment/in Mathematics Tutorials/by Derek Bolton
📖Read Time: 4 minutes
📊Readability: Advanced 📐 (Technical knowledge needed)
🔖Core Topics: probabilityrandomcontinuousvariablediscrete

Table of Contents

  • 1. Classifying as discrete, continuous, or mixed
  • 2. Random versus Equally Likely
  • 3. Countably infinite distributions
  • 4. Impossible versus zero probability
    • More Related Articles

1. Classifying as discrete, continuous, or mixed

These statements (or equivalents) can be found in authoritative-seeming websites:

X “A random variable is either discrete or continuous.”

X “A random variable is continuous if it can take infinitely many values.”

A random variable may be discrete, continuous, or mixed.  The same adjective is applied to its distribution.

✓discreteCan only take countably many values. (That is, finitely many, or a countable infinity.)Necessarily, each such value has a nonzero probability.
✓continuousCan take an uncountable set of values, and any specific value has a zero probability. (A full definition requires measure theory.)
✓mixedCan take an uncountable set of values, but there are some values it can take with nonzero probability.
X “Every random variable can be written as the sum of a discrete random variable and a continuous random variable.”
Not so. Example:
Darts are thrown at a disc target radius 1.  If a dart hits the target it scores its distance from the edge of the disc; if the dart misses the disc the score is 0.
The score will have a nonzero probability of being 0, then a continuous distribution from 0 to 1.  This cannot be represented as the sum, X+Y, of a discrete r.v. X and a continuous r.v. Y.
What the author meant was:

✓A mixed random variable can always be represented by compounding a continuous random variable and a discrete random variable via a Boolean random variable. 

Let the set of values of X with nonzero probability be {##D_i##} with probabilities ##p_1, p_2, …##, writing ##p_D=\Sigma p_i##, and the rest of the values be the set C, ##P(X\in C)=1-p_D##, with density function f(x).  We construct the discrete r.v. ##X_D## such that ##P(X_D=D_i) = \frac{p_i}{p_D}## and the r.v. ##X_C## with pdf ##f_C(x)=\frac{f(x)}{1-p_D}##.  Finally, the Boolean r.v. ##X_B## takes the values True with probability ##p_D## and False otherwise.  Then

##X=## if ##(X_B)## then ##X_D## else ##X_C##.

2. Random versus Equally Likely

In common usage, these terms are treated as equivalent, but in mathematics they are distinct.

X “A number from 1 to 10 is chosen at random.  What is the probability that it is divisible by 3?”

There is no way to answer this question because we are not told the distribution.  “At random” merely means the choice was not deterministic, i.e. there was more than one number that might have been chosen.  Presumably, a uniform distribution is intended, but it should be stated.

3. Countably infinite distributions

Infinite discrete distributions can lead to some counter-intuitive results.

Example 1: “If two natural numbers are chosen at random, what is the probability that they are coprime?

Strictly speaking, this problem statement is invalid.  As noted above, no distribution is specified, but this time we cannot presume a uniform distribution.

There is no such thing as a uniform countably infinite distribution since every individual value would have zero probability.

That said, this problem can be solved, and is a mathematical gem.  We can in principle restrict to the range 1 to N, solve it approximately, and take the limit as N tends to infinity.  Glossing over those details…

The probability that both numbers are divisible by some smaller prime p = ##p^2##.

The probability that not both numbers are divisible by prime p = ##1-p^{-2}##.

The probability that no prime divides both is ##P = \Pi_p(1-p^{-2})##, where the product is over all primes.

Consider ##\frac 1P = \Pi_p(1-p^{-2})^{-1} = \Pi_p\Sigma_{n=0}^{\infty}p^{-2n}##.

If we multiply out the product, every possible combination of a product of distinct primes (including the case of no primes), each raised to an even power, occurs exactly once in the resulting sum.  Thus

##\frac 1P = \Sigma_{n=1}^{\infty}\frac 1{n^2} = \frac{{\pi}^2}6##

(For those who do not know how to show ##\Sigma_{n=1}^{\infty}\frac 1{n^2} = \frac{{\pi}^2}6##, that’s another gem.  Hint: factorise ##\frac 1{x^2}\sin^2(x)## based on its known roots.)

So ##P=\frac 6{{\pi}^2}##.

Example 2: “Gambler’s Ruin”

Every now and then, someone rediscovers this foolproof gambling strategy for, say, roulette.

“Ignoring the complication of the 0 and 00 slots, we bet $1 on red.  If it loses we bet $2 on red.  If that loses we bet $4 on red, doubling up each time.  When eventually red comes up, we take our profit of $1.”

(Solution below.)

Example 3: “If you pay me $1, I will toss a coin repeatedly until it comes up heads.  If it is heads the first time, I will pay you 1⊄.  If the head comes up on the second toss I will pay you 2⊄.  If on the third, 4⊄, and so on, doubling for each additional tail.”

Should you play the game?

The probability that you win 1⊄ = ##\frac 12##

The probability that you win 2⊄ = ##\frac 14##

The probability that you win 4⊄ = ##\frac 18##

The probability that you win ##2^n##⊄ = ##2^{-n-1}##

So the expected winnings should be

X ##\Sigma_{n=0}^{\infty} 2^n.2^{-n-1}##⊄=##\Sigma _{n=0}^{\infty}2^{-1}##⊄=##\infty##⊄

In both example 2 and example 3, the error is taking the sum to infinity, ignoring practical constraints.

The solution to example 2:

You have limited funds.  At some point, you may run out of money.  Although the probability is small, the loss is enormous.  This exactly balances your expected win of $1.

The solution to example 3:

Again, the mistake is in assuming I have infinite wealth.  Still somewhat unrealistically, suppose I am ‘only’ worth $1bn, or about ##2^{37}##⊄.

##\Sigma _{n=0}^{37}2^{-1}##⊄=19⊄.

4. Impossible versus zero probability

X “If an event has zero probability then it is impossible”

In a continuous distribution, each individual value has zero probability, yet can happen.  A radioactive atom may decay at any time T.  Any exact value of T has zero probability, yet can in principle occur.

 

 

Derek Bolton

Masters in Mathematics. Interests: climate change & renewable energy; travel; cycling, bushwalking; mathematical puzzles and paradoxes, Azed crosswords, bridge

More Related Articles

  • Frequently Made Errors in Probability: Conditionals in Natural Language
  • Exploring Frequentist Probability vs Bayesian Probability
Tags: Probability
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://www.physicsforums.com/insights/wp-content/uploads/2015/05/Distributions.png 135 240 Derek Bolton https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Derek Bolton2015-05-30 20:37:472023-08-15 09:04:13Errors in Probability: Continuous and Discrete Distributions
You might also like
The Sum of Geometric Series from Probability Theory The Sum of Geometric Series from Probability Theory
logicp3 Scientific Inference: Balancing Predictive Success with Falsifiability
dice Learn About Intransitive Dice with a Twist
1 reply
  1. Greg Bernhardt says:
    June 1, 2015 at 2:25 pm

    Epic series @haruspex!

    Log in to Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

You must be logged in to post a comment.

Trending Articles

  • How to Become a Medical Physicist in 3653 Easy Steps
  • What Planck Length Is and It’s Common Misconceptions
  • Can We See an Atom?
  • Revisiting The Deuterium Lyman Alpha Line Experiment
  • How to Measure Internal Resistance of a Battery
  • Animal Speed Scaling: Body-Lengths per Second Across Sizes
  • How PET Scans Work: Positrons in Medical Imaging Explained
  • Understanding Superposition Physically and Mathematically
  • The Oppenheimer-Snyder Model of Gravitational Collapse: An Overview
  • Particle in a Box: 1D & 2D Quantum Visualizations

Physics Forums

  • Classical Physics
  • Atomic and Condensed Matter
  • Quantum Physics
  • Special and General Relativity
  • Beyond the Standard Model
  • High Energy, Nuclear, Particle Physics
  • Astronomy and Astrophysics
  • Cosmology
  • Other Physics Topics

Receive Insights Articles to Your Inbox

Enter your email address:

Blog Information

  • Become a Member!
  • Write for Us!
  • Table of Contents
  • Blog Author List

Popular Topics

astronomy (17) black holes (17) classical physics (35) cosmology (16) education (23) electromagnetism (19) general relativity (19) gravity (24) interview (21) mathematics (39) mathematics self-study (21) Physicist (26) programming (18) Quantum Field Theory (31) quantum mechanics (36) quantum physics (24) relativity (40) Special Relativity (16) technology (19) universe (21)
2026 © Physics Forums, ALL RIGHTS RESERVED - Contact Us - Privacy Policy - About PF Insights
  • Link to X
  • Link to Facebook
  • Link to LinkedIn
  • Link to Youtube
Link to: Weak Values Part 2: The Quantum Cheshire Cat Experiment Link to: Weak Values Part 2: The Quantum Cheshire Cat Experiment Weak Values Part 2: The Quantum Cheshire Cat ExperimentcheshirecatLink to: Frequently Made Errors in Heat: Elementary Level Link to: Frequently Made Errors in Heat: Elementary Level heat errorsFrequently Made Errors in Heat: Elementary Level
Scroll to top Scroll to top Scroll to top