| Les probas sont nos amies (parfois) | |
|
|
Auteur | Message |
---|
Karibu Célébrité encapée
Messages : 166
| Sujet: Les probas sont nos amies (parfois) Jeu 17 Déc - 17:37 | |
| Salut, Pour me faire un peu plaisir et toujours dans la quête de la curve idéale (qui n'existe pas, mais tant pis), j'ai codé un script qui fait des simulations de tirage Mon premier problème : - Je mets N cartes de coût X dans mon deck - Quelle est la proba d'avoir dans ma main une carte de coût X au tour X ? (c'est à dire au tour où je peux le jouer) Yoda nous dira sans doute que ce genre de proba est assez élémentaire, mais je suis nul en calcul de probas, et ça me permettait de commencer par quelque chose de simple à coder, pour évoluer petit à petit. D'ailleurs si quelqu'un peut vérifier ça mathématiquement pour s'assurer que mon code n'est pas foireux, ça m'intéresse ! Le chiffre au début de chaque ligne c'est N, le nombre de cartes du coût X attendu qu'on a mis dans le deck - Chances to have in hand a card with cost X on turn X - Going first:
Tested cost : 1 0 OK : 0 % 1 OK : 12 % 2 OK : 22 % 3 OK : 32 % 4 OK : 39 % 5 OK : 48 % 6 OK : 54 % 7 OK : 60 % 8 OK : 65 % 9 OK : 71 % 10 OK : 74 % 11 OK : 78 % 12 OK : 81 % 13 OK : 83 % 14 OK : 87 % 15 OK : 88 % 16 OK : 90 % 17 OK : 92 % 18 OK : 93 % 19 OK : 94 % 20 OK : 95 %
Tested cost : 2 0 OK : 0 % 1 OK : 15 % 2 OK : 28 % 3 OK : 40 % 4 OK : 49 % 5 OK : 58 % 6 OK : 64 % 7 OK : 70 % 8 OK : 75 % 9 OK : 80 % 10 OK : 83 % 11 OK : 86 % 12 OK : 89 % 13 OK : 91 % 14 OK : 92 % 15 OK : 94 % 16 OK : 95 % 17 OK : 96 % 18 OK : 97 % 19 OK : 98 % 20 OK : 98 %
Tested cost : 3 0 OK : 0 % 1 OK : 18 % 2 OK : 33 % 3 OK : 47 % 4 OK : 55 % 5 OK : 65 % 6 OK : 72 % 7 OK : 77 % 8 OK : 82 % 9 OK : 87 % 10 OK : 89 % 11 OK : 91 % 12 OK : 94 % 13 OK : 95 % 14 OK : 96 % 15 OK : 97 % 16 OK : 98 % 17 OK : 98 % 18 OK : 99 % 19 OK : 99 % 20 OK : 99 %
Tested cost : 4 0 OK : 0 % 1 OK : 22 % 2 OK : 39 % 3 OK : 53 % 4 OK : 64 % 5 OK : 72 % 6 OK : 78 % 7 OK : 83 % 8 OK : 88 % 9 OK : 91 % 10 OK : 93 % 11 OK : 95 % 12 OK : 96 % 13 OK : 97 % 14 OK : 98 % 15 OK : 98 % 16 OK : 99 % 17 OK : 99 % 18 OK : 99 % 19 OK : 100 % 20 OK : 100 %
Tested cost : 5 0 OK : 0 % 1 OK : 25 % 2 OK : 44 % 3 OK : 59 % 4 OK : 70 % 5 OK : 77 % 6 OK : 84 % 7 OK : 88 % 8 OK : 91 % 9 OK : 94 % 10 OK : 96 % 11 OK : 97 % 12 OK : 98 % 13 OK : 99 % 14 OK : 99 % 15 OK : 100 % 16 OK : 100 %
Tested cost : 6 0 OK : 0 % 1 OK : 28 % 2 OK : 49 % 3 OK : 64 % 4 OK : 75 % 5 OK : 83 % 6 OK : 88 % 7 OK : 92 % 8 OK : 95 % 9 OK : 96 % 10 OK : 98 % 11 OK : 98 % 12 OK : 99 % 13 OK : 99 % 14 OK : 100 % 15 OK : 100 %
Tested cost : 7 0 OK : 0 % 1 OK : 32 % 2 OK : 53 % 3 OK : 68 % 4 OK : 80 % 5 OK : 87 % 6 OK : 91 % 7 OK : 94 % 8 OK : 96 % 9 OK : 98 % 10 OK : 98 % 11 OK : 99 % 12 OK : 100 % 13 OK : 100 %
Tested cost : 8 0 OK : 0 % 1 OK : 35 % 2 OK : 59 % 3 OK : 74 % 4 OK : 83 % 5 OK : 89 % 6 OK : 94 % 7 OK : 96 % 8 OK : 98 % 9 OK : 99 % 10 OK : 99 % 11 OK : 99 % 12 OK : 100 % 13 OK : 100 %
- Chances to have in hand a card with cost X on turn X - Going second.:
En gros c'est pareil, mais tous les résultats sont décalés : la proba pour X=2 going second est celle pour X=1 going first, puisqu'on pioche
Tested cost : 1 0 OK : 0 % 1 OK : 15 % 2 OK : 28 % 3 OK : 41 % 4 OK : 49 % 5 OK : 57 % 6 OK : 65 % 7 OK : 70 % 8 OK : 75 % 9 OK : 80 % 10 OK : 83 % 11 OK : 86 % 12 OK : 88 % 13 OK : 90 % 14 OK : 92 % 15 OK : 94 % 16 OK : 95 % 17 OK : 96 % 18 OK : 97 % 19 OK : 98 % 20 OK : 98 %
Tested cost : 2 0 OK : 0 % 1 OK : 18 % 2 OK : 34 % 3 OK : 45 % 4 OK : 57 % 5 OK : 65 % 6 OK : 72 % 7 OK : 78 % 8 OK : 82 % 9 OK : 85 % 10 OK : 89 % 11 OK : 91 % 12 OK : 94 % 13 OK : 95 % 14 OK : 96 % 15 OK : 97 % 16 OK : 98 % 17 OK : 98 % 18 OK : 99 % 19 OK : 99 % 20 OK : 99 %
Tested cost : 3 0 OK : 0 % 1 OK : 22 % 2 OK : 39 % 3 OK : 53 % 4 OK : 63 % 5 OK : 72 % 6 OK : 79 % 7 OK : 84 % 8 OK : 88 % 9 OK : 91 % 10 OK : 93 % 11 OK : 95 % 12 OK : 96 % 13 OK : 97 % 14 OK : 98 % 15 OK : 99 % 16 OK : 99 % 17 OK : 99 % 18 OK : 100 % 19 OK : 100 %
Tested cost : 4 0 OK : 0 % 1 OK : 25 % 2 OK : 44 % 3 OK : 58 % 4 OK : 69 % 5 OK : 78 % 6 OK : 84 % 7 OK : 88 % 8 OK : 92 % 9 OK : 94 % 10 OK : 96 % 11 OK : 97 % 12 OK : 98 % 13 OK : 99 % 14 OK : 99 % 15 OK : 99 % 16 OK : 100 % 17 OK : 100 %
Tested cost : 5 0 OK : 0 % 1 OK : 29 % 2 OK : 49 % 3 OK : 64 % 4 OK : 75 % 5 OK : 82 % 6 OK : 88 % 7 OK : 92 % 8 OK : 95 % 9 OK : 96 % 10 OK : 98 % 11 OK : 98 % 12 OK : 99 % 13 OK : 99 % 14 OK : 100 % 15 OK : 100 %
Tested cost : 6 0 OK : 0 % 1 OK : 31 % 2 OK : 54 % 3 OK : 69 % 4 OK : 80 % 5 OK : 85 % 6 OK : 91 % 7 OK : 94 % 8 OK : 97 % 9 OK : 98 % 10 OK : 98 % 11 OK : 99 % 12 OK : 99 % 13 OK : 100 % 14 OK : 100 %
Tested cost : 7 0 OK : 0 % 1 OK : 35 % 2 OK : 58 % 3 OK : 74 % 4 OK : 84 % 5 OK : 90 % 6 OK : 94 % 7 OK : 96 % 8 OK : 98 % 9 OK : 98 % 10 OK : 99 % 11 OK : 100 % 12 OK : 100 %
Tested cost : 8 0 OK : 0 % 1 OK : 38 % 2 OK : 63 % 3 OK : 77 % 4 OK : 87 % 5 OK : 92 % 6 OK : 96 % 7 OK : 97 % 8 OK : 98 % 9 OK : 99 % 10 OK : 99 % 11 OK : 100 % 12 OK : 100 %
On peut aussi lire cette simulation autrement : si je mets N=1/2/3/4 copies d'une même carte dans mon deck, quelle est la chance d'avoir cette carte en main au tour où je peux la jouer ? Il faudrait d'ailleurs que je fasse la même chose en mettant en regard le risque de l'avoir en double dans la main à ce moment là
Dernière édition par Karibu le Lun 11 Jan - 20:28, édité 1 fois | |
|
| |
Karibu Célébrité encapée
Messages : 166
| Sujet: Re: Les probas sont nos amies (parfois) Lun 21 Déc - 13:05 | |
| J'ai testé avec un outil de calcul de probas en ligne, les résultats sont conformes aux valeurs annoncées (Louis Szymansky sera rassuré) | |
|
| |
Nethian Pilier de comptoir
Messages : 5
| Sujet: Re: Les probas sont nos amies (parfois) Lun 21 Déc - 13:55 | |
| "les résultats sont correcks" Tu peux faire le même boulot avec nick et mantis en *4 dans le deck? Vu que c'est à ce jeux que l'on va jouer. | |
|
| |
Karibu Célébrité encapée
Messages : 166
| Sujet: Re: Les probas sont nos amies (parfois) Lun 21 Déc - 14:00 | |
| Tu veux une mantis T2, et un Nick T3 ? Je regarderai ça | |
|
| |
Ser Logan Héros débutant
Messages : 101
| Sujet: Re: Les probas sont nos amies (parfois) Lun 21 Déc - 17:53 | |
| Il faut alors aussi intégrer une Avenger Mansion ou une Academy T1, T2 ou T3 pour que ça soit pertinent sinon ton Nick sert à rien et passe dans la catégorie des cartes mortes pour tes stats... | |
|
| |
Karibu Célébrité encapée
Messages : 166
| Sujet: Re: Les probas sont nos amies (parfois) Dim 10 Jan - 18:49 | |
| J'ai bidouillé et fait tourner le bousin, sauf erreur de ma part, ça donne ça
Si tu commences, Chance to get Mantis T2, Nick Fury T3 with Academy: 13.69 %
Si tu commences pas, Chance to get Mantis T2, Nick Fury T3 with Academy: 21.06 %
Ah mince, j'avais oublié l'avengers mansion ! Bon c'est comme si on avait 8 Academy dans le deck en fait, et ça donne alors :
Si tu commences, Chance to get Mantis T2, Nick Fury T3 with Academy/Mansion: 20.282 %
Si tu commences pas, Chance to get Mantis T2, Nick Fury T3 with Academy/Mansion: 29.649 % | |
|
| |
Karibu Célébrité encapée
Messages : 166
| Sujet: Re: Les probas sont nos amies (parfois) Lun 11 Jan - 20:26 | |
| Je continue à m'amuser... je me demandais combien de copies d’une même carte on risquait d’avoir en main à un tour donné, si jamais on en jouait X dans le deck Pour X = 4 exemplaires dans le deck - Spoiler:
Turn tested :1 Chance to get exactly 0 copy of card TARGET at turn 1 : 60 % Chance to get exactly 1 copy of card TARGET at turn 1 : 34 % Chance to get exactly 2 copy of card TARGET at turn 1 : 6 % Chance to get exactly 3 copy of card TARGET at turn 1 : 0 % Chance to get exactly 4 copy of card TARGET at turn 1 : 0 %
Turn tested :2 Chance to get exactly 0 copy of card TARGET at turn 2 : 51 % Chance to get exactly 1 copy of card TARGET at turn 2 : 38 % Chance to get exactly 2 copy of card TARGET at turn 2 : 9 % Chance to get exactly 3 copy of card TARGET at turn 2 : 1 % Chance to get exactly 4 copy of card TARGET at turn 2 : 0 %
Turn tested :3 Chance to get exactly 0 copy of card TARGET at turn 3 : 43 % Chance to get exactly 1 copy of card TARGET at turn 3 : 42 % Chance to get exactly 2 copy of card TARGET at turn 3 : 13 % Chance to get exactly 3 copy of card TARGET at turn 3 : 2 % Chance to get exactly 4 copy of card TARGET at turn 3 : 0 %
Turn tested :4 Chance to get exactly 0 copy of card TARGET at turn 4 : 37 % Chance to get exactly 1 copy of card TARGET at turn 4 : 43 % Chance to get exactly 2 copy of card TARGET at turn 4 : 17 % Chance to get exactly 3 copy of card TARGET at turn 4 : 3 % Chance to get exactly 4 copy of card TARGET at turn 4 : 0 %
Turn tested :5 Chance to get exactly 0 copy of card TARGET at turn 5 : 31 % Chance to get exactly 1 copy of card TARGET at turn 5 : 44 % Chance to get exactly 2 copy of card TARGET at turn 5 : 21 % Chance to get exactly 3 copy of card TARGET at turn 5 : 4 % Chance to get exactly 4 copy of card TARGET at turn 5 : 0 %
Turn tested :6 Chance to get exactly 0 copy of card TARGET at turn 6 : 25 % Chance to get exactly 1 copy of card TARGET at turn 6 : 43 % Chance to get exactly 2 copy of card TARGET at turn 6 : 25 % Chance to get exactly 3 copy of card TARGET at turn 6 : 6 % Chance to get exactly 4 copy of card TARGET at turn 6 : 0 %
Turn tested :7 Chance to get exactly 0 copy of card TARGET at turn 7 : 21 % Chance to get exactly 1 copy of card TARGET at turn 7 : 41 % Chance to get exactly 2 copy of card TARGET at turn 7 : 29 % Chance to get exactly 3 copy of card TARGET at turn 7 : 8 % Chance to get exactly 4 copy of card TARGET at turn 7 : 1 %
Turn tested :8 Chance to get exactly 0 copy of card TARGET at turn 8 : 17 % Chance to get exactly 1 copy of card TARGET at turn 8 : 39 % Chance to get exactly 2 copy of card TARGET at turn 8 : 32 % Chance to get exactly 3 copy of card TARGET at turn 8 : 10 % Chance to get exactly 4 copy of card TARGET at turn 8 : 1 %
Pour X = 3 exemplaires dans le deck - Spoiler:
Turn tested :1 Chance to get exactly 0 copy of card TARGET at turn 1 : 68 % Chance to get exactly 1 copy of card TARGET at turn 1 : 28 % Chance to get exactly 2 copy of card TARGET at turn 1 : 3 % Chance to get exactly 3 copy of card TARGET at turn 1 : 0 %
Turn tested :2 Chance to get exactly 0 copy of card TARGET at turn 2 : 61 % Chance to get exactly 1 copy of card TARGET at turn 2 : 33 % Chance to get exactly 2 copy of card TARGET at turn 2 : 5 % Chance to get exactly 3 copy of card TARGET at turn 2 : 0 %
Turn tested :3 Chance to get exactly 0 copy of card TARGET at turn 3 : 54 % Chance to get exactly 1 copy of card TARGET at turn 3 : 37 % Chance to get exactly 2 copy of card TARGET at turn 3 : 8 % Chance to get exactly 3 copy of card TARGET at turn 3 : 0 %
Turn tested :4 Chance to get exactly 0 copy of card TARGET at turn 4 : 48 % Chance to get exactly 1 copy of card TARGET at turn 4 : 41 % Chance to get exactly 2 copy of card TARGET at turn 4 : 11 % Chance to get exactly 3 copy of card TARGET at turn 4 : 1 %
Turn tested :5 Chance to get exactly 0 copy of card TARGET at turn 5 : 42 % Chance to get exactly 1 copy of card TARGET at turn 5 : 43 % Chance to get exactly 2 copy of card TARGET at turn 5 : 14 % Chance to get exactly 3 copy of card TARGET at turn 5 : 1 %
Turn tested :6 Chance to get exactly 0 copy of card TARGET at turn 6 : 36 % Chance to get exactly 1 copy of card TARGET at turn 6 : 45 % Chance to get exactly 2 copy of card TARGET at turn 6 : 17 % Chance to get exactly 3 copy of card TARGET at turn 6 : 2 %
Turn tested :7 Chance to get exactly 0 copy of card TARGET at turn 7 : 31 % Chance to get exactly 1 copy of card TARGET at turn 7 : 45 % Chance to get exactly 2 copy of card TARGET at turn 7 : 21 % Chance to get exactly 3 copy of card TARGET at turn 7 : 3 %
Turn tested :8 Chance to get exactly 0 copy of card TARGET at turn 8 : 27 % Chance to get exactly 1 copy of card TARGET at turn 8 : 45 % Chance to get exactly 2 copy of card TARGET at turn 8 : 24 % Chance to get exactly 3 copy of card TARGET at turn 8 : 4 %
Pour X = 2 exemplaires dans le deck - Spoiler:
Turn tested :1 Chance to get exactly 0 copy of card TARGET at turn 1 : 78 % Chance to get exactly 1 copy of card TARGET at turn 1 : 21 % Chance to get exactly 2 copy of card TARGET at turn 1 : 1 %
Turn tested :2 Chance to get exactly 0 copy of card TARGET at turn 2 : 72 % Chance to get exactly 1 copy of card TARGET at turn 2 : 26 % Chance to get exactly 2 copy of card TARGET at turn 2 : 2 %
Turn tested :3 Chance to get exactly 0 copy of card TARGET at turn 3 : 66 % Chance to get exactly 1 copy of card TARGET at turn 3 : 31 % Chance to get exactly 2 copy of card TARGET at turn 3 : 3 %
Turn tested :4 Chance to get exactly 0 copy of card TARGET at turn 4 : 61 % Chance to get exactly 1 copy of card TARGET at turn 4 : 35 % Chance to get exactly 2 copy of card TARGET at turn 4 : 4 %
Turn tested :5 Chance to get exactly 0 copy of card TARGET at turn 5 : 56 % Chance to get exactly 1 copy of card TARGET at turn 5 : 38 % Chance to get exactly 2 copy of card TARGET at turn 5 : 6 %
Turn tested :6 Chance to get exactly 0 copy of card TARGET at turn 6 : 51 % Chance to get exactly 1 copy of card TARGET at turn 6 : 41 % Chance to get exactly 2 copy of card TARGET at turn 6 : 8 %
Turn tested :7 Chance to get exactly 0 copy of card TARGET at turn 7 : 46 % Chance to get exactly 1 copy of card TARGET at turn 7 : 44 % Chance to get exactly 2 copy of card TARGET at turn 7 : 10 %
Turn tested :8 Chance to get exactly 0 copy of card TARGET at turn 8 : 42 % Chance to get exactly 1 copy of card TARGET at turn 8 : 47 % Chance to get exactly 2 copy of card TARGET at turn 8 : 12 %
Pour X = 1 exemplaire dans le deck - Spoiler:
Turn tested :1 Chance to get exactly 0 copy of card TARGET at turn 1 : 88 % Chance to get exactly 1 copy of card TARGET at turn 1 : 12 %
Turn tested :2 Chance to get exactly 0 copy of card TARGET at turn 2 : 85 % Chance to get exactly 1 copy of card TARGET at turn 2 : 15 %
Turn tested :3 Chance to get exactly 0 copy of card TARGET at turn 3 : 82 % Chance to get exactly 1 copy of card TARGET at turn 3 : 18 %
Turn tested :4 Chance to get exactly 0 copy of card TARGET at turn 4 : 78 % Chance to get exactly 1 copy of card TARGET at turn 4 : 22 %
Turn tested :5 Chance to get exactly 0 copy of card TARGET at turn 5 : 75 % Chance to get exactly 1 copy of card TARGET at turn 5 : 25 %
Turn tested :6 Chance to get exactly 0 copy of card TARGET at turn 6 : 72 % Chance to get exactly 1 copy of card TARGET at turn 6 : 28 %
Turn tested :7 Chance to get exactly 0 copy of card TARGET at turn 7 : 68 % Chance to get exactly 1 copy of card TARGET at turn 7 : 32 %
Turn tested :8 Chance to get exactly 0 copy of card TARGET at turn 8 : 65 % Chance to get exactly 1 copy of card TARGET at turn 8 : 35 %
Je suis assez étonné : je pensais qu'en jouant les cartes en x4 il y avait une vraie grosse chance/risque d'en avoir 2 copies en main dès les tour 2/3, mais non, pas tant que ça en réalité | |
|
| |
FRamir Célébrité encapée
Messages : 291
| Sujet: Re: Les probas sont nos amies (parfois) Mar 10 Mai - 14:26 | |
| Tes derniers calculs, c'est en commençant, ou non, ou ça n'a pas d'incidence (m'étonnerait) ? | |
|
| |
Karibu Célébrité encapée
Messages : 166
| Sujet: Re: Les probas sont nos amies (parfois) Mer 11 Mai - 9:33 | |
| Dans mes souvenirs, c'est en commençant (le pire scenario en termes de probas, donc) | |
|
| |
Contenu sponsorisé
| Sujet: Re: Les probas sont nos amies (parfois) | |
| |
|
| |
| Les probas sont nos amies (parfois) | |
|