STATISTICS HYPOTHESES TEST (III) Nonparametric Goodness-of-fit (GOF) tests Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering.

Slides:



Advertisements
Similar presentations
Advanced Piloting Cruise Plot.
Advertisements

Feichter_DPG-SYKL03_Bild-01. Feichter_DPG-SYKL03_Bild-02.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Introductory Mathematics & Statistics for Business
Chapter 1 The Study of Body Function Image PowerPoint
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
STATISTICS Joint and Conditional Distributions
STATISTICS Linear Statistical Models
STATISTICS Sampling and Sampling Distributions
STATISTICS HYPOTHESES TEST (I)
STATISTICS INTERVAL ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
STATISTICS HYPOTHESES TEST (II) One-sample tests on the mean and variance Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National.
STATISTICS POINT ESTIMATION Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University.
Detection of Hydrological Changes – Nonparametric Approaches
STATISTICS Univariate Distributions
Dept of Bioenvironmental Systems Engineering National Taiwan University Lab for Remote Sensing Hydrology and Spatial Modeling STATISTICS Hypotheses Test.
R_SimuSTAT_2 Prof. Ke-Sheng Cheng Dept. of Bioenvironmental Systems Eng. National Taiwan University.
STATISTICS Random Variables and Distribution Functions
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
Document #07-2I RXQ Customer Enrollment Using a Registration Agent (RA) Process Flow Diagram (Move-In) (mod 7/25 & clean-up 8/20) Customer Supplier.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
1 Discreteness and the Welfare Cost of Labour Supply Tax Distortions Keshab Bhattarai University of Hull and John Whalley Universities of Warwick and Western.
Chapter 7 Sampling and Sampling Distributions
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
EU market situation for eggs and poultry Management Committee 20 October 2011.
Chapter 16 Goodness-of-Fit Tests and Contingency Tables
Chi-Square and Analysis of Variance (ANOVA)
5-1 Chapter 5 Theory & Problems of Probability & Statistics Murray R. Spiegel Sampling Theory.
2 |SharePoint Saturday New York City
Green Eggs and Ham.
VOORBLAD.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Squares and Square Root WALK. Solve each problem REVIEW:
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
© 2012 National Heart Foundation of Australia. Slide 2.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
25 seconds left…...
Januar MDMDFSSMDMDFSSS
Statistical Inferences Based on Two Samples
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
1 Random Sampling - Random Samples. 2 Why do we need Random Samples? Many business applications -We will have a random variable X such that the probability.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Chapter 8 Estimation Understandable Statistics Ninth Edition
Intracellular Compartments and Transport
PSSA Preparation.
Experimental Design and Analysis of Variance
Essential Cell Biology
Testing Hypotheses About Proportions
Simple Linear Regression Analysis
Multiple Regression and Model Building
1 McGill University Department of Civil Engineering and Applied Mechanics Montreal, Quebec, Canada.
STATISTICS POINT ESTIMATION
STATISTICS INTERVAL ESTIMATION
Stochastic Hydrology Hydrological Frequency Analysis (I) Fundamentals of HFA Prof. Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering.
Professor Ke-Sheng Cheng
Presentation transcript:

STATISTICS HYPOTHESES TEST (III) Nonparametric Goodness-of-fit (GOF) tests Professor Ke-Sheng Cheng Department of Bioenvironmental Systems Engineering National Taiwan University

Description of nonparametric Problems Until now, in the estimation and hypotheses testing problems, we have assumed that the available observations come from distributions for which the exact form is known, even though the values of some parameters are unknown. In other words, we have assumed that the observations come from a certain parametric family of distributions, and a statistical inference must be made about the values of the parameters defining that family. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 2

In many situations, we do not assume that the available observations come from a particular family of distributions. Instead, we want to study inferences that can be made about the distribution from which the observations come, without making special assumptions about the form of that distribution. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 3

For example, we might simply assume that observations form a random sample from a continuous distribution, without specifying the form of this distribution any further; and we then investigate the possibility that this distribution is a normal distribution. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 4

Problems in which the possible distributions of the observations are not restricted to a specific parametric family are called nonparametric problems, and the statistical methods that are applicable in such problems are called nonparametric methods. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 5

Goodness-of-fit test A very common statistical problem in hydrological frequency analysis or water resources planning is that whether the available observations (a random sample available to us) come from a particular type of distribution. For example, before we can estimate the magnitude of the 24-hour rainfall depth with 100-year return period, we must decide (identify) the type of probability distribution for the rainfall data (the annual maximum series) through statistical tests. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 6

Let s consider statistical problems based on data such that each observation can be classified as belonging to one of a finite number of possible categories. If a large population consists of data of k different categories, and let p i denote the probability that an observation will belong to category i (i = 1, 2, …, k). Of course, for i = 1, 2, …, k and. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 7

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 8

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 9

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 10

Therefore, it seems reasonable to base a test on the values of the differences for i = 1, 2, …, k and reject H o when the magnitudes of these differences are relatively large. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 11

Chi-square GOF test 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 12

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 13

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 14

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 15

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 16

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 17

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 18 Sample size Number of categories

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 19

Kolmogorov-Smirnov GOF test The chi-square test compares the empirical histogram against the theoretical histogram. In contrast, the K-S test compares the empirical cumulative distribution function (ECDF) against the theoretical CDF. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 20

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 21

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 22

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 23

In order to measure the difference between F n (X) and F(X), ECDF statistics based on the vertical distances between F n (X) and F(X) have been proposed. 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 24

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 25

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 26

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 27

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 28

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 29

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 30

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 31

1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 32 Values of for the Kolmogorov-Smirnov test

Goodness-of-fit tests using R 2 test for GOF test – chisq.test – The above test doesn t account for any parameters in determining the expected values. – The degree of freedom of the test statistic is k-1. Kolmogorov-Smirnov GOF test – ks.test (one-sample test) 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 33

ks.test(x, y, parameters, alternative= … ) where x is the data vector to be tested, y is a string vector specifying the hypothesized distribution, parameters are the values of distribution parameters corresponding to y, and alternative represents a string vector ( less, greater, or two.sided ) for one-tail or two-tail test. Examples ks.test(x, pnorm, 30, 10, alternative= two.sided ) ks.test(x, pexp, 0.2, alternative= greater ) 1/31/2014 Dept of Bioenvironmental Systems Engineering National Taiwan University 34