SlideShare a Scribd company logo
1 of 12
Download to read offline
WALD–WOLFOWITZ
RUNS TEST
Cem Recai ÇIRAK
Runs test
 Parametrik olmayan ve en az ordinal (sıralı) ölçekte uygulanabilen bir
rastgelelik testidir. İki değerli değişkenler için uygulanabilir.
 Verilen bir gözlem serisi içinde, gözlemlenen değerlerin kendinden sonraki
gözlemleri etkileyip etkilemediğini inceler. Eğer bir etkileme yoksa
gözlemlerin rassal şekilde oluştuğuna karar verilir. Ayrıca ana kütleden
seçilen bir örneğin rastgele seçilip seçilmediğini belirlemek için kullanılır.
 İki popülasyon dağılımını karşılaştırarak benzer olup olmadıklarına karar
vermekte kullanılır.
Run (dizilim) farklı elemanlar tarafından takip edilen veya kendinden önce
farklı elemanlar bulunan ya da kendinden önce veya sonra hiçbir eleman
bulunmayan benzer elemanların oluşturduğu bir sıradır.
Örneğin, x ve y değerlerinden oluşan bir diziyi ele alalım:
xxyyyxyyxxxyxyy
Bu dizideki run sayısı 8’dir.
xx – yyy – x – yy – xxx – y – x – yy
1 2 3 4 5 6 7 8
Gözlem sayısının 20’den küçük olduğu
durumlarda tabloda verilen Rl
(minimum) ve Ru (maksimum) değerleri
kullanılır.
R değerinin çok küçük veya çok büyük
olduğu durumlarda dizilimin rastlantısal
olmadığı kabul edilir.
Örneğin; xxxxxxyyyyyy ( R = 2)
xyxyxyxyxyxy (R =12)
Gözlem sayısının 20’den büyük olduğu durumlarda standart normal dağılım
kullanılır.
N : Toplam gözlem sayısı
N1, N2 : iki değerli değişkenlerin bir değerine ait gözlem sayısı (N = N1 + N2)
R : Run sayısı
𝜇 =
2𝑁1 𝑁2
𝑁
+ 1
𝜎2 =
2𝑁1 𝑁2(2𝑁1 𝑁2 − 𝑁)
𝑁2(𝑁 − 1)
𝑍 =
𝑅 − 𝜇
𝜎
Örnek 1:
A ve B iki farklı balık türünü simgelemektedir. Bir nehirden alınan örnekler
aşağıdaki gibidir:
AABBAABBBBAAABBBBAABBB
H0 : Dağılım rastlantısaldır.
HA : Dağılım rastlantısal değildir.
N1 = 13 (B değerlerinin sayısı)
N2 = 9 (A değerlerinin sayısı)
R = 8
α = 0.05
Örnek 1:
Bu örnek için tablodan elde edilen R kritik değerleri:
Rl = 6 ve Ru = 17
𝑅𝑙 ≤ 𝑅 ≤ 𝑅 𝑢 olduğunda H0 reddedilemez.
6 ≤ 8 ≤ 17 olduğu için, bu örnekteki dizi rastlantısaldır.
Örnek 2:
Art arda 100 kez yazı-tura atılmıştır. Gözlem değerleri aşağıdaki gibidir.
R = 44
N1 = 48 (Tura sayısı)
N2 = 52 (Yazı sayısı)
H0 : Dağılım rastlantısaldır.
HA : Dağılım rastlantısal değildir.
α = 0.05
Örnek 2:
µ = 50.92
σ = 24.6675
Z = -0.28
𝑃(𝑍 ≤ -0.28) = 0.2205 (2-tailed)
P >
𝛼
2
= 0.025 olduğu için H0 reddedilemez. Gözlem değerleri rastlantısaldır.
Örnek 3:
Bir otobüs hattında iki farklı tipte otobüs çalışmaktadır. X tipi 10 adet ve Y tipi 11
adet otobüs için günlük kat ettikleri mesafeler sırasıyla aşağıdaki gibidir.
X: 104 253 300 308 315 323 331 396 414 452
Y: 184 196 197 248 260 279 355 386 393 432 450
H0 : F(X)=G(Y)
HA : F(X)≠G(Y)
α = 0.05
Örnek 3:
İki dizinin birleştirilmiş ve sıralanmış hali aşağıdaki gibidir:
104 184 196 197 248 253 260 279 300 308 315
323 331 355 386 393 396 414 432 450 452
R= 9
µ = 11.476
σ = 2.2279
Z = -0.89
𝑃(𝑍 ≤ -0.89) = 0.187 (1-tailed)
P > 0.05, olduğu için H0 reddedilemez. İki dağılım birbirine benzerdir.
Referanslar
 https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_test
 http://www.itl.nist.gov/div898/handbook/eda/section3/eda35d.htm
 https://prezi.com/irjrb94bz8im/nonparametrik-testler/
 http://maths.cnam.fr/IMG/pdf/table_test_de_sequences_cle8d9d1d.pdf
 https://onlinecourses.science.psu.edu/stat414/node/329
 http://fbe.beun.edu.tr/fbe/images/ins729/sunu_4ci_hafta.pdf

