Bitcoin Forum
May 06, 2024, 08:49:49 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Martingale prediction script for sites like just-dice  (Read 4342 times)
Fabian1291 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 08, 2013, 03:45:34 AM
Last edit: September 08, 2013, 03:59:45 AM by Fabian1291
 #1

Hi guys,

I wrote a little python script to simulate multiple games using the martingale strategy.

https://gist.github.com/anonymous/6478117

You can enter the number of games to simulate, the initial bankroll, the target bankroll, the initial bet, how many times to double your bet, the chance to win and the house edge (if you want to use the default values, just press enter after the prompt) -- after that you get a winning probability. You should be able to start it with:
Code:
python predict_martingale_v4.py

The output looks something like this:

http://fapeg.com/martingale_prediction.png

Feedback very welcome.

Donations also appreciated since I discovered just-dice before I did some martingale calculations Grin
1EZhao5iqAtYTqXGKhsvRk8eBGraG1QCmx

Fabian.
1714985389
Hero Member
*
Offline Offline

Posts: 1714985389

View Profile Personal Message (Offline)

Ignore
1714985389
Reply with quote  #2

1714985389
Report to moderator
1714985389
Hero Member
*
Offline Offline

Posts: 1714985389

View Profile Personal Message (Offline)

Ignore
1714985389
Reply with quote  #2

1714985389
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
uoyeparannog
Member
**
Offline Offline

Activity: 72
Merit: 10


Drunk Lunatic


View Profile WWW
September 08, 2013, 10:06:18 AM
 #2

Simulation is just... simulation. Run it 100 times - it'll return result A. Run next 100 times - hello, result B. Run 1000 times - result C! What to do now? Count average? Rather bad idea (just like using Martingale for longer run, lol).
Just use calculator.
Anyway congratulations for doing something and sharing. Keep scripting!

Chaos Prediction Center
1ChaosQ9uFudq5Xy8i9tiiECiDhKbtjiJd
alexout
Full Member
***
Offline Offline

Activity: 255
Merit: 100



View Profile
September 08, 2013, 01:04:21 PM
 #3

How do I run this simulation?
monbux
Legendary
*
Offline Offline

Activity: 1736
Merit: 1024



View Profile WWW
September 08, 2013, 01:10:01 PM
 #4

Simulation is just... simulation. Run it 100 times - it'll return result A. Run next 100 times - hello, result B. Run 1000 times - result C! What to do now? Count average? Rather bad idea (just like using Martingale for longer run, lol).
Just use calculator.
Anyway congratulations for doing something and sharing. Keep scripting!

Cool site, I like it. 
Fabian1291 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 08, 2013, 02:06:19 PM
 #5

How do I run this simulation?

You have to have python installed then you have to call the script via
Code:
python <filename>
from a terminal.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!