Showing posts with label math. Show all posts
Showing posts with label math. Show all posts

Friday, March 11, 2011

Freaky Math: HHH vs HHT in a thousand random flips.

Oddly enough if you flip a coin a thousand times, you'll encounter the string HHT more often than HHH.Don't believe me? Oh well. Doesn't change the correct answer.

Friday, July 2, 2010

He he he... Math is hard!

You call up a pet shop that you know has two puppies. You ask if at least one of the puppies is a male and they say "yes", what are the odds that the the other dog is also a male? Or rather that both dogs are male?

Interestingly I asked this question today and much to my surprise my sister got it right after a really short period of time. The answer is, oddly enough, one in three. Whereas almost everybody will say 50/50 and insist over and over again even if you just told other people who said that, that they were wrong.

There's a series of problems that fall into the same paradigm which are basically Monty Hall riddles, where known information is used to make a determination that change the odds from what we'd expect. And it turns out that *any* known information changes the odds. So when you picked Door Number 1 on the Monty Hall show and he opens Door Number 2, the odds that the prize is behind Door Number 1 is 1/3 and the odds that it's behind door number 3 is 2/3s. It's a strange math problem whereby the odds change because something is known about something else. Monty Hall wouldn't open the prize door. So we are given information that changes the odds.

In science, we start with a guess and then figure out what that guess would mean for the world and then check whether or not reality agrees with that guess. The most important step is that if reality is found to not agree that guess is wrong, it doesn't matter who suggested it or how interesting, beautiful, complex, simple or clever the guess is, it is wrong.

When we've checked a lot of things and find that we just can't prove this guess wrong over a very long period of time, it really does change the odds that that guess is correct, if we found a problem with the theory, it would be rejected. So when a scientific theory has withstood the test of time even if we are unaware of the particular tests it has withstood we can be more confident that it is true because being wrong would make it rejected. And if it's rejected, we can find a Monty Hall Door that hasn't been rejected yet which is almost certainly more likely to be correct, or with regard to scientific theory less likely to be wrong. Science is simply the least wrong guess we haven't managed to prove wrong yet. And we know it's the less likely to be wrong because we tried to prove it wrong and failed to do so thus far. This is why Einstein didn't dethrone Newton when his physics was accepted during the 20th century. Because up until then, Newton was the least wrong answer we had at the time. Now we have an even less wrong answer which can explain not only what Newton explains but more. To this end I highly recommend the Relativity of Wrong by Asimov.

The idea that knowing things about things change the odds falls a bit strangely into Hempel's paradox.

Hempel's raven paradox is basically stating that if we accept that we are given evidence to the statement "all raven are black" by the existence of a black raven, we should also accept that the existence of a green apple also provides evidence to the statement "all raven are black" because said statement is the same as saying "all non-black objects are non-raven objects" and a green apple confirms this given statement. The most accepted solution to the problem is to agree with the conclusion and suggest that the weight of evidence provided by green apples is very small because of the sheer range of non-black and non-raven objects. (As an amusing aside, there are albino ravens which are white). So really everything we know that fails to prove a statement wrong makes that statement a bit more likely to be true. Just as knowing that at least one of the puppies is male makes it slightly more likely that both puppies were male (after all we had a 1/4 chance of two male puppies before we confirmed that female/female wasn't an option). Failing to prove the theory male-male wrong by confirming female/female wasn't the case made the odds just a bit higher (though we seem to take the fact that at least one puppy is male to conclude one down, one to go and a 50/50 chance on the "other" puppy.)

