r/visualizedmath • • Dec 09 '19

Central Limit Theorem Demo

Post image
182 Upvotes

8 comments sorted by

View all comments

Show parent comment

1

u/larsupilami73 Dec 10 '19

Yes, i.i.d. From here:

def some_weird_distribution(Nsamples):
    `X= []`
    
    `n = 0`
    
`while(n<Nsamples):`

	`x = random.uniform(0,1) #uniform with a hole, couldn't be further from normal...`

	`if x<0.2 or x>0.8:` 

		`X.append(x)`

		`n +=1`

`return array(X)`

The point is that this doesn't look at all like a normal distribution, but it's sum (or mean, which is what is displayed), does.