1 Pertemuan 26 Metode Non Parametrik-2 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.

Slides:



Advertisements
Similar presentations
1 Pertemuan 11 Matakuliah: I0014 / Biostatistika Tahun: 2005 Versi: V1 / R1 Pengujian Hipotesis (I)
Advertisements

COMPLETE BUSINESS STATISTICS
Chapter 16 Introduction to Nonparametric Statistics
Uji Tanda dan Peringkat Bertanda Wilcoxon Pertemuan 25 Matakuliah: Statistika Psikologi Tahun: 2008.
Uji Kebaikan Suai (Uji Kecocokan) Pertemuan 23
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Nonparametric Methods Chapter 15.
Chapter 12 Chi-Square Tests and Nonparametric Tests
1 Pertemuan 18 Pembandingan Dua Populasi-2 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.
Chapter 14 Analysis of Categorical Data
Chapter 12 Chi-Square Tests and Nonparametric Tests
1 Pertemuan 09 Pengujian Hipotesis Proporsi dan Data Katagorik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
Chapter 16 Chi Squared Tests.
1 Pertemuan 1 Pendahuluan-1 Matakuliah: A0064/Statistik Ekonomi Tahun: 2005 Versi: >
1 Pertemuan 11 Analisis Varians Data Nonparametrik Matakuliah: A0392 – Statistik Ekonomi Tahun: 2006.
1 Pertemuan 09 Pengujian Hipotesis 2 Matakuliah: I0272 – Statistik Probabilitas Tahun: 2005 Versi: Revisi.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
1 Pertemuan 10 Analisis Ragam (Varians) - 1 Matakuliah: I0262 – Statistik Probabilitas Tahun: 2007 Versi: Revisi.
1 Pertemuan 19 Analisis Ragam (ANOVA)-1 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.
1 Pertemuan 08 Pengujian Hipotesis 1 Matakuliah: I0272 – Statistik Probabilitas Tahun: 2005 Versi: Revisi.
11-2 Goodness-of-Fit In this section, we consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way.
1 Pertemuan 25 Metode Non Parametrik-1 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.
PSY 307 – Statistics for the Behavioral Sciences Chapter 19 – Chi-Square Test for Qualitative Data Chapter 21 – Deciding Which Test to Use.
15-1 Introduction Most of the hypothesis-testing and confidence interval procedures discussed in previous chapters are based on the assumption that.
Nonparametrics and goodness of fit Petter Mostad
Chapter 15 Nonparametric Statistics
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
AM Recitation 2/10/11.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 12-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Hypothesis Testing Charity I. Mulig. Variable A variable is any property or quantity that can take on different values. Variables may take on discrete.
NONPARAMETRIC STATISTICS
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
© 2002 Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft Excel 3 rd Edition Chapter 9 Analysis of Variance.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Correlation Patterns.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
1 Pertemuan 11 Uji kebaikan Suai dan Uji Independen Mata kuliah : A Statistik Ekonomi Tahun: 2010.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
1 Nonparametric Statistical Techniques Chapter 17.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Nonparametric Methods and Chi-Square Tests Session 5.
Chapter Outline Goodness of Fit test Test of Independence.
Statistics in Applied Science and Technology Chapter14. Nonparametric Methods.
CD-ROM Chap 16-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition CD-ROM Chapter 16 Introduction.
NON-PARAMETRIC STATISTICS
Pengujian Hipotesis Pertemuan 7 Matakuliah: D Statistika dan Aplikasinya Tahun: 2010.
Perbandingan dua populasi Pertemuan 8 Matakuliah: D Statistika dan Aplikasinya Tahun: 2010.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Chapter 14 Nonparametric Methods and Chi-Square Tests
1 Pertemuan 13 Selang Kepercayaan-1 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.
1 Pertemuan 22 Regresi dan Korelasi Linier Sederhana-2 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.
1 Pertemuan 24 Uji Kebaikan Suai Matakuliah: I0134 – Metoda Statistika Tahun: 2005 Versi: Revisi.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Hypothesis Tests u Structure of hypothesis tests 1. choose the appropriate test »based on: data characteristics, study objectives »parametric or nonparametric.
1 Pertemuan 17 Pembandingan Dua Populasi-1 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. CHAPTER 14: Nonparametric Methods to accompany Introduction to Business Statistics fifth.
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
1 Pertemuan 19 Analisis Varians Klasifikasi Satu Arah Matakuliah: I Statistika Tahun: 2008 Versi: Revisi.
Rancangan Acak Lengkap ( Analisis Varians Klasifikasi Satu Arah) Pertemuan 16 Matakuliah: I0184 – Teori Statistika II Tahun: 2009.
Slide 1 Shakeel Nouman M.Phil Statistics Nonparametric Methods and Chi-Square Tests (1) Nonparametric Methods and Chi-Square Tests (1) By Shakeel Nouman.
Pertemuan 18 Pengujian Hipotesis Lanjutan
Presentation transcript:

