Statistical Significance, P-Values and Confidence Intervals a Brief Guide for Non-Statisticians Using SPSS Statistics

Total Page:16

File Type:pdf, Size:1020Kb

Statistical Significance, P-Values and Confidence Intervals a Brief Guide for Non-Statisticians Using SPSS Statistics Statistical Significance, p-Values and Confidence Intervals A Brief Guide for Non-statisticians Using SPSS Statistics © Colm McGuinness, 2015 Table of Contents 1. Introduction .................................................................................................................................................................... 2 2. Statistical Significance/P-values ...................................................................................................................................... 3 3. Effect Size ........................................................................................................................................................................ 5 4. The H0 Distribution/Sampling Distributions ................................................................................................................... 6 5. Confidence Interval for a Population Statistic ................................................................................................................ 8 6. Example 1: Student marks .............................................................................................................................................. 9 7. Example 2: Household Income by Churn ...................................................................................................................... 13 8. Example 3: Selecting Subgroups ................................................................................................................................... 15 9. Too Many Group Comparisons: Familywise Error Rates .............................................................................................. 22 Page 1 of 22 1. Introduction This document attempts to give a basic understanding of statistical significance values, p values, and confidence intervals. Various simplifications and assumptions are made throughout this document to make it accessible to as wide an audience of statistical practitioners as possible. It is assumed that you are already somewhat familiar with using SPSS and the telco.sav sample file from lab classes with me, gathering data, samples & populations, and basic descriptive statistics such as the mean, standard deviation, and variance. A primary objective is to avoid technical details, and show how a basic understanding can be applied to a wide range of problems1. The basic steps, which will be detailed in later sections, for interpreting any significance/p-value, in summary, are: - Determine the null hypothesis … This is the “nothing different/new/interesting” statement for some statistic derived from your data. The particular statistic will depend on the test being performed. - Interpret the “sig.”/p-value as the probability of the statistic derived from your data occurring, if the null hypothesis is true. - If the p-value is low then reject the null hypothesis: The statistic derived from your data does not support the null hypothesis. - If the p-value is high then do not reject the null hypothesis: The statistic derived from your data agrees with the null hypothesis. Statistics can be used to compare two or more subgroups within a sample of data, for example comparing the marks of students from one year to marks obtained from another year, or the marks obtained by males against those obtained by females, or sales values before and after an advertising campaign: All sorts of things! The main example for this document is the comparison of the means from two groups. For a given set of values, the mean represents the arithmetic centre of the values. The mean can be interpreted as an average, “typical” or indicative value for the whole of the data. So if we want to compare two groups, then we instead compare their means, and infer from any difference found (or not) as to whether the groups differ or not. Comparing only group means can be less than ideal since means might not differ, but other characteristics might, or vice-versa. But it is a commonly used technique, and we will use it here as an example to discuss in the context of statistical significance. The main example used in later sections has the following basic details: The SPSS sample file telco.sav contains, amongst other things, information on gender and household income for a sample of 1000 telecoms customers. We might wonder if household income differs by gender, ie is there any evidence from this sample that male household income is different to female household income? To test this requires an “Independent-Samples T Test” from the SPSS Analyze/Compare Means menu path. Why this is the case is not covered by this document, but it is a common test to use to compare two independent subgroups. It only works for two independent subgroups, ie male and female here. For more than two subgroups you would typically consider an ANOVA test, which is a separate matter. Or for dependent subgroups (eg “before” and “after” measurements on the same subjects) you might be able to use a “Paired-Samples T Test”. The gender SPSS variable is coded as 0=Male, and 1=Female. Without going into too much technical detail, what SPSS will do for this test is calculate the means for the two 2 subgroups, say x0 and x1 for male and female respectively , and then it will calculate the difference in means, ie xx01 . It then calculates the significance associated with this specific difference answer, and that answer is the statistical significance that this document is mostly concerned with. 1 In an ideal world one should not avoid technical details as these can be crucially important! However many people who find themselves needing to use some level of statistics will not themselves need to be overly familiar with technical details. For important statistical work I recommend engaging with a professional statistician, since ultimately ignoring technical details is bad, very bad‼ 2 Note that the subscript notation here will not be shown by SPSS in output. This type of notation is very commonly used in one format or another in statistical texts. A variable name, eg x, with a bar over, eg x, it is used to indicate that it is the mean of the x’s that we are referring to. Page 2 of 22 The initial output from this comparison, showing the descriptive statistics, is shown in Table 1. Group Statistics Gende Std. Std. Error r N Mean Deviation Mean Household income in Male 483 73.2505 92.85082 4.22486 thousands Femal 517 81.5377 118.73355 5.22190 e Table 1: Descriptive statistics from an Independent-Samples T Test on the telco.sav SPSS sample file, comparing household income by gender. So here x0 is 73.2505 and x1 is 81.5377, and their difference (which we will see in Table 2) is xx01 8.2872. The main focus of this document is the understanding and interpretation of statistical significance and p values, which are described in the next section. 2. Statistical Significance/P-values Many statistical tests result in a statistical significance (“sig.”) value in SPSS (and other statistical packages). This is commonly known as the “p value” and is often quoted in research as, for example, “p=0.0819” or “p<0.01” or “p>0.05”. The Independent-Samples T Test from the introduction above produces the following results table3, which has been split to make it fit on the page. The significance answers have been highlighted with shading: Levene's Test for Equality of Variances F Sig. Household income in thousands Equal variances assumed 3.259 .071 Equal variances not assumed t-test for Equality of Means Std. Error 95% Confidence Interval of the Difference t df Sig. (2-tailed) Mean Difference Difference Lower Upper -1.224 998 .221 -8.28720 6.77230 -21.57678 5.00238 -1.234 968.412 .218 -8.28720 6.71697 -21.46868 4.89428 Table 2: Results of an independent samples T test in SPSS2. Statistical significance is highlighted by the shaded cells. The (statistical) significance is the probability that your actual statistic (the difference in means here) would be found if the null hypothesis were true4. Typically the null hypothesis is that “nothing different/new/interesting” has been found. Statistically this would typically be written as: 3 The result shown is from the TELCO.sav sample file, and compares the mean household incomes of males and females in the sample. 4 Technically it is that your actual statistic or “worse”. So in this case not just your actual difference in means, but also any even larger difference in means, but the given text is a starting point. Page 3 of 22 5 6 H0: 12 , where 1 and 2 are the population means for the two groups being compared . So the “nothing new/interesting” here would be that the means for both groups will be equal. The sig. value is then the probability of getting your actual difference (or worse) between the two sample means, if H0 is true. In Table 2 the actual difference, from the “mean difference” column, is -8.28720, and the two sig. values to the left of this are the probabilities of finding this particular difference (or worse) if in fact the two population means are equal. Although it is often not explicitly stated all “null hypothesis statistical test procedures” (NHSTP) involve a null hypothesis, and also an alternative hypothesis, commonly called H1 or Ha, for example: H1: 12 . The alternative hypothesis determines the type of test to be performed in terms of whether the test must be “1 tailed” or “2 tailed”. For example the above H1 corresponds to a 2 tailed test, since we don’t know/specify in advance whether 1 might be bigger than 2 or smaller than 2 . This is probably the more common type of
Recommended publications
  • Statistical Significance Testing in Information Retrieval:An Empirical
    Statistical Significance Testing in Information Retrieval: An Empirical Analysis of Type I, Type II and Type III Errors Julián Urbano Harlley Lima Alan Hanjalic Delft University of Technology Delft University of Technology Delft University of Technology The Netherlands The Netherlands The Netherlands [email protected] [email protected] [email protected] ABSTRACT 1 INTRODUCTION Statistical significance testing is widely accepted as a means to In the traditional test collection based evaluation of Information assess how well a difference in effectiveness reflects an actual differ- Retrieval (IR) systems, statistical significance tests are the most ence between systems, as opposed to random noise because of the popular tool to assess how much noise there is in a set of evaluation selection of topics. According to recent surveys on SIGIR, CIKM, results. Random noise in our experiments comes from sampling ECIR and TOIS papers, the t-test is the most popular choice among various sources like document sets [18, 24, 30] or assessors [1, 2, 41], IR researchers. However, previous work has suggested computer but mainly because of topics [6, 28, 36, 38, 43]. Given two systems intensive tests like the bootstrap or the permutation test, based evaluated on the same collection, the question that naturally arises mainly on theoretical arguments. On empirical grounds, others is “how well does the observed difference reflect the real difference have suggested non-parametric alternatives such as the Wilcoxon between the systems and not just noise due to sampling of topics”? test. Indeed, the question of which tests we should use has accom- Our field can only advance if the published retrieval methods truly panied IR and related fields for decades now.
    [Show full text]
  • Tests of Hypotheses Using Statistics
    Tests of Hypotheses Using Statistics Adam Massey¤and Steven J. Millery Mathematics Department Brown University Providence, RI 02912 Abstract We present the various methods of hypothesis testing that one typically encounters in a mathematical statistics course. The focus will be on conditions for using each test, the hypothesis tested by each test, and the appropriate (and inappropriate) ways of using each test. We conclude by summarizing the di®erent tests (what conditions must be met to use them, what the test statistic is, and what the critical region is). Contents 1 Types of Hypotheses and Test Statistics 2 1.1 Introduction . 2 1.2 Types of Hypotheses . 3 1.3 Types of Statistics . 3 2 z-Tests and t-Tests 5 2.1 Testing Means I: Large Sample Size or Known Variance . 5 2.2 Testing Means II: Small Sample Size and Unknown Variance . 9 3 Testing the Variance 12 4 Testing Proportions 13 4.1 Testing Proportions I: One Proportion . 13 4.2 Testing Proportions II: K Proportions . 15 4.3 Testing r £ c Contingency Tables . 17 4.4 Incomplete r £ c Contingency Tables Tables . 18 5 Normal Regression Analysis 19 6 Non-parametric Tests 21 6.1 Tests of Signs . 21 6.2 Tests of Ranked Signs . 22 6.3 Tests Based on Runs . 23 ¤E-mail: [email protected] yE-mail: [email protected] 1 7 Summary 26 7.1 z-tests . 26 7.2 t-tests . 27 7.3 Tests comparing means . 27 7.4 Variance Test . 28 7.5 Proportions . 28 7.6 Contingency Tables .
    [Show full text]
  • Statistical Significance
    Statistical significance In statistical hypothesis testing,[1][2] statistical signif- 1.1 Related concepts icance (or a statistically significant result) is at- tained whenever the observed p-value of a test statis- The significance level α is the threshhold for p below tic is less than the significance level defined for the which the experimenter assumes the null hypothesis is study.[3][4][5][6][7][8][9] The p-value is the probability of false, and something else is going on. This means α is obtaining results at least as extreme as those observed, also the probability of mistakenly rejecting the null hy- given that the null hypothesis is true. The significance pothesis, if the null hypothesis is true.[22] level, α, is the probability of rejecting the null hypothe- Sometimes researchers talk about the confidence level γ sis, given that it is true.[10] This statistical technique for = (1 − α) instead. This is the probability of not rejecting testing the significance of results was developed in the the null hypothesis given that it is true. [23][24] Confidence early 20th century. levels and confidence intervals were introduced by Ney- In any experiment or observation that involves drawing man in 1937.[25] a sample from a population, there is always the possibil- ity that an observed effect would have occurred due to sampling error alone.[11][12] But if the p-value of an ob- 2 Role in statistical hypothesis test- served effect is less than the significance level, an inves- tigator may conclude that that effect reflects the charac- ing teristics of the
    [Show full text]
  • Understanding Statistical Hypothesis Testing: the Logic of Statistical Inference
    Review Understanding Statistical Hypothesis Testing: The Logic of Statistical Inference Frank Emmert-Streib 1,2,* and Matthias Dehmer 3,4,5 1 Predictive Society and Data Analytics Lab, Faculty of Information Technology and Communication Sciences, Tampere University, 33100 Tampere, Finland 2 Institute of Biosciences and Medical Technology, Tampere University, 33520 Tampere, Finland 3 Institute for Intelligent Production, Faculty for Management, University of Applied Sciences Upper Austria, Steyr Campus, 4040 Steyr, Austria 4 Department of Mechatronics and Biomedical Computer Science, University for Health Sciences, Medical Informatics and Technology (UMIT), 6060 Hall, Tyrol, Austria 5 College of Computer and Control Engineering, Nankai University, Tianjin 300000, China * Correspondence: [email protected]; Tel.: +358-50-301-5353 Received: 27 July 2019; Accepted: 9 August 2019; Published: 12 August 2019 Abstract: Statistical hypothesis testing is among the most misunderstood quantitative analysis methods from data science. Despite its seeming simplicity, it has complex interdependencies between its procedural components. In this paper, we discuss the underlying logic behind statistical hypothesis testing, the formal meaning of its components and their connections. Our presentation is applicable to all statistical hypothesis tests as generic backbone and, hence, useful across all application domains in data science and artificial intelligence. Keywords: hypothesis testing; machine learning; statistics; data science; statistical inference 1. Introduction We are living in an era that is characterized by the availability of big data. In order to emphasize the importance of this, data have been called the ‘oil of the 21st Century’ [1]. However, for dealing with the challenges posed by such data, advanced analysis methods are needed.
    [Show full text]
  • What Are Confidence Intervals and P-Values?
    What is...? series Second edition Statistics Supported by sanofi-aventis What are confidence intervals and p-values? G A confidence interval calculated for a measure of treatment effect Huw TO Davies PhD shows the range within which the true treatment effect is likely to lie Professor of Health (subject to a number of assumptions). Care Policy and G A p-value is calculated to assess whether trial results are likely to have Management, occurred simply through chance (assuming that there is no real University of St difference between new treatment and old, and assuming, of course, Andrews that the study was well conducted). Iain K Crombie PhD G Confidence intervals are preferable to p-values, as they tell us the range FFPHM Professor of of possible effect sizes compatible with the data. Public Health, G p-values simply provide a cut-off beyond which we assert that the University of Dundee findings are ‘statistically significant’ (by convention, this is p<0.05). G A confidence interval that embraces the value of no difference between treatments indicates that the treatment under investigation is not significantly different from the control. G Confidence intervals aid interpretation of clinical trial data by putting upper and lower bounds on the likely size of any true effect. G Bias must be assessed before confidence intervals can be interpreted. Even very large samples and very narrow confidence intervals can mislead if they come from biased studies. G Non-significance does not mean ‘no effect’. Small studies will often report non-significance even when there are important, real effects which a large study would have detected.
    [Show full text]
  • Understanding Statistical Significance: a Short Guide
    UNDERSTANDING STATISTICAL SIGNIFICANCE: A SHORT GUIDE Farooq Sabri and Tracey Gyateng September 2015 Using a control or comparison group is a powerful way to measure the impact of an intervention, but doing this in a robust way requires statistical expertise. NPC’s Data Labs project, funded by the Oak Foundation, aims to help charities by opening up government data that will allow organisations to compare the longer-term outcomes of their service to non-users. This guide explains the terminology used in comparison group analysis and how to interpret the results. Introduction With budgets tightening across the charity sector, it is helpful to test whether services are actually helping beneficiaries by measuring their impact. Robust evaluation means assessing whether programmes have made a difference over and above what would have happened without them1. This is known as the ‘counterfactual’. Obviously we can only estimate this difference. The best way to do so is to find a control or comparison group2 of people who have similar characteristics to the service users, the only difference being that they did not receive the intervention in question. Assessment is made by comparing the outcomes for service users with the comparison group to see if there is any statistically significant difference. Creating comparison groups and testing for statistical significance can involve complex calculations, and interpreting the results can be difficult, especially when the result is not clear cut. That’s why NPC launched the Data Labs project to respond to this need for robust quantitative evaluations. This paper is designed as an introduction to the field, explaining the key terminology to non-specialists.
    [Show full text]
  • The Independent Samples T Test 189
    CHAPTER 7 Comparing Two Group Means: distribute The Independent or Samples t Test post, After reading this chapter, you will be able to Differentiate between the one-sample t test and the independentcopy, samples t test Summarize the relationship among an independent variable, a dependent variable, and random assignment Interpret the conceptual ingredients of thenot independent samples t test Interpret an APA style presentation of an independent samples t test Hand-calculate all ingredientsDo for an independent samples t test Conduct and interpret an- independent samples t test using SPSS In the previous chapter, we discussed the basic principles of statistically testing a null hypothesis. We high- lighted theseProof principles by introducing two parametric inferential statistical tools, the z test and the one- sample t test. Recall that we use the z test when we want to compare a sample to the population and we know the population parameters, specifically the population mean and standard deviation. We use the one-sample t test when we do not have access to the population standard deviation. In this chapter, we will add another inferential statistical tool to our toolbox. Specifically, we will learn how to compare the difference between means from two groups drawn from the same population to learn whether that mean difference might exist Draftin the population. 188 Copyright ©2017 by SAGE Publications, Inc. This work may not be reproduced or distributed in any form or by any means without express written permission of the publisher. CHAPTER 7 Comparing Two Group Means: The Independent Samples t Test 189 CONCEPTUAL UNDERSTANDING OF THE STATISTICAL TOOL The Study As a little kid, I was afraid of the dark.
    [Show full text]
  • Estimation: Understanding Confidence Interval S
    StatisticalV Notes I Estimation:s Understanding confidence interval Ah Cook, A Sheik INTRODUCTION presentings instead a confidence interval, one require Thes previous paper of this series described hypothesi they reader to think about what the values actuall testing, showing how a p-value indicates the mean,. thus interpreting the results more fully likelihoodn of a genuine difference existing betwee twos or more groups. An alternative to using p-value CALCULATINGLVA THE CONFIDENCE INTER alone,o to show whether or not differences exist, is t FORN A PROPORTIO report the actual size of the difference. Since a Kaur etl a carrieda out a prevalence study of asthm difference observed between groups is subject to symptoms. and diagnosis in British 12-14 year olds 1 randomt variation it becomes necessary to present no From) a sample of 27,507 children, 20.8% (n=5,736 onlyd the difference, but also a range of values aroun reportede ‘ever having’ asthma. Assuming the sampl thee observed difference within which it is believed th toe be representative, the true national prevalenc true value will lie. Such a range is known as a shouldn be close to this figure, but it remains unknow confidence. interval and a different sample would probably yield a slightly differenty estimate. To calculate a range likel Confidence, intervals may be calculated for means to containo the true figure, we need t proportions, differences between means or knowo by how much the sample proportion is likely t proportions,r relative risks, odds ratios and many othe vary. Put more technically,o we need t summaryy statistics.
    [Show full text]
  • Confidence Intervals and Statistical Significance -Statistical Literacy Guide
    Statistical literacy guide Confidence intervals and statistical significance Last updated: June 2009 Author: Ross Young & Paul Bolton This guide outlines the related concepts of confidence intervals and statistical significance and gives examples of the standard way that both are calculated or tested. In statistics it is important to measure how confident we can be in the results of a survey or experiment. One way of measuring the degree of confidence in statistical results is to review the confidence interval reported by researchers. Confidence intervals describe the range within which a result for the whole population would occur for a specified proportion of times a survey or test was repeated among a sample of the population. Confidence intervals are a standard way of expressing the statistical accuracy of a survey-based estimate. If an estimate has a high error level, the corresponding confidence interval will be wide, and the less confidence we can have that the survey results describe the situation among the whole population. It is common when quoting confidence intervals to refer to the 95% confidence interval around a survey estimate or test result, although other confidence intervals can be reported (e.g. 99%, 90%, even 80%). Where a 95% confidence interval is reported then we can be reasonably confident that the range includes the ‘true’ value for the population as a whole. Formally we would expect it to contain the ‘true’ value 95% of the time. The calculation of a confidence interval is based on the characteristics of a normal distribution. The chart below shows what a normal distribution of results is expected to look like.
    [Show full text]
  • Statistical Approaches to Uncertainty: P Values and Confidence Intervals Unpacked
    133 EBM notebook ...................................................................................... Statistical approaches to uncertainty: p values and confidence intervals unpacked Introduction What is statistical uncertainty? Statistical uncertainty is the uncertainty (present even in a representative sample) associated with the use of sample data to make statements about the wider population. Why do we need measures of uncertainty? It usually is not feasible to include all individuals from a target population in a single study. For example, in a randomised controlled trial (RCT) of a new treatment for hypertension, it would not be possible to include all individuals with hypertension. Instead, a sample (a small subset of this population) is allocated to receive either the new or the standard treatment. What are the measures of uncertainty? Either hypothesis tests (with the calculation of p values) or confidence intervals (CIs) can quantify the amount of statistical uncertainty present in a study, though CIs are usually preferred. n a previous Statistics Note, we defined terms such as not describe the uncertainty around the results. P values and experimental event risk (EER), control event risk (CER), CIs provide additional information to help us determine absolute risk reduction (ARR), and number needed to treat whether the results are both clinically and statistically I 1 (NNT). Estimates such as ARR and NNT alone, however, do significant (table 1). Table 1. Outcomes in the RCT comparing streptomycin with bed rest alone in the treatment of tuberculosis Intervention Survival Death Risk of death ARR 95% CI P value Streptomycin (n = 55) 51 4 4/55 = 7.3% (EER) 25.9% 2 7.3% = 19.6% 5.7% to 33.6% 0.006 Bed rest (n = 52) 38 14 14/52 = 25.9% (CER) The ARR (the difference in risk) is estimated to be 19.6% with streptomycin or as few as 3 to prevent 1 additional person a 95% CI of 5.7% to 33.6%.
    [Show full text]
  • Introduction to Hypothesis Testing 3
    CHAPTER Introduction to Hypothesis 8 Testing 8.1 Inferential Statistics and Hypothesis Testing 8.2 Four Steps to LEARNING OBJECTIVES Hypothesis Testing After reading this chapter, you should be able to: 8.3 Hypothesis Testing and Sampling Distributions 8.4 Making a Decision: 1 Identify the four steps of hypothesis testing. Types of Error 8.5 Testing a Research 2 Define null hypothesis, alternative hypothesis, Hypothesis: Examples level of significance, test statistic, p value, and Using the z Test statistical significance. 8.6 Research in Focus: Directional Versus 3 Define Type I error and Type II error, and identify the Nondirectional Tests type of error that researchers control. 8.7 Measuring the Size of an Effect: Cohen’s d 4 Calculate the one-independent sample z test and 8.8 Effect Size, Power, and interpret the results. Sample Size 8.9 Additional Factors That 5 Distinguish between a one-tailed and two-tailed test, Increase Power and explain why a Type III error is possible only with 8.10 SPSS in Focus: one-tailed tests. A Preview for Chapters 9 to 18 6 Explain what effect size measures and compute a 8.11 APA in Focus: Reporting the Test Cohen’s d for the one-independent sample z test. Statistic and Effect Size 7 Define power and identify six factors that influence power. 8 Summarize the results of a one-independent sample z test in American Psychological Association (APA) format. 2 PART III: PROBABILITY AND THE FOUNDATIONS OF INFERENTIAL STATISTICS 8.1 INFERENTIAL STATISTICS AND HYPOTHESIS TESTING We use inferential statistics because it allows us to measure behavior in samples to learn more about the behavior in populations that are often too large or inaccessi­ ble.
    [Show full text]
  • One-Way Analysis of Variance: Comparing Several Means
    One-Way Analysis of Variance: Comparing Several Means Diana Mindrila, Ph.D. Phoebe Balentyne, M.Ed. Based on Chapter 25 of The Basic Practice of Statistics (6th ed.) Concepts: . Comparing Several Means . The Analysis of Variance F Test . The Idea of Analysis of Variance . Conditions for ANOVA . F Distributions and Degrees of Freedom Objectives: Describe the problem of multiple comparisons. Describe the idea of analysis of variance. Check the conditions for ANOVA. Describe the F distributions. Conduct and interpret an ANOVA F test. References: Moore, D. S., Notz, W. I, & Flinger, M. A. (2013). The basic practice of statistics (6th ed.). New York, NY: W. H. Freeman and Company. Introduction . The two sample t procedures compare the means of two populations. However, many times more than two groups must be compared. It is possible to conduct t procedures and compare two groups at a time, then draw a conclusion about the differences between all of them. However, if this were done, the Type I error from every comparison would accumulate to a total called “familywise” error, which is much greater than for a single test. The overall p-value increases with each comparison. The solution to this problem is to use another method of comparison, called analysis of variance, most often abbreviated ANOVA. This method allows researchers to compare many groups simultaneously. ANOVA analyzes the variance or how spread apart the individuals are within each group as well as between the different groups. Although there are many types of analysis of variance, these notes will focus on the simplest type of ANOVA, which is called the one-way analysis of variance.
    [Show full text]