the central limit theorem says that the sum of variables sampled from distributions that…
- User
the central limit theorem says that the sum of variables sampled from distributions that are not gaussian can be approximated to follow a gaussian normal distribution... is this in contraddiction with the fact that the sum of indipendent Bernulli distributed variables can be described by a Poisson binomial distibution?
- Assistant
The Central Limit Theorem (CLT) and the Poisson binomial distribution are not in contradiction with each other. They address different aspects of the sum of independent random variables.
The CLT states that as the number of independent and identically distributed (i.i.d.) random variables increases, their sum (or average) will be approximately normally distributed, regardless of the original distribution of the variables. This theorem assumes that the random variables have finite mean and variance. The normal approximation becomes more accurate as the sample size grows.
On the other hand, the Poisson binomial distribution describes the sum of independent Bernoulli random variables, which are a specific type of discrete random variable. The Poisson binomial distribution is a discrete distribution and is not a Gaussian (continuous) distribution. However, it is important to note that as the number of Bernoulli trials increases, the Poisson binomial distribution can be approximated by a Poisson distribution, which is a continuous distribution.
- User
but then let's consider a z-test for two variables that rapresent the risk difference R1 - R2 of two samples, both R1 and R2 should follow a Bernulli distribution where pi is the probability of an outcome. then what distribution does the difference (theta = R1 - R2) follow? the z-test should imply that theta follows a normal gaussian distribution, but I know that the sum and difference of Bernulli distibutions should be a Poisson Binomial distribution.
- Assistant
You are correct that the difference (theta = R1 - R2) of two Bernoulli random variables should follow a Poisson binomial distribution, not a Gaussian normal distribution. The confusion arises from the application of the z-test, which assumes normality, to a discrete distribution like the Poisson binomial.
The z-test is typically used for comparing two proportions or means of continuous variables, assuming a normal distribution. However, when dealing with discrete variables like Bernoulli random variables, the appropriate test is often a chi-square test or a binomial test, rather than a z-test.
In your case, since R1 and R2 are both Bernoulli random variables, the difference (theta = R1 - R2) will indeed follow a Poisson binomial distribution. The z-test is not the appropriate method to use here, and its assumption of normality does not hold for the Poisson binomial distribution.
To test the difference between two proportions or risk differences from Bernoulli samples, you should use a binomial test or a chi-square test for independence, which are more appropriate for discrete data.