DB Fuller
172,347 views

## Stream

### 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  '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  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)) {
win++;
}
}
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);
//
System.out.println(
"Win percentage = " + String.format(format, avg) + "% " +
"(±" + String.format(format, halfIntConf) + "%)");
}
}﻿
1

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!﻿

### 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. ¦¬Þ﻿
1

### DB Fuller

Discussion  -

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

#LongBeach1982   #Ferrari   #Aerodynamics   ﻿
21
2

### 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  ﻿
1

### DB Fuller

Shared publicly  -

The Dark Knight Returns is a brilliant story. Over 25 years old and very little better has been done.﻿
2

### 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.﻿
15

They are called "open-wheel" for a reason you know... ﻿

### 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  ﻿
1

### DB Fuller

commented on a video on YouTube.
Shared publicly  -

Fun with flags™!﻿
1

### 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.
http://www.theguardian.com/sport/2015/may/19/james-hinchcliffe-indycar-crash-indy-500-intensive-care

Edit: sorry, I quoted one article and pasted another.
http://www.racer.com/indycar/item/116939-indy-500-hinchcliffe-saved-from-serious-injuries﻿
3

Noooooooooooooooooooooooooo!﻿

### 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:
http://youtu.be/G2_Q9FoD-oQ
http://youtu.be/V4V2bpZlqx8
http://youtu.be/BdrrJ7qd4HA

Enigma Machine Video Series
by
(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 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

Wikipedia: http://goo.gl/DCvUx
More on the mathematical thinking behind the code breaking.
Turing Biography: http://www.turing.org.uk/book/

Image: http://goo.gl/DO3mE﻿
1

### DB Fuller

Pictures and videos  -

Throw back Wednesday.

Because we are clearly not following conventions here.﻿
12
1

### DB Fuller

Amateur Astrophotography  -

DB Fuller originally shared:

Pic of the moon this afternoon.﻿
60
6

awesome, i took the same daytime pic as well, perhaps the same day... ;o)﻿
Basic Information
Gender
Male
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 facanoticias.terra.com.brPremiê 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 permanenteesportes.terra.com.brAtleta 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 Herowww.houstonpress.comWhen 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...buyfullbodyarmors.comUltra realistic wearable full body Iron Man suit costume Mark 4 (VI)
 Uninvited Guest's Song: Strange Gothic Romancewww.broadjam.comA gothic dream fantasy waltz
 Is Elsa the Snow Queen Responsible for the Cold Snap in the Southern Sta...moviepilot.comAn Elsa double has participated in a stunt in South Carolina that sees her getting arrested for causing the cold weather in the area.
 Le Gouffrevimeo.comAn inspiring tale about friendship, sacrifice and conquering the impossible. www.legouffre.com Interested in supporting us and our next proj
 The Rescued Film Project Archivewww.rescuedfilm.comAn 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á viutecnologia.terra.com.brNa 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 2014io9.comIn 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 statisticswww.ted.comOxford mathematician Peter Donnelly reveals the common mistakes humans make in interpreting statistics — and the devastating impact these er
 How a fly flieswww.ted.comAn 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!www.ted.comFor 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?f1metrics.wordpress.comArguments 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...tripoverit.blogspot.comThe first, simplest and safest step is to delete dumpstate/logcat files. Dumpstate, logcat files are stored on the /data/log partition that,
 EFEITOS ESPECIAIS NO FUTEBOLkibeloco.com.brE 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 2014www.motorsport.comFelipe Massa and Valtteri Bottas team radio, Malaysia 2014