Page 1 of 2

NEW Greasemonkey Script: Dice Streaks

PostPosted: Thu Apr 08, 2010 1:51 pm
by chipv
Dice Streaks

This script records all of your dice and displays streak statistics.
We would like to collect complete sets of data for each player for the same game to see how the dice vary.

Post your screenshots of the Summary Tab in Dice Streak Records

Image

Image

Image

This is a complement to Dice Analyzer not a replacement, use both if you wish

Requirements
You must be running Firefox with Greasemonkey installed.
Full instructions for Firefox and Greasemonkey from scratch: viewtopic.php?t=41487

Installation
Click on this link (with Firefox and Greasemonkey installed)
Conquer Club Dice Streaks
Click on Install and that's it.
Once installed you'll see this in the left hand menu , depending on what order your scripts are in.

Image

What does it do

All of your dice in your turns are recorded. There is no set limit to this
(Dice Analyzer uses cookies which severely limits its ability to store data).
All you have to do is click on the All Dice Streaks button in the left menu to see. (You can do this in the middle of your turn too).
It also records stats per game so you can zero in on particular games.

The script measures and displays a number of streaks in your dice :

  • Combined Dice - measures highest streaks of any die number (1,2,3,4,5,6), attacker or defender
  • Attack Dice - measures highest streaks of any attack die number
  • Defence Dice - measures highest streaks of any defence die number
  • Overall Roll Outcome - measures highest streaks of wins,ties, and losses in a roll outcome
  • Individual Roll Outcome - measures highest streaks of individual wins,ties, and losses in a roll outcome
    (e.g. highest losing 3v2 streak or highest winning streak of 1v1)
  • Most consecutive troops defeated and Most consecutive troops lost (includes ties of 1 each)
  • Streak distribution is displayed in a separate tab
  • Streaks per game - all of the above for individual games

Recorded Games

The script also measures statistics for each game you take turns in also. You can collapse the data onto any recorded game by
clicking on the Games Tab and clicking on one of the game streak links.

Games pages where you have recorded dice will show this in the left menu

Image

Click on Game Dice Streaks to automatically see stats for that game. (You can click on this in the middle of your turn too).
(You can use the All Games link in the Games Tab to see everything)
On all other pages you will automatically get the data for all of your games.

Reset Button

This will wipe all of your recorded data!
I put this there for those who want to record separate periods of dice stats.

Please help collect data

We would like to collect screenshots of your data in GD here

Dice Streak Records

Thanks in advance!

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Fri Apr 09, 2010 5:08 pm
by chipv
I would like to invite as many people as possible to run this script so we can all get screenshots of people's dice.

In particular we would like to collect complete sets of data for games (for each player) to see any variation.

Thanks in advance

(There will be a thread in GD shortly to post screenshots)

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Fri Apr 09, 2010 7:14 pm
by Dako
Awesome script, chip! Will try it right now.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Fri Apr 09, 2010 7:36 pm
by jpcloet
First couple of games and I notice 10 of 12 of my rolls were all 5's. Interesting.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 11, 2010 11:16 am
by chipv
Added some more stats

Most consecutive troops defeated
Most consecutive troops lost

These include ties (1 each)

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 11, 2010 12:03 pm
by eddie2
ha finally somthing to prove how f up the die are when they are bad

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 11, 2010 12:20 pm
by chipv
Added a summary tab for convenience.

Image

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue Apr 13, 2010 6:53 am
by jleonnn
nice!

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue Apr 13, 2010 1:16 pm
by chipv
New version available. Note uploading new versions will NOT reset your dice, so don't worry about installing.

The game streak links now have game info when you hover over them.

There is a new Distribution Tab:

Image

It shows the distribution of streaks. The left column shows the length of the streak. The right column shows how many of those streaks occurred.

