home *** CD-ROM | disk | FTP | other *** search
Turbo Pascal Compiled 8bit CP/M-80 COM | 1986-02-10 | 14.5 KB | 96 lines |
- Copyright (C) 1984 BORLAND Inc
- Pseudo TeleVideo 910P
- C0000
- ^#V#N#F
- s#r#q#p
- #^#V
- 9^#Vh&
- |/g}/o#
- T]=o`9y
- T9^K#
- 8/<oz
- T9^K#
- oGOW_g
- `1pF,
- w###6
- ##N#F*
- Nw#Fw
- q#p#6
- #w#w#w
- TRUEFALSE
- N#F#s#r
- N#F#^#V
- " C}=(
- F+N+++V+^
- q#p##
- User break
- Run-time
- error
- , PC=
- Program aborted
- +)]T)
- +)]T)
- +)]T)
- +)]T)
- TURN ON THE PRINTER.
- Runs Testing of TURBO Pascal RNG:
- @ This program performs two different runs tests on the RNG. The
- B first is >1/2 \ <1/2. The second is on signs of successive dif-
- A ferences. A reference for these tests is Mendenhall, "An Intro-
- @ duction to Probability and Statistics, 3rd ed.", pp. 382 - 388.
- % How many samples of the RNG (max of !
- ) (0 to quit)?
- 7 Later, you will be asked to type one of the following:
- 9 HL# -- >1/2 \ <1/2 test; probability of less than # runs
- < HG# -- >1/2 \ <1/2 test; probability of greater than # runs
- 8 DL# -- signs succ. diff.'s test; prob. less than # runs
- ; DG# -- signs succ. diff.'s test; prob. greater than # runs
- ' QQ# -- type this to quit this sampling
- > NOTE: Upper or lower case letters are OK; any # is OK for QQ#
- < REMEMBER THESE INSTRUCTIONS; THIS IS THE YOU WILL SEE THEM!
- # <1/2 = *
- # diff<0 = *
- # >1/2 = *
- # diff>0 = *
- # runs of <1/2 = *
- # runs of diff<0 = *
- # runs of >1/2 = *
- # runs of diff>0 = *
- TOTAL # RUNS --------------> *
- TOTAL # RUNS ---------------> *
- MAXIMUM # RUNS POSSIBLE ---> *
- MAXIMUM # RUNS POSSIBLE ----> *
- # <1/2 = *
- # diff<0 = *
- # >1/2 = *
- # diff>0 = *
- # runs of <1/2 = *
- # runs of diff<0 = *
- # runs of >1/2 = *
- # runs of diff>0 = *
- TOTAL # RUNS --------------> *
- TOTAL # RUNS ---------------> *
- MAXIMUM # RUNS POSSIBLE ---> *
- MAXIMUM # RUNS POSSIBLE ----> *
- . Type: HL# HG# DL# DG# or QQ# ----->
- Prob. *
- ! or fewer runs ( <1/2 \ >1/2 ) =
- Prob. *
- ! or fewer runs ( <1/2 \ >1/2 ) =
- Prob. *
- or more runs ( <1/2 \ >1/2 ) =
- Prob. *
- or more runs ( <1/2 \ >1/2 ) =
- Prob. *
- # or fewer runs (diff<0 / diff>0) =
- Prob. *
- # or fewer runs (diff<0 / diff>0) =
- Prob. *
- " or more runs (diff<0 / diff>0) =
- Prob. *
- " or more runs (diff<0 / diff>0) =
- % How many samples of the RNG (max of !
- ) (0 to quit)?
- How many samples of the RNG (max of !
- ) (0 to quit)?
-