Skip to main content

Ralsina.Me — Roberto Alsina's website

Posts about nerdness (old posts, page 5)

We live in the future.

/static/thefuture.jpg

Neal Stephen­son wrote:

There is some­thing new: A globe about the size of a grape­fruit, a per­fect­ly de­tailed ren­di­tion of Plan­et Earth, hang­ing in space at ar­m's length in front of his eye­s. Hi­ro has heard about this but nev­er seen it. It is a piece of CIC soft­ware called, sim­ply, Earth. It is the us­er in­ter­face that CIC us­es to keep track of ev­ery bit of spa­tial in­for­ma­tion that it owns - all the map­s, weath­er data, ar­chi­tec­tural plan­s, and satel­lite sur­veil­lance stuff.

Hi­ro has been think­ing that in a few years, if he does re­al­ly well in the in­tel biz, maybe he will make enough mon­ey to sub­scribe to Earth and get this thing in his of­fice. Now it is sud­den­ly here, free of charge...

And of course, I have just that very thing in­stalled in my desk­top. Not all the men­tioned da­ta is hooked in­to it, but hey, it is free of charge.

Hein­lein wrote about pri­vate cit­i­zens and com­pa­nies go­ing in­to space. He thought it was not any gov­ern­men­t's job. And that is go­ing to hap­pen in my life­time. I know a guy who knows a guy who knows a guy who went to space pay­ing for it with his own mon­ey.

Of course there are no fly­ing cars or rock­et back­packs (those were good ideas... not!)

What's the dif­fer­ence be­tween Gib­son's Idoru and Go­ril­laz, ex­cept that it's cheap­er to pay mu­si­cians than it is to build Ar­ti­fi­cial In­tel­li­gences? Can you tell me what's the point in build­ing an AI, any­way? Aren't me­chan­i­cal turks cheap­er and bet­ter?

Asi­mov wrote about a foun­da­tion of schol­ars writ­ing an en­cy­clo­pe­dia to be con­stant­ly up­dat­ed, con­tain­ing the whole of hu­man­i­ty's knowl­edge (we got wikipedia in­stead. Good enough!)

Our phones are much nicer than Star Trek's com­mu­ni­ca­tors (for ex­am­ple, the loud­speak­er is op­tion­al)

It's as if most of the ideas of sci­fi got fil­tered through a pu­ri­fi­er and what made sense came out on the oth­er side. I like liv­ing in the fu­ture. I want to see the next one.

The lottery as a rational investment.

There is a prej­u­dice that the poor play lot­ter­ies be­cause they are lazy, can't save and are gen­er­al­ly stupid and are hurt­ing them­selves by chas­ing the fan­ta­sy of win­ning in­stead of sav­ing pen­nies. You know what? It's bull­shit.

When I was in high school (about 13 years old), I once had a plan to make mon­ey: I would play the lot­tery. Here's the mech­a­nism I had in mind.

I would play $1 in the quiniela. Quiniela pays $700 for each $1 you bet, and you have to choose a num­ber be­tween 000 and 999. My idea was: I can bet the $1 my par­ent give me ev­ery day, and there's a chance I make $700. If I had $700 I could buy any­thing a 13-year old kid may wan­t. With $1? Not so much.

Of course you are right now think­ing: What a mo­ron! He has a 0.001 chance of win­ning and it pays 700 to 1, so it's a los­ing bet! Bzzzzzt!

Let's start with some sim­ple sim­u­la­tion code:

import random

n = 476

for tests in range(10000):
    for w in range(1000):
        q = random.randint(0,999)
        if n == q:
            break

    print(w)

Short ex­pla­na­tion: run 10000 sim­u­la­tions of this pro­cess:

  • We play each day for 1000 days.

  • If we win, we stop.

  • If we don't win in 1000 days we stop.

  • We record the num­ber where we stop.

So, I ran it. Here's a graph of the re­sults

histogram

So, how many nev­er won any­thing? In my da­ta set: 3699 play­ers out of 10000 nev­er won any­thing.

How many ac­tu­al­ly lost mon­ey? 5030 play­er­s.

And how many won mon­ey? 4967 play­ers won mon­ey.

2910 play­ers won in less than 350 plays.

3 play­ers got ex­act­ly even mon­ey, win­ning in their 700th play. For them, this was ex­act­ly the same as sav­ing their mon­ey.

So, is it a good idea to play a lot­tery like this? It's a coin toss. Half the time, you end with no mon­ey. Half the time, you end with more mon­ey than if you had saved.

If you are bet­ting dis­pos­able in­come (a suf­fi­cient­ly low amount that "it does­n't hurt"), it works out. You have a fair chance (50%) of a re­ward at least as good as sav­ing the mon­ey, and a de­cent chance (25%) of a re­ward twice as good.

And you have a fair chance (50%) of los­ing mon­ey. But you would lose it very, very slow­ly and pain­less­ly. ¿How well do you think stocks com­pare to that? ¿And what are the bar­ri­ers to en­try on both games?

In short: play­ing the lot­tery is not ir­ra­tional, re­al­ly, it's just a sav­ings plan. It sure was a bet­ter idea than buy­ing can­dy!

A short short scifi story

I wrote this for a con­test at the New Sci­en­tist mag­a­zine. I thought what the heck, maybe some­one will like it. And no, I won't ex­plain it, be­cause that spoils the whole thing.

There is no Such Thing as Free En­er­gy

I wished a cold drink was still a pos­si­bil­i­ty, and looked out, across the baked clay that used to be a swamp. The hatch closed and we start­ed our long trip to the stars, curs­ing the in­ven­tor of the per­pet­u­al mo­tion en­gine all the way.


Contents © 2000-2020 Roberto Alsina