Finding Confidence Intervals and Performing Hypothesis Testing for One-Sample T-Tests in Excel 2011 Instructions for Mac Users

Total Page:16

File Type:pdf, Size:1020Kb

Finding Confidence Intervals and Performing Hypothesis Testing for One-Sample T-Tests in Excel 2011 Instructions for Mac Users Finding Confidence Intervals and Performing Hypothesis Testing for one-sample t-tests in Excel 2011 Instructions for Mac Users For Confidence Intervals: 1. Copy a single continuous variable into a new sheet. 2. Sort the new sheet ascending by the variable to move any missing values to the bottom. 3. Calculate the mean, standard deviation, and n in blank cells next to the variable: Mean: =AVERAGE([select data]) Standard deviation: =STDEV([select data]) n: =COUNTA([select data]) 4. Calculate the standard error. Divide the standard deviation by the square root of the number of cases of data, n. SE = standard deviation/SQRT(n) 5. To find the size of the interval, multiple the standard error by the critical value t*. To find t*: The degrees of freedom is: =(n-1) For a 95% confidence interval, calculate t* (t-critical). =T.INV.2T(0.05,[enter degrees of freedom]) 6. The 95 % confidence interval is found by: = calculated mean ± (t*× SE) For Hypothesis test: 1. To find the t-statistic, you use the same mean and standard error as the confidence interval. If the null hypothesis assumes a mean of μ, then the t- statistic is: t = (Mean - μ)/SE 2. To find the p-value and t-critical for a left-sided alternative hypothesis test: p-value: =T.DIST(t,n-1,TRUE) t-critical: =T.INV(0.05, n-1) 3. To find the p-value for a right-sided alternative hypothesis test: p-value: = T.DIST.RT(t,n-1) t-critical: =T.INV(0.95, n-1) 4. To find the p-value for a two-sided alternative hypothesis test: p-value: = T.DIST.2T(t,n-1) t-critical: =T.INV.2T(0.05, n-1) ***NOTE: When using two-tailed tests in Excel, you will get an error message if your t-statistic is negative when calculating the p-value. Additionally, the t- critical provided will always be positive. For the p-value always type in a positive t-statistic and compare your t-statistic (disregarding original sign) to the t-critical provided. .
Recommended publications
  • Confidence Intervals for the Population Mean Alternatives to the Student-T Confidence Interval
    Journal of Modern Applied Statistical Methods Volume 18 Issue 1 Article 15 4-6-2020 Robust Confidence Intervals for the Population Mean Alternatives to the Student-t Confidence Interval Moustafa Omar Ahmed Abu-Shawiesh The Hashemite University, Zarqa, Jordan, [email protected] Aamir Saghir Mirpur University of Science and Technology, Mirpur, Pakistan, [email protected] Follow this and additional works at: https://digitalcommons.wayne.edu/jmasm Part of the Applied Statistics Commons, Social and Behavioral Sciences Commons, and the Statistical Theory Commons Recommended Citation Abu-Shawiesh, M. O. A., & Saghir, A. (2019). Robust confidence intervals for the population mean alternatives to the Student-t confidence interval. Journal of Modern Applied Statistical Methods, 18(1), eP2721. doi: 10.22237/jmasm/1556669160 This Regular Article is brought to you for free and open access by the Open Access Journals at DigitalCommons@WayneState. It has been accepted for inclusion in Journal of Modern Applied Statistical Methods by an authorized editor of DigitalCommons@WayneState. Robust Confidence Intervals for the Population Mean Alternatives to the Student-t Confidence Interval Cover Page Footnote The authors are grateful to the Editor and anonymous three reviewers for their excellent and constructive comments/suggestions that greatly improved the presentation and quality of the article. This article was partially completed while the first author was on sabbatical leave (2014–2015) in Nizwa University, Sultanate of Oman. He is grateful to the Hashemite University for awarding him the sabbatical leave which gave him excellent research facilities. This regular article is available in Journal of Modern Applied Statistical Methods: https://digitalcommons.wayne.edu/ jmasm/vol18/iss1/15 Journal of Modern Applied Statistical Methods May 2019, Vol.
    [Show full text]
  • STAT 22000 Lecture Slides Overview of Confidence Intervals
    STAT 22000 Lecture Slides Overview of Confidence Intervals Yibi Huang Department of Statistics University of Chicago Outline This set of slides covers section 4.2 in the text • Overview of Confidence Intervals 1 Confidence intervals • A plausible range of values for the population parameter is called a confidence interval. • Using only a sample statistic to estimate a parameter is like fishing in a murky lake with a spear, and using a confidence interval is like fishing with a net. We can throw a spear where we saw a fish but we will probably miss. If we toss a net in that area, we have a good chance of catching the fish. • If we report a point estimate, we probably won’t hit the exact population parameter. If we report a range of plausible values we have a good shot at capturing the parameter. 2 Photos by Mark Fischer (http://www.flickr.com/photos/fischerfotos/7439791462) and Chris Penny (http://www.flickr.com/photos/clearlydived/7029109617) on Flickr. Recall that CLT says, for large n, X ∼ N(µ, pσ ): For a normal n curve, 95% of its area is within 1.96 SDs from the center. That means, for 95% of the time, X will be within 1:96 pσ from µ. n 95% σ σ µ − 1.96 µ µ + 1.96 n n Alternatively, we can also say, for 95% of the time, µ will be within 1:96 pσ from X: n Hence, we call the interval ! σ σ σ X ± 1:96 p = X − 1:96 p ; X + 1:96 p n n n a 95% confidence interval for µ.
    [Show full text]
  • Statistics for Dummies Cheat Sheet from Statistics for Dummies, 2Nd Edition by Deborah Rumsey
    Statistics For Dummies Cheat Sheet From Statistics For Dummies, 2nd Edition by Deborah Rumsey Copyright © 2013 & Trademark by John Wiley & Sons, Inc. All rights reserved. Whether you’re studying for an exam or just want to make sense of data around you every day, knowing how and when to use data analysis techniques and formulas of statistics will help. Being able to make the connections between those statistical techniques and formulas is perhaps even more important. It builds confidence when attacking statistical problems and solidifies your strategies for completing statistical projects. Understanding Formulas for Common Statistics After data has been collected, the first step in analyzing it is to crunch out some descriptive statistics to get a feeling for the data. For example: Where is the center of the data located? How spread out is the data? How correlated are the data from two variables? The most common descriptive statistics are in the following table, along with their formulas and a short description of what each one measures. Statistically Figuring Sample Size When designing a study, the sample size is an important consideration because the larger the sample size, the more data you have, and the more precise your results will be (assuming high- quality data). If you know the level of precision you want (that is, your desired margin of error), you can calculate the sample size needed to achieve it. To find the sample size needed to estimate a population mean (µ), use the following formula: In this formula, MOE represents the desired margin of error (which you set ahead of time), and σ represents the population standard deviation.
    [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]
  • Confidence Intervals
    Confidence Intervals PoCoG Biostatistical Clinic Series Joseph Coll, PhD | Biostatistician Introduction › Introduction to Confidence Intervals › Calculating a 95% Confidence Interval for the Mean of a Sample › Correspondence Between Hypothesis Tests and Confidence Intervals 2 Introduction to Confidence Intervals › Each time we take a sample from a population and calculate a statistic (e.g. a mean or proportion), the value of the statistic will be a little different. › If someone asks for your best guess of the population parameter, you would use the value of the sample statistic. › But how well does the statistic estimate the population parameter? › It is possible to calculate a range of values based on the sample statistic that encompasses the true population value with a specified level of probability (confidence). 3 Introduction to Confidence Intervals › DEFINITION: A 95% confidence for the mean of a sample is a range of values which we can be 95% confident includes the mean of the population from which the sample was drawn. › If we took 100 random samples from a population and calculated a mean and 95% confidence interval for each, then approximately 95 of the 100 confidence intervals would include the population mean. 4 Introduction to Confidence Intervals › A single 95% confidence interval is the set of possible values that the population mean could have that are not statistically different from the observed sample mean. › A 95% confidence interval is a set of possible true values of the parameter of interest (e.g. mean, correlation coefficient, odds ratio, difference of means, proportion) that are consistent with the data. 5 Calculating a 95% Confidence Interval for the Mean of a Sample › ‾x‾ ± k * (standard deviation / √n) › Where ‾x‾ is the mean of the sample › k is the constant dependent on the hypothesized distribution of the sample mean, the sample size and the amount of confidence desired.
    [Show full text]
  • P Values and Confidence Intervals Friends Or Foe
    P values and Confidence Intervals Friends or Foe Dr.L.Jeyaseelan Dept. of Biostatistics Christian Medical College Vellore – 632 002, India JPGM WriteCon March 30-31, 2007, KEM Hospital, Mumbai Confidence Interval • The mean or proportion observed in a sample is the best estimate of the true value in the population. • We can combine these features of estimates from a sample from a sample with the known properties of the normal distribution to get an idea of the uncertainty associated with a single sample estimate of the population value. Confidence Interval • The interval between Mean - 2SE and Mean + 2 SE will be 95%. • That is, we expect that 95% CI will not include the true population value 5% of the time. • No particular reason for choosing 95% CI other than convention. Confidence Interval Interpretation: The 95% CI for the sample mean is interpreted as a range of values which contains the true population mean with probability 0.95%. Ex: Mean serum albumin of the population (source) was 35 g/l. Calculate 95% CI for the mean serum albumin using each of the 100 random samples of size 25. Scatter Plot of 95% CI: Confidence intervals for mean serum albumin constructed from 100 random samples of size 25. The vertical lines show the range within which 95% of sample means are expected to fall. Confidence Interval • CI expresses a summary of the data in the original units or measurement. • It reflects the variability in the data, sample size and the actual effect size • Particularly helpful for non-significant findings. Relative Risk 1.5 95% CI 0.6 – 3.8 Confidence Interval for Low Prevalence • Asymptotic Formula: p ± 1.96 SE provides symmetric CI.
    [Show full text]
  • Student's T Distribution
    Student’s t distribution - supplement to chap- ter 3 For large samples, X¯ − µ Z = n √ (1) n σ/ n has approximately a standard normal distribution. The parameter σ is often unknown and so we must replace σ by s, where s is the square root of the sample variance. This new statistic is usually denoted with a t. X¯ − µ t = n√ (2) s/ n If the sample is large, the distribution of t is also approximately the standard normal. What if the sample is not large? In the absence of any further information there is not much to be said other than to remark that the variance of t will be somewhat larger than 1. If we assume that the random variable X has a normal distribution, then we can say much more. (Often people say the population is normal, meaning the distribution of the rv X is normal.) So now suppose that X is a normal random variable with mean µ and variance σ2. The two parameters µ and σ are unknown. Since a sum of independent normal random variables is normal, the distribution of Zn is exactly normal, no matter what the sample size is. Furthermore, Zn has mean zero and variance 1, so the distribution of Zn is exactly that of the standard normal. The distribution of t is not normal, but it is completely determined. It depends on the sample size and a priori it looks like it will depend on the parameters µ and σ. With a little thought you should be able to convince yourself that it does not depend on µ.
    [Show full text]
  • Multiple Random Variables
    Multiple random variables Multiple random variables We essentially always consider multiple random variables at once. The key concepts: Joint, conditional and marginal distri- −→ butions, and independence of RVs. Let X and Y be discrete random variables. Joint distribution: −→ pXY(x,y) = Pr(X = x and Y = y) Marginal distributions: −→ pX(x) = Pr(X = x) = y pXY(x,y) p (y) = Pr(Y = y) = p (x,y) Y !x XY Conditional distributions! : −→ pX Y=y(x) = Pr(X =x Y = y) = pXY(x,y) / pY(y) | | Example Sample a couple who are both carriers of some disease gene. X = number of children they have Y = number of affected children they have x pXY(x,y) 012345pY(y) 0 0.160 0.248 0.124 0.063 0.025 0.014 0.634 1 0 0.082 0.082 0.063 0.034 0.024 0.285 y 2 0 0 0.014 0.021 0.017 0.016 0.068 3 0 0 0 0.003 0.004 0.005 0.012 4 0 0 0 0 0.000 0.001 0.001 5 0 0 0 0 0 0.000 0.000 pX(x) 0.160 0.330 0.220 0.150 0.080 0.060 Pr( Y = y X = 2 ) | x pXY(x,y) 012 345pY(y) 0 0.160 0.248 0.124 0.063 0.025 0.014 0.634 1 0 0.082 0.082 0.063 0.034 0.024 0.285 y 2 000.014 0.021 0.017 0.016 0.068 3 000 0.003 0.004 0.005 0.012 4 000 0 0.000 0.001 0.001 5 000 0 0 0.000 0.000 pX(x) 0.160 0.330 0.220 0.150 0.080 0.060 y 012345 Pr( Y=y X=2 ) 0.564 0.373 0.064 0.000 0.000 0.000 | Pr( X = x Y = 1 ) | x pXY(x,y) 012345pY(y) 0 0.160 0.248 0.124 0.063 0.025 0.014 0.634 1 0 0.082 0.082 0.063 0.034 0.024 0.285 y 2 0 0 0.014 0.021 0.017 0.016 0.068 3 0 0 0 0.003 0.004 0.005 0.012 4 0 0 0 0 0.000 0.001 0.001 5 0 0 0 0 0 0.000 0.000 pX(x) 0.160 0.330 0.220 0.150 0.080 0.060 x 012345 Pr( X=x Y=1 ) 0.000 0.288 0.288 0.221 0.119 0.084 | Independence Random variables X and Y are independent if p (x,y) = p (x) p (y) −→ XY X Y for every pair x,y.
    [Show full text]
  • History of Biostatistics
    History of biostatistics J. Rosser Matthews University of Maryland, College Park, MD, USA Correspondence to: J. Rosser Matthews Professional Writing Program English Department 1220 Tawes Hall University of Maryland College Park, MD, USA +1 (301) 405-3762 [email protected] Abstract The history of biostatistics could be viewed as an ongoing dialectic between continuity and change. Although statistical methods are used in current clinical studies, there is still ambivalence towards its application when medical practitioners treat individual patients. This article illustrates this dialectic by highlighting selected historical episodes and methodological innovations – such as debates about inoculation and blood - letting, as well as how randomisation was introduced into clinical trial design. These historical episodes are a catalyst to consider assistance of non-practitioners of medicine such as statisticians and medical writers. Methodologically, clinical trials and dialectic by discussing examples from different types of diseases.1 While basically epidemiological studies are united by a antiquity to the emergence of the clinical qualitative, the work is historically population-based focus; they privilege the trial in the mid-20th century. significant because it looked beyond the group (i.e., population) over the clinically individual to suggest a role for larger unique individual. Over time, this pop - Ancient sources: Hippocratic geographic and environmental factors. ulation-based thinking has remained writings and the bible Furthermore, it relied on naturalistic constant; however, the specific statistical Although the Hippocrates writers (active in explanations rather than invoking various techniques to measure and assess group the 5th century BCE) did not employ deities to account for illness and therefore characteristics have evolved.
    [Show full text]
  • Statistical Tests, P-Values, Confidence Intervals, and Power
    Statistical Tests, P-values, Confidence Intervals, and Power: A Guide to Misinterpretations Sander GREENLAND, Stephen J. SENN, Kenneth J. ROTHMAN, John B. CARLIN, Charles POOLE, Steven N. GOODMAN, and Douglas G. ALTMAN Misinterpretation and abuse of statistical tests, confidence in- Introduction tervals, and statistical power have been decried for decades, yet remain rampant. A key problem is that there are no interpreta- Misinterpretation and abuse of statistical tests has been de- tions of these concepts that are at once simple, intuitive, cor- cried for decades, yet remains so rampant that some scientific rect, and foolproof. Instead, correct use and interpretation of journals discourage use of “statistical significance” (classify- these statistics requires an attention to detail which seems to tax ing results as “significant” or not based on a P-value) (Lang et the patience of working scientists. This high cognitive demand al. 1998). One journal now bans all statistical tests and mathe- has led to an epidemic of shortcut definitions and interpreta- matically related procedures such as confidence intervals (Trafi- tions that are simply wrong, sometimes disastrously so—and mow and Marks 2015), which has led to considerable discussion yet these misinterpretations dominate much of the scientific lit- and debate about the merits of such bans (e.g., Ashworth 2015; erature. Flanagan 2015). In light of this problem, we provide definitions and a discus- Despite such bans, we expect that the statistical methods at sion of basic statistics that are more general and critical than issue will be with us for many years to come. We thus think it typically found in traditional introductory expositions.
    [Show full text]
  • Skewness-Kurtosis Adjusted Confidence Estimators and Significance Tests Wolf-Dieter Richter
    Richter Journal of Statistical Distributions and Applications (2016) 3:4 DOI 10.1186/s40488-016-0042-3 RESEARCH Open Access Skewness-kurtosis adjusted confidence estimators and significance tests Wolf-Dieter Richter Correspondence: [email protected] Abstract Institute of Mathematics, University First and second kind modifications of usual confidence intervals for estimating the of Rostock, Ulmenstraße 69, Haus 3, expectation and of usual local alternative parameter choices are introduced in a way 18057 Rostock, Germany such that the asymptotic behavior of the true non-covering probabilities and the covering probabilities under the modified local non-true parameter assumption can be asymptotically exactly controlled. The orders of convergence to zero of both types of probabilities are assumed to be suitably bounded below according to an Osipov-type condition and the sample distribution is assumed to satisfy a corresponding tail condition due to Linnik. Analogous considerations are presented for the power function when testing a hypothesis concerning the expectation both under the assumption of a true hypothesis as well as under a modified local alternative. A limit theorem for large deviations by S.V. Nagajev/V.V. Petrov applies to prove the results. Applications are given for exponential families. Keywords: Orders of confidence, Orders of modified local alternatives, True non-covering probabilities, Local non-true parameter choice, Covering probabilities, Linnik condition, Osipov-type condition, Skewness-kurtosis adjusted decisions, Order of significance, Error probabilities of first and second kind, Exponential family, Large deviations Mathematics Subject Classification: 62E20; 62F05; 62F12; 60F10 1 Introduction Asymptotic normality of the distribution of the suitably centered and normalized arith- metic mean of i.i.d.
    [Show full text]
  • Confidence Intervals for One Standard Deviation with Tolerance Probability
    PASS Sample Size Software NCSS.com Chapter 641 Confidence Intervals for One Standard Deviation with Tolerance Probability Introduction This procedure calculates the sample size necessary to achieve a specified width (or in the case of one-sided intervals, the distance from the standard deviation to the confidence limit) with a given tolerance probability at a stated confidence level for a confidence interval about a single standard deviation when the underlying data distribution is normal. Technical Details For a single standard deviation from a normal distribution with unknown mean, a two-sided, 100(1 – α)% confidence interval is calculated by 1/ 2 1/ 2 n −1 n −1 s , s χ 2 χ 2 1−α / 2,n−1 α / 2,n−1 A one-sided 100(1 – α)% upper confidence limit is calculated by 1/ 2 n −1 s 2 χα ,n−1 Similarly, the one-sided 100(1 – α)% lower confidence limit is 1/ 2 n −1 s 2 χ1−α ,n−1 For two-sided intervals, the distance from the standard deviation to each of the limits is different. Thus, instead of specifying the distance to the limits we specify the width of the interval, W. 641-1 © NCSS, LLC. All Rights Reserved. PASS Sample Size Software NCSS.com Confidence Intervals for One Standard Deviation with Tolerance Probability The basic equation for determining sample size for a two-sided interval when W has been specified is 1/ 2 1/ 2 n −1 n −1 = − W s 2 s 2 χα / 2,n−1 χ1−α / 2,n−1 For one-sided intervals, the distance from the standard deviation to limits, D, is specified.
    [Show full text]