People arrive at a store as a non-homogeneous Poisson process with rate t, where t is the time measured in hours between noon and 6pm.
If we know that precisely one person arrived in the first hour, what is the density of its arrival time?
If we know that precisely two people arrived in the first hour, what is the density of the arrival time of the taller person? (height and arrival time are uncorrelated)
If we know that precisely two people arrived in the first hour, what is the density function of the arrival time of the person who arrived first?
If we know that at least one person arrived in the first hour, what is the density of the arrival time of the person who arrived first?
Assume that each person independently buys a geometric number of items with mean 2. What is the mean and variance of number of items sold before 2pm?
I am given from Campbell's Theorem that:
Let $S_n$ be the event times for a Poisson process. If $N_t=n$ is given then the vector $(S_1,s_2,\ldots,S_n)$ follows the distribution of ordered independent uniform variables $(U_{(1)},U_{(2)},\ldots,U_{(n)})$, where $U_i$ for $i=1,2,\ldots,n$ are independent uniform random variables on $[0,t]$, and $U_{(1)}$ is the minimum of $U_i$s, $U_{(2)}$ is the second smallest element, and so on. Consequently, the unordered set of arrival times $\left\{ S_1,\ldots,S_n\right\}$ has the same distribution $\left\{ U_1,\ldots,U_n\right\}$.
I'm fairly certain that for 1. and 2. they are both uniform on $(0,1)$, since for 2. we know that the $U_1$ and $U_2$ are independent from each other and that height and arrival time are uncorrelated, and 1. should follow quite simply from the theorem.
For 3. and 4. I'm unsure what to do. Starting with 3., would I be trying to find the density of $min\left\{U_1,U_2\right\}$? Then following for 4. that I'm asked to find the density of $min\left\{U_1,\ldots, U_n\right\}$? So do I need to find the cdf of the minimum and differentiate it, or am I going about this wrong.
For 5. since we have that the mean is $2$, then the number of items people by is $Geom(1/2)$. So I can quite simply work out the expected number of people arriving before 2pm and the mean will be $1/2$ multiplied by that expected value. However I have no clue how to calculate the variance.
Any help is greatly appreciated.
EDIT:
For 3., using some reference from this post: https://math.stackexchange.com/questions/1701172/conditional-probability-density-of-arrival-times
I worked out:
$$\begin{aligned} P(S_1\le s | N_1=2)&=\frac{P(S_1\le s, \; N_1=2)}{P(N_1=2)}\\ &=\frac{P(N_s=1, \; N_1-N_s=1)}{P(N_1=2)}\\ &=\frac{P(N_s=1) \;P(N_1-N_s=1)}{P(N_1=2)} \end{aligned}$$ $$N_s \;\text{is a Poisson}\;\left(\Lambda(s)= \int_0^st\;dt=\left.\frac{t^2}{2}\right|_{0}^{s}= \frac{s^2}{2} \right)\;\text{random variable}$$ $$P(N_s=1)=\frac{(s^2/2)^1 e^{-s^2/2}}{1!}=\frac{s^2}{2}e^{-s^2/2}$$ $$N_1-N_s \;\text{is a Poisson}\;\left(\Lambda(1)-\Lambda(s)= \int_s^1t\;dt=\left.\frac{t^2}{2}\right|_{s}^{1}= \frac{1}{2}-\frac{s^2}{2}=\frac{1-s^2}{2} \right)\;\text{random variable}$$ $$P(N_1-N_s=1)=\frac{((1-s^2)/2)^1e^{-(1-s^2)/2}}{1!}=\frac{1-s^2}{2}e^{(s^2-1)/2}$$ $$P(N_1=2)=\frac{(1/2)^2e^{-1/2}}{2!}=\frac{1}{8}e^{-1/2}$$ So, $$\begin{aligned} P(S_1\le s | N_1=2)&=\frac{P(N_s=1) \;P(N_1-N_s=1)}{P(N_1=2)}\\ &=\frac{\frac{s^2}{2}e^{-s^2/2}\cdot \frac{1-s^2}{2}e^{(s^2-1)/2}}{\frac{1}{8}e^{-1/2}}\\ &=\frac{\frac{s^2-s^4}{4}e^{-1/2}}{\frac{1}{8}e^{-1/2}}\\ &=2s^2-2s^4 \quad \text{, which is the cdf of }S_1 \text{ given that }N_1=2 \end{aligned} $$
But differentiating wrt $s$, I get that the pdf is $4s-8s^3$, which is not non-negative on the interval $(0,1)$. Where did I go wrong?