Skip to content

Instantly share code, notes, and snippets.

@dangoldin
Created March 3, 2012 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangoldin/1964013 to your computer and use it in GitHub Desktop.
Save dangoldin/1964013 to your computer and use it in GitHub Desktop.
Ticket checking vs fining
N = number of passengers
p = ticket price
c = % of passengers that will be checked for a ticket
v = % of passengers that are violators
F = fine
Np = Np(1-c)(1-v) + Npc(1-v) + Ncv*F
Solving for F, we get that F = p/c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment