# What is the chance to get a parking ticket in half an hour if the chance to get a ticket is 80% in 1 hour?

This sounds more like a brain teaser, but I had some kink to think it through :( Suppose you're parking at a non-parking zone, the probability to get a parking ticket is 80% in 1 hour, what is the probability to get a ticket in half an hour? Please show how you deduce the answer. Thanks!

-
As a Frenchman, 80% chance in 1 hour seems really high to me, would be rather 20% chance in 1 day. –  Benoit Jun 4 '12 at 13:18
80% is about right in Oslo. –  sshow Jun 4 '12 at 19:56
Where I'm from, between the hours of 3PM - 6PM, M-F, the probability of getting a ticket and towed is 100% within 10 minutes. –  user32990 Jun 5 '12 at 8:41

It really depends on what model is assumed. However, if the idea is that no matter how long you leave your car there, you have a $20$% chance of getting through any given hour unscathed, you can treat it as an exponential decay problem. Let $p(t)$ be the probability that you do not get a ticket in the first $t$ hours. Then $p(1)=0.2$, $p(2)=0.2^2$ (a $20$% chance of making it through the first hour times a $20$% chance of making it through the second), and in general $p(t)=0.2^t$. The probability of not getting a ticket in the first half hour is then $p(1/2)=0.2^{1/2}=\sqrt{0.2}\approx 0.4472$, and the probability that you do get a ticket in the first half hour is about $1-0.4472=0.5528$.

-
@Rock: How would you do it? You can’t say that your chance of getting a ticket in two hours is $0.8^2$, since it should obviously be more than $0.8$, and you certainly can’t say that it’s $1.6$, since that’s greater than $1$. It’s much easier to see how your chance of not getting one keeps shrinking. –  Brian M. Scott Jun 4 '12 at 4:23
@Dave: You’re assuming something like full-time checkers with regular routes. Try assuming instead random checks. –  Brian M. Scott Jun 4 '12 at 5:34
+1 for "It really depends on what model is assumed." Without making assumptions, all we can really say is that the probability of getting a ticket in 20 minutes is less than or equal to 80%. An alternative model is there is an approximately 80% chance that the ticket-writer is working today. If the ticket-writer is working there is an approximately 100% chance that you will get a ticket within 5 minutes. –  emory Jun 4 '12 at 6:02
@smdrager, I don't understand. There are uncountable infinite number of models to choose from. Anyway you are not provided with any data to calculate likelihood. –  emory Jun 4 '12 at 18:49
Parking attendants are not memoryless. –  Mark Adler Jun 5 '12 at 4:56

If my probability of getting a parking ticket in a half hour is T, then

$$T+(1-T)T$$

are the odds I got one in 1 hour. The first term says that I got it in the 1st half hour (so it doesn't matter what happens after that), and the second term says that I got it in the 2nd half hour (so not in the first). Solving and taking the sensible solution:

$$2T-T^2=.8\implies T^2-2T+.8$$

$$T=1-\sqrt{.2}$$

Which are roughly $55.3\%$ odds in a half hour.

-
@Joshua Now I have it. The accepted answer gives a general solution which I guess is what the question potentially asked for. –  Rock Jun 4 '12 at 18:26
You've made a Markov assumption, which may or may not be valid. –  Ben Voigt Jun 4 '12 at 23:58
@BenVoigt fair enough, but it's either this, assume extra conditions that weren't specified, or be unable to do anything at all. You always have to assume some model anyway, and in the absence of other information a Markov assumption seems to be the natural choice. Of course not a statistician though, so I wouldn't be surprised if I'm begging to be corrected here. –  Robert Mastragostino Jun 5 '12 at 20:13
Hi @RobertMastragostino, just wanted to let you know that the "Italian Language & Usage" proposal has restarted. Since you committed to the previous proposal, maybe you are still interested. See you! (I hope this comment is not considered as spam: if so, I beg your pardon) –  Lucius Sep 11 '12 at 19:01

Another way of looking at the exponential model: If $P$ is the probability you get lucky and don't get ticketed in the first 30 minutes, then $P^2$ is the chance you luck out twice in a row and don't get ticketed in the first hour. You know $P^2 = 0.2$. So $P$ is the square root of that or $0.447$. So the chance you are unlucky in the first 30 minutes and get a ticket is $1 - 0.447 = 0.553$ or $55.3$ percent.

-
A very clear explanation! –  Simon MᶜKenzie Jun 4 '12 at 7:09
For me the smoothest solution ! –  berkay Jun 4 '12 at 8:29
Thanks.. but to be clear I'm just explaining the exponential model in layman's terms, and I am not suggesting I agree this model is necessarily the "correct" one for the problem. –  Zarrax Jun 4 '12 at 21:18

A simple but not unreasonable model is that the ticket person cycles through her/his round in roughly constant time. Suppose that you park illegally for exactly an hour at a randomly chosen spot in the round, and at a start time uniformly distributed with respect to the cycle. Since your probability of getting a ticket in an hour is $80\%$, the cycle length is $1.25$ hours. Thus your probability of getting a ticket if you park illegally for half an hour is $40\%$.

-
For the people who wonder how your model can give something different: The other answers assume that getting no ticket in the first half of an hour does not increase the chances of getting one in the second half of the hour. In a place where 80% of cars get a ticket within the hour, this is not a very realistic assumption. So, we can rejoice and expect that the probability is closer to 40% than to 55%. –  Phira Jun 4 '12 at 12:35
Another explanation to this: Assume there are 100 illegal cars, so the parking warden can handle 80 tickets per hour (we assume linear distribution of tickets per time) and thus 40 tickets half an hour. If you are one of that cars during that half of an hour ... your risk getting caught is 40/100. –  Nappy Jun 4 '12 at 14:52
IMO from a modeling perspective this is by far the most reasonable answer given. The exponential model seems unreasonable since clearly your hazard (aka force of mortality or failure rate) ought to be increasing over time. –  guy Jun 4 '12 at 16:18
Agreed, @guy. With an exponential decay model of tickets, no matter how long you leave your car on the street, there is some nonzero chance that it will not get a ticket. That's not the behavior of any conceivable real-world method for writing parking tickets (which generally involve somebody walking down the street and ticketing every illegally parked car). –  Larry Gritz Jun 4 '12 at 17:22

There is another way to look at this problem.

Most of the answers of ~55.3% (including the currently accepted answer) assume the "meter reader" is checking cars COMPLETELY at random. In this model, there is an extremely small but non-zero chance you could leave a car in the same spot for a month and not get a ticket (although it's up there in "lottery" winner and struck-by-lightning chances). In fact, the chance of getting a ticket using this model is always less than 100% for a finite amount of time.

However, meter readers typically work in a linear pattern starting at one point and then looking at ALL the cars in a line down one side of a block. If we consider the realistic pattern that cars are checked in a linear fashion instead of cars being checked randomly, the answer becomes much simpler. Therefore, when they completely cover an area (in a finite amount of time), your car has a 100% chance of getting a ticket. If you are 100% likely to get a ticket within a finite amount of time, then the p(t)=1-0.2^t answer for getting a ticket is invalid.

So lets consider linear coverage.

If you have an 80% chance of getting a ticket in one hour, the meter readers in your city walk 4 out of 5 blocks per hour (in 60 minutes). Assuming they follow a pattern which has complete coverage and fairly evenly sweeps the whole parking area, they could have 100% coverage of all parking spots in 75 minutes. That means no matter where you park, within 75 minutes you will get a ticket. Under the linear coverage model, p(t)=0.8t. So in half an hour, you have a 40% chance of getting a ticket.

This is a case of not trying to get too mathematically clever because the simplest answer could actually be the correct one.

The real answer depends whether your meter people ticket cars randomly or sweep areas linearly with even coverage (and gets more complicated with real life where they sweep some areas much more often than others but still get 100% coverage over a finite amount of time).

-

Not enough data to come up with an answer. You would have to know the pattern that the parking warden takes to get the correct answer (first half hour, second half hour), also this depends on which part of the time unit the parking warden would take up, for example 1pm-2pm, 1.05pm-2.05pm etc

80% can reasonable be assumed for an hour, but for half an hour less so.

I would therefore conclude that there is an 80% chance that you will get a ticket as there is no way to distinguish the half hour from the full hour because of lack of data for the movements of the parking warden.

-
Why be pessimistic? Maybe it's your lucky day and there's a zero percent chance. :) –  Zarrax Jun 4 '12 at 21:34
If your a pessimist, there are no unexpected nasty surprises, you will never feel the pain of disappointment, and reality will hold no fear. Abide by the law, there will be a 100% chance of not getting a ticket. :) –  WeNeedAnswers Jun 6 '12 at 11:32
You know that there is an 80% chance of getting a ticket in a hour. Since the full hour encompasses the half hour in question, then it is definably an 80% chance through set theory. Without further data about the parking wardens movements, it is impossible to suggest anything better. –  WeNeedAnswers Jun 7 '12 at 0:36

This sounds like a Poisson Process to me... so, assuming that:

Since we don't have additional data, I will asume that the expected probability of being spotted once per hour is $p=0.8$. This is a Bernoulli experiment (either you get spotted or not). I will model the probability of being spotted by a machine, person, or some other authority that can issue a ticket ;-)

If $\lambda$ is the expected times that you get spotted every hour, then $\theta=\frac{1}{\lambda}\$ is the expected time between events.

The number of events given in $t$ can be modeled by a random variable $N \sim Poisson(\lambda·t)$ where $t$ is the amount of time (in hours) elapsed, and the time between events can be modeled by a random variable $X\sim Exponential(\theta)$.

So, the probability of getting $n$ tickets in $t$ hours, with an expected probability of $\lambda$ that you get a ticket in one hour is: $$Pr\{N=n\ |\ \lambda, t\}=\frac{e^{-\lambda·t}·(\lambda·t)^{n}}{n!}$$ Since we need to calculate the probability of being spotted at least once, we can calculate $1-Pr\{N=0\}$. Then, for $n=0$, $\lambda=0.8$ and $t=0.5$, then: $$1-Pr\{N=0\ |\ \lambda=0.8, t=0.5\}=1-\frac{e^{-0.4}·(0.4)^{0}}{0!}=1-e^{-0.4}\approx0.4918$$

You should notice that, even if you "get spotted" more than once per day, this model still holds, since this process is memoryless.

Further reference: Ross, Sheldon, "Introduction to probability models", Ninth edition, Chapter 5.

(I really hope this is not your homework)

-
A Markov chain is a much better assumption, since I've never heard of multiple tickets being issued to a car (that remains parked in one place) in the same day. Therefore "got 1 ticket" is a terminal state, there is no chance of moving to two tickets. The problem stated that there is an 80% chance of getting a ticket, not that the mean number of tickets is 0.8. Your answer confuses these two quantities. –  Ben Voigt Jun 5 '12 at 0:03
With no further information, the expected value of the tickets per hour is 0.8 (is a Bernoulli experiment). I think the Poisson Process hypothesis holds because all you know is that you may "get caught" with a given probability in a unit of time. Of course you can't be caught more than once a day, but that doesn't implies that you can't be "spotted" n times a day. –  Barranka Jun 5 '12 at 18:35
That said, I'm correcting my answer, because I calculated the probability of "being spotted" once per interval, which is not what we are looking for. The probability we're looking for is "what is the probability of 'being spotted' at least one time", which is 1 - Pr{"Not 'being spotted'"}. –  Barranka Jun 5 '12 at 18:37
@BenVoigt: Unfortunately, in some cities, you can be ticketed multiple times, in the same spot, if your car is still illegally parked. –  Dancrumb Jun 5 '12 at 20:48
You did it wrong. $\lambda$ is not $0.8$. To get $\lambda$, you need to reverse the calculation that you did get right. If the probability of getting a ticket in an hour is $0.8$, then $1-e^{-\lambda t}=0.8$ where $t$ is one hour, so the rate $\lambda$ is $1.61$ tickets per hour. Then we use $1-e^{-\lambda t}$ with $t$ equal to half an hour. We get $1-e^{\lambda{1\over 2}hr}$ is $0.553$. The same as the exponential examples above, since it is the same memoryless assumption. –  Mark Adler Jun 6 '12 at 5:09

## protected by Asaf KaragilaJun 5 '12 at 16:34

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.