Skip to main content

Probability Riddle Using Python: Integer Sequence with Given Statistical Parameters


Find an integer sequence of seven integers that satisfies simultaneously the following conditions:   

    - Mean: 10 

    - Median: 9 

    - Mode: 7 

    - Range: 15   

Python Solution (doesn't need python though, but did it anyways for consistency):

Riddle source:

Adapted from Falk, R. (1993). Understanding Probability and Statistics: A Book of Problems. Wellesley, MA: A.K. Peters.