The same is likely true with regard to evolution. A design is made more likely to be useful because an individual doesn't die when dying is possible. This is why the genotype (the DNA itself rather than what it codes for) which is insulated within the nucleus and doesn't interact with the outside world (there's transfer RNA and various other process that move this information around) can become very usefully complex and encode for very useful and functional proteins even though it has no access anything extra-nuclear. And this is also likely how our minds work by being able to make guesses about the world and by failing to be surprised by the wrongness of those guesses manage to build an internal view of the outside world without needing the eyes to take and process information (which is the model we are usually given). It simply isn't necessary to process information coming in from the eyes, there's only the need to see if that agrees with what we think it should be and react if we're wrong. You can build models of the outside world with guesses and checking if those guesses mesh with reality. That's the essence of science, evolution, and how our minds work. The part that understands, learns, encodes, works, theorizes, and discovers need not be actually connected to reality to understand it. It can simply trudge along failing to be wrong, and as a consequence become more reliable.

As a crazy person on the Daily Show once pointed out, either the LHC blows up the world or it doesn't. So the odds are 50/50. It's logic like this that makes me wonder how I could make money off such things.

---

If I roll two 6-sided dice and say that at least one of them is a 1. What are the odds that they are both 1s?

1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 5 5 5 5 5 5 6 6 6 6 6 6
1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6 1 2 3 4 5 6

Because we know one is a 1, the odds that the other is a 1 is different than the typical 1/6 that people would tend to believe. Because we don't know which one was the 1 and there's only one possibility of snake-eyes (1-1).

1 1 1 1 1 1 2 3 4 5 6
1 2 3 4 5 6 1 1 1 1 1

These are the only possibilities and they are all evenly likely to occur. There's 11 of them and only in 1 of them are they both 1s. So knowing that at least one die is a 1 makes the odds that "the other one" (we don't know what other is because we don't know which is the principle one, and we should rather say "both of them") a 1 in 11 chance. We'd figure the odds to be 1 in 6, but really they are far longer than that and nearly double. This makes for a pretty good idea in a gambling game. I'll get some dice roll them somewhere, look and tell the other person what "at least one of them is X" and have them make wager that pays 8 fold that the other one is the same. They should think they are getting an advantage paying a 8X on a 1/6 chance when really they are getting paid 8X on a 1/11. I'll be rich!

Update:

Strangely due to the setup there the odds are actually 1/6. Since I would have to give information about what one die is, the chance that the other die is the same as X, is 1/6 or the odds that you roll doubles. Whereas you have twice as many things to have the dice be if you roll non-doubles. So the game would have to be setup, where you ask "Is there a 1?" and then go from there. There are 10 rolls for which the answer would be yes, and only 1 where the answer would be yes and the other one is a 1 too. Whereas if I simply offer what one die is (even if you don't know which die, it makes the odds of the other die 1/6 to be anything including X).

If I tell you that there is one 1. The odds that the other is 1 is 1/6. If you ask if there's a 1, and the answer is yes, then the odds are 1/11. The odds that I'll have a die to tell you the value of is 100%. The odds that you guess a value is lower when I've rolled doubles, so when you get that question right, the odds are 1/11th. Just as if I told you as a petshop owner that I have at least one male puppy thereby negating the chance that I have female/female puppies. As if I had female/female puppies, I would have volunteered that I had a female puppy rather than a male.

Go figure, math is hard.

Sunday, May 16, 2010

Math Class Makeover?



I've always been of the opinion that math classes are way too much into learning the "steps" rather than treating mathematical operations like tools. But there's certainly a lot more to be had in teaching children the relationships of mathematical problems to reality.

Sunday, January 10, 2010

The Fine Tuning of Mathematics.

There are certain things about functional systems like mathematics that need to work absolutely perfectly in order to work at all. For example, did you know that 1+2+3+4=10? But, did you know that if any of those values were off by even a fraction of a millionth of a millionth of a degree of a billionth the entirety of mathematics would fail to work. And as a consequence one could prove anything at all, even and especially if it were false. If 1 + 2 + 3 + 4 really equaled 10.00000000000000000000001 all of mathematics and logic would collapse upon itself. Really! It would.

Here, allow me to prove that I'm a cherry pie given this rather minor bit of mathematics.

1 + 2 + 3 + 4 = 10.00000000000000000000001
1 + 2 + 3 = 6.00000000000000000000001
1 + 2 = 3.00000000000000000000001
1 = 1.00000000000000000000001
0 = 0.00000000000000000000001
100000000000000000000000 * 0 = 0
100000000000000000000000 * 0.00000000000000000000001 = 1
0 = 1
1 = 2
Because I am a cherry pie because a cherry pie and myself are two, but we can see that two equals 1 and therefore I and a cherry pie are one and therefore I am a cherry pie.

You see, even given the most minor amount of alteration in the fine tuning of mathematics we are left to conclude anything and everything. Everything becomes true and everything becomes false. So how can it be that mathematics is so perfect? Doesn't it seem as though math is too perfect to have arisen out of nothing or on it's own?

There are an infinite number of numbers that humans have ever thought of and a finite subset of all numbers that humans have thought of. And due to a quirk in set theory the infinity set of all numbers and the infinite set of humans have thought of are the exact same size. For every number that humans haven't thought of I can give you a number, and we can find that these numbers have a 1 to 1 ratio. See Cantor Sets. So there are as many numbers as there are numbers humans have never conceived of so it cannot be the case that numbers are a concept of minds. Further, because numbers don't have a physical existence we aren't going to have the number 8 die in a car crash or 72 get his by an asteroid. It must be the case that the perfection of numbers, the fine tuned nature of numbers, the transcendental quality of numbers can only be explained by elves.

You see, elves are the only creatures able to make numbers work. Elvish magic is well known to bind things together and make things work. And since this is exactly what we see when it comes to the fine tuning of math, it must be the case that elves exist. It must be the case that elven magic is what makes all mathematics work, for if any number were off by as little as one googolth, the entire system would collapse and down would be up, left would be right (I could make proofs for these as well). Elven magic is the only magic that could so perfectly craft the numbers for elves are known the world around as the greatest of craftelves. So when ever you calculate a good tip for a waitress and then round down, or help do your nephew do his math homework, you're going to be using a system crafted by elves. To not believe in elves when you know quite well that 2 + 2 still equals 4 is the height of arrogance and frankly takes more faith to accept than to accept that elves exist.

Friday, April 10, 2009

DNA in pi. Why math is stupid.

Did you know that if my DNA were coded such that each nucleotide were assigned a number from 0-3 that it would be found, in its entirety, in the digits of pi? What's more, the number 7 appears in pi exactly as many times as my DNA does.

That is why math is stupid.

QED.

PS. I have an above average number of functional eyes for a human being.

Tuesday, March 31, 2009

Weird things bother me...

Does it bother anybody else that differentiation is a lossy operation?

2x^3 + 5X + 3

Differentiated is,

6x^2 + 5

Then integrated (with respect to x),

2X^3 + 5x + C

---

It lost the 3 and now has a more general constant. I know, there's no reason taking the change in a line need have all the original precision of the line, but somehow math is suppose to be idealized and perfect and with lossy operations it seems a little odd. I mean I can understand when it at least has the good sense to throw an exception.

Y * 0 = 0
0 / 0 ... DIVIDE BY ZERO EXCEPTION.

Sure, we can't get Y back out of the equation, but only because the math throws a fit.

Wednesday, March 4, 2009

Cantor sets, normal numbers, and memorizing pi.

I have decided to memorize the digits of pi. But rather than do that whole memorize the digits in a very direct and straight forward way I have decided to memorize just the zeros. It took me a while, but I'm done now. I have memorized all the zeros in pi. Interestingly enough, that means by Cantor's proof and the normalcy of pi: I have managed to memorize as many digits of pi as there are digits of pi.

Cantor proved that infinite numbers are of equal size if you put them in countable sets. So the first 0 in pi counts as Z(1) whereas the first digit of pi is D(1). From D1 to D(infinity) there is a corresponding Z value. As both of the sets are of equal size the fact that I memorized all the zeros suffices to say that I have memorized as many digits of pi as there are digits of pi.

Now, there is some speculation that pi is a normal number. Meaning that there are as many occurances of each digit as any other. It suffices for my purpose to assume that because Pi is an irrational number there should be at least Aleph-null zeros within it. Thus rendering my statement true.

I have memorized as many digits of pi as there are digits of pi!

As for the straight-forward way:

3.
14159265358979323846264338327950288419716939937510
58209749445923078164062862089986280348253421170679
82148086513282306647...

Wednesday, October 29, 2008

Interesting Math Questions

1) If 2 fish are recommended per ten gallons and a fish tank holds 35 gallons of water then how many fish could I have in the fish tank? I could have zero. I could have 35 gallons of fish. What does the recommendation have to do with anything. And why would I want to maximum number of fish? That's a stupid question.

2) According to the diagram the library wing 1 foot 10 inches by 2 feet 3 inches and is asking how large the dimensions of the new wing are if the length is 50 feet longer than the width? But, it already gave me the dimensions for the wing and it's not even large enough to stand in properly. Does the question want me to add 600 inches to one of the sides? But the question says the diagram of the wing is shown? That's a stupid question.