In the image above for winning outcomes, I have had streaks of 6 wins in a row. That has happened twice.
For streaks of 2 consecutive wins, that has happened 23 times.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 18, 2010 7:12 am
by RADAGA
In the first 53 dice = had one streak of four twos... This is going to be interesting...

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 18, 2010 11:00 am
by barterer2002
Chip this computer gets about 1/3 to 1/2 of my turns playing

Image

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 18, 2010 11:47 am
by chipv
barterer2002 wrote:Chip this computer gets about 1/3 to 1/2 of my turns playing


What do you mean? Are you playing all your turns on the same computer?

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 18, 2010 6:51 pm
by barterer2002
No, I've got my desktop and my laptop. I generally take my games first thing in the morning on the laptop which doesn't have all the add ons installed and through the day take them on the desktop. As I think the numbers are reversed from what I said, 1/2 to 2/3 of them are on this one with the rest on the laptop not being recorded.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Sun Apr 18, 2010 7:03 pm
by chipv
barterer2002 wrote:No, I've got my desktop and my laptop. I generally take my games first thing in the morning on the laptop which doesn't have all the add ons installed and through the day take them on the desktop. As I think the numbers are reversed from what I said, 1/2 to 2/3 of them are on this one with the rest on the laptop not being recorded.


The dice are recorded in a file on your PC. So your desktop will have a separate file than your laptop.
The dice recorded are from the turns you have taken on that PC.

So if you are running 2 scripts on 2 computers, you will have different data on both as you are taking different turns on both.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Mon Apr 19, 2010 2:42 pm
by RADAGA
Image

Right, nearly half of those are streaks.

Check out the 2-1-1-2-2-2-2-1-1 (is it a coin toss?)

or the 2-2-3-3-3-2-5-5 (ones sixes and fours were in the day off)

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue Apr 20, 2010 11:56 am
by barterer2002
chipv wrote:
barterer2002 wrote:No, I've got my desktop and my laptop. I generally take my games first thing in the morning on the laptop which doesn't have all the add ons installed and through the day take them on the desktop. As I think the numbers are reversed from what I said, 1/2 to 2/3 of them are on this one with the rest on the laptop not being recorded.


The dice are recorded in a file on your PC. So your desktop will have a separate file than your laptop.
The dice recorded are from the turns you have taken on that PC.

So if you are running 2 scripts on 2 computers, you will have different data on both as you are taking different turns on both.


Right, I understood that, that's why I was telling you it wasn't every turn and why I have more attacks that defense (not running the script on laptop)

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue Apr 20, 2010 12:34 pm
by chipv
barterer2002 wrote:Right, I understood that, that's why I was telling you it wasn't every turn and why I have more attacks that defense (not running the script on laptop)


Totally my bad - too used to everyone only posting when complaining so managed to read your first line as a complaint when it was only info.

Sorry!

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Wed Apr 21, 2010 10:46 am
by RADAGA
Image

a 5 in a row 3x1 loss, folowed shortly by a 3 in a row 3x1 ...

As usual, trying to break paying members bonuses...

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Thu Apr 22, 2010 6:50 pm
by barterer2002
chipv wrote:
barterer2002 wrote:Right, I understood that, that's why I was telling you it wasn't every turn and why I have more attacks that defense (not running the script on laptop)


Totally my bad - too used to everyone only posting when complaining so managed to read your first line as a complaint when it was only info.

Sorry!


No worries chip. Trust me, I appreciate all that you do far to much to complain, anything I do will be for information only :D

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Thu Apr 29, 2010 9:16 am
by RADAGA
Image

Okay, you say I complain too much, but lets see... where should I begin?

To get four dice get the same number in a row (any of them) is a one-in-215 four-dice-throw chance

The sample have 231 dice (lets say about 57 groups of four dice).

Line 1, four twos in a row
LInes 5 and 6, four fours in a row
Line 8, FIVE sixes in a row
Line 8 and 9 FIVE fives in a row

So, something that should occour once every 215 four-dice-throws happened FOUR times in a 57 four-dice-throws - thats about 6% occourence of an event that have a mere ZERO POINT FIVE percent chance of happening.

