Presentation is loading. Please wait.

Presentation is loading. Please wait.

Inferential Statistics

Similar presentations


Presentation on theme: "Inferential Statistics"— Presentation transcript:

1 Inferential Statistics
Descriptive statistics (mainly for samples) Our objective is to make a statement with reference to a parameter describing a population Inferential statistics does this using a two-part process: (1) Estimation (of a population parameter) (2) Hypothesis testing

2 Inferential Statistics
Estimation (of a population parameter) - The estimation part of the process calculates an estimate of the parameter from our sample (called a statistic), as a kind of “guess” as to what the population parameter value actually is Hypothesis testing - This takes the notion of estimation a little further; it tests to see if a sampled statistic is really different from a population parameter to a significant extent, which we can express in terms of the probability of getting that result

3 S xi x = n Estimation Point Estimator Estimate
Another term for a statistic is a point estimate, which is simply an estimate of a population parameter The formula you use to compute a statistic is an estimator, e.g. S xi i=1 i=n n x = Point Estimate Estimator In this case, the sample mean is being used to estimate m, the population mean

4 Estimation It is quite unlikely that our statistic will be exactly the same as the population parameter (because we know that sampling error does occur), but ideally it should be pretty close to ‘right’, perhaps within some specified range of the parameter We can define this in terms of our statistic falling within some interval of values around the parameter value (as determined by our sampling distribution) But how close is close enough?

5 Estimation and Confidence
We can ask this question more formally: (1) How confident can we be that a statistic falls within a certain distance of a parameter (2) What is the probability that the parameter is within a certain range that includes our sample statistic This range is known as a confidence interval This probability is the confidence level

6 Confidence Interval & Probability
A confidence interval is expressed in terms of a range of values and a probability (e.g. my lectures are between 60 and 70 minutes long 95% of the time) For this example, the confidence level that I used is the 95% level, which is the most commonly used confidence level Other commonly selected confidence levels are 90% and 99%, and the choice of which confidence level to use when constructing an interval often depends on the application

7 Central Limit Theorem We have now discussed both the notions of probability and the way that the normal distribution By combining these two concepts, we can go further and state some expectations about how the statistics that we derive from a sample might relate to the parameters that describe the population from which the sample is drawn The approach that we use to construct confidence intervals relies upon the central limit theorem

8 The Central Limit Theorem
Suppose we draw a random sample of size n (x1, x2, x3, … xn – 1, xn) from a population random variable that is distributed with mean µ and standard deviation σ Do this repeatedly, drawing many samples from the population, and then calculate the of each sample We will treat the values as another distribution, which we will call the sampling distribution of the mean ( )

9 The Central Limit Theorem
Given a distribution with a mean μ and variance σ2, the sampling distribution of the mean approaches a normal distribution with a mean (μ) and a variance σ2/n as n, the sample size, increases The amazing and counter- intuitive thing about the central limit theorem is that no matter what the shape of the original (parent) distribution, the sampling distribution of the mean approaches a normal distribution

10 Central Limit Theorem A normal distribution is approached very quickly as n increases Note that n is the sample size for each mean and not the number of samples Remember in a sampling distribution of the mean the number of samples is assumed to be infinite Foundation for many statistical procedures because the distribution of the phenomenon under study does not have to be normal because its average will be

11 Central Limit Theorem Three different components of the central limit theorem (1) successive sampling from a population (2) increasing sample size (3) population distribution Keep in mind that this theorem applies only to the mean and not other statistics

12 Central Limit Theorem – Example
On the right are shown the resulting frequency distributions each based on 500 means. For n = 4, 4 scores were sampled from a uniform distribution 500 times and the mean computed each time. The same method was followed with means of 7 scores for n = 7 and 10 scores for n = 10. When n increases: 1. The distributions becomes more and more normal 2. The spread of the distributions decreases Source:

13 Central Limit Theorem – Example
The distribution of an average tends to be normal, even when the distribution from which the average is computed is decidedly non-normal. Source:

14 Central Limit Theorem & Confidence Intervals for the Mean
The central limit theorem states that given a distribution with a mean μ and variance σ2, the sampling distribution of the mean approaches a normal distribution with a mean (μ) and a variance σ2/n as n, the sample size, increases Since we know something about the distribution of sample means, we can make statements about how confident we are that the true mean is within a given interval about our sample mean