3) If you're a fish, and your computer is overclocked and you can make a model blush with a really tawdry joke... what was the height of the Titanic? According to Michael McGaughan (The Birth of the Titanic, page 46) the Titanic was 236 feet tall from keel to mast. If you wanted to build the model to scale you'd want to make it 2 feet 6 inches by 8.02 inches but the fact that you could build a non-scale model at 6 inches is as pointless as your computer being overclocked.

School kids are judged by how well they do on these questions. They are part of Holt Geometry questions. Really?

Tuesday, March 11, 2008

Clinton Coattails?

Open Left has a fairly interesting post about predicting a 50+ shift in the house due to the +R win of Bill Foster (who is a scientist by the way) in Hastert's old seat in Illinois' 14th district. The post makes what is the dumbest non sequitur I've ever seen:

Cillizza looked for Republican-held districts with a PVI of between R+1 and R+5, which is basically a measure of districts that are slightly Republican to fairly Republican, and listed them as possible on the table. 21 of them alone were in Ohio, Michigan, and Florida, which suggests that Clinton might have some serious House coattails.


The only logical connection between the two ideas wins across the board in PVI districts of up to R+5 and Clinton is that she won in Ohio and was on the ballot in the other two states when they had their elections with the well known consequences of making their delegates not be seated. However, Ohio according to SUSA would be won by ten points by either Clinton or Obama

