Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter VIII: Elements of Inferential Statistics

Similar presentations


Presentation on theme: "Chapter VIII: Elements of Inferential Statistics"— Presentation transcript:

1 Chapter VIII: Elements of Inferential Statistics

2 Hypothesis Testing Hypothesis testing is a form of statistical inference to reach conclusions about scientific problems. Hypothesis testing is the mechanism that updates and tests scientific principles and refines these principles. This in turn is the basis of the advancement of scientific research. The testing of sample validity is crucial to the application of inferential statistics, thus we must be able to test our samples.

3 Classical/Traditional Methods
Classical Hypothesis Testing Formal multi-step process that leads to a conclusive statement regarding the hypothesis: Step 1: State Null and Alternate Hypothesis Step 2: Select appropriate statistical test Step 3: Select level of significance Step 4: Delineate regions of rejection and non-rejection of null hypothesis Step 5: Calculate test statistic Step 6: Make decision regarding null and alternate hypotheses

4 State Null and Alternate Hypothesis
The null is the established value: 𝐻 0 : 𝜇= μ 𝐻 or 𝐻 0 : 𝜇− μ 𝐻 =0 This states that the mean value of the null hypothesis is equal to the actual mean. Thus, if you subtract the hypothesized mean from the mean then the value should equal zero. The alternate hypothesis and the null are mutually exclusive. 𝐻 𝐴 comes in three variations, one nondirectional and two directional 𝐻 𝐴 ≠ 𝐻 0 thus the alternate is any value but the null value. 𝐻 𝐴 < 𝐻 0 or 𝐻 𝐴 > 𝐻 0 thus the alternate is chosen to establish itself as greater than or less than the null hypothesis depending on the experiment.

5 Hypothesis Testing Choosing direction
This graph represents a nondirectional test. The test is only interested if the alternate hypothesis does not equal the null hypothesis. In the case of a < than or > than scenario, the curve would only be shaded on the side of the alternate hypothesis. Greater than the mean would shade the right tail, less than the left.

6 Error in Hypothesis Testing
In hypothesis testing we are using a sample to either retain or reject a null hypothesis. Due to it being from a sample, there is always going to be a probability of error in rejecting or not rejecting the null hypothesis. Type I Error A type I error occurs when the null hypothesis is rejected when it is actually true. The likelihood of this occurring is alpha - 𝛼 This level is selected prior to the hypothesis test Type II Error A type II error occurs when the null hypothesis is not rejected but the null hypothesis is actually false. The likelihood of this error is beta - 𝛽

7 Selecting a Statistical Test
An appropriate statistical test must be chosen. In the chosen case a sample difference of means test is chosen. However, many different tests exist. A list can be found at: A sample difference of means test is: 𝑍 𝑜𝑟 𝑡= 𝑥 − 𝜇 σ 𝑥 or 𝑥 − 𝜇 σ / 𝑛 Where Z or t is the test statistic ( Z if n > 30, t if n < 30) 𝑥 is the sample mean 𝜇 is the population mean σ 𝑥 is the standard error of the mean 𝜎 is the population standard deviation n is the sample size

8 Selecting the Level of Significance
The level of significance or alpha (𝛼) can be established for a hypothesis test. The alpha is essentially the probability of error in your hypothesis test, thus you have control over the chance of a type I error. To reduce the chance of error 𝛼 is often set very low as errors leading to false conclusions can seriously flaw research. 𝛼 = .05 or .01 are common levels of significance used.

9 Selecting Level of Significance Continued
Error is very important when setting the 𝛼 of your hypothesis test. The acceptable error of your test must be established based on the needs of the study. Common example in type I errors is a jury trial where an innocent person is found guilty. In this case you would want to establish a very small margin of error if possible. Is 1 in 20 acceptable? Is 1 in 100?

10 Delineate Regions of Rejection and Non-rejection of the Null Hypothesis
Once 𝛼 has been established we must determine where we want it to be under the curve. Directional or Non-Directional tests are then revisited to establish where 𝛼 occurs. A two-tailed format (nondirectional) must divide 𝛼 between the two tails of the curve thus 𝛼= .05 represents .025 of each tail region. If 𝛼= .01 then it represents .005 in each tail. A one-tailed format (directional) establishes the entire 𝛼 value in one tail depending on whether we want a < or > value for the alternate hypothesis.