1 Pertemuan 26 Metode Non Parametrik-2 Matakuliah: A0064 / Statistik Ekonomi Tahun: 2005 Versi: 1/1

2 Learning Outcomes Pada akhir pertemuan ini, diharapkan mahasiswa akan mampu : Menyimpulkan hasil pengujian hipotesis dengan menggunakan uji peringkat bertanda Wilcoxon dan Uji Kruskal-Wallis

3 Outline Materi Uji Peringkat Bertanda Wilcoxon Uji Kruskal-Wallis

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The null and alternative hypotheses: H 0 : The median difference between populations are 1 and 2 is zero H 1 : The median difference between populations are 1 and 2 is not zero Find the difference between the ranks for each pair, D = x 1 -x 2, and then rank the absolute values of the differences. The Wilcoxon T statistic is the smaller of the sums of the positive ranks and the sum of the negative ranks: For small samples, a left-tailed test is used, using the values in Appendix C, Table 10. The large-sample test statistic: The null and alternative hypotheses: H 0 : The median difference between populations are 1 and 2 is zero H 1 : The median difference between populations are 1 and 2 is not zero Find the difference between the ranks for each pair, D = x 1 -x 2, and then rank the absolute values of the differences. The Wilcoxon T statistic is the smaller of the sums of the positive ranks and the sum of the negative ranks: For small samples, a left-tailed test is used, using the values in Appendix C, Table 10. The large-sample test statistic: 14-5 The Wilcoxon Signed-Ranks Test (Paired Ranks)

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Sold Sold Rank Rank Rank (1) (2) D=x 1 -x 2 ABS(D) ABS(D)(D>0) (D<0) **** Sum:8634 Sold Sold Rank Rank Rank (1) (2) D=x 1 -x 2 ABS(D) ABS(D)(D>0) (D<0) **** Sum:8634 T=34 n=15 P= P= P= P= H 0 is not rejected (Note the arithmetic error in the text for store 13) T=34 n=15 P= P= P= P= H 0 is not rejected (Note the arithmetic error in the text for store 13) Example 14-6

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Hourly Rank Rank Rank Messages Md 0 D=x 1 -x 2 ABS(D) ABS(D) (D>0) (D<0) Sum: Hourly Rank Rank Rank Messages Md 0 D=x 1 -x 2 ABS(D) ABS(D) (D>0) (D<0) Sum: Example 14-7

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Example 14-7 using the Template Note 1: Note 1: You should enter the claimed value of the mean (median) in every used row of the second column of data. In this case it is 149. Note 2: Note 2: In order for the large sample approximations to be computed you will need to change n > 25 to n >= 25 in cells M13 and M14.

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Kruskal-Wallis hypothesis test: H 0 : All k populations have the same distribution H 1 : Not all k populations have the same distribution The Kruskal-Wallis test statistic: If each n j > 5, then H is approximately distributed as a  2. The Kruskal-Wallis hypothesis test: H 0 : All k populations have the same distribution H 1 : Not all k populations have the same distribution The Kruskal-Wallis test statistic: If each n j > 5, then H is approximately distributed as a  The Kruskal-Wallis Test - A Nonparametric Alternative to One-Way ANOVA

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., SoftwareTimeRank Group RankSum SoftwareTimeRank Group RankSum  2 (2,0.005) = , so H 0 is rejected. Example 14-8: The Kruskal-Wallis Test

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Example 14-8: The Kruskal-Wallis Test – Using the Template

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., If the null hypothesis in the Kruskal-Wallis test is rejected, then we may wish, in addition, compare each pair of populations to determine which are different and which are the same. Further Analysis (Pairwise Comparisons of Average Ranks)

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Pairwise Comparisons: Example 14-8

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Friedman test is a nonparametric version of the randomized block design ANOVA. Sometimes this design is referred to as a two-way ANOVA with one item per cell because it is possible to view the blocks as one factor and the treatment levels as the other factor. The test is based on ranks The Friedman Test for a Randomized Block Design The Friedman hypothesis test: H 0 : The distributions of the k treatment populations are identical H 1 : Not all k distribution are identical The Friedman test statistic: The degrees of freedom for the chi-square distribution is (k – 1). The Friedman hypothesis test: H 0 : The distributions of the k treatment populations are identical H 1 : Not all k distribution are identical The Friedman test statistic: The degrees of freedom for the chi-square distribution is (k – 1).

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Example – using the Template Note: Note: The p-value is small relative to a significance level of  = 0.05, so one should conclude that there is evidence that not all three low- budget cruise lines are equally preferred by the frequent cruiser population

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The Spearman Rank Correlation Coefficient is the simple correlation coefficient calculated from variables converted to ranks from their original values The Spearman Rank Correlation Coefficient

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Table 11:  =0.005 n r s =1- (6)(4) (10)( ) = =0.9758>0.794     d i i n nn() H 0 rejected MMIS&P100R-MMIR-S&PDiffDiffsq Sum:4 MMIS&P100R-MMIR-S&PDiffDiffsq Sum:4 Spearman Rank Correlation Coefficient: Example 14-11

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Spearman Rank Correlation Coefficient: Example Using the Template Note:The p- values in the range J15:J17 will appear only if the sample size is large (n > 30) Note: The p- values in the range J15:J17 will appear only if the sample size is large (n > 30)

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., l Steps in a chi-square analysis: Formulate null and alternative hypotheses Compute frequencies of occurrence that would be expected if the null hypothesis were true - expected cell counts Note actual, observed cell counts Use differences between expected and actual cell counts to find chi-square statistic: Compare chi-statistic with critical values from the chi-square distribution (with k-1 degrees of freedom) to test the null hypothesis l Steps in a chi-square analysis: Formulate null and alternative hypotheses Compute frequencies of occurrence that would be expected if the null hypothesis were true - expected cell counts Note actual, observed cell counts Use differences between expected and actual cell counts to find chi-square statistic: Compare chi-statistic with critical values from the chi-square distribution (with k-1 degrees of freedom) to test the null hypothesis 14-9 A Chi-Square Test for Goodness of Fit

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., The null and alternative hypotheses: H 0 : The probabilities of occurrence of events E 1, E 2...,E k are given by p 1,p 2,...,p k H 1 : The probabilities of the k events are not as specified in the null hypothesis The null and alternative hypotheses: H 0 : The probabilities of occurrence of events E 1, E 2...,E k are given by p 1,p 2,...,p k H 1 : The probabilities of the k events are not as specified in the null hypothesis Assuming equal probabilities, p 1 = p 2 = p 3 = p 4 =0.25 and n=80 PreferenceTanBrownMaroonBlackTotal Observed Expected(np) (O-E) Example 14-12: Goodness-of-Fit Test for the Multinomial Distribution

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Example 14-12: Goodness-of-Fit Test for the Multinomial Distribution using the Template Note: the p- value is , so we can reject the null hypothesis at any  level.

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., z f ( z ) Partitioning the Standard Normal Distribution Use the table of the standard normal distribution to determine an appropriate partition of the standard normal distribution which gives ranges with approximately equal percentages. p(z<-1) = p(-1<z<-0.44)= p(-0.44<z<0)= p(0<z<0.44)= p(0.44<z<14)= p(z>1) = Given z boundaries, x boundaries can be determined from the inverse standard normal transformation: x =  +  z = z. 3. Compare with the critical value of the  2 distribution with k-3 degrees of freedom. Goodness-of-Fit for the Normal Distribution: Example 14-13

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., iO i E i O i - E i (O i - E i ) 2 (O i - E i ) 2 / E i  2 : iO i E i O i - E i (O i - E i ) 2 (O i - E i ) 2 / E i  2 :  2 (0.10,k-3) = >  H 0 is not rejected at the 0.10 level Example 14-13: Solution

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Example 14-13: Solution using the Template Note: p-value = > 0.01  H 0 is not rejected at the 0.10 level

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Contingency Table Analysis: A Chi-Square Test for Independence

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Null and alternative hypotheses: H 0 : The two classification variables are independent of each other H 1 : The two classification variables are not independent Chi-square test statistic for independence: Degrees of freedom: df=(r-1)(c-1) Expected cell count: A and B are independent if:P(AUB) = P(A)P(B). If the first and second classification categories are independent:E ij = (R i )(C j )/n A and B are independent if:P(AUB) = P(A)P(B). If the first and second classification categories are independent:E ij = (R i )(C j )/n Contingency Table Analysis: A Chi-Square Test for Independence

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., ijOEO-E(O-E) 2 (O-E) 2 /E  2 : ijOEO-E(O-E) 2 (O-E) 2 /E  2 :  2 (0.01,(2-1)(2-1)) = H 0 is rejected at the 0.01 level and it is concluded that the two variables are not independent.  2 (0.01,(2-1)(2-1)) = H 0 is rejected at the 0.01 level and it is concluded that the two variables are not independent. Contingency Table Analysis: Example 14-14

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Since p-value = 0.000, H 0 is rejected at the 0.01 level and it is concluded that the two variables are not independent. Contingency Table Analysis: Example using the Template Note: When the contingency table is a 2x2, one should use the Yates correction.

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Chi-Square Test for Equality of Proportions tests of homogeneity. Tests of equality of proportions across several populations are also called tests of homogeneity. In general, when we compare c populations (or r populations if they are arranged as rows rather than columns in the table), then the Null and alternative hypotheses: H 0 : p 1 = p 2 = p 3 = … = p c H 1 : Not all p i, I = 1, 2, …, c, are equal Chi-square test statistic for equal proportions: Degrees of freedom: df = (r-1)(c-1) Expected cell count:

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Chi-Square Test for Equality of Proportions - Extension The Median Test Here, the Null and alternative hypotheses are: H 0 : The c populations have the same median H 1 : Not all c populations have the same median

COMPLETE 5 t h e d i t i o n BUSINESS STATISTICS Aczel/Sounderpandian McGraw-Hill/Irwin © The McGraw-Hill Companies, Inc., Chi-Square Test for the Median: Example Using the Template Note:The template was used to help compute the test statistic and the p- value for the median test. First you must manually compute the number of values that are above the grand median and the number that is less than or equal to the grand median. Use these values in the template. See Table in the text. Note: The template was used to help compute the test statistic and the p- value for the median test. First you must manually compute the number of values that are above the grand median and the number that is less than or equal to the grand median. Use these values in the template. See Table in the text. Since the p-value = is very large there is no evidence to reject the null hypothesis.

31 Penutup Metode Non parametrik pada hakekatnya merupakan suatu uji hipotesis yang membahas masalah ukuran skala ordinal dan nominal, uji ini tidak memerlukan asumsi terhadap populasi yang akan diuji (uji bebas distribusi)