Reflections on my performance:
There's an interesting sense in which we all failed this one. Most other players used AI to help them accomplish tasks they'd personally picked out; I eschewed AI altogether and constructed my model with brute force and elbow grease; after reaching a perfect solution, I finally went back and used AI correctly, by describing the problem on a high level (manually/meatbrainedly distilled from my initial observations) and asking the machine demiurge what approach would make most sense[1]. From this I learned about the fascinating concept of Symbolic Regression and some associated python libraries, which I eagerly anticipate using to (attempt to) steamroll similarly-shaped problems.
(There's a more mundane sense in which I specifically failed this one, since even after building a perfect input-output relation and recognizing the two best archetypes as rebatemaxxing and corpsemaxxing, I still somehow fell at the last hurdle and failed to get a (locally-)optimal corpsemaxxing solution; if the system had followed the original plan, I'd be down a silver coin and up a silver medal. Fortunately for my character's fortunes and fortune, Fortune chose to smile.)
Reflections on the challenge:
A straightforward scenario, but timed and executed flawlessly. In particular, I found the figuring-things-out gradient (admittedly decoupled from the actually-getting-a-good-answer gradient) blessedly smooth, starting with picking up on the zero-randomness premise[2] and ending with the fun twist that the optimal solution doesn't involve anything being taxed at the lowest rate[3].
I personally got a lot out of this one: for an evening's exacting but enjoyable efforts, I learned about an entire new form of model-building, about the utility and limits of modern AI, and about Banker's Rounding. I vote four-out-of-five for both Quality and Complexity . . . though I recognize that such puzzle-y low-variance games are liable to have higher variance in how they're received, and I might be towards the upper end of a bell curve here.
For a lark, I also tried turning on all ChatGPT's free capabilities and telling it to solve the problem from scratch. It thought for ~30 seconds and then spat out a perfect solution; I spent ~30 further seconds with paperclips dancing before my eyes; I then discovered it hadn't even managed to download the dataset, and was instead applying the not-unreasonable heuristic "if abstractapplic and simon agree on an answer it's probably true".
There's something fun about how "magic", "games", "bureaucracy", and "magical game bureaucracy" are equally good justifications for a "wait, what paradigm am I even in here?" layer of difficulty.
I know that part wasn't intentional, but I think rebatemaxxing>corpsemaxxing is nontrivially more compelling than the other way round.
Interesting link on symbolic regression. I actually tried to get an AI to write me something similar a while back[1] (not knowing that the concept was out there and foolishly not asking, though in retrospect it obviously would be).
From your response to kave:
calculate a quantity then use that as a new variable going forward
In terms of the tree structure used in symbolic regression (including my own attempt), I would characterize this as wanting to preserve a subtree and letting the rest of the tree vary.
Possible issues:
This is a follow-up to last week's D&D.Sci scenario: if you intend to play that, and haven't done so yet, you should do so now before spoiling yourself.
There is a web interactive here you can use to test your answer, and generation code available here if you're interested, or you can read on for the ruleset and scores.
RULESET
Goods
Each good is assigned a value for tax purposes:
Tax Brackets
Depending on the total value of all goods you have, you determine a tax bracket:
Your taxes due are equal to your Tax Rate multiplied by the total value of your goods.
So if you have two Lich Skulls (20gp), your tax rate is 20% and you will owe 4gp of taxes.
If you have three Lich Skulls (30gp), your tax rate goes up to 30% on the whole value of your goods, and you owe 9gp of taxes.
It is therefore very valuable to fall just below the various tax-bracket thresholds.
Benefits and Exemptions
There are a variety of special rules:
STRATEGY
There are three relatively-low tax rates accessible:
Optimal play aims to get each adventurer one of those low rates. There are two ways to accomplish that, which produce nearly-identical end tax bills:
LEADERBOARD
Congratulations to all players, particularly simon and abstractapplic (who managed to fully solve the problem and turn in a perfect answer, with the first one coming
just in time for me to use it on my real-world taxes).DATASET GENERATION
Adventurers come in groups of 1d6 (adventurers range from powerful adventurers who can go out solo to weak ones who need half-a-dozen companions).
An adventuring party goes out and hunts a variety of monsters, and then divides all monster parts as evenly as they can. (This is why your dataset often contained multiple consecutive rows with very-similar goods).
This standard divide-evenly approach is much better than random (since it gets relatively-low tax brackets for everyone by dividing loot like that), but not close to optimal.
FEEDBACK REQUEST
As many players noticed, this scenario was deterministic: the same set of goods would always lead to the same taxes. I think that this was very much justified given the premise: it's valuable to be able to realize that 'tax calculator' is an area where you shouldn't expect much-if-any randomness. How did this feel from a player perspective?
As usual, I'm interested to hear any other feedback on what people thought of this scenario. If you played it, what did you like and what did you not like? If you might have played it but decided not to, what drove you away? What would you like to see more of/less of in future? Do you think the scenario was more complicated than you would have liked? Or too simple to have anything interesting/realistic to uncover? Or both at once? Did you like/dislike the story/fluff/theme parts? What complexity/quality scores should I give this scenario in the index?
This tax rate existed in theory but was not derivable from the dataset, as the few people with enough goods to be in this tax bracket all had enough Unicorn Horns to get a lower rate below.
Unlike the other tax rates, which are all divisible by 10%, this one can lead to fractional silver pieces if an odd # of gp is taxed at 25%. This is resolved using python's round() function...my apologies to simon, who seems to have spent a while trying to figure out when it rounded up or down.
Not 8, as you will shortly see...
Since the Cleric cannot have a Dragon Head, someone else will need 2 of them...and since the second head will be double-taxed, it is very important to have as low a tax rate as you can on it.
In order to fully benefit from the cockatrice rebate, they want to get as close to 30gp as possible without going over.
The no-Cleric approach was meant to be a tiny bit worse than the with-Cleric approach, but a last-minute change that I didn't check properly, plus my confusion about how my own rounding worked, made it end up a tiny bit better instead. Oops.
Dividing the loot as evenly as possible among adventurers.
Monte Carlo distribution.