More Related Content

What's hot

Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U TestJohn Barlow
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statisticsAttaullah Khan
 
Measures of Central Tendency
Measures of Central TendencyMeasures of Central Tendency
Measures of Central TendencySuresh Babu
 
Thiyagu normal probability curve
Thiyagu   normal probability curveThiyagu   normal probability curve
Thiyagu normal probability curveThiyagu K
 
Data Analysis: Descriptive Statistics
Data Analysis: Descriptive StatisticsData Analysis: Descriptive Statistics
Data Analysis: Descriptive StatisticsMahmood Ahmad
 
Measurement Epidemiology
Measurement EpidemiologyMeasurement Epidemiology
Measurement EpidemiologyKailash Nagar
 
Estimating standard error of measurement
Estimating standard error of measurementEstimating standard error of measurement
Estimating standard error of measurementCarlo Magno
 
Basic Descriptive Statistics
Basic Descriptive StatisticsBasic Descriptive Statistics
Basic Descriptive Statisticssikojp
 
Types of measurement scales in research methodology
Types of measurement scales in research methodologyTypes of measurement scales in research methodology
Types of measurement scales in research methodologyManisha Mani
 
Measures of central tendency by MHM
Measures of central tendency by MHMMeasures of central tendency by MHM
Measures of central tendency by MHMMd Mosharof Hosen
 
Standard deviationnormal distributionshow
Standard deviationnormal distributionshowStandard deviationnormal distributionshow
Standard deviationnormal distributionshowBiologyIB
 
2. ph250b.14 measures of association 1
2.  ph250b.14  measures of association 12.  ph250b.14  measures of association 1
2. ph250b.14 measures of association 1A M
 
Basic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsBasic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsStatistics Consultation
 

What's hot (20)

Mann Whitney U Test
Mann Whitney U TestMann Whitney U Test
Mann Whitney U Test
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Unit 2
Unit 2Unit 2
Unit 2
 
Measure of Dispersion in statistics
Measure of Dispersion in statisticsMeasure of Dispersion in statistics
Measure of Dispersion in statistics
 
Measures of Central Tendency
Measures of Central TendencyMeasures of Central Tendency
Measures of Central Tendency
 
Thiyagu normal probability curve
Thiyagu   normal probability curveThiyagu   normal probability curve
Thiyagu normal probability curve
 
Ogives slides
Ogives slidesOgives slides
Ogives slides
 
Data Analysis: Descriptive Statistics
Data Analysis: Descriptive StatisticsData Analysis: Descriptive Statistics
Data Analysis: Descriptive Statistics
 
Measurement Epidemiology
Measurement EpidemiologyMeasurement Epidemiology
Measurement Epidemiology
 
Estimating standard error of measurement
Estimating standard error of measurementEstimating standard error of measurement
Estimating standard error of measurement
 
Descriptive statistics
Descriptive statisticsDescriptive statistics
Descriptive statistics
 
Basic Descriptive Statistics
Basic Descriptive StatisticsBasic Descriptive Statistics
Basic Descriptive Statistics
 
Measures of dispersion
Measures of dispersionMeasures of dispersion
Measures of dispersion
 
Selection of a sample
Selection of a sampleSelection of a sample
Selection of a sample
 
Types of measurement scales in research methodology
Types of measurement scales in research methodologyTypes of measurement scales in research methodology
Types of measurement scales in research methodology
 
Measures of central tendency by MHM
Measures of central tendency by MHMMeasures of central tendency by MHM
Measures of central tendency by MHM
 
Descriptive statistics ii
Descriptive statistics iiDescriptive statistics ii
Descriptive statistics ii
 
Standard deviationnormal distributionshow
Standard deviationnormal distributionshowStandard deviationnormal distributionshow
Standard deviationnormal distributionshow
 
2. ph250b.14 measures of association 1
2.  ph250b.14  measures of association 12.  ph250b.14  measures of association 1
2. ph250b.14 measures of association 1
 
