Morendil comments on 2012 Less Wrong Census/Survey - Less Wrong

65 Post author: Yvain 03 November 2012 11:00PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (733)

You are viewing a single comment's thread. Show more comments above.

Comment author: MixedNuts 04 November 2012 04:26:57PM *  5 points [-]

Intuitive answer:

Picture a horizontal line and points scattered around it. If there are many points, the line will be dark and there'll be a cloud around it. If there are few points, you'll get a vague shape and it won't be easy to tell where the line originally was.

Rigorous answer:

print [
len(filter(lambda x: x > 0.6 *per_day,
[
sum([ randint(0,1) for birth in range(0, per_day) ])
for day in range(0, 365)
]))
for per_day in (15, 45)
]

Thoughtful answer: Why would I bother thinking? Fetch me an apple.

Edit: For copulation's sake, whose kneecaps do I have to break to make Markdown leave my indentation the Christian Underworld alone, and who wrote those filthy blatant lies masquerading as comment formatting help?

Comment author: Morendil 05 November 2012 12:11:10AM 7 points [-]

For another intuitive answer, try lower values of 15, like 1.

The Python code works better, on my machine, if I add the line "from random import randint" at the top.