Laboratory in Oceanography: Data and Methods Intro to the Statistics

Total Page:16

File Type:pdf, Size:1020Kb

Laboratory in Oceanography: Data and Methods Intro to the Statistics Laboratory in Oceanography: Data and Methods Intro to the Statistics Toolbox MAR550, Spring 2020 Miles A. Sundermeyer Sundermeyer MAR 550 Spring 2020 1 Intro to Statistics Toolbox Statistics Toolbox/Descriptive Statistics Measures of Central Tendency Function Name Description Geomean Geometric mean harmmean Harmonic mean mean Arithmetic mean median 50th percentile mode Most frequent value trimmean Trimmed mean (specify percentile) 1/ n n 1 n n • Geometric Mean: ai a1 a2 an exp ln ai i1 n i1 n n , a 0 for all i • Harmonic Mean: 1 1 1 n 1 i i1 ai a1 a2 an Sundermeyer MAR 550 Spring 2020 2 Intro to Statistics Toolbox Statistics Toolbox/Descriptive Statistics Measures of Dispersion (or Spread) Function Name Description iqr Interquartile range mad Mean absolute deviation moment Central moment of all orders range Range std Standard deviation var Variance • Interquartile range: difference between the 75th and 25th percentiles • Mean absolute deviation: mean(abs(x-mean(x))) • Moment: mean((x-mean(x)).^order (e.g., order=2 gives variance) • skewness: third central moment of x, divided by cube of its standard deviation (pos/neg skewness implies longer right/left tail) • kurtosis: fourth central moment of x, divided by 4th power of its standard deviation (high kurtosis means sharper peak and longer/fatter tails) Sundermeyer MAR 550 Spring 2020 3 Intro to Statistics Toolbox Statistics Toolbox/Descriptive Statistics Examples of Skewness & Kurtosis: Gaussian (normal) Distribution Sundermeyer MAR 550 Spring 2020 4 Intro to Statistics Toolbox Statistics Toolbox/Descriptive Statistics Bootstrap Method • Involves choosing random samples with replacement from a data set and analyzing each sample data set the same way as the original data set. The number of elements in each bootstrap sample set equals the number of elements in the original data set. The range of sample estimates obtained provides a means of estimating uncertainty of the quantity being estimated. • In general, bootstrap method can be used to compute uncertainty for any functional calculation, provided the sample data set is ‘representative’ of the true distribution. Jacknife Method • Similar to the bootstrap is the jackknife, but uses re-sampling to estimate the bias and variance of sample statistics. Sundermeyer MAR 550 Spring 2020 5 Intro to Statistics Toolbox Statistics Toolbox/Descriptive Statistics Example: Bootstrap Method for estimating uncertainty on Lagrangian Integral Time Scale (from Sundermeyer and Price, 1998) “Integrating the LACFs using 100 days as the upper limit of the integral of Rii(t) in (12) gives the integral timescales I(11,22) = (10.6 ± 4.8, 5.4 ± 2.8) days for the (zonal, meridional) components, where uncertainties represent 95% confidence limits estimated using a bootstrap method [e.g., Press et al., 1986].” Sundermeyer MAR 550 Spring 2020 6 Intro to Statistics Toolbox Statistics Toolbox/Statistical Visualization Probability Distribution Plots • Normal Probability Plots: >> x = normrnd(10,1,25,1); >> normplot(x) >> x = exprnd(10,100,1); >> normplot(x) Sundermeyer MAR 550 Spring 2020 7 Intro to Statistics Toolbox Statistics Toolbox/Statistical Visualization Probability Distribution Plots • Quantile-Quantile Plots: >> x = poissrnd(10,50,1); y = poissrnd(5,100,1); >> qqplot(x,y); >> x = normrnd(5,1,100,1); >> y = wblrnd(2,0.5,100,1); >> qqplot(x,y); Sundermeyer MAR 550 Spring 2020 8 Intro to Statistics Toolbox Statistics Toolbox/Statistical Visualization Probability Distribution Plots • Cumulative Distribution Plots: >> y = evrnd(0,3,100,1); >> cdfplot(y) >> hold on >> x = -20:0.1:10; >> f = evcdf(x,0,3); >> plot(x,f,'m') >> legend('Empirical', ... 'Theoretical', ... 'Location','NW') Sundermeyer MAR 550 Spring 2020 9 Intro to Statistics Toolbox Statistics Toolbox/Probability Distributions/Supported Distributions Supported distributions include wide range of: • Continuous distributions (data) • Continuous distributions (statistics) • Discrete distributions • Multivariate distributions Function Name Description pdf Probability density functions cdf Cumulative distribution functions inv Inverse cumulative distribution functions stat Distribution statistics functions fit Distribution fitting functions like Negative log-likelihood functions rnd Random number generators https://www.mathworks.com/help/stats/supported-distributions.html Sundermeyer MAR 550 Spring 2020 10 Intro to Statistics Toolbox Statistics Toolbox/Probability Distributions/Supported Distributions Supported distributions (cont’d) Name pdf cdf inv stat fit like rnd ... normrnd, normfit, Normal Normpdf, Normcdf, norminv, randn, normstat mle, normlike (Gaussian) pdf cdf icdf random, dfittool randtool Pearson pearsrnd pearsrnd system Piecewise pdf cdf icdf paretotails random raylrnd, raylpdf, raylcdf, raylinv, raylfit, mle, Rayleigh raylstat random, pdf cdf icdf dfittool randtool ... Sundermeyer MAR 550 Spring 2020 11 Intro to Statistics Toolbox Statistics Toolbox/Probability Distributions/Supported Distributions Supported statistics Name pdf cdf inv stat fit like rnd Chi-square chi2pdf, chi2cdf, chi2inv, chi2sta chi2rnd, pdf cdf icdf t random, randtool F fpdf, pdf fcdf, cdf finv, icdf fstat frnd, random, randtool Noncentral chi-square ncx2pdf, ncx2cdf, ncx2inv, ncx2st ncx2rnd, pdf cdf icdf at random, randtool Noncentral F ncfpdf, ncfcdf, ncfinv, ncfstat ncfrnd, pdf cdf icdf random, randtool Noncentral t nctpdf, nctcdf, nctinv, nctstat nctrnd, pdf cdf icdf random, randtool Student's t tpdf, pdf tcdf, cdf tinv, icdf tstat trnd, random, randtool t location- scale dfittool Sundermeyer MAR 550 Spring 2020 12 Intro to Statistics Toolbox Statistics Toolbox/Hypothesis Tests Hypothesis Testing • Can only disprove a hypothesis • null hypothesis – an assertion about a population. It is "null" in that it represents a status quo belief, such as the absence of a characteristic or the lack of an effect. • alternative hypothesis – a contrasting assertion about the population that can be tested against the null hypothesis H1: µ ≠ null hypothesis value — (two-tailed test) H1: µ > null hypothesis value — (right-tail test) H1: µ< null hypothesis value — (left-tail test) • test statistic – random sample of population collected, and test statistic computed to characterize the sample. The statistic varies with type of test, but distribution under null hypothesis must be known (or assumed). • p-value - probability, under null hypothesis, of obtaining a value of the test statistic as extreme or more extreme than the value computed from the sample. • significance level - threshold of probability, typical value of a is 0.05. If p-value < a the test rejects the null hypothesis; if p-value > α, there is insufficient evidence to reject the null hypothesis. • confidence interval - estimated range of values with a specified probability of containing the true population value of a parameter. Sundermeyer MAR 550 Spring 2020 13 Intro to Statistics Toolbox Statistics Toolbox/Hypothesis Tests Hypothesis Testing • Hypothesis tests make assumptions about the distribution of the random variable being sampled in the data. These must be considered when choosing a test and when interpreting the results. • Z-test (ztest) and the t-test (ttest) test whether a sample mean is significantly different from a given value. Both tests assume the data are independently sampled from a normal distribution. • Both the z-test and the t-test are relatively robust with respect to departures from this assumption, so long as the sample size n is large enough. • Difference between the z-test and the t-test is in the assumption of the standard deviation σ of the underlying normal distribution. A z-test assumes that σ is known; a t-test does not. Thus t-test must determine s from the sample. Sundermeyer MAR 550 Spring 2020 14 Intro to Statistics Toolbox Statistics Toolbox/Hypothesis Tests ztest • The test requires σ (the standard deviation of the population) to be known • The formula for calculating the z score for the z-test is: http://www.stats4students.com/Essentials/Standard-Score/Overview.php x z s / n where: x is the sample mean μ is the mean of the population • The z-score is compared to a z-table, which contains the percent of area under the normal curve between the mean and the z-score. This table will indicate whether the calculated z-score is within the realm of chance, or if it is so different from the mean that the sample mean is unlikely to have happened by chance. Sundermeyer MAR 550 Spring 2020 15 Intro to Statistics Toolbox Statistics Toolbox/Hypothesis Tests ttest • Like z-test, except the t-test does not require σ to be known • The formula for calculating the t score for the t-test is: http://www.stats4students.com/Essentials/Standard-Score/Overview.php x t s / n where: x is the sample mean μ is the mean of the population s is the sample variance • Under the null hypothesis that the population is distributed with mean μ, the z-statistic has a standard normal distribution, N(0,1). Under the same null hypothesis, the t-statistic has Student's t distribution with n – 1 degrees of freedom. Sundermeyer MAR 550 Spring 2020 16 Intro to Statistics Toolbox Statistics Toolbox/Hypothesis Tests ttest2 • performs a t-test of the null hypothesis that data in the vectors x and y are independent random samples from normal distributions with equal means and equal but unknown variances – unknown variances may be either equal or unequal. • The formula for calculating the score for the t-test2 is: x y t 2 2 sx sy n m where: x, y are sample means sx, sy are the sample variances http://www.socialresearchmethods.net/kb/stat_t.php • The null hypothesis is that the two samples are distributed with the same mean. Sundermeyer MAR 550 Spring 2020 17 Intro to Statistics Toolbox Statistics Toolbox/Hypothesis Tests Function Description Ansari-Bradley test. Tests if two independent samples come from the same distribution, against the alternative that they come from ansaribradley distributions that have the same median and shape but different variances. Chi-square goodness-of-fit test. Tests if a sample comes from a specified distribution, against the alternative that it does not come from that chi2gof distribution.
Recommended publications
  • Section 13 Kolmogorov-Smirnov Test
    Section 13 Kolmogorov-Smirnov test. Suppose that we have an i.i.d. sample X1; : : : ; Xn with some unknown distribution P and we would like to test the hypothesis that P is equal to a particular distribution P0; i.e. decide between the following hypotheses: H : P = P ; H : P = P : 0 0 1 6 0 We already know how to test this hypothesis using chi-squared goodness-of-fit test. If dis­ tribution P0 is continuous we had to group the data and consider a weaker discretized null hypothesis. We will now consider a different test for H0 based on a very different idea that avoids this discretization. 1 1 men data 0.9 0.9 'men' fit all data women data 0.8 normal fit 0.8 'women' fit 0.7 0.7 0.6 0.6 0.5 0.5 0.4 0.4 Cumulative probability 0.3 Cumulative probability 0.3 0.2 0.2 0.1 0.1 0 0 96 96.5 97 97.5 98 98.5 99 99.5 100 100.5 96.5 97 97.5 98 98.5 99 99.5 100 100.5 Data Data Figure 13.1: (a) Normal fit to the entire sample. (b) Normal fit to men and women separately. Example.(KS test) Let us again look at the normal body temperature dataset. Let ’all’ be a vector of all 130 observations and ’men’ and ’women’ be vectors of length 65 each corresponding to men and women. First, we fit normal distribution to the entire set ’all’.
    [Show full text]
  • Downloaded 09/24/21 09:09 AM UTC
    MARCH 2007 NOTES AND CORRESPONDENCE 1151 NOTES AND CORRESPONDENCE A Cautionary Note on the Use of the Kolmogorov–Smirnov Test for Normality DAG J. STEINSKOG Nansen Environmental and Remote Sensing Center, and Bjerknes Centre for Climate Research, and Geophysical Institute, University of Bergen, Bergen, Norway DAG B. TJØSTHEIM Department of Mathematics, University of Bergen, Bergen, Norway NILS G. KVAMSTØ Geophysical Institute, University of Bergen, and Bjerknes Centre for Climate Research, Bergen, Norway (Manuscript received and in final form 28 April 2006) ABSTRACT The Kolmogorov–Smirnov goodness-of-fit test is used in many applications for testing normality in climate research. This note shows that the test usually leads to systematic and drastic errors. When the mean and the standard deviation are estimated, it is much too conservative in the sense that its p values are strongly biased upward. One may think that this is a small sample problem, but it is not. There is a correction of the Kolmogorov–Smirnov test by Lilliefors, which is in fact sometimes confused with the original Kolmogorov–Smirnov test. Both the Jarque–Bera and the Shapiro–Wilk tests for normality are good alternatives to the Kolmogorov–Smirnov test. A power comparison of eight different tests has been undertaken, favoring the Jarque–Bera and the Shapiro–Wilk tests. The Jarque–Bera and the Kolmogorov– Smirnov tests are also applied to a monthly mean dataset of geopotential height at 500 hPa. The two tests give very different results and illustrate the danger of using the Kolmogorov–Smirnov test. 1. Introduction estimates of skewness and kurtosis. Such moments can be used to diagnose nonlinear processes and to provide The Kolmogorov–Smirnov test (hereafter the KS powerful tools for validating models (see also Ger- test) is a much used goodness-of-fit test.
    [Show full text]
  • Exponentiality Test Using a Modified Lilliefors Test Achut Prasad Adhikari
    University of Northern Colorado Scholarship & Creative Works @ Digital UNC Dissertations Student Research 5-1-2014 Exponentiality Test Using a Modified Lilliefors Test Achut Prasad Adhikari Follow this and additional works at: http://digscholarship.unco.edu/dissertations Recommended Citation Adhikari, Achut Prasad, "Exponentiality Test Using a Modified Lilliefors Test" (2014). Dissertations. Paper 63. This Text is brought to you for free and open access by the Student Research at Scholarship & Creative Works @ Digital UNC. It has been accepted for inclusion in Dissertations by an authorized administrator of Scholarship & Creative Works @ Digital UNC. For more information, please contact [email protected]. UNIVERSITY OF NORTHERN COLORADO Greeley, Colorado The Graduate School AN EXPONENTIALITY TEST USING A MODIFIED LILLIEFORS TEST A Dissertation Submitted in Partial Fulfillment Of the Requirements for the Degree of Doctor of Philosophy Achut Prasad Adhikari College of Education and Behavioral Sciences Department of Applied Statistics and Research Methods May 2014 ABSTRACT Adhikari, Achut Prasad An Exponentiality Test Using a Modified Lilliefors Test. Published Doctor of Philosophy dissertation, University of Northern Colorado, 2014. A new exponentiality test was developed by modifying the Lilliefors test of exponentiality for the purpose of improving the power of the test it directly modified. Lilliefors has considered the maximum absolute differences between the sample empirical distribution function (EDF) and the exponential cumulative distribution function (CDF). The proposed test considered the sum of all the absolute differences between the CDF and EDF. By considering the sum of all the absolute differences rather than only a point difference of each observation, the proposed test would expect to be less affected by individual extreme (too low or too high) observations and capable of detecting smaller, but consistent, differences between the distributions.
    [Show full text]
  • Power Comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling Tests
    Journal ofStatistical Modeling and Analytics Vol.2 No.I, 21-33, 2011 Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling tests Nornadiah Mohd Razali1 Yap Bee Wah 1 1Faculty ofComputer and Mathematica/ Sciences, Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia E-mail: nornadiah@tmsk. uitm. edu.my, yapbeewah@salam. uitm. edu.my ABSTRACT The importance of normal distribution is undeniable since it is an underlying assumption of many statistical procedures such as I-tests, linear regression analysis, discriminant analysis and Analysis of Variance (ANOVA). When the normality assumption is violated, interpretation and inferences may not be reliable or valid. The three common procedures in assessing whether a random sample of independent observations of size n come from a population with a normal distribution are: graphical methods (histograms, boxplots, Q-Q-plots), numerical methods (skewness and kurtosis indices) and formal normality tests. This paper* compares the power offour formal tests of normality: Shapiro-Wilk (SW) test, Kolmogorov-Smirnov (KS) test, Lillie/ors (LF) test and Anderson-Darling (AD) test. Power comparisons of these four tests were obtained via Monte Carlo simulation of sample data generated from alternative distributions that follow symmetric and asymmetric distributions. Ten thousand samples ofvarious sample size were generated from each of the given alternative symmetric and asymmetric distributions. The power of each test was then obtained by comparing the test of normality statistics with the respective critical values. Results show that Shapiro-Wilk test is the most powerful normality test, followed by Anderson-Darling test, Lillie/ors test and Kolmogorov-Smirnov test. However, the power ofall four tests is still low for small sample size.
    [Show full text]
  • Univariate Analysis and Normality Test Using SAS, STATA, and SPSS
    © 2002-2006 The Trustees of Indiana University Univariate Analysis and Normality Test: 1 Univariate Analysis and Normality Test Using SAS, STATA, and SPSS Hun Myoung Park This document summarizes graphical and numerical methods for univariate analysis and normality test, and illustrates how to test normality using SAS 9.1, STATA 9.2 SE, and SPSS 14.0. 1. Introduction 2. Graphical Methods 3. Numerical Methods 4. Testing Normality Using SAS 5. Testing Normality Using STATA 6. Testing Normality Using SPSS 7. Conclusion 1. Introduction Descriptive statistics provide important information about variables. Mean, median, and mode measure the central tendency of a variable. Measures of dispersion include variance, standard deviation, range, and interquantile range (IQR). Researchers may draw a histogram, a stem-and-leaf plot, or a box plot to see how a variable is distributed. Statistical methods are based on various underlying assumptions. One common assumption is that a random variable is normally distributed. In many statistical analyses, normality is often conveniently assumed without any empirical evidence or test. But normality is critical in many statistical methods. When this assumption is violated, interpretation and inference may not be reliable or valid. Figure 1. Comparing the Standard Normal and a Bimodal Probability Distributions Standard Normal Distribution Bimodal Distribution .4 .4 .3 .3 .2 .2 .1 .1 0 0 -5 -3 -1 1 3 5 -5 -3 -1 1 3 5 T-test and ANOVA (Analysis of Variance) compare group means, assuming variables follow normal probability distributions. Otherwise, these methods do not make much http://www.indiana.edu/~statmath © 2002-2006 The Trustees of Indiana University Univariate Analysis and Normality Test: 2 sense.
    [Show full text]
  • Hypothesis Testing III
    Kolmogorov-Smirnov test Mann-Whitney test Normality test Brief summary Quiz Hypothesis testing III Botond Szabo Leiden University Leiden, 16 April 2018 Kolmogorov-Smirnov test Mann-Whitney test Normality test Brief summary Quiz Outline 1 Kolmogorov-Smirnov test 2 Mann-Whitney test 3 Normality test 4 Brief summary 5 Quiz Kolmogorov-Smirnov test Mann-Whitney test Normality test Brief summary Quiz One-sample Kolmogorov-Smirnov test IID observations X1;:::; Xn∼ F : Want to test H0 : F = F0 versus H1 : F 6=F0; where F0 is some fixed CDF. Test statistic p p Tn = nDn = n sup jF^n(x) − F0(x)j x If X1;:::; Xn ∼ F0 and F0 is continuous, then the asymptotic distribution of Tn is independent of F0 and is given by the Kolmogorov distribution. Reject the null hypothesis if Tn > Kα; where Kα is the 1 − α quantile of the Kolmogorov distribution. Kolmogorov-Smirnov test Mann-Whitney test Normality test Brief summary Quiz Kolmogorov-Smirnov test (estimated parameters) IID data X1;:::; Xn ∼ F : Want to test H0 : F 2 F versus H1 : F 2= F; where F = fFθ : θ 2 Θg: Test statistic p p ^ Tn = nDn = n sup jFn(x) − Fθ^(x)j; x where θ^ is an estimate of θ based on Xi 's. Astronomers often proceed by treating θ^ as a constant and use the critical values from the usual Kolmogorov-Smirnov test. Kolmogorov-Smirnov test Mann-Whitney test Normality test Brief summary Quiz Kolmogorov-Smirnov test (continued) This is a faulty practice: asymptotically Tn will typically not have the Kolmogorov distribution. Extra work required to obtain the correct critical values.
    [Show full text]
  • Test for Normality #QQ-Plot X<-C(145130120140120
    #Test for Normality #Q-Q-Plot x<-c(145,130,120,140,120) qqnorm(x) qqline(x, col = 2,lwd=3) y<-c(159,147,145,137,135) qqnorm(y) qqline(y, col = 2,lwd=3) #Lilliefors Test #install.packages("nortest") library(nortest) x<-c(145,130,120,140,120) y<-c(159,147,145,137,135) lillie.test(x) ## ## Lilliefors (Kolmogorov-Smirnov) normality test ## ## data: x ## D = 0.23267, p-value = 0.4998 lillie.test(y) ## ## Lilliefors (Kolmogorov-Smirnov) normality test ## ## data: y ## D = 0.20057, p-value = 0.7304 #Mann-Whitney-U Test #MWU Test: unpaired data x<-c(5,5,4,5,3) y<-c(22,14,5,17,30) #exact MWU Test, problem with ties wilcox.test(x,y) ## Warning in wilcox.test.default(x, y): cannot compute exact p-value with ## ties ## ## Wilcoxon rank sum test with continuity correction ## ## data: x and y ## W = 1.5, p-value = 0.02363 ## alternative hypothesis: true location shift is not equal to 0 #asymptotic MWU Test with continuity correction wilcox.test(x,y,exact=FALSE, correct=FALSE) ## ## Wilcoxon rank sum test ## ## data: x and y ## W = 1.5, p-value = 0.01775 ## alternative hypothesis: true location shift is not equal to 0 #asymptotic MWU Test without continuity correction wilcox.test(x,y,exact=FALSE, correct=TRUE) ## ## Wilcoxon rank sum test with continuity correction ## ## data: x and y ## W = 1.5, p-value = 0.02363 ## alternative hypothesis: true location shift is not equal to 0 #Calculating the ranks salve<-c(x,y) group<-c(rep("A",length(x)),rep("B",length(y))) data<-data.frame(salve,group) r1<-sum(rank(data$salve)[data$group=="A"]) r1 ## [1] 16.5 r2<-sum(rank(data$salve)[data$group=="B"])
    [Show full text]
  • Nonparametric Methods
    Chapter 6 Nonparametric Methods CHAPTER VI; SECTION A: INTRODUCTION TO NONPARAMETRIC METHODS Purposes of Nonparametric Methods: Nonparametric methods are uniquely useful for testing nominal (categorical) and ordinal (ordered) scaled data--situations where parametric tests are not generally available. An important second use is when an underlying assumption for a parametric method has been violated. In this case, the interval/ratio scale data can be easily transformed into ordinal scale data and the counterpart nonparametric method can be used. Inferential and Descriptive Statistics: The nonparametric methods described in this chapter are used for both inferential and descriptive statistics. Inferential statistics use data to draw inferences (i.e., derive conclusions) or to make predictions. In this chapter, nonparametric inferential statistical methods are used to draw conclusions about one or more populations from which the data samples have been taken. Descriptive statistics aren’t used to make predictions but to describe the data. This is often best done using graphical methods. Examples: An analyst or engineer might be interested to assess the evidence regarding: 1. The difference between the mean/median accident rates of several marked and unmarked crosswalks (when parametric Student’s t test is invalid because sample distributions are not normal). 2. The differences between the absolute average errors between two types of models for forecasting traffic flow (when analysis of variance is invalid because distribution of errors is not normal). 3. The relationship between the airport site evaluation ordinal rankings of two sets of judges, i.e., citizens and airport professionals. 4. The differences between neighborhood districts in their use of a regional mall for purposes of planning transit routes.
    [Show full text]
  • Null Hypothesis Against an Alternative Hypothesis
    Medical Statistics with R Dr. Gulser Caliskan Prof. Giuseppe Verlato Unit of Epidemiology and Medical Statistics Department of Diagnostics and Public Health University of Verona, Italy LESSON 4 INDEX 1. Independent T-Test 2. Wilcoxon Rank-Sum (Mann-Whitney U Test) 3. Paired T-Test 4. Wilcoxon Sign Test 5. ANOVA (Analysis of Varyans) 6. Kruskal Wallis H Test Classical Hypothesis Testing Test of a null hypothesis against an alternative hypothesis. There are five steps, the first four of which should be done before inspecting the data. Step 1. Declare the null hypothesis H0 and the alternative hypothesis H1. Types Of Hypotheses A hypothesis that completely specifies the parameters is called simple. If it leaves some parameter undetermined it is composite. A hypothesis is one-sided if it proposes that a parameter is > some value or < some value; it is two-sided if it simply says the parameter is /= some value. Types of Error Rejecting H0 when it is actually true is called a Type I Error. In biomedical settings it can be considered a false positive. (Null hypothesis says “nothing is happening” but we decide“there is disease”.) Step 2. Specify an acceptable level of Type I error, α, normally 0.05 or 0.01. This is the threshold used in deciding to reject H0 or not. If α = 0.05 and we determine the probability of our data assuming H0 is 0.0001, then we reject H0. The Test Statistic Step 3. Select a test statistic. This is a quantity calculated from the data whose value leads me to reject the null hypothesis or not.
    [Show full text]
  • Power Comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling Tests
    Journal of Statistical Modeling and Analytics Vol.2 No.1, 21-33, 2011 Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov, Lilliefors and Anderson-Darling tests Nornadiah Mohd Razali1 Yap Bee Wah1 1Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA, 40450 Shah Alam, Selangor, Malaysia E-mail: [email protected], [email protected] ABSTRACT The importance of normal distribution is undeniable since it is an underlying assumption of many statistical procedures such as t-tests, linear regression analysis, discriminant analysis and Analysis of Variance (ANOVA). When the normality assumption is violated, interpretation and inferences may not be reliable or valid. The three common procedures in assessing whether a random sample of independent observations of size n come from a population with a normal distribution are: graphical methods (histograms, boxplots, Q-Q-plots), numerical methods (skewness and kurtosis indices) and formal normality tests. This paper* compares the power of four formal tests of normality: Shapiro-Wilk (SW) test, Kolmogorov-Smirnov (KS) test, Lilliefors (LF) test and Anderson-Darling (AD) test. Power comparisons of these four tests were obtained via Monte Carlo simulation of sample data generated from alternative distributions that follow symmetric and asymmetric distributions. Ten thousand samples of various sample size were generated from each of the given alternative symmetric and asymmetric distributions. The power of each test was then obtained by comparing the test of normality statistics with the respective critical values. Results show that Shapiro-Wilk test is the most powerful normality test, followed by Anderson-Darling test, Lilliefors test and Kolmogorov-Smirnov test.
    [Show full text]
  • Normality Assumption in Statistical Data Analysis
    Data Science NORMALITY ASSUMPTION IN STATISTICAL DATA ANALYSIS S.Ya. Shatskikh1, L.E. Melkumova2 1Samara National Research University, Samara, Russia 2Mercury Development Russia, Samara, Russia Abstract. The article is devoted to normality assumption in statistical data analysis. It gives a short historical review of the development of scientific views on the normal law and its applications. It also briefly covers normality tests and analyzes possible consequences of using the normality assumption incorrectly. Keywords: normal law, normality assumption, normal distribution, Gaussian distribution, central limit theorem, normality tests. Citation: Shatskikh SYa, Melkumova LE. Normality assumption in statistical data analysis. CEUR Workshop Proceedings, 2016; 1638: 763-768. DOI: 10.18287/1613-0073-2016-1638-763-768 “Mechanism" of the central limit theorem Normal distribution can serve as a good approximation for processing observations if the random variable in question can be considered as a sum of a large number of in- dependent random variables 푋1, … , 푋푛, where each of the variables contributes to the common sum: 1 푥 푛 푛 2 푢2 2 1 − Lim ℙ {∑ (푋푘 − 푚푘)⁄(∑ 휎푘 ) ≤ 푥 } = ∫ 푒 2 푑푢, 푛→∞ √2휋 푘=1 푘=1 −∞ 2 필{푋푘} = 푚푘, 픻{푋푘} = 휎푘 < ∞. This theory was developed in the classical limit theorems, namely the De Moivre- Laplace theorem, the Lyapunov theorem and the Lindeberg-Feller theorem. By the beginning of the 20th century this argument already had a rather wide support in practice. Many practical experiments confirmed that the observed distributions obey the normal law. The general acknowledgement of the normal law at that point of time was mainly based on observations and measurement results in physical sciences and in particular in astronomy and geodesy.
    [Show full text]
  • VILACOMUN-THESIS-2017.Pdf
    Copyright by Alfredo Vila Común 2017 The Thesis Committee for Alfredo Vila Común Certifies that this is the approved version of the following thesis: Exploratory Study of Visual Management Application in Peruvian Construction Projects APPROVED BY SUPERVISING COMMITTEE: Supervisor: Carlos H. Caldas Fernanda Leite Exploratory Study of Visual Management Application in Peruvian Construction Projects by Alfredo Vila Común Thesis Presented to the Faculty of the Graduate School of The University of Texas at Austin in Partial Fulfillment of the Requirements for the Degree of Master of Science in Engineering The University of Texas at Austin December 2017 Dedication This thesis is dedicated to my beloved wife, for her love, patience, and continued encouragement; To my beloved family, for their support. Acknowledgements I would like to thank Dr. Carlos H. Caldas for all his support, guidance, availability, confidence, and wisdom to assist me, without which this thesis would not have been possible. I am extremely grateful to him. I would also like to thank Dr. Fernanda Leite for their advice and encouragement, and to all CEPM faculty for sharing their knowledge with me through classes and informal chats. I would also like to extend my gratitude to PRONABEC, without its scholarship programs this experience abroad would not have been possible for me. Thanks to all survey participants, especially the ones that allowed me to visit their projects, and share their knowledge to enrich this study. Finally, special thanks to Construction Engineering and Project Management students, who provided me with so much advice, friendship, and support, which really made graduate school a much more rewarding experience.
    [Show full text]