
The greedy allocation loses to the patient one when the discount is high
Source:R/ledger_scan2.R
morie_myopic_example.RdGreedy: reward 1 now then 1/2 forever; patient: 0 now then 1 forever. Values
\(1 + \gamma/(2(1-\gamma))\) and \(\gamma/(1-\gamma)\); the patient action
wins iff \(\gamma > 2/3\) (Research.P4.Bellman.myopic_suboptimal).
Examples
morie_myopic_example(gamma = c(0.5, 2 / 3, 0.9))
#> gamma greedy patient patient_better
#> 1 0.5000000 1.5 1 FALSE
#> 2 0.6666667 2.0 2 FALSE
#> 3 0.9000000 5.5 9 TRUE