Cover photo
DB Fuller


DB Fuller

commented on a video on YouTube.
Shared publicly  - 
I ran the simulation in Java (code bellow). I used Monte-Carlo because I wanted to get a measure of variance.

I chose k in three different ways with three different results (value in parenthesis is the 95% confidence interval half width):
    -- Choose k and use it for all matches in all replications: result is 55.56% (±0.01%)
    -- Choose k and use it for all matches of a single replication: result is 64.34% (±1.47%)
    -- Choose k every time the game is played (a match): result is 66.67% (±0.01%)

The last result matches +Joshua Mcateer 's simulation. Although I avoided picking explicit limits as he did and other posters complained. (There are implicit limits in the Java language, but they are very large and I digress...)

My question is: I felt the results shouldn't be dependent on how often I choose k at all. Is there a reason this happened? Code mistake? Poor number generator? Interesting Math phenomenon +Numberphile can explain?

#####   Code   #####

import java.util.Random;

public class Main {
    public static void main(String[] args) {
        final int n = 1000000, replicN = 100;
        double a, b, k;
        long seed = 0;
        Random r;
        int win;
        double[] resultArray = new double[replicN];
        double avg, var, halfIntConf;
        final String format = "%.2f";
//        k = (new Random(1l)).nextGaussian(); //Choose k and use it for all replications: result is 55.56% (±0.01%)
        for (int replic = 0; replic < resultArray.length; replic++) {
            r = new Random(++seed);
            win = 0;
//            k = r.nextGaussian(); //Choose k and use it for this replication: result is 64.34% (±1.47%)
            for (int i = 0; i < n; i++) {
                k = r.nextGaussian(); //Choose k every time: result is 66.67% (±0.01%)
                a = r.nextGaussian();
                b = r.nextGaussian();
                if ((a < k && a < b) || (a > k && a > b)) {
            resultArray[replic] = ((double) win) / n * 100;
        avg = 0;
        for (double d : resultArray) {
            avg += d;
        avg /= replicN;
        var = 0;
        for (double d : resultArray) {
            var += ((d - avg) * (d - avg));
        var /= replicN;
        halfIntConf = 1.96 * Math.sqrt(var / replicN);
                "Win percentage = " + String.format(format, avg) + "% " +
                "(±" + String.format(format, halfIntConf) + "%)");
qorilla's profile photoDB Fuller's profile photo
+qorilla Ah, yes. I see your point. Excellent way to put it too.
I'm away from the program now to run it further now, but I think you are right.
Thank you!
Add a comment...

DB Fuller

commented on a video on YouTube.
Shared publicly  - 
I hope everybody learns this and uses this, because I'll then always pick one from the first 37% that nobody is using. ¦¬Þ
Add a comment...

DB Fuller

Discussion  - 
That double-winged car got disqualified after a protest by the team that came up with the (legal) 6-wheel car.

Talk about visible aerodynamic tweeks...

#LongBeach1982   #Ferrari   #Aerodynamics   
Lewis Keeling's profile photoSilverstone Events Taxis's profile photo
Add a comment...

DB Fuller

Shared publicly  - 
Despite Windows' insistence that it already had the best driver available, I manually installed the motherboard manufacturer's AHCI driver.

It feels like I have a new computer! ¦¬O

Just when I was starting to trust Windows...

#microsoft   #windows8  
Add a comment...

DB Fuller

Shared publicly  - 
The Dark Knight Returns is a brilliant story. Over 25 years old and very little better has been done.
Add a comment...

DB Fuller

➲ F1 Photos & Videos  - 
To everybody claiming F1 cannot have cars with covered wheels because they've never had them, I present you the W196 streamline.

Altough I agree they shouldn't go that way in the future.
John Knights's profile photoSalim Awad's profile photo
They are called "open-wheel" for a reason you know... 
Add a comment...

DB Fuller

Shared publicly  - 
It's great when you need your computer program to do something that wasn't in the original specification and you find out it just happens to do that without any change. ¦¬) #IMeantThat  

At least until it starts having mood swings, threatens your life and takes over the planet. ¦¬o #Escalation  
Add a comment...

DB Fuller

commented on a video on YouTube.
Shared publicly  - 
Fun with flags™!
Add a comment...

DB Fuller

➲ Off Topic  - 
"In the impact, one of the suspension wishbones penetrated the safety cell."
Very scary stuff!
Fortunately he seems to be recovering.

Edit: sorry, I quoted one article and pasted another.
Bart Hill's profile photoWesley Branton's profile photo
Add a comment...

DB Fuller

Shared publicly  - 
Great details about the machine and its flaw that enabled the breaking of the code.

Links here to make it easier:
Enigma Machine Video Series
by +James Grime 
(recreated due to apparent deletion)

Many people have heard of the famous Enigma Machine developed in Germany as an electro-mechanical cipher device and later picked up and made even more sophisticated by the German military forces in WWII, but how many people have seen a real one in action?

Mathematician +James Grime has an actual Enigma Machine in his possession, and in this video series he will demonstrate it, in his own charming and inimitable fashion, whilst addressing questions such as:    

How and why were the rotors set?
What was the role of the plugboard?
How come the same letter could be coded differently in the same text?
How many ways was it possible to set the Naval machine?
What procedural and design flaws created the chink in its armor?
What were the roles of Mathematicians like Alan Turing?

Videos here:
158,962,555,217,826,360,000 - Numberphile
Flaw in the Enigma Code - Numberphile
Enigma Extra Footage - Numberphile

More on the mathematical thinking behind the code breaking.
Turing Biography:

5 comments on original post
Add a comment...

DB Fuller

Pictures and videos  - 
Throw back Wednesday.

Because we are clearly not following conventions here.
Rex Broadway's profile photo
Add a comment...

DB Fuller

Amateur Astrophotography  - 
DB Fuller originally shared:
Pic of the moon this afternoon.
Goran Peoski's profile photoПаня Софинский's profile photo郭政霖's profile photoAntonio Alcaide's profile photo
awesome, i took the same daytime pic as well, perhaps the same day... ;o)
Add a comment...
Basic Information
Other profiles
DB Fuller's +1's are the things they like, agree with, or want to recommend.
Cameron é motivo de piada por comer cachorro-quente com garfo e faca

Premiê participou de evento na corrida eleitoral e, tentando mostrar seu lado 'cidadão comum', acabou surpreendendo com garfo e faca

Prejuízo! Jogador "autografa" câmera com caneta permanente

Atleta de rúgbi, Collins Injera deu prejuízo de 60 mil libras (cerca de R$ 200 mil) ao autografar uma câmera com caneta de tinta permanente;

That Awkward Moment When You Realize Heath Ledger’s Joker Was The Hero

When you really examine The Dark Knight The Joker might have been the real hero.

Buy Iron Man Costume Suit | Iron Man suit costume Mark 4 (VI) | buyFullB...

Ultra realistic wearable full body Iron Man suit costume Mark 4 (VI)

Is Elsa the Snow Queen Responsible for the Cold Snap in the Southern Sta...

An Elsa double has participated in a stunt in South Carolina that sees her getting arrested for causing the cold weather in the area.

Le Gouffre

An inspiring tale about friendship, sacrifice and conquering the impossible. Interested in supporting us and our next proj

The Rescued Film Project Archive

An online archive of forgotten and lost pictures trapped in rolls of film until now, have never been seen. Old film developing. Expired Film

Esse é o pintor de ruas mais ágil e preciso que você já viu

Na internet, pessoas que comentaram o vídeo chegaram a chama-lo de artista; veja como esse pintor é eficiente ao pintar rua

The Best Science Fiction And Fantasy Short Films Of 2014

In the span of mere minutes, short films can introduce us to fascinating ideas, dazzle us with mind-blowing visuals, and introduce us to str

How juries are fooled by statistics

Oxford mathematician Peter Donnelly reveals the common mistakes humans make in interpreting statistics — and the devastating impact these er

How a fly flies

An insect's ability to fly is perhaps one of the greatest feats of evolution. Michael Dickinson looks at how a fruit fly takes flight with s

Learn to read Chinese ... with ease!

For foreigners, learning to speak Chinese is a hard task. But learning to read the beautiful, often complex characters of the Chinese writte

Who was the greatest F1 driver?

Arguments over whether Schumacher was greater than Fangio are not new. I'm going to present something that is new: the results of a mathemat

Trip over IT: Fix for Android phones running low on internal memory (wit...

The first, simplest and safest step is to delete dumpstate/logcat files. Dumpstate, logcat files are stored on the /data/log partition that,


E se acrescentássemos alguns efeitos especiais no futebol? Ficaria mais engraçado! (Se bem que time que escala Carlos Eduardo pra jogar uma

Felipe Massa and Valtteri Bottas team radio, Malaysia 2014

Felipe Massa and Valtteri Bottas team radio, Malaysia 2014