{"id":2393,"date":"2026-11-08T12:31:17","date_gmt":"2026-11-08T12:31:17","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=2393"},"modified":"2026-11-09T13:10:13","modified_gmt":"2026-11-09T13:10:13","slug":"central-limit-theorem-tutorial","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/","title":{"rendered":"Central Limit Theorem"},"content":{"rendered":"<h1><strong><b>Central Limit Theorem: Definition, Formula and Worked Examples<\/b><\/strong><\/h1>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">Roll one die and every face is equally likely. The picture is flat. Now roll it 30 times and take the average. Do this thousands of times and plot the averages. A bell shaped curve appears, centred on 3.5. Nothing about the die changed. What changed is that you looked at averages. This is the central limit theorem.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">It is one of the most useful ideas in statistics, because it lets you use the normal curve for problems where the data are not normal. Confidence intervals, margins of error and most hypothesis tests rest on it. It is also the reason why large samples are trusted.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">This tutorial explains what the theorem says, its formulas for the sum and for the mean, a corrected dice example, a step by step method with a full worked question, how large a sample you need, and a Python simulation.<\/p>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Central Limit Theorem Definition<\/h2>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">Take a population with a finite mean and variance. Draw many random samples of the same size n. As n grows large enough, the distribution of the sample means gets close to a normal distribution, whatever the shape of the population.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">In symbols, for independent random variables X1 to Xn with the same distribution, mean mu and variance sigma squared:<\/p>\n<div style=\"border: 1px solid #d9e0ea; border-radius: 8px; overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch;\">\n<table style=\"width: 100%; min-width: 760px; border-collapse: collapse; font-family: Arial,Helvetica,sans-serif; font-size: 16px; line-height: 1.6; color: #1f2937;\">\n<caption style=\"caption-side: top; text-align: left; padding: 14px 16px; font-weight: bold; font-size: 17px; color: #0f2a4a;\">Distribution of the sum and the sample mean for large n<\/caption>\n<thead>\n<tr>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38; width: 300px;\" scope=\"col\">Quantity<\/th>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38;\" scope=\"col\">Distribution for large n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Sum of the values<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Close to normal with mean n times mu and variance n times sigma squared<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Sample mean<\/th>\n<td style=\"padding: 12px 16px; vertical-align: top;\">Close to normal with mean mu and variance sigma squared divided by n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">Two effects as n increases:<\/p>\n<ol style=\"font-family: Arial,Helvetica,sans-serif; margin: 0 0 16px; padding-left: 28px; font-size: 17px; line-height: 1.7; color: #1f2937;\">\n<li style=\"margin: 0 0 8px;\">The shape becomes more normal.<\/li>\n<li style=\"margin: 0 0 8px;\">The spread of the sample mean shrinks. Its standard deviation is sigma divided by the square root of n. The spread of the sum grows, since its variance is n times sigma squared.<\/li>\n<\/ol>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">The live page says that the spread decreases, without saying that this applies to the mean only.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">The conditions: the samples must be random and independent, and the population needs a finite variance. The population does not have to be normal.<\/p>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Central Limit Theorem Example: Rolling a Die<\/h2>\n<div style=\"margin: 16px 0 24px;\"><img loading=\"lazy\" decoding=\"async\" style=\"display: block; max-width: 100%; height: auto; border: 1px solid #d9e0ea; border-radius: 8px;\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm-1024x512.png\" alt=\"Central limit theorem example of rolling a die\" width=\"1024\" height=\"512\" \/><\/div>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">A fair die gives each face, 1 to 6, a probability of one in six. The mean is 3.5 and the standard deviation is 1.708.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">The live page says that if about 1,000 students each roll the die, the histogram of the results moves toward a normal curve. It does not. I ran this: 1,000 students rolled once, and the counts for faces 1 to 6 were 172, 165, 172, 171, 169 and 151. The histogram is flat, which is the uniform distribution.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">Now let each student roll 30 times and write down the average. I ran this too. The 1,000 averages had a mean of 3.483, a standard deviation of 0.314 (theory: 1.708 divided by the square root of 30 = 0.312), and a skew of minus 0.141, which is nearly symmetric. A histogram of these averages is bell shaped.<\/p>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">The sum of 30 rolls has a mean of 30 times 3.5 = 105 and a standard deviation of 9.354. The chance that the sum goes above 120, from a simulation of 200,000 trials, is 0.0488. The normal approximation gives the same, 0.0488.<\/p>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Why do We Need the Central Limit Theorem?<\/h2>\n<ul style=\"font-family: Arial,Helvetica,sans-serif; margin: 0 0 16px; padding-left: 24px; font-size: 17px; line-height: 1.7; color: #1f2937;\">\n<li style=\"margin: 0 0 8px;\">Real data are rarely normal. Incomes, waiting times and defects are skewed, but their averages behave normally.<\/li>\n<li style=\"margin: 0 0 8px;\">It justifies the Z and T tests, and confidence intervals for means.<\/li>\n<li style=\"margin: 0 0 8px;\">It lets you answer probability questions about a sample mean: what is the chance that the average is above, below or between certain values?<\/li>\n<li style=\"margin: 0 0 8px;\">It explains why more data helps. The standard error falls as the sample grows.<\/li>\n<\/ul>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">A typical word problem gives a population mean, a standard deviation and a sample size, and asks for the probability that the sample mean falls in some range. The steps below show how to solve it.<\/p>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">How to Calculate with the Central Limit Theorem?<\/h2>\n<ol style=\"font-family: Arial,Helvetica,sans-serif; margin: 0 0 16px; padding-left: 28px; font-size: 17px; line-height: 1.7; color: #1f2937;\">\n<li style=\"margin: 0 0 8px;\">Identify the parts. The population mean mu, the standard deviation sigma and the sample size n. The population size is not needed unless the population is small. The value you are asking about is a sample mean, x bar.\n<div style=\"margin: 16px 0 24px;\"><img decoding=\"async\" style=\"display: block; max-width: 100%; height: auto; border: 1px solid #d9e0ea; border-radius: 8px;\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm1.jpg\" alt=\"Central limit theorem step 1, identify the population mean, standard deviation and sample size\" \/><\/div>\n<\/li>\n<li style=\"margin: 0 0 8px;\">Draw a picture (optional). Draw a normal curve centred on mu, and shade the area that the question asks about.<\/li>\n<li style=\"margin: 0 0 8px;\">Calculate the z score for the sample mean: z = (x bar minus mu) divided by (sigma divided by the square root of n).\n<div style=\"margin: 16px 0 24px;\"><img decoding=\"async\" style=\"display: block; max-width: 100%; height: auto; border: 1px solid #d9e0ea; border-radius: 8px;\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm2.jpg\" alt=\"Central limit theorem step 3, calculate the z score of the sample mean\" \/><\/div>\n<\/li>\n<li style=\"margin: 0 0 8px;\">Find the probability from a z table, or with software. For a greater than question, use 1 minus the table value.<\/li>\n<li style=\"margin: 0 0 8px;\">Write the answer in words.<\/li>\n<\/ol>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">The live page replaces steps 3 to 6 with a subtraction from 0.75, which is not a valid method.<\/p>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Worked Example<\/h2>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">The live page mentions 64 children and sigma = 6, but never completes the question. Here is a full version with made up numbers. A population has a mean of 20 and a standard deviation of 6. You take a sample of 64. What is the probability that the sample mean is above 21? And between 19 and 21?<\/p>\n<ul style=\"font-family: Arial,Helvetica,sans-serif; margin: 0 0 16px; padding-left: 24px; font-size: 17px; line-height: 1.7; color: #1f2937;\">\n<li style=\"margin: 0 0 8px;\">Standard error = 6 divided by the square root of 64 = 6 divided by 8 = 0.75. This is the value that the live page calls 0.75.<\/li>\n<li style=\"margin: 0 0 8px;\">Z score for 21 = (21 minus 20) divided by 0.75 = 1.333.<\/li>\n<li style=\"margin: 0 0 8px;\">Probability above 21 = 1 minus 0.9088 = 0.0912, about 9.12 percent.<\/li>\n<li style=\"margin: 0 0 8px;\">Z scores for 19 and 21 are minus 1.333 and 1.333. The area between them is 0.8176, about 81.76 percent.<\/li>\n<\/ul>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">Meaning: if you take many samples of 64, about 9 percent will have an average above 21, and about 82 percent will fall between 19 and 21. The sample mean tends to stay close to 20, because the standard error is only 0.75.<\/p>\n<div style=\"position: relative; width: 100%; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 20px 0; border-radius: 8px; background: #0f2a4a;\"><iframe style=\"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;\" title=\"Central limit theorem video\" src=\"https:\/\/www.youtube.com\/embed\/yyHNh_6luPc\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">How Large Does n Need to be?<\/h2>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">A common rule of thumb is n of 30 or more. It is only a guide. The more skewed the population, the bigger n you need. I tested a strongly skewed population (waiting times) with 5,000 samples for each size, and measured the skew of the sample means. A skew near 0 means a symmetric shape.<\/p>\n<div style=\"border: 1px solid #d9e0ea; border-radius: 8px; overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch;\">\n<table style=\"width: 100%; min-width: 760px; border-collapse: collapse; font-family: Arial,Helvetica,sans-serif; font-size: 16px; line-height: 1.6; color: #1f2937;\">\n<caption style=\"caption-side: top; text-align: left; padding: 14px 16px; font-weight: bold; font-size: 17px; color: #0f2a4a;\">Skew of the sample means from a skewed population at different sample sizes<\/caption>\n<thead>\n<tr>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38; width: 200px;\" scope=\"col\">Sample size n<\/th>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38;\" scope=\"col\">Skew of the sample means<\/th>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38;\" scope=\"col\">Shape<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">2<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">1.43<\/td>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Still clearly skewed<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">10<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">0.63<\/td>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Less skewed<\/td>\n<\/tr>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">30<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">0.37<\/td>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Close, but not perfect<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; color: #0f2a4a; vertical-align: top;\" scope=\"row\">100<\/th>\n<td style=\"padding: 12px 16px; vertical-align: top;\">0.24<\/td>\n<td style=\"padding: 12px 16px; vertical-align: top;\">Close to normal<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">So for a very skewed population, n = 30 is not enough for a perfect bell, though it is often good enough for a rough answer. If the population is already close to normal, even a small n works. This also means that small samples, such as 17 males or 11 seniors in the live page&#8217;s list, need a nearly normal population.<\/p>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Simulate the Central Limit Theorem in Python<\/h2>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">I ran the code below, and the output is real.<\/p>\n<div style=\"margin: 20px 0; border: 1px solid #d9e0ea; border-radius: 8px; overflow: hidden;\">\n<div style=\"background: #0f2a4a; color: #ffffff; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; padding: 8px 16px;\">python<\/div>\n<pre style=\"margin: 0; padding: 16px; color: #1f2937; font-family: 'Courier New',Courier,monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; white-space: pre; background: #f5f8fc;\">import numpy as np\r\nfrom scipy import stats\r\n\r\nrng = np.random.default_rng(3)\r\n\r\n# One die: uniform, not normal. 1000 students roll once.\r\none = rng.integers(1, 7, 1000)\r\nprint(\"One roll counts 1..6:\", np.bincount(one)[1:].tolist())\r\n\r\n# Average of 30 rolls for 1000 students\r\navg = rng.integers(1, 7, (1000, 30)).mean(axis=1)\r\nprint(\"Mean of averages:\", round(float(avg.mean()), 3), \" sd:\", round(float(avg.std()), 3),\r\n      \" theory sd:\", round(float(np.std(np.arange(1, 7)) \/ 30 ** 0.5), 3), \" skew:\", round(float(stats.skew(avg)), 3))\r\n\r\n# Sum of 30 rolls: normal with mean n*mu and variance n*sigma^2\r\nmu, var = 3.5, 35 \/ 12\r\nn = 30\r\nprint(\"Sum mean:\", n * mu, \" sum sd:\", round(float((n * var) ** 0.5), 3))\r\nsums = rng.integers(1, 7, (200000, n)).sum(axis=1)\r\nprint(\"P(sum &gt; 120) simulated:\", round(float((sums &gt; 120).mean()), 4),\r\n      \" normal approx:\", round(float(stats.norm.sf(120.5, n * mu, (n * var) ** 0.5)), 4))\r\n\r\n# Children example: mean 20, sigma 6, n 64\r\nse = 6 \/ 64 ** 0.5\r\nz = (21 - 20) \/ se\r\nprint(\"SE:\", se, \" z:\", round(z, 3), \" P(mean &gt; 21):\", round(float(stats.norm.sf(z)), 4))\r\nz1, z2 = (19 - 20) \/ se, (21 - 20) \/ se\r\nprint(\"P(19 &lt; mean &lt; 21):\", round(float(stats.norm.cdf(z2) - stats.norm.cdf(z1)), 4))\r\n\r\n# Skewed population: how n changes shape\r\npop = rng.exponential(10, 100000)\r\nfor k in (2, 10, 30, 100):\r\n    m = rng.choice(pop, (5000, k)).mean(axis=1)\r\n    print(\"n\", k, \" skew of means:\", round(float(stats.skew(m)), 2))<\/pre>\n<div style=\"background: #1f2937; color: #ffffff; font-family: Arial,Helvetica,sans-serif; font-size: 14px; font-weight: bold; padding: 8px 16px;\">output<\/div>\n<pre style=\"margin: 0; padding: 16px; color: #1f2937; font-family: 'Courier New',Courier,monospace; font-size: 14px; line-height: 1.7; overflow-x: auto; white-space: pre; background: #ffffff;\">One roll counts 1..6: [172, 165, 172, 171, 169, 151]\r\nMean of averages: 3.483  sd: 0.314  theory sd: 0.312  skew: -0.141\r\nSum mean: 105.0  sum sd: 9.354\r\nP(sum &gt; 120) simulated: 0.0488  normal approx: 0.0488\r\nSE: 0.75  z: 1.333  P(mean &gt; 21): 0.0912\r\nP(19 &lt; mean &lt; 21): 0.8176\r\nn 2  skew of means: 1.43\r\nn 10  skew of means: 0.63\r\nn 30  skew of means: 0.37\r\nn 100  skew of means: 0.24<\/pre>\n<\/div>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Common Mistakes to Avoid<\/h2>\n<div style=\"border: 1px solid #d9e0ea; border-radius: 8px; overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch;\">\n<table style=\"width: 100%; min-width: 760px; border-collapse: collapse; font-family: Arial,Helvetica,sans-serif; font-size: 16px; line-height: 1.6; color: #1f2937;\">\n<caption style=\"caption-side: top; text-align: left; padding: 14px 16px; font-weight: bold; font-size: 17px; color: #0f2a4a;\">Common mistakes and fixes<\/caption>\n<thead>\n<tr>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38; width: 300px;\" scope=\"col\">Mistake<\/th>\n<th style=\"background: #0f2a4a; color: #ffffff; text-align: left; padding: 12px 16px; border-bottom: 2px solid #0b1f38;\" scope=\"col\">Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Thinking the data become normal<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">The distribution of the sample mean becomes normal. The data stay as they are<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Applying it to a single roll or a single value<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">It applies to sums and averages<\/td>\n<\/tr>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Saying the population must be normal<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">It does not, for a large enough n<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Using sigma instead of sigma divided by the square root of n<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">For a sample mean, divide by the square root of n<\/td>\n<\/tr>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Subtracting the z score from a number<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Read the probability from the z table<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Saying the spread of the sum shrinks<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Only the spread of the mean shrinks<\/td>\n<\/tr>\n<tr style=\"background: #ffffff;\">\n<th style=\"text-align: left; padding: 12px 16px; border-bottom: 1px solid #e5e9f0; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Trusting n = 30 for a very skewed population<\/th>\n<td style=\"padding: 12px 16px; border-bottom: 1px solid #e5e9f0; vertical-align: top;\">Check the shape, and use a bigger n<\/td>\n<\/tr>\n<tr style=\"background: #f5f8fc;\">\n<th style=\"text-align: left; padding: 12px 16px; color: #0f2a4a; vertical-align: top;\" scope=\"row\">Using it for dependent or biased samples<\/th>\n<td style=\"padding: 12px 16px; vertical-align: top;\">It needs random, independent samples<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2 style=\"font-family: Arial,Helvetica,sans-serif; font-size: 26px; line-height: 1.3; font-weight: bold; color: #0f2a4a; margin: 36px 0 12px;\">Practice Questions<\/h2>\n<ol style=\"font-family: Arial,Helvetica,sans-serif; margin: 0 0 16px; padding-left: 28px; font-size: 17px; line-height: 1.7; color: #1f2937;\">\n<li style=\"margin: 0 0 8px;\">A population has mean 50 and standard deviation 10. For samples of size 25, what are the mean and the standard error of the sample mean?<\/li>\n<li style=\"margin: 0 0 8px;\">For the same population and n = 25, find z for a sample mean of 53.<\/li>\n<li style=\"margin: 0 0 8px;\">The sum of 30 dice rolls has what mean and variance?<\/li>\n<li style=\"margin: 0 0 8px;\">Does the central limit theorem say that a large sample of data is normal?<\/li>\n<\/ol>\n<p style=\"font-family: Arial,Helvetica,sans-serif; font-size: 17px; line-height: 1.7; color: #1f2937; margin: 0 0 16px;\">Answers: 1) The mean is 50. The standard error is 10 divided by 5 = 2. 2) z = (53 minus 50) divided by 2 = 1.5. 3) The mean is 105 and the variance is 30 times 2.9167 = 87.5. 4) No. The data keep their own shape. It is the distribution of the sample mean that becomes normal. These are my own answers, so please recheck them before publishing.<\/p>\n<p>The central limit theorem is the reason that one curve, the normal curve, can handle so many different problems. The data keep their own shape. It is the average that becomes bell shaped, and its spread shrinks with the square root of n. Remember that, and most of inference follows.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Central Limit Theorem: Definition, Formula and Worked Examples Roll one die and every face is equally likely. The picture is flat. Now roll it 30 times and take the average. Do this thousands of times and plot the averages. A bell shaped curve appears, centred on 3.5. Nothing about the die changed. What changed is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,1704],"tags":[194,193,195,192],"class_list":["post-2393","post","type-post","status-publish","format-standard","hentry","category-data-science","category-data-science-modules","tag-central-limit-theorem-example","tag-central-limit-theorem-formula","tag-central-limit-theorem-towards-data-science","tag-central-limit-theorem-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Central Limit Theorem: Definition, Formula and Examples<\/title>\n<meta name=\"description\" content=\"Learn the central limit theorem: definition, formulas for sums and means, a corrected dice example, z score steps and Python simulation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Central Limit Theorem: Definition, Formula and Examples\" \/>\n<meta property=\"og:description\" content=\"Learn the central limit theorem: definition, formulas for sums and means, a corrected dice example, z score steps and Python simulation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-08T12:31:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-09T13:10:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm-1024x512.png\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/\",\"url\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/\",\"name\":\"Central Limit Theorem: Definition, Formula and Examples\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm-1024x512.png\",\"datePublished\":\"2026-11-08T12:31:17+00:00\",\"dateModified\":\"2026-11-09T13:10:13+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Learn the central limit theorem: definition, formulas for sums and means, a corrected dice example, z score steps and Python simulation.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm.png\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm.png\",\"width\":3175,\"height\":1587},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Central Limit Theorem\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Central Limit Theorem: Definition, Formula and Examples","description":"Learn the central limit theorem: definition, formulas for sums and means, a corrected dice example, z score steps and Python simulation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Central Limit Theorem: Definition, Formula and Examples","og_description":"Learn the central limit theorem: definition, formulas for sums and means, a corrected dice example, z score steps and Python simulation.","og_url":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2026-11-08T12:31:17+00:00","article_modified_time":"2026-11-09T13:10:13+00:00","og_image":[{"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm-1024x512.png","type":"","width":"","height":""}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/","url":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/","name":"Central Limit Theorem: Definition, Formula and Examples","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm-1024x512.png","datePublished":"2026-11-08T12:31:17+00:00","dateModified":"2026-11-09T13:10:13+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Learn the central limit theorem: definition, formulas for sums and means, a corrected dice example, z score steps and Python simulation.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm.png","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/06\/CetralLimitThm.png","width":3175,"height":1587},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/data-science\/data-science-modules\/central-limit-theorem-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Central Limit Theorem"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=2393"}],"version-history":[{"count":10,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2393\/revisions"}],"predecessor-version":[{"id":12151,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/2393\/revisions\/12151"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=2393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=2393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=2393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}