11 Z-Scores in Hypothesis Testing
By converting the 𝛼 into a z-score we can establish the scores which result in the rejection of the null hypothesis. In a two-tailed test 𝛼 = .025 leaves .95 of the area under the curve. Using a table or calculator we can determine the range of .95 to be to 1.96 as a z-score. Common 𝛼 to z-scores are: α = .05 = -1.96, 1.96 α = .02 = , 2.326 α = .01 = , 2.576

12 Calculate the Test Statistic
Use: 𝑍 𝑜𝑟 𝑡= 𝑥 − 𝜇 σ 𝑥 or 𝑥 − 𝜇 σ / 𝑛 Use the z-score (or t-score) of the test statistic to establish whether the statistic falls within the selected range of alpha. If the score is within the range then the null hypothesis is retained. If the score is not within the range then the null hypothesis is rejected.

13 P-Value Hypothesis Testing
Most commonly used approach as classical approach has limitations. In Classical testing: Selection of alpha can lack theoretical basis Binary rejection/retention of hypothesis is limited P-Value Testing: Establishes exact probability of getting test statistic essentially the probability of a type I error Establishes a rejection region

14 P-Value Testing Four Steps:
Calculate Z-Score of test statistic as in classical approach Calculate the probability of the value using the area under the normal curve from a table Shade the rejection area by subtracting the probability from value. Double the area established if using a nondirectional hypothesis A step-by-step example can be found here:

15 P-Value Testing Continues
P-Values allow more direct experimental conclusions: Significance and Type I errors are calculated making the exact measurements available. Easy to obtain multiple values over time or area and compare the values for analysis. Still require significant analysis and rigorousness in studies to prevent invalid results or conclusions.

16 Applications Using Small Samples
Values can be calculated similar to the Z-Test but using the t-test equations. 𝑡= 𝑥 − 𝜇 𝑠 / 𝑛 −1 or 𝑡= 𝑥 − 𝜇 σ / 𝑛 Sample sizes less than 30 have a similar distribution with the exception the there is a higher probability of values falling in the tails due to the increased uncertainty of the small sample size in finding the true value. Hypothesis rejection is still based on the p-value and if p < .05 then there is most likely high level of certainty.

17 One Sample Difference of Proportions Test
Z-Tests can be done comparing proportions as well. 𝑝 ±𝑍 𝜎 𝑝 =𝑝 ±𝑧 𝑝(1−𝑝) 𝑛 −1 𝑁 −𝑛 𝑁 This can establish the proportion to be compared to the population. Example of this methodology:

18 Issues in Inferential Testing and Test Selection
Defining Degrees of Freedom In a sample size of n there are n degrees of freedom When a parameter is estimated one degree of freedom is lost. In the t-test sample we are estimating 𝜇 and thus one degree of freedom is lost. This is represented as n - 1 in the equation. In two sample tests 𝜇 1 and 𝜇 2 are calculated so two degrees of freedom are lost (n – 2). Degrees of Freedom is an important concept for many other distributions.

19 Sampling Issues and Inferential Testing
Regardless of sampling method all samples must be drawn independently and separately. Although there are a couple of exceptions not examined here. Artificial and Natural Sampling Artificial samples draw unbiased random samples from the population and infers characteristics based on the sample data. Natural Samples draw from random events and are analyzed under the idea that natural events are random processes in themselves. Inferential processes should be applied with care when applied to natural samples. The differences between these methods are important and debated in Geography.

20 Inferential Test Selection
Choosing methods for geographic problems is quite complicated and requires careful analysis of the procedural methods. Table 8.7 in the text (page ) provides a set to assist in this process. Parametric and NonParametric tests Parametric Tests are when inferential tests require knowledge about population parameters and make assumptions about the underlying population distribution. Non-parametric Tests do not require this underlying knowledge.

21 Data and Tests Parametric tests are run for data at:
An ordinal or nominal scale; in the case of these scales a parametric test is required. At the intervallic/ratio scale different strategies can be used: Run only a parametric test – when no doubt that assumptions and requirements to run test are met. Run only a nonparametric test – when there is reason to believe that the assumptions or parameters are violated. The data must be downgraded to a nominal or ordinal scale and then one can run a parametric test. Run both tests – If there is uncertainty in the amount the statistics are violated. P-tests can be run and the values compared to establish and investigate the analytical questions.

22 The End Finally, here is an applet designed to demonstrate classical hypothesis testing for further exploration:


Download ppt "Chapter VIII: Elements of Inferential Statistics"

Similar presentations


Ads by Google