While this does not prove the dice "are not random" they surely are something to be investigated.

note that I am not complaining about battle results, I am simply checking out a serie of data and realizing things that were not expected to have occoured once evry five of such samples occoured FOUR times on a single one.

FOUR arrangements of 4-of-a-kind are to be expected to be seen on samples of 1.155 4-dice throws, and yet here we see it on 57 of such

Not to mention two of them were a FIVE in a row - chance for any five of a kind - once in 1295 throws

So, anyone care about it?

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Mon May 03, 2010 6:41 am
by Catarah
awesome tool.

but before anyone goes complaining the dices are streaky when one of their games has streakiness, i´d like to add that reviewing game data is only usefull if you add the data of all other games too.

if 1 in 3 appears streaky thats a whole different thing then if 1 in 50 appears streaky, yet if you only post games in which you had weird streaks, it´ll appear to be wrong.

that said, great idea, awesome!

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue May 04, 2010 5:10 am
by RADAGA
Catarah wrote:awesome tool.

but before anyone goes complaining the dices are streaky when one of their games has streakiness, i´d like to add that reviewing game data is only usefull if you add the data of all other games too.

if 1 in 3 appears streaky thats a whole different thing then if 1 in 50 appears streaky, yet if you only post games in which you had weird streaks, it´ll appear to be wrong.

that said, great idea, awesome!



Even if that 1 in 50 shows things that should only occour once in 1.000 times?

This excuse that "all data must be gathered, no matter the individual anomalies" to me almost sound like no one care to really look at those anomalies because they know about them and dont care.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue May 04, 2010 7:36 am
by Chuuuuck
RADAGA wrote:Image

Okay, you say I complain too much, but lets see... where should I begin?

To get four dice get the same number in a row (any of them) is a one-in-215 four-dice-throw chance

The sample have 231 dice (lets say about 57 groups of four dice).

Line 1, four twos in a row
LInes 5 and 6, four fours in a row
Line 8, FIVE sixes in a row
Line 8 and 9 FIVE fives in a row

So, something that should occour once every 215 four-dice-throws happened FOUR times in a 57 four-dice-throws - thats about 6% occourence of an event that have a mere ZERO POINT FIVE percent chance of happening.

While this does not prove the dice "are not random" they surely are something to be investigated.

note that I am not complaining about battle results, I am simply checking out a serie of data and realizing things that were not expected to have occoured once evry five of such samples occoured FOUR times on a single one.

FOUR arrangements of 4-of-a-kind are to be expected to be seen on samples of 1.155 4-dice throws, and yet here we see it on 57 of such

Not to mention two of them were a FIVE in a row - chance for any five of a kind - once in 1295 throws

So, anyone care about it?


Quit complaining. If you know anything about statistics then you would know there is nothing to be shown from 57 dice throws. When you have a sample size of a million plus and your numbers are still around 6% when they should be 0.5%, then you might actually have a case, until then, go read a book about statistics.

Random dice with a 0.5% chance of something happening does not mean that it will happen 0.5% of the time in every sample. In fact, it has a greater than 90% chance of not even really being close to 0.5% in the sample size you are talking about.

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue May 04, 2010 7:38 am
by Chuuuuck
Hey chip, great script.

A quick question, I saw in the first post you say something about it recording defensive dice and then in later posts it said something about it only recording turns you take with that computer. Does it record defensive dice when I am not there during another players turn? Or does it only record my dice throws from my turns?

Re: NEW Greasemonkey Script: Dice Streaks

PostPosted: Tue May 04, 2010 11:11 am
by chipv
Chuuuuck wrote:Hey chip, great script.

A quick question, I saw in the first post you say something about it recording defensive dice and then in later posts it said something about it only recording turns you take with that computer. Does it record defensive dice when I am not there during another players turn? Or does it only record my dice throws from my turns?


It is only able to record dice from your turns.