4
Sep 16

## The pearls of AP Statistics 25 ### Central Limit Theorem versus Law of Large Numbers

They say: The Central Limit Theorem (CLT). Describes the Expected Shape of the Sampling Distribution for Sample Mean $\bar{X}$. For a random sample of size $n$ from a population having mean μ and standard deviation σ, then as the sample size $n$ increases, the sampling distribution of the sample mean $\bar{X}$ approaches an approximately normal distribution. (Agresti and Franklin, p.321)

I say: There are at least three problems with this statement.

Problem 1. With any notion or statement, I would like to know its purpose in the first place. The primary purpose of the law of large numbers is to estimate population parameters. The Central Limit Theorem may be a nice theoretical result, but why do I need it? The motivation is similar to the one we use for introducing the z score. There is a myriad of distributions. Only some standard distributions have been tabulated. Suppose we have a sequence of variables $X_n$, none of which have been tabulated. Suppose also that, as $n$ increases, those variables become close to a normal variable in the sense that the cumulative probabilities (areas under their respective densities) become close:

(1) $P(X_n\le a)\rightarrow P(normal\le a)$ for all $a$.

Then we can use tables developed for normal variables to approximate $P(X_n\le a)$. This justifies using (1) as the definition of a new convergence type called convergence in distribution.

Problem 2. Having introduced convergence (1), we need to understand what it means in terms of densities (distributions). As illustrated in Excel, the law of large numbers means convergence to a spike. In particular, the sample mean converges to a mass concentrated at μ (densities contract to one point). Referring to the sample mean in the context of CLT is misleading, because the CLT is about densities stabilization. Figure 1. Law of large numbers with n=100, 1000, 10000

Figure 1 appeared in my posts before, I just added n=10,000, to show that densities do not stabilize. Figure 2. Central limit theorem with n=100, 1000, 10000

In Figure 2, for clarity I use line plots instead of histograms. The density for n=100 is very rugged. The blue line (for n=1000) is more rugged than the orange (for n=10,000). Convergence to a normal shape is visible, although slow.

Main problem. It is not the sample means that converge to a normal distribution. It is their z scores $z=\frac{\bar{X}-E\bar{X}}{\sigma(\bar{X})}$

that do. Specifically, $P(\frac{\bar{X}-E\bar{X}}{\sigma(\bar{X})}\le a)\rightarrow P(z\le a)$ for all $a$

where $z$ is a standard normal variable.

In my simulations I used sample means for Figure 1 and z scores of sample means for Figure 2. In particular, z scores always have means equal to zero, and that can be seen in Figure 2. In your class, you can use the Excel file. As usual, you have to enable macros.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9309648,"math_prob":0.9949719,"size":2599,"snap":"2019-43-2019-47","text_gpt3_token_len":558,"char_repetition_ratio":0.11791907,"word_repetition_ratio":0.004524887,"special_character_ratio":0.21546748,"punctuation_ratio":0.11960784,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9992958,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,8,null,6,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-20T00:11:16Z\",\"WARC-Record-ID\":\"<urn:uuid:8f99ce83-c2ff-4ff3-b194-42bf32e658de>\",\"Content-Length\":\"72301\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f69bbe69-88f0-4002-a30d-5d5878000ebc>\",\"WARC-Concurrent-To\":\"<urn:uuid:5caa62c6-942d-499f-80da-3f4c7895bd0f>\",\"WARC-IP-Address\":\"146.66.86.164\",\"WARC-Target-URI\":\"https://raisingthebar.nl/2016/09/04/pearls-ap-statistics-25/\",\"WARC-Payload-Digest\":\"sha1:3MGQF5ZMUNS4HYTNPCOHFUITE5II2HNO\",\"WARC-Block-Digest\":\"sha1:YUMRRSLVOQFFQF5CGUJUV462UNMZLRFW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496670268.0_warc_CC-MAIN-20191119222644-20191120010644-00211.warc.gz\"}"}