Basic Concepts of Inferential statistics
Basic Concepts of Inferential statisticsBasic Concepts of Inferential statistics
Basic Concepts of Inferential statistics
 

More from Cem Recai Çırak

AM Radio Receiver with Automatic Gain Control Unit
AM Radio Receiver with Automatic Gain Control UnitAM Radio Receiver with Automatic Gain Control Unit
AM Radio Receiver with Automatic Gain Control UnitCem Recai Çırak
 
OKIDA Electronics Internship Report
OKIDA Electronics Internship ReportOKIDA Electronics Internship Report
OKIDA Electronics Internship ReportCem Recai Çırak
 
Arçelik A.Ş. Dishwasher Plant Internship Report
Arçelik A.Ş. Dishwasher Plant Internship ReportArçelik A.Ş. Dishwasher Plant Internship Report
Arçelik A.Ş. Dishwasher Plant Internship ReportCem Recai Çırak
 
Arçelik A.Ş. Dishwasher Plant Internship Project Presentation
Arçelik A.Ş. Dishwasher Plant Internship Project PresentationArçelik A.Ş. Dishwasher Plant Internship Project Presentation
Arçelik A.Ş. Dishwasher Plant Internship Project PresentationCem Recai Çırak
 
2 Level Guitar Hero Final Report
2 Level Guitar Hero Final Report2 Level Guitar Hero Final Report
2 Level Guitar Hero Final ReportCem Recai Çırak
 
JCN Electronics The Servant Project Report
JCN Electronics The Servant Project ReportJCN Electronics The Servant Project Report
JCN Electronics The Servant Project ReportCem Recai Çırak
 
A feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemA feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemCem Recai Çırak
 
Symmetric TSP with Euclidean Distances for Settlement Places in Turkey
Symmetric TSP with Euclidean Distances for Settlement Places in TurkeySymmetric TSP with Euclidean Distances for Settlement Places in Turkey
Symmetric TSP with Euclidean Distances for Settlement Places in TurkeyCem Recai Çırak
 

More from Cem Recai Çırak (9)

AM Radio Receiver with Automatic Gain Control Unit
AM Radio Receiver with Automatic Gain Control UnitAM Radio Receiver with Automatic Gain Control Unit
AM Radio Receiver with Automatic Gain Control Unit
 
OKIDA Electronics Internship Report
OKIDA Electronics Internship ReportOKIDA Electronics Internship Report
OKIDA Electronics Internship Report
 
Arçelik A.Ş. Dishwasher Plant Internship Report
Arçelik A.Ş. Dishwasher Plant Internship ReportArçelik A.Ş. Dishwasher Plant Internship Report
Arçelik A.Ş. Dishwasher Plant Internship Report
 
Arçelik A.Ş. Dishwasher Plant Internship Project Presentation
Arçelik A.Ş. Dishwasher Plant Internship Project PresentationArçelik A.Ş. Dishwasher Plant Internship Project Presentation
Arçelik A.Ş. Dishwasher Plant Internship Project Presentation
 
Capacity Planning
Capacity PlanningCapacity Planning
Capacity Planning
 
2 Level Guitar Hero Final Report
2 Level Guitar Hero Final Report2 Level Guitar Hero Final Report
2 Level Guitar Hero Final Report
 
JCN Electronics The Servant Project Report
JCN Electronics The Servant Project ReportJCN Electronics The Servant Project Report
JCN Electronics The Servant Project Report
 
A feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problemA feasible solution algorithm for a primitive vehicle routing problem
A feasible solution algorithm for a primitive vehicle routing problem
 
Symmetric TSP with Euclidean Distances for Settlement Places in Turkey
Symmetric TSP with Euclidean Distances for Settlement Places in TurkeySymmetric TSP with Euclidean Distances for Settlement Places in Turkey
Symmetric TSP with Euclidean Distances for Settlement Places in Turkey
 

