Image:Central limit thm 1.png

illustration of central limit theorem, part 1

I created these images: Image:Central_limit_thm_1.png, Image:Central_limit_thm_2.png, Image:Central_limit_thm_3.png, Image:Central_limit_thm_4.png. I license these images under the GFDL:

Missing image
Heckert_GNU_white.png


Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
Subject to disclaimers.

Here are the GNU Octave commands to create these images:


dx = 0.002;
x1 = (1:1000)*dx;
p1 = [1:2:1000, 500*ones (1, 500)];

p1 = p1 / (sum(p1)*dx);
m = sum (x1.*p1)*dx;
x1 = x1 - m;
s = sqrt (sum ((x1.^2).*p1)*dx);
dx1 = dx/s;
x1 = x1/s;
p1 = p1*s;

p2 = conv (p1, p1) * dx1;
nx1 = length(x1);
x2 = [x1+min(x1) x1(2:nx1)+max(x1)];

p3 = conv (p2, p1) * dx1;
x3 = [x2+min(x1) x1(2:nx1)+max(x2)];

p4 = conv (p3, p1) * dx1;
x4 = [x3+min(x1) x1(2:nx1)+max(x3)];

p2 = p2 * sqrt(2);
x2 = x2 / sqrt(2);
dx2 = dx1 / sqrt(2);

p3 = p3 * sqrt(3);
x3 = x3 / sqrt(3);
dx3 = dx1 / sqrt(3);

p4 = p4 * sqrt(4);
x4 = x4 / sqrt(4);
dx4 = dx1 / sqrt(4);

sum (p1) * dx1
sum (p1.*x1) * dx1
sum (p1.*x1.^2) * dx1

sum (p2) * dx2
sum (p2.*x2) * dx2
sum (p2.*x2.^2) * dx2

sum (p3) * dx3
sum (p3.*x3) * dx3
sum (p3.*x3.^2) * dx3

sum (p4) * dx4
sum (p4.*x4) * dx4
sum (p4.*x4.^2) * dx4

axis ([-5 5 0 0.5])

gset nokey
gset terminal png

gset output 'central_limit_thm_1.png'
plot (x1, p1, 'r-')

gset output 'central_limit_thm_2.png'
plot (x2, p2, 'r-')

gset output 'central_limit_thm_3.png'
plot (x3, p3, 'r-')

gset output 'central_limit_thm_4.png'
plot (x4, p4, 'r-')

File links

There are no pages that link to this file.

Navigation

  • Art and Cultures
    • Art (https://academickids.com/encyclopedia/index.php/Art)
    • Architecture (https://academickids.com/encyclopedia/index.php/Architecture)
    • Cultures (https://www.academickids.com/encyclopedia/index.php/Cultures)
    • Music (https://www.academickids.com/encyclopedia/index.php/Music)
    • Musical Instruments (http://academickids.com/encyclopedia/index.php/List_of_musical_instruments)
  • Biographies (http://www.academickids.com/encyclopedia/index.php/Biographies)
  • Clipart (http://www.academickids.com/encyclopedia/index.php/Clipart)
  • Geography (http://www.academickids.com/encyclopedia/index.php/Geography)
    • Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
    • Maps (http://www.academickids.com/encyclopedia/index.php/Maps)
    • Flags (http://www.academickids.com/encyclopedia/index.php/Flags)
    • Continents (http://www.academickids.com/encyclopedia/index.php/Continents)
  • History (http://www.academickids.com/encyclopedia/index.php/History)
    • Ancient Civilizations (http://www.academickids.com/encyclopedia/index.php/Ancient_Civilizations)
    • Industrial Revolution (http://www.academickids.com/encyclopedia/index.php/Industrial_Revolution)
    • Middle Ages (http://www.academickids.com/encyclopedia/index.php/Middle_Ages)
    • Prehistory (http://www.academickids.com/encyclopedia/index.php/Prehistory)
    • Renaissance (http://www.academickids.com/encyclopedia/index.php/Renaissance)
    • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
    • United States (http://www.academickids.com/encyclopedia/index.php/United_States)
    • Wars (http://www.academickids.com/encyclopedia/index.php/Wars)
    • World History (http://www.academickids.com/encyclopedia/index.php/History_of_the_world)
  • Human Body (http://www.academickids.com/encyclopedia/index.php/Human_Body)
  • Mathematics (http://www.academickids.com/encyclopedia/index.php/Mathematics)
  • Reference (http://www.academickids.com/encyclopedia/index.php/Reference)
  • Science (http://www.academickids.com/encyclopedia/index.php/Science)
    • Animals (http://www.academickids.com/encyclopedia/index.php/Animals)
    • Aviation (http://www.academickids.com/encyclopedia/index.php/Aviation)
    • Dinosaurs (http://www.academickids.com/encyclopedia/index.php/Dinosaurs)
    • Earth (http://www.academickids.com/encyclopedia/index.php/Earth)
    • Inventions (http://www.academickids.com/encyclopedia/index.php/Inventions)
    • Physical Science (http://www.academickids.com/encyclopedia/index.php/Physical_Science)
    • Plants (http://www.academickids.com/encyclopedia/index.php/Plants)
    • Scientists (http://www.academickids.com/encyclopedia/index.php/Scientists)
  • Social Studies (http://www.academickids.com/encyclopedia/index.php/Social_Studies)
    • Anthropology (http://www.academickids.com/encyclopedia/index.php/Anthropology)
    • Economics (http://www.academickids.com/encyclopedia/index.php/Economics)
    • Government (http://www.academickids.com/encyclopedia/index.php/Government)
    • Religion (http://www.academickids.com/encyclopedia/index.php/Religion)
    • Holidays (http://www.academickids.com/encyclopedia/index.php/Holidays)
  • Space and Astronomy
    • Solar System (http://www.academickids.com/encyclopedia/index.php/Solar_System)
    • Planets (http://www.academickids.com/encyclopedia/index.php/Planets)
  • Sports (http://www.academickids.com/encyclopedia/index.php/Sports)
  • Timelines (http://www.academickids.com/encyclopedia/index.php/Timelines)
  • Weather (http://www.academickids.com/encyclopedia/index.php/Weather)
  • US States (http://www.academickids.com/encyclopedia/index.php/US_States)

Information

  • Home Page (http://academickids.com/encyclopedia/index.php)
  • Contact Us (http://www.academickids.com/encyclopedia/index.php/Contactus)

  • Clip Art (http://classroomclipart.com)
Toolbox
Personal tools