As Pete Mack notes, there are actually two cognitive biases occurring here. The first is the one that convinces people that failing a 5% spell 7 times in a row during gameplay is a statistically reasonable trial from which to derive that the RNG is failing. The second is, of course, "everyone has reported unusual rng results". I have not. I imagine many other people on this forum have not. However, those that do are more remarkable, and so they seem more common than they actually are. In order to perhaps correct that perception, I will now report RNG results.
I just started a new mage run today, inspired by this thread. That character is now clvl 26 and with 18/70 INT, and has 4% fail on detect monsters. I made a keymap that casts detect monsters 5 times. I then pressed it many many times, counting each time that it failed. It failed 13 times within the first 335 casts (I cast it a bunch of times after as well because I was running through my whole mana and it didn't fail after, but those don't count because I decided to run 335 casts). I'm not actually any good at stats, but I'm pretty sure 13 failures is what you'd expect from a fair dice roll. There were no apparent anomalies during the test, though since I wasn't testing for those, it doesn't really matter.
list of bugs and wishes
Collapse
X
-
We do play the game. And we recognize both confirmation bias and reporting bias. If want to test the RNG, put it through an autocorrelator with N = 100. The bottom line is the Mersenne twister has been tested by people who know a lot more statistics than you and I.Leave a comment:
-
Civ 2 lied to everyone for years and it turned out that the computer *was* in fact cheating. The same did BloodBowl.
Anyway, the "people find patterns" applies to randomly tested unaware people, and i must point out that .. we are none of those. I put it to you that the average angband player is far more likely to have confidence with maths and abstract concepts than your typical God Of War player.
Im sorry pal but when yet again i fail 7 times a 5% spell, those things dont go unnoticed.
If you guys Really want to do some testing... play a game. A whole game, from town to morgoth. And write down everything.
You've done your lab test, now it's time for field testing.Leave a comment:
-
Nick nailed it. A 1 in 10,000,000 chance for an event that is not specified in advance is not actually 1 in 10,000,000 at all. And it is happening in a game with roughly 100k moves, which reduces the per-game chance by a lot. And it is happening to one player on a forum, rather than one in isolation. We have to *expect* to see these events fairly regularly, be it a 1% fail repeated 5 times, or a ring of speed +24...or Dwarven PDSM.Leave a comment:
-
Actually, no. Humans are built to recognise patterns; if there is no actual pattern, we will still find one. The correct thing to do is to have a mathematically sound source of randomness, check the implementation from time to time, and otherwise accept that people will continue to tell you that the RNG is broken
Leave a comment:
-
As far as I understand (I didn't write the code) the RNG does one call to time() in Rand_init() when the game is started, then it's all state-based. If I read the branches correctly it uses this RNG.All you've proven is that under controlled test circumstances the rng doesnt fail.
I hope it's evident why that isnt enough.
Everyone has reported unusual rng results. At some point you gotta accept that it's not an epidemic of bias and something in the code is doing something it shouldnt. And god knows what it is. What is the rng based on anyway, system clock? That has to go through the OS which could unwittingly manipulate the results.
Empyrical observation does have its merits, y'know.
Oh btw congrats PowerWyrm on a 1:10,000,000,000 chance.Leave a comment:
-
All you've proven is that under controlled test circumstances the rng doesnt fail.Ran some tests: created a human mage, advanced him with debug commands to lvl21 and enough int to get 4% failure rate, and cast detect monsters 335 times. Got 14 failures. p-value of 0.47. Verdict: the RNG seems to work OK. Complaint "refuted by an appeal to advanced mathematical statistics".
I hope it's evident why that isnt enough.
Everyone has reported unusual rng results. At some point you gotta accept that it's not an epidemic of bias and something in the code is doing something it shouldnt. And god knows what it is. What is the rng based on anyway, system clock? That has to go through the OS which could unwittingly manipulate the results.
Empyrical observation does have its merits, y'know.
Oh btw congrats PowerWyrm on a 1:10,000,000,000 chance.Leave a comment:
-
Note: I've already failed a spell with 1% failure rate five times in a row
Leave a comment:
-
I don't follow you. These are independent trials, so their exact distribution is binomial/Bernoulli. I'm not approximating anything with a normal. 0.11% is what is returned byFor low probability events, a poisson distribution is generally appropriate. It always has a fat tail (because you can't have fewer than zero events.) Yes, it will eventually converge to normal (as any distribution will.) But even at expectation value E=14, while the curve looks close to normal, the tail is significantly fatter at 1.5*E. The estimate of 0.11% is too low by a significant amount.
Code:scipy.stats.binom_test(26,335,0.04, alternative='greater')
Leave a comment:
-
For low probability events, a poisson distribution is generally appropriate. It always has a fat tail (because you can't have fewer than zero events.) Yes, it will eventually converge to normal (as any distribution will.) But even at expectation value E=14, while the curve looks close to normal, the tail is significantly fatter at 1.5*E. The estimate of 0.11% is too low by a significant amount.Leave a comment:
-
Ran some tests: created a human mage, advanced him with debug commands to lvl21 and enough int to get 4% failure rate, and cast detect monsters 335 times. Got 14 failures. p-value of 0.47. Verdict: the RNG seems to work OK. Complaint "refuted by an appeal to advanced mathematical statistics".
Leave a comment:
-
BTW: for the rest one turn keymap, I suggest 's', and make it rest 5 or 10 turns (or until disturbed.) I used to use the old search command for this all the time: wait until a nearby monster moves, or appears around a corner .Leave a comment:
-
As an expert in advanced mathematics
, the binomial test for 26 failures out of 335 at 4% failure rate gives a one-sided p-value of 0.00114. This means that you can expect to observe 26 or more failures about 0.11% of the times.
Usually, in a single, non-repeated experiment, a result is considered statistically significant if the p-value is 0.05 or below. So yes, that seems a statistically unusually high failure rate, and worth investigating. There is usually a reporting bias, in that only 'unusual' results get reported to the devs, so the best thing would be collecting completely new data to test it.Last edited by fph; October 28, 2018, 22:21.Leave a comment:
-
OK, here's a response to the first list:
Filed as bugs.01 - map view often doesn't refresh correctly: you can see your own character in there a lot of times, and sometimes remains are left of beam/cone attacks. CTRL-R corrects the errors. Apparently erasing changes from the previous turn is imperfect.
02 - outdated dungeon.txt:
* "Each level has at least one up staircase and at least two down staircases. There are no exceptions to this rule." Level 99, 100 and 127 are, I believe, exceptions. But several types of special map levels might not have 2 downstairs either. Notably a maze level always seems to have exactly 1 up and one down stairs.
* The whole file also is based in the character interface, ignoring tiles. It should e.g. mention that with tiles you can see the visuals under '~', 'display xxx knowledge', select one item and press 'v'.
Should be fixed, but doesn't seem to be - bug reopened.
Making a keymap for resting one turn should work.05 - if there is a bunch of monsters, I am often in a corridor get only one attacking me, resting until the next one steps in. Their drops are piling gradually, and when there is more than one item under me, the screen gets redrawn every time because it displays the list of items under me. I wish there was at least one wait command key (of the '5', ',' or '.') that I can use to rest without picking up.
I don't necessarily see this as a problem, but will consider it with the monster list revamp.
I don't think I quite understand this one.
Sounds sensible.
Because 'm' is the real command, and 'p' is just mapped to it. With new classes coming in it may be best to remove the 'p' command altogether.
Monster level is displayed, once learned (from killing one, IIRC).10 - Wish: display monster level in monster memory (esp. with uniques). If there is not enough room, I wouldn't mind the monster symbol being removed, but I think both should fit. Especially with uniques it helps to quickly see which you might expect on your current dungeon level.
I think it has been mentioned that you can achieve this by using an old save file. The defaults are actually currently compiled into the game; it's possible that they will be in a player-editable file at some time in the future.
This has been requested before, and is problematic for player damage to monsters because spells sometimes don't have defined targets. It probably could be implemented for monster damage to the player.
This is a perennial issue, affected by many things. It's a constant balancing act, and will remain so. I do listen to specific complaints13 - treasure balance seems off: too many weapons compared to armor pieces (you need 6 armor pieces compared to 1 weapon, so it would seem better if they occur 6x as often too, but they seem to have similar occurences currently). For artifacts my high level mage has found 25 weapons, 4 shooters, 28 armor and 4 miscellaneous (light, ring, amulet). I would also prefer not to find at least one of the *thanc daggers at one of the first levels so often; then all the fun disappears of first finding one with bonuses, then the first ego, and finally the artifacts.
Filed as a change to be made.
The usual argument for this is that they are not intended as a first source of the four basic resistances, but rather as a way of using the amulet slot to get the basics and free up other slots from having to cover them. I suspect that is still a decent argument.15 - Amulets of resistance are way too high level for their worth: since most artifact armors, shields, and even many ego armors, shields and cloaks offer the same elemental resistances, by the time you reach level 60 no one is ever going to need them. 10 levels later than resist acid en lightning, so 20, seems more appropriate. Or perhaps it should have 1 or 2 random extra resistances?
They really only of any use early - maybe that's OK though.16 - in principle it is a good thing that slow digestion is powered up, but still there is so much food found in the dungeon, not to mention loads of satisfy hunger scrolls, that even a half-troll warrior is unlikely to sacrifice a ring or amulet slot for it. Perhaps the ring and amulet should have some minor extra power, like slow poison?
This is a common complaint, usually refuted by an appeal to advanced mathematical statistics17 - spell failure chances seem higher than the spellbook mentions. I tested this with a 21st level mage with listed spell failure of 4% on detect monsters, with no negative effects present as far as I could see. I cast it in total 335 times in a row, and had 26 failures, which amounts to more than 7% - almost twice as much as listed.
This has been noted before, I've filed it as a bug.18 - stores will not accept unidentified armor, not even for free. (I had a robe [2,+2] {??} that wasn't accepted until I happened to find out the rune in another way. It was resist fire.) I think they should, just like unidentified negative potions, scrolls, wands, etc. are bought. This is also contrary to the description in dungeon.txt. Weapons that are partially unknown and contain a curse are also unsellable.
Answered upthread; it's to avoid conflict with shop commands.
I'll get onto the rest of the list soon.Leave a comment:
Leave a comment: