1. Intro 1: Modeling, Guesstimation, and Fermi Problems¶
ISE 754, Fall 2024
- See Julia page in the Moodle General section for instructions on installing Julia.
Fermi Problems¶
Fermi Problems, named after the physicist Enrico Fermi, are inspired guesses about quantities that seem almost impossible to determine given the limited data that you have available. Solving a Fermi Problem involves guesstimation of the input parameters needed and back-of-the-envelope type approximations.
- The goal is to have an answer that is within an order of magnitude of the correct answer (or what is termed a zeroth-order approximation).
- It works because the over- and under-estimations of each parameter tend to cancel each other out as long as there is no consistent bias.
Ex 1: How many McDonald’s restaurants in U.S.?
# Parameters (note: orders includes in-store and drive-thru)
LB = 1; UB = 350 # Bounds on per capita demand (order/person-yr)
@show f = sqrt(LB*UB) # Annual per capita demand (order/person-yr)
q = 3e8 # U.S. population (person)
H = 16 # Operating hours per day (hr/day)
r = 1 # Orders per store per minute (order/store-min)
# Analysis
@show q*f # Annual U.S. demand (order/yr)
@show q*f/365 # Daily U.S. demand (order/day)
@show H*60*r # Daily demand per store (order/store-day)
(q*f/365)/(H*60*r) # Est. number of U.S. stores (store)
f = sqrt(LB * UB) = 18.708286933869708 q * f = 5.6124860801609125e9 (q * f) / 365 = 1.5376674192221679e7 H * 60 * r = 960
16017.368950230915
“Reasonable” guesstimates can be made for all of the parameters needed to make the estimation except for customer demand; as a result, the geometric mean of the estimated lower and upper bounds on demand is used as the estimate. The actual number of McDonald’s restaurants in the U.S. as of 2013 is 14,267, which is around 10% below the estimate. A key assumption in the analysis is that the number of McDonald’s restaurants in the U.S. has reached market saturation, allowing the entire U.S. population to be used as the customer base.
System Performance Estimation¶
Often easy to estimate performance of a new system if can assume either perfect (LB) or no control (practical UB), as opposed trying to develop a more detailed model of performance.
Ex 2: Estimate the waiting time for a bus
If, during the morning rush, there are five buses operating on Wolfline Route 13 and it takes them 40 minutes, on average, to complete one circuit of the route, what is the estimated waiting time for a student who does not use TransLoc for real-time bus tracking?
- $ \frac{40}{5} = 8 $ min. avg. time (aka “headway”) between buses
- Customers arrive at random (assuming no web-based bus tracking)
- Perfect control (LB): wait time = half of headway = 8/2
- No control (practical UB): wait time = headway = 8
- Assuming buses arrive at random (Poisson process)
- Bad control can result in higher values than no control
headway = 8
LB = headway/2 # perfect control
UB = headway
Estimated_wait_time = sqrt(LB*UB) # (min)
5.656854249492381
Ex 3: Amount spent per grocery trip
Estimate the average amount spent per trip to a grocery store. Total U.S. supermarket sales were recently determined to be $649,087,000,000, but it is not clear whether this number refers to annual sales, or monthly, or weekly sales.
@show 6.5e11/3e8 # ($/person-yr)
LB = 1; UB = 7 # (trips/wk)
@show sqrt(LB*UB)
@show sqrt(LB*UB)*52
(6.5e11/3e8)/(sqrt(LB*UB)*52) # ($/person-trip) => Likely annual sales
6.5e11 / 3.0e8 = 2166.6666666666665 sqrt(LB * UB) = 2.6457513110645907 sqrt(LB * UB) * 52 = 137.5790681753587
15.748519708717799
Note: the solution on the slide for this problem was done back of the envelope without a calcuator (or Julia)