Wald-Wolfowitz Runs Test

  • 2. Runs test  Parametrik olmayan ve en az ordinal (sıralı) ölçekte uygulanabilen bir rastgelelik testidir. İki değerli değişkenler için uygulanabilir.  Verilen bir gözlem serisi içinde, gözlemlenen değerlerin kendinden sonraki gözlemleri etkileyip etkilemediğini inceler. Eğer bir etkileme yoksa gözlemlerin rassal şekilde oluştuğuna karar verilir. Ayrıca ana kütleden seçilen bir örneğin rastgele seçilip seçilmediğini belirlemek için kullanılır.  İki popülasyon dağılımını karşılaştırarak benzer olup olmadıklarına karar vermekte kullanılır.
  • 3. Run (dizilim) farklı elemanlar tarafından takip edilen veya kendinden önce farklı elemanlar bulunan ya da kendinden önce veya sonra hiçbir eleman bulunmayan benzer elemanların oluşturduğu bir sıradır. Örneğin, x ve y değerlerinden oluşan bir diziyi ele alalım: xxyyyxyyxxxyxyy Bu dizideki run sayısı 8’dir. xx – yyy – x – yy – xxx – y – x – yy 1 2 3 4 5 6 7 8
  • 4. Gözlem sayısının 20’den küçük olduğu durumlarda tabloda verilen Rl (minimum) ve Ru (maksimum) değerleri kullanılır. R değerinin çok küçük veya çok büyük olduğu durumlarda dizilimin rastlantısal olmadığı kabul edilir. Örneğin; xxxxxxyyyyyy ( R = 2) xyxyxyxyxyxy (R =12)
  • 5. Gözlem sayısının 20’den büyük olduğu durumlarda standart normal dağılım kullanılır. N : Toplam gözlem sayısı N1, N2 : iki değerli değişkenlerin bir değerine ait gözlem sayısı (N = N1 + N2) R : Run sayısı 𝜇 = 2𝑁1 𝑁2 𝑁 + 1 𝜎2 = 2𝑁1 𝑁2(2𝑁1 𝑁2 − 𝑁) 𝑁2(𝑁 − 1) 𝑍 = 𝑅 − 𝜇 𝜎
  • 6. Örnek 1: A ve B iki farklı balık türünü simgelemektedir. Bir nehirden alınan örnekler aşağıdaki gibidir: AABBAABBBBAAABBBBAABBB H0 : Dağılım rastlantısaldır. HA : Dağılım rastlantısal değildir. N1 = 13 (B değerlerinin sayısı) N2 = 9 (A değerlerinin sayısı) R = 8 α = 0.05
  • 7. Örnek 1: Bu örnek için tablodan elde edilen R kritik değerleri: Rl = 6 ve Ru = 17 𝑅𝑙 ≤ 𝑅 ≤ 𝑅 𝑢 olduğunda H0 reddedilemez. 6 ≤ 8 ≤ 17 olduğu için, bu örnekteki dizi rastlantısaldır.
  • 8. Örnek 2: Art arda 100 kez yazı-tura atılmıştır. Gözlem değerleri aşağıdaki gibidir. R = 44 N1 = 48 (Tura sayısı) N2 = 52 (Yazı sayısı) H0 : Dağılım rastlantısaldır. HA : Dağılım rastlantısal değildir. α = 0.05
  • 9. Örnek 2: µ = 50.92 σ = 24.6675 Z = -0.28 𝑃(𝑍 ≤ -0.28) = 0.2205 (2-tailed) P > 𝛼 2 = 0.025 olduğu için H0 reddedilemez. Gözlem değerleri rastlantısaldır.
  • 10. Örnek 3: Bir otobüs hattında iki farklı tipte otobüs çalışmaktadır. X tipi 10 adet ve Y tipi 11 adet otobüs için günlük kat ettikleri mesafeler sırasıyla aşağıdaki gibidir. X: 104 253 300 308 315 323 331 396 414 452 Y: 184 196 197 248 260 279 355 386 393 432 450 H0 : F(X)=G(Y) HA : F(X)≠G(Y) α = 0.05
  • 11. Örnek 3: İki dizinin birleştirilmiş ve sıralanmış hali aşağıdaki gibidir: 104 184 196 197 248 253 260 279 300 308 315 323 331 355 386 393 396 414 432 450 452 R= 9 µ = 11.476 σ = 2.2279 Z = -0.89 𝑃(𝑍 ≤ -0.89) = 0.187 (1-tailed) P > 0.05, olduğu için H0 reddedilemez. İki dağılım birbirine benzerdir.
  • 12. Referanslar  https://en.wikipedia.org/wiki/Wald%E2%80%93Wolfowitz_runs_test  http://www.itl.nist.gov/div898/handbook/eda/section3/eda35d.htm  https://prezi.com/irjrb94bz8im/nonparametrik-testler/  http://maths.cnam.fr/IMG/pdf/table_test_de_sequences_cle8d9d1d.pdf  https://onlinecourses.science.psu.edu/stat414/node/329  http://fbe.beun.edu.tr/fbe/images/ins729/sunu_4ci_hafta.pdf