Dr. Gill wants to arrange the answers to a true-false exam in random order. The answers in order of occurrence are shown below. T T T T F T T F F F F T T F F F F F F T T T T T T Test the sequence for randomness using ? = 0.05.   (c) Find the sample test statistic. (d) For the sign test, rank-sum test, and Spearman correlation coefficient test, find the P-value of the sample test statistic. For the runs test of randomness, find the critical values from Table 10 of Appendix II. c1   c2

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Dr. Gill wants to arrange the answers to a true-false exam in random order. The answers in order of occurrence are shown below.

T T T T F T T F F F F T T F F F F F F T T T T T T

Test the sequence for randomness using ? = 0.05.

 

(c) Find the sample test statistic.


(d) For the sign test, rank-sum test, and Spearman correlation coefficient test, find the P-value of the sample test statistic. For the runs test of randomness, find the critical values from Table 10 of Appendix II.

c1  
c2  
Expert Solution
Step 1

Given : Dr. Gill wants to arrange the answers to a true-false exam in random order. The answers in order of occurrence provided . 

The number of runs for this order is 7.

There are 14 True and 11 false in the sequence.

n1 = 14 , n2 = 11 

Definition :  We will code values above the median as positive and values below the median as negative.

A run is defined as a series of consecutive positive (or negative) values. The runs test is defined as:


H0: the sequence was produced in a random manner
Ha: the sequence was not produced in a random manner

 

Step 2

Test Statistic: The test statistic is  

Z=R-R¯sR=7-13.3269.7312=-0.09063

where , 

R¯=2n1n2n1+n2+12*14*1114+11+1=13.32

sR=2n1n2(2n1n2-n1-n2)(n1+n2)2(n1+n2-1)=2*14*11(2*14*11-14-11)(14+11)2(14+11-1)=69.7312

with n1 and n2 denoting the number of positive and negative values in the series. 

Sample test statistic : z = 0.09063

 

 

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Point Estimation, Limit Theorems, Approximations, and Bounds
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman