SlideShare a Scribd company logo
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

Logarithmic transformations
Logarithmic transformationsLogarithmic transformations
Logarithmic transformations
amylute
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
Avjinder (Avi) Kaler
 
Mean absolute deviation about mean
Mean absolute deviation about meanMean absolute deviation about mean
Mean absolute deviation about mean
Nadeem Uddin
 
Probability Distributions
Probability DistributionsProbability Distributions
Probability Distributions
Birinder Singh Gulati
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysis
Rabin BK
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
J P Verma
 
Chapter 2 part3-Least-Squares Regression
Chapter 2 part3-Least-Squares RegressionChapter 2 part3-Least-Squares Regression
Chapter 2 part3-Least-Squares Regression
nszakir
 
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
RekhaChoudhary24
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
alok tiwari
 
Q-Q Plot | Statistics
Q-Q Plot | StatisticsQ-Q Plot | Statistics
Q-Q Plot | Statistics
Transweb Global Inc
 
STANDARD DEVIATION (2018) (STATISTICS)
STANDARD DEVIATION (2018) (STATISTICS)STANDARD DEVIATION (2018) (STATISTICS)
STANDARD DEVIATION (2018) (STATISTICS)
sumanmathews
 
Chi square test
Chi square testChi square test
Chi square test
YASMEEN CHAUDHARI
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
Parag Shah
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
Farzad Javidanrad
 
Chi square
Chi squareChi square
Testing Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSSTesting Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSS
J P Verma
 

What's hot (20)

Logarithmic transformations
Logarithmic transformationsLogarithmic transformations
Logarithmic transformations
 
Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Comparing means
Comparing meansComparing means
Comparing means
 
Mean absolute deviation about mean
Mean absolute deviation about meanMean absolute deviation about mean
Mean absolute deviation about mean
 
Chi square mahmoud
Chi square mahmoudChi square mahmoud
Chi square mahmoud
 
Probability Distributions
Probability DistributionsProbability Distributions
Probability Distributions
 
Statistics-Regression analysis
Statistics-Regression analysisStatistics-Regression analysis
Statistics-Regression analysis
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
 
Chapter 2 part3-Least-Squares Regression
Chapter 2 part3-Least-Squares RegressionChapter 2 part3-Least-Squares Regression
Chapter 2 part3-Least-Squares Regression
 
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
Simple Correlation : Karl Pearson’s Correlation co- efficient and Spearman’s ...
 
Presentation On Regression
Presentation On RegressionPresentation On Regression
Presentation On Regression
 
Q-Q Plot | Statistics
Q-Q Plot | StatisticsQ-Q Plot | Statistics
Q-Q Plot | Statistics
 
STANDARD DEVIATION (2018) (STATISTICS)
STANDARD DEVIATION (2018) (STATISTICS)STANDARD DEVIATION (2018) (STATISTICS)
STANDARD DEVIATION (2018) (STATISTICS)
 
Chi square test
Chi square testChi square test
Chi square test
 
Regression
RegressionRegression
Regression
 
F test and ANOVA
F test and ANOVAF test and ANOVA
F test and ANOVA
 
Introduction to correlation and regression analysis
Introduction to correlation and regression analysisIntroduction to correlation and regression analysis
Introduction to correlation and regression analysis
 
Covariance vs Correlation
Covariance vs CorrelationCovariance vs Correlation
Covariance vs Correlation
 
Chi square
Chi squareChi square
Chi square
 
Testing Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSSTesting Assumptions in repeated Measures Design using SPSS
Testing Assumptions in repeated Measures Design using SPSS
 

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 Unit
Cem 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