It's pretty well a moot point anyhow. Even if you majored in math or miracles, Clinton simply doesn't have the numbers.

Looking at early voter turnout was one of the things which made me an Obama supporter. I think driving some Republicans to the polls just to vote against Clinton isn't going to help the down ticket races. The turnout and excitement for the race certainly does equal coattails but you need to take a good look at who the massive turnout helps. I'm not exactly sure there would be that much vigor and excitement among the old women (my sister and mother included) of Clinton's core voters.

I honestly don't see any coattails specifically for Clinton. There's certainly a wellspring of votes to oppose McCain (as well as a depressing support for McCain) but I don't exactly see anywhere near the excitement in the Clinton camp.

The argument seems to be:

Bill Foster wins in a PVI +R district.
Therefore, Clinton must have coattails.
Therefore, Clinton can help win 50+ districts.

Bill Foster won in Illinois with the help of Barack Obama (he might have done it alone as he had major help from the DNCC, but I don't know how you'd measure that). This bodes well for the coming election season (clearly) however it has nothing to do with Clinton. Good omens for the coming election do not make for some kind of specific claim about one candidate over another.

Moreover, according to SUSA and various general polls, Obama is set to win a much larger victory against McCain than Clinton would, this does actually equal coattails. There's nothing like lackluster candidate suffering an overwhelming defeat to a charismatic individual to send shockwaves through the downticket races. I think the general conclusion of Clinton's lackluster general election prospects (she'd win mind you) doesn't scream coattails.

In fact, I find Clinton's argument that she's the perfect person to go toe-to-toe with McCain another reason not to support her, not because she's tacitly advocating a McCain presidency, but because there's no reason to go toe-to-toe to a guy you can ignore and defeat while extolling the reasons why you are the man for the job. Going toe-to-toe with somebody means that you're at their level. The implicit assumption is that to bring Obama to McCain's level means that he needs to step it up a bit. Rather, to do so, Obama would have to lower himself to that level just as Clinton has lowered herself. Clinton's current strategy to advocate that she's the person to oppose McCain even though every matchup suggests that she does significantly worse is strange enough. However, when you're faced with another four years of McBush who advocates keeping troops in Iraq until they are as old as he is, nobody needs to go toe-to-toe with McCain! He is is the embodiment of failure. He's going to lose. He had a hard time beating a field of humorously weak candidates before GOP bigwigs decided he was the best of the bunch.

Also, not only was Bill Foster helped in his special election, but even in 2004 when Obama was busy sailing to victory for his Senate seat, he started campaigning for a number of house races and having his volunteers help them out. In Clinton's 2006 race, she helped nobody but herself and spent massive amounts of money in an election she was never remotely close to losing.

Further, Obama's ground game is astounding, you win big with good ground game.

Coattails? Clinton? I don't think so.