Skip to main content
Home
plus.maths.org

Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Main navigation

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • For

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Popular topics and tags

    Shapes

    • Geometry
    • Vectors and matrices
    • Topology
    • Networks and graph theory
    • Fractals

    Numbers

    • Number theory
    • Arithmetic
    • Prime numbers
    • Fermat's last theorem
    • Cryptography

    Computing and information

    • Quantum computing
    • Complexity
    • Information theory
    • Artificial intelligence and machine learning
    • Algorithm

    Data and probability

    • Statistics
    • Probability and uncertainty
    • Randomness

    Abstract structures

    • Symmetry
    • Algebra and group theory
    • Vectors and matrices

    Physics

    • Fluid dynamics
    • Quantum physics
    • General relativity, gravity and black holes
    • Entropy and thermodynamics
    • String theory and quantum gravity

    Arts, humanities and sport

    • History and philosophy of mathematics
    • Art and Music
    • Language
    • Sport

    Logic, proof and strategy

    • Logic
    • Proof
    • Game theory

    Calculus and analysis

    • Differential equations
    • Calculus

    Towards applications

    • Mathematical modelling
    • Dynamical systems and Chaos

    Applications

    • Medicine and health
    • Epidemiology
    • Biology
    • Economics and finance
    • Engineering and architecture
    • Weather forecasting
    • Climate change

    Understanding of mathematics

    • Public understanding of mathematics
    • Education

    Get your maths quickly

    • Maths in a minute

    Main menu

  • Home
  • Articles
  • Collections
  • Podcasts
  • Maths in a minute
  • Puzzles
  • Videos
  • Topics and tags
  • Audiences

    • cat icon
      Curiosity
    • newspaper icon
      Media
    • graduation icon
      Education
    • briefcase icon
      Policy

    Secondary menu

  • My list
  • About Plus
  • Sponsors
  • Subscribe
  • Contact Us
  • Log in
  • Plus Magazine

    1 March, 2006
    March 2006

    A collector's piece: solution

    In last issue's outer space we worked out how many pruchases you would expect to have to make in order to obtain every one of a set of N distinct cards. The puzzle was to show that the standard deviation of this result is close to 1.3N for large N. To work out the expectation, we considered N random variables X0, X1, etc, up to XN-1. Each random variable Xi counts how many purchases you have to make to get a new card if you already have i distinct cards. The overall expectation is then just the sum of the individual expectations of the N variables.

    You can use the same technique to work out the standard deviation (which is of course the square root of the variance): since the N random variables are independent of each other, the overall variance is simply the sum of the individual values.

    For each individual variable Xi, the probability that you have to make j purchases to get a new card is $$\frac{N-i}{N} \times \left(1 - \frac{N-i}{N}\right)^{j-1}.$$ So each individual Xi has the well-known geometric probability distribution with parameter $$p = \frac{N-i}{N}.$$

    This distribution has variance $$\frac{1-p}{p^2} = \frac{iN}{(N-i)^2}.$$ Now if X is the sum of the N random variables X0, X1, ... , XN-1, then the variance of X is $$variance(X) = \sum_{i=0}^{N-1} \frac{iN}{(N-i)^2} = N \sum_{i=0}^{N-1} \frac{i}{(N-i)^2}.$$ A little thought shows that this sum can be expressed as $$N \sum_{i=1}^{N} \frac{N-i}{i^2} = N\sum_{i=1}^N \frac{N}{i^2} - N\sum_{i=1}^N \frac{i}{i^2},$$ which is equal to $$N^2 \sum_{i=1}^N \frac{1}{i^2} - N \sum_{i=1}^N \frac{1}{i}.$$

    Dividing through by N2 gives $$ \frac{variance(X)}{N^2} = \sum_{i=1}^N \frac{1}{i^2} - 1/N \sum_{i=1}^N \frac{1}{i}.$$ As N gets large, the first term tends to $\pi^2/6$, as was stated in the hint, while the second term tends to zero. This proves that the standard deviation for large N is close to $\sqrt{\pi^2 N^2/6},$ which is approximately 1.3 N — QED.


    Back to Outer space
    • Log in or register to post comments

    Read more about...

    outerspace

    Our Podcast: Maths on the Move

    Our Maths on the Move podcast brings you the latest news from the world of maths, plus interviews and discussions with leading mathematicians and scientists about the maths that is changing our lives.

    Apple Podcasts
    Spotify
    Podbean

    Plus delivered to you

    Keep up to date with Plus by subscribing to our newsletter or following Plus on X or Bluesky.

    University of Cambridge logo

    Plus is part of the family of activities in the Millennium Mathematics Project.
    Copyright © 1997 - 2025. University of Cambridge. All rights reserved.

    Terms