15 Standard Error The standard deviation of the sampling distribution of the mean (X) is formulated as: This is the standard error (the unit of measurement of a confidence interval, used to express the closeness of a statistic to a parameter When we construct a confidence interval we are finding how many standard errors away from the mean we have to go to find the area under the curve equal to the confidence level sX = s n

16 P(Z>=2.0) = 0.0228 P(-2<=Z<=+2) = 1 – 2*0.0228 = 0.9544
99.7% 95% 68% f(x) -3σ σ σ μ σ σ σ P(Z>=2.0) = P(-2<=Z<=+2) = 1 – 2* = P(Z>=1.96) = P(-1.96<=Z<=+1.96) = 1 – 2*0.025 = 0.95

17 Confidence Intervals for the Mean
The sampling distribution of the mean roughly follows a normal distribution 95% of the time, an individual sample mean should lie within 2 (actually 1.96) standard deviations of the mean

18 Confidence Intervals for the Mean

19 Confidence Intervals for the Mean
An individual sample mean should, 95% of the time, lie within of the true mean, μ Rearrange the expression: This tells us that 95% of the time the true mean should lie within of the sample mean

20 Confidence Intervals for the Mean
More generally, a (1- α)*100% confidence interval around the sample mean is: Where zα is the value taken from the z-table that is associated with a fraction α of the weight in the tails (and therefore α/2 is the area in each tail) margin of error Standard error

21 Example Income Example: Suppose we take a sample of 75 students from UNC and record their family incomes. Suppose the incomes (in thousands of dollars) are: ··· Source:

22 Example We don't know σ so we can't use the interval! We will replace σ by the sample standard deviation s

23 Example (89.96 – 1.96*5.97, *5.97) (78.26, )

24 Constructing a Confidence Interval
1. Select our desired confidence level (1-α)*100% 2. Calculate α and α/2 3. Look up the corresponding z-score in a standard normal table 4. Multiply the z-score by the standard error to find the margin of error 5. Find the interval by adding and subtracting this product from the mean

25 Constructing a Confidence Interval - Steps
Select our desired level of confidence Let’s suppose we want to construct an interval using the 95% confidence level Calculate α and α/2 (1-α)*100% = 95%  α = 0.05, α/2 = 0.025 3. Look up the corresponding z-score α/2 =  a z-score of 1.96

26 Constructing a Confidence Interval - Steps
4. Multiply the z-score by the standard error to find the margin of error 5. Find the interval by adding and subtracting this product from the mean

27 Common Confidence Levels and a values
For your convenience, here is a table of commonly used confidence levels, α and α/2 values, and corresponding z-scores: (1 - a)*100% α α/2 Zα/2 90% 95% 99%

28 Constructing a Confidence Interval - Example
Suppose we conduct a poll to try and get a sense of the outcome of an upcoming election with two candidates. We poll 1000 people, and 550 of them respond that they will vote for candidate A How confident can we be that a given person will cast their vote for candidate A? Select our desired levels of confidence We’re going to use the 90%, 95%, and 99% levels

29 Constructing a Confidence Interval - Example
Calculate α and α/2 Our a values are 0.1, 0.05, and 0.01 respectively Our a/2 values are 0.05, 0.025, and 0.005 3. Look up the corresponding z-scores Our Za/2 values are 1.645, 1.96, and 2.58 Multiply the z-score by the standard error to find the margin of error First we need to calculate the standard error

30 Constructing a Confidence Interval - Example
Find the interval by adding and subtracting this product from the mean In this case, we are working with a distribution we have not previously discussed, a normal binomial distribution (i.e. a vote can choose Candidate A or B, a binomial function) We have a probability estimator from our sample, where the probability of an individual in our sample voting for candidate A was found to be 550/1000 or 0.55 We can use this information in a formula to estimate the standard error for such a distribution:

31 Constructing a Confidence Interval - Example
Multiply the z-score by the standard error cont. For a normal binominal distribution, the standard error can be estimated using: sX = s n = (p)(1-p) (0.55)(0.45) 1000 = We can now multiply this value by the z-scores to calculate the margins of error for each conf. level

32 Constructing a Confidence Interval - Example
Multiply the z-score by the standard error cont. We calculate the margin of error and add and subtract that value from the mean (0.55 in this case) to find the bounds of our confidence intervals at each level of confidence: Margin Bounds CI Za/2 of error Lower Upper 90% 95% 99%

33 t-distribution The central limit theorem applies when the sample size is “large”, only then will the distribution of means possess a normal distribution When the sample size is not “large”, the frequency distribution of the sample means has what is known as the t-distribution t-distribution is symmetric, like the normal distribution, but has a slightly different shape The t distribution has relatively more scores in its tails than does the normal distribution. It is therefore leptokurtic

34 t-distribution The t-distribution or Student's t-distribution is a probability distribution that arises in the problem of estimating the mean of a normally distributed population when the sample size is small It is the basis of the popular Student's t-tests for the statistical significance of the difference between two sample means, and for confidence intervals for the difference between two population means

35 t-distribution The derivation of the t-distribution was first published in 1908 by William Sealy Gosset. He was not allowed to publish under his own name, so the paper was written under the pseudonym Student The t-test and the associated theory became well-known through the work of R.A. Fisher, who called the distribution "Student's distribution" Student's distribution arises when (as in nearly all practical statistical work) the population standard deviation is unknown and has to be estimated from the data

36 Confidence intervals & t-distribution
The areas under the t-distribution are given in Table A.3 in Appendix A e.g., with a sample size of n = 30, 95% confidence intervals are constructed using t = 2.045, instead of the value of z = 1.96 used above for the normal distribution For the commuting data (textbook):

37 Confidence intervals & t-distribution
We are 95% sure that the true mean is within the interval (16.54, 27.32) More precisely, 95% of confidence intervals constructed from samples in this way will contain the true mean


Download ppt "Inferential Statistics"

Similar presentations


Ads by Google