Suppose claims arrive at a firm with nonhomogeneous Poisson distribution where: $\lambda(t)=$
{$t, \ 0\leq t\leq 5$
$5, \ 5\leq t\leq 7$
$12-t, \ 7\leq t \leq12$}
(Sorry I don't know how to write the function out properly on latex)
$t$ is the time in months and we assume each month has $30$ days.
I'm asked to calculate the expected number of claims in a year and I just want to check I've done this right because there's one part I'm not too sure about in my answer.
Here's what I've done:
$\wedge(t) = \int^t_0 s ds = 1/2t^2, 0\leq t\leq 5$
$\wedge(t)=5+1/2(5)^2 = 17.5, 5\leq t \leq 7$
$\wedge(t)=17.5 + \int^t_7(12-s)ds = 17.5+12t-84-((t^2-49)/2) , 7\leq t \leq 12$
$N=17.5+12(12)-84-((12^2 -49)/2) = 30$
What's confusing me is the $5\leq t \leq 7$ part. To obtain $17.5$ from my second $\wedge (t)$ I only added $5$ once, should I have added it twice (or more than twice)? Does this interval mean that there are $5$ claims from month $5$ to month $7$ or does it mean there are $5$ claims each month from month $5$ to month $7$? Should my total by $35$ instead of $30$? I'm puzzled here because if I leave my answer this way then if I were to work out $\wedge(6)$ I would get $17.5$ as my answer but if I also work out $\wedge(7)$ I again get $17.5$, should $\wedge (7)$ be $22.5$?
Please let me know if I've done this correctly or if I've made a mistake, thanks in advance.