Course Problems
Home
Problems
Assign Problems
Organize
Assign Problems
Add Problems
Solution Progress
TikZ Images
Compare
Difficulty
Banger Rating
PDF Management
Ctrl+S
Edit Problem
Year
Paper
Question Number
Course
-- Select Course --
LFM Pure
LFM Pure and Mechanics
LFM Stats And Pure
UFM Additional Further Pure
UFM Mechanics
UFM Pure
UFM Statistics
zNo longer examinable
Section
-- Select Section --
Coordinate Geometry
Simultaneous equations
Proof
Proof by induction
Introduction to trig
Modulus function
Matrices
Linear transformations
Invariant lines and eigenvalues and vectors
Trigonometry 2
Small angle approximation
Differentiation
Integration
Implicit equations and differentiation
Differential equations
3x3 Matrices
Exponentials and Logarithms
Arithmetic and Geometric sequences
Differentiation from first principles
Integration as Area
Vectors
Constant Acceleration
Non-constant acceleration
Newton's laws and connected particles
Pulley systems
Motion on a slope
Friction
Momentum and Collisions
Moments
Parametric equations
Projectiles
Quadratics & Inequalities
Curve Sketching
Polynomials
Binomial Theorem (positive integer n)
Functions (Transformations and Inverses)
Partial Fractions
Generalised Binomial Theorem
Complex Numbers (L8th)
Combinatorics
Measures of Location and Spread
Probability Definitions
Tree Diagrams
Principle of Inclusion/Exclusion
Independent Events
Conditional Probability
Discrete Probability Distributions
Uniform Distribution
Binomial Distribution
Geometric Distribution
Hypergeometric Distribution
Negative Binomial Distribution
Modelling and Hypothesis Testing
Hypothesis test of binomial distributions
Data representation
Continuous Probability Distributions and Random Variables
Continuous Uniform Random Variables
Geometric Probability
Normal Distribution
Approximating Binomial to Normal Distribution
Solving equations numerically
Newton-Raphson method
Sequences and Series
Number Theory
Vector Product and Surfaces
Groups
Reduction Formulae
Moments
Work, energy and Power 1
Momentum and Collisions 1
Centre of Mass 1
Circular Motion 1
Momentum and Collisions 2
Work, energy and Power 2
Centre of Mass 2
Circular Motion 2
Dimensional Analysis
Variable Force
Simple Harmonic Motion
Sequences and series, recurrence and convergence
Roots of polynomials
Polar coordinates
Conic sections
Taylor series
Hyperbolic functions
Integration using inverse trig and hyperbolic functions
Vectors
First order differential equations (integrating factor)
Complex numbers 2
Second order differential equations
Discrete Random Variables
Poisson Distribution
Approximating the Poisson to the Normal distribution
Approximating the Binomial to the Poisson distribution
Probability Generating Functions
Cumulative distribution functions
Exponential Distribution
Bivariate data
Linear regression
Moment generating functions
Linear combinations of normal random variables
Central limit theorem
Hypothesis test of a normal distribution
Hypothesis test of Pearson’s product-moment correlation coefficient
Hypothesis test of Spearman’s rank correlation coefficien
Hypothesis test of a Poisson distribution
The Gamma Distribution
Chi-squared distribution
Yates’ continuity correction
Non-parametric tests
Wilcoxon tests
Moments of inertia
Worksheet Citation (for copying)
Click the copy button or select the text to copy this citation for use in worksheets.
Problem Text
Each day, books returned to a library are placed on a shelf in order of arrival, and left there. When a book arrives for which there is no room on the shelf, that book and all books subsequently returned are put on a trolley. At the end of each day, the shelf and trolley are cleared. There are just two-sizes of book: thick, requiring two units of shelf space; and thin, requiring one unit. The probability that a returned book is thick is $p$, and the probability that it is thin is $q=1-p.$ Let $M(n)$ be the expected number of books that will be put on the shelf, when the length of the shelf is $n$ units and $n$ is an integer, on the assumption that more books will be returned each day than can be placed on the shelf. Show, giving reasoning, that \begin{questionparts} \item $M(0)=0;$ \item $M(1)=q;$ \item $M(n)-qM(n-1)-pM(n-2)=1,$ for $n\geqslant2.$ \end{questionparts} Verify that a possible solution to these equations is \[ M(n)=A(-p)^{n}+B+Cn, \] where $A,B$ and $C$ are numbers independent of $n$ which you should express in terms of $p$.
Solution (Optional)
\begin{questionparts} \item $M(0) = 0$ since if there's no space on the shelf, we wont be able to put any books on the shelf. \item If the shelf has length $1$ it can only fit a thin book. For a thin book to be placed on the shelf, the very first book which comes to be placed must be thin. But this happens with probability $q$. Therefore $M(1) = q$. \item Suppose no books have been placed on the shelf, then with probability $p$ a large book gets placed on the shelf, and the expected number of books to be placed on the shelf is equivalent to how many books will be placed on the shelf if the shelf only had $n-2$ spaces. This is $M(n-2)$. Similar if the book which arrives first is thin (with probability $q$) then there will be $M(n-1)$ more books placed on the shelf in expectation. We've just added $1$ more book, therefore $M(n) = 1+pM(n-2) + qM(n-1)$ or rearranging $M(n) - qM(n-1) - pM(n-2) = 1$. \end{questionparts} Suppose $M(n) = (-p)^n$, notice that: \begin{align*} M(n) - qM(n-1) - pM(n-2) &= (-p)^n - (1-p)(-p)^n - p(-p)^{n-2} \\ &= (-p)^{n-2}(p^2+(1-p)p-p) \\ &= 0 \end{align*} Suppose $M(n) = B$, notice that: \begin{align*} M(n) - qM(n-1) - pM(n-2) &= B - (1-p)B - pB \\ &= 0 \end{align*} Finally, if $M(n) = Cn$ notice that: \begin{align*} M(n) - qM(n-1) - pM(n-2) &= Cn - (1-p)C(n-1) - pC(n-2) \\ &= C(n(1-(1-p)+p)+(1-p)+2p) \\ &= C(1+p) \end{align*} Therefore if $C = \frac{1}{1+p}$ we have that: $M(n) = A(-p)^n + B + Cn$ satisfies our recurrence. We also need $M(0) = 0$ and $M(1) = q$ \begin{align*} 0 &= M(0) \\ &= A + B \\ 1-p &= M(1) \\ &= -pA+B \end{align*} $(1+p)A = p-1 \Rightarrow A = \frac{p-1}{1+p}, B = \frac{1-p}{1+p}$. Therefore: \[ M(n) = -\frac{1-p}{1+p}(-p)^n + \frac{1-p}{1+p} + \frac{n}{1+p} \] is a possible solution to this equation
Preview
Problem
Solution
Update Problem
Cancel
Current Ratings
Difficulty Rating:
1700.0
Difficulty Comparisons:
0
Banger Rating:
1486.2
Banger Comparisons:
1
Search Problems
Press Enter to search, Escape to close