home *** CD-ROM | disk | FTP | other *** search
/ Explore the World of Soft…e: Engineering & Science / Explore_the_World_of_Software_Engineering_and_Science_HRS_Software_1998.iso / programs / statistc / gues9210.txt < prev    next >
Text File  |  1997-09-22  |  24KB  |  367 lines

  1.  
  2.        This QA-Training-Tool module was inspired by a "Quality Entertainment"
  3.        suggestion from Herman Senter that was published in the "One Good
  4.        Idea" column of QUALITY PROGRESS, December 1990, p.160.  Senter's idea
  5.        was to sponsor a "sampling tournament" (with a valuable prizes for the
  6.        "winners") at your company's annual Quality-Day celebration.  The
  7.        GuessIt.EXE software module would "automate" all phases of the actual
  8.        running of this tournament.  On the other hand, but it would certainly
  9.        be important to also provide hands-on demonstrations of the use of,
  10.        say, sampling bowls with colored beads, sampling paddles, etc., etc.
  11.  
  12.        Here is the GuessIt.EXE main HELP screen:
  13.  
  14.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  15.        │╔═════════════════════════ GuessIt HELP ═══════════════════════════╗│
  16.        │║ Welcome to the GUESSIT Tournament...                             ║│
  17.        │║                                                                  ║│
  18.        │║ The object of the game is to make your best guess at the         ║│
  19.        │║ underlying defect rate in a batch of 10,000 items.               ║│
  20.        │║                                                                  ║│
  21.        │║ Before you make you guess, you may take a RANDOM SAMPLE of at    ║│
  22.        │║ most 500 items [without replacement] from the batch of 10,000.   ║│
  23.        │║ The GuessIt software will draw your sample and tell you how      ║│
  24.        │║ many defective items it found.  All sampled items, including     ║│
  25.        │║ the defectives, are then returned to the batch.                  ║│
  26.        │║                                                                  ║│
  27.        │║ Next, GuessIt will show you what the observed fraction defective ║│
  28.        │║ was in the last five samples it took and what the average        ║│
  29.        │║ fraction defective was over those five samples.                  ║│
  30.        │║                                                                  ║│
  31.        │║ Then you make your best guess at the underlying true defect rate,║│
  32.        │║ using a number with 4 decimal places.  For example, a guess of   ║│
  33.        │║ 0.0103 would mean that you think that there are 103 defective    ║│
  34.        │║ items in the batch of 10,000 ...i.e. about 1 percent defective.  ║│
  35.        │╚══════════════════════════════════════════════════════════════════╝│
  36.        └────────────────────────────────────────────────────────────────────┘
  37.           GuessIt.EXE, ver.9210.....................................Page 2
  38.  
  39.  
  40.  
  41.        By the way, a secondary objective of the GuessIt.EXE simulation is to
  42.        illustrate how DIFFICULT it actually is to estimate the 3rd and 4th
  43.        decimal places in a nonconformance fraction using only random sampling
  44.        (rather that a complete census/count.)
  45.  
  46.        Here is the opening screen from GuessIt.EXE...
  47.  
  48.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  49.        │                                                                    │
  50.        │                    GUESSIT.EXE...Version 9210                      │
  51.        │                                                                    │
  52.        │   ***   Guess the Underlying "Defect Rate" via Sampling   ***      │
  53.        │                                                                    │
  54.        │                A Quality Assurance Training Tool:                  │
  55.        │        Statistics Committee of the QA Section of the PMA           │
  56.        │           Bob Obenchain, CompuServe User [72007,467]               │
  57.        │                                                                    │
  58.        │  ╔══════════════════════════════════════════════════════════════╗  │
  59.        │  ║  Press a key to SETUP the GAME...                            ║  │
  60.        │  ╚══════════════════════════════════════════════════════════════╝  │
  61.        └────────────────────────────────────────────────────────────────────┘
  62.  
  63.        In response to each GuessIt prompt, the user may select the displayed
  64.        [default] value by simply pressing the ENTER key...
  65.  
  66.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  67.        │                                                                    │
  68.        │  At colon Prompts : ...simply press ENTER to get the [default].    │
  69.        │                                                                    │
  70.        │  Specify filename to save Output [GUESSIT.out] :   <--Note default │
  71.        │                                                       name in []'s.│
  72.        │  The GuessIt Output file is to be: GUESSIT.out                     │
  73.        │                                                                    │
  74.        │  Specify a "Declare-the-Winner" PASSWORD...                        │
  75.        │          [ Maximum of 8 characters. ]                              │
  76.        │                                                                    │
  77.        │  PASSWORD : 1234      <-- The tournament organizer must enter      │
  78.        │                           his/her "secret" PASSWORD here.          │
  79.        │                                                                    │
  80.        │  GuessIt PASSWORD is now set to >>    1234<<    <--Echo of ENTERED │
  81.        │                                                       PASSWORD     │
  82.        │  Of the 10,000 items in the population, how many are               │
  83.        │  defective ? (min=1;max=501) [113] : 321                           │
  84.        │                                                                    │
  85.        │  Defects in Population = 321.                                      │
  86.        │                                                                    │
  87.        │  Input Simulation Start-up Seed ( 0 means use your Clock ): 0      │
  88.        │                                                                    │
  89.        │  Equivalent Start-Up Seed = -26883.                                │
  90.        │                                                                    │
  91.        │          Press Q to QUIT now...Other Key to Continue...            │
  92.        └────────────────────────────────────────────────────────────────────┘
  93.           GuessIt.EXE, ver.9210.....................................Page 3
  94.  
  95.  
  96.  
  97.        NOTE:  The player who comes closest to the cumulative average of all
  98.               random samples taken during the tournament will be declared the
  99.               winner.  In other words, the theoretically "best" guess in the
  100.               above case would be fraction defective = 0.0321.  But that
  101.               guess will not necessarly be the winner due to the stochastic
  102.               nature of the sampling simulation!
  103.  
  104.        Individual players in the GuessIt.EXE tournament have access to items
  105.        "G" and "H" on the Main Menu.  Only tournament organizer(s) who know
  106.        the current password can use items "V" and "W" to display the current
  107.        tournament leader(s), summary statistics, and VGA graphics displays...
  108.  
  109.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  110.        │               ╔════════════════════════════════════╗               │
  111.        │               ║             Main Menu              ║               │
  112.        │               ║   G = Guess the "Defect Rate"      ║               │
  113.        │               ║   H = display HELP screen          ║               │
  114.        │               ║   V = View Cumulative Results      ║               │
  115.        │               ║   W = determine the WINNER         ║               │
  116.        │               ║   choice --> G                     ║               │
  117.        │               ╚════════════════════════════════════╝               │
  118.        └────────────────────────────────────────────────────────────────────┘
  119.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  120.        │╔══════════════════════ Sample Selection ════════════════════════╗  │
  121.        │║                                                                ║  │
  122.        │║  Welcome to the GUESSIT Tournament...                          ║  │
  123.        │║                                                                ║  │
  124.        │║  You are Player Number: 5                                      ║  │
  125.        │║                                                                ║  │
  126.        │║  Please respond to the following prompts for Information.      ║  │
  127.        │║                                                                ║  │
  128.        │║  What is your NAME ? : Bob Obenchain                           ║  │
  129.        │║                                                                ║  │
  130.        │║  OK, Bob Obenchain...                                          ║  │
  131.        │║  Before you make you guess at the underlying defect rate,      ║  │
  132.        │║  you may take a Random Sample of at most 500 items without     ║  │
  133.        │║  replacement from the Population of 10,000 items.              ║  │
  134.        │║                                                                ║  │
  135.        │║  What will be the SIZE of your Random Sample ? [500] :  <---Take  │
  136.        │║  Now selecting your sample of size 500...                   Default
  137.        │║                                                                ║  │
  138.        │║  A total of 13 defects were found in your sample.              ║  │
  139.        │║                                                                ║  │
  140.        │║  Press a key to Continue...                                    ║  │
  141.        │╚════════════════════════════════════════════════════════════════╝  │
  142.        └────────────────────────────────────────────────────────────────────┘
  143.           GuessIt.EXE, ver.9210.....................................Page 4
  144.  
  145.  
  146.  
  147.        NOTE: The default name assigned to a player, if he/she simply presses
  148.              the enter key without first entering his/her name, is "Player
  149.              Number NNN, where NNN is a number between 5 and 500.  The first
  150.              four player numbers are used by GuessIt.EXE to randomly start
  151.              up the game; in this way, the first actual player (number 5) sees
  152.              the same MAXIMUM amount of sampling history (5 samples of 500)
  153.              available to subsequent players.
  154.  
  155.        NOTE: Some players may decide to collect less than the maximum sample
  156.              size of 500 and, thus, less than the maximum amount of "new"
  157.              information about the true fraction defective.  This handicaps
  158.              not only them but also the four players who immediately follow
  159.              them.  This is the case because GuessIt.EXE shows each player
  160.              only the results from the 5 most recent samples (plus the
  161.              average over these 5 samples, weighted by sample size)...
  162.  
  163.        ┌────────────────────── GuessIt Sampling Game ───────────────────────┐
  164.        │╔═══════════════════════ Sample Selection ═══════════════════════╗  │
  165.        │║ ╔════════════════════════ GuessIt NOW!!! ════════════════════════╗│
  166.        │║ ║                                                                ║│
  167.        │║ ║   Results from the 5 most recent samples were as follows...    ║│
  168.        │║ ║                                                                ║│
  169.        │║ ║                                           Observed             ║│
  170.        │║ ║                                           Defect     Sample    ║│
  171.        │║ ║   Player Name:                            Rate       Size      ║│
  172.        │║ ║   Start-Up...                             0.0240     500       ║│
  173.        │║ ║   Start-Up...                             0.0220     500       ║│
  174.        │║ ║   Start-Up...                             0.0260     500       ║│
  175.        │║ ║   Start-Up...                             0.0280     500       ║│
  176.        │║ ║   Bob Obenchain                           0.0260     500       ║│
  177.        │║ ║                                                                ║│
  178.        │║ ║   The AVERAGE of these FIVE defect rates =     0.0252          ║│
  179.        │║ ║                                                                ║│
  180.        │║ ║   HINT: The underlying true defect rate is less than 0.1000.   ║│
  181.        │║ ║                                                                ║│
  182.        │║ ║   Make your best guess at the underlying true defect rate as a ║│
  183.        │║ ║   number with 4 decimal places...     >0.1234<                 ║│
  184.        │║ ║   What is your BEST GUESS ? [0.0252] :         <---Default is  ║│
  185.        │║ ║                                                    the AVERAGE!║│
  186.        │║ ║   Your entry, rounded to four decimal places, is 0.0252.       ║│
  187.        │║ ║                                                                ║│
  188.        │╚═║   Is this your BEST GUESS ? [Y|n] :    <--Default here is YES. ║│
  189.        │  ╚════════════════════════════════════════════════════════════════╝│
  190.        └────────────────────────────────────────────────────────────────────┘
  191.           GuessIt.EXE, ver.9210.....................................Page 5
  192.  
  193.  
  194.  
  195.        NOTE: GuessIt.EXE assures that each contestant's guess is UNIQUE!
  196.              If the value entered has previously been selected by another
  197.              player, GuessIt will display messages such as...
  198.  
  199.                       "Sorry, another player has already chosen 0.0252."
  200.  
  201.              And either
  202.                       "The closest SMALLER guess available is 0.0251."
  203.              or
  204.                       "No SMALLER guess values are available."
  205.  
  206.              Plus either
  207.                       "The closest LARGER guess available is 0.0255."
  208.              or
  209.                       "No LARGER guess values are available."
  210.  
  211.              The player must continue to enter guesses until he/she makes a
  212.              unigue choice and CONFIRMS that he/she wants to use that guess.
  213.  
  214.        Item "V" on the main menu can be used by anybody who knows the current
  215.        PASSWORD to display how the game is progressing.  The graph that is
  216.        displayed doesn't have labelled tick marks on its axes, so it's "okay"
  217.        for contestants to see this sort of "relative" trends plot (after they
  218.        have made their guess.)  There is really very little information here
  219.        that they could communicate to players who have not yet made their
  220.        guess...
  221.  
  222.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  223.        │               ╔════════════════════════════════════╗               │
  224.        │               ║             Main Menu              ║               │
  225.        │               ║   G = Guess the "Defect Rate"      ║               │
  226.        │               ║   H = display HELP screen          ║               │
  227.        │               ║   V = View Cumulative Results      ║               │
  228.        │               ║   W = determine the WINNER         ║               │
  229.        │               ║   choice --> V                     ║               │
  230.        │               ╚════════════════════════════════════╝               │
  231.        └────────────────────────────────────────────────────────────────────┘
  232.        ╔═══════════════════ Display Cummulative Results ════════════════════╗
  233.        ║                                                                    ║
  234.        ║   Enter the PASSWORD : 1234 <---Entered PASSWORD will NOT actually ║
  235.        ║                                 show on the screen as it does here.║
  236.        ║                                                                    ║
  237.        ║   The VGA graphics screen will show how the cumulative             ║
  238.        ║   average fraction defective stablizes as sampling progresses.     ║
  239.        ║   The horizontal RED line marks the underlying true fraction       ║
  240.        ║   defective within the total batch of 10,000 items.                ║
  241.        ║                                                                    ║
  242.        ║   Press a Key to initiate Graphics...                              ║
  243.        ║                                                                    ║
  244.        ╚════════════════════════════════════════════════════════════════════╝
  245.           GuessIt.EXE, ver.9210.....................................Page 6
  246.  
  247.  
  248.  
  249.        Item "W" on the main menu can also be used by anybody who knows the
  250.        current PASSWORD, but this item "ends" the GuessIt.EXE tournament and
  251.        determines the final "winner."  The graph that is displayed again
  252.        doesn't have labelled tick marks on its axes, but this time player
  253.        guesses are also plotted and the theoretical "true" rate is revealed...
  254.  
  255.        ┌───────────────────── GuessIt Sampling Game ────────────────────────┐
  256.        │               ╔════════════════════════════════════╗               │
  257.        │               ║             Main Menu              ║               │
  258.        │               ║   G = Guess the "Defect Rate"      ║               │
  259.        │               ║   H = display HELP screen          ║               │
  260.        │               ║   V = View Cumulative Results      ║               │
  261.        │               ║   W = determine the WINNER         ║               │
  262.        │               ║   choice --> W                     ║               │
  263.        │               ╚════════════════════════════════════╝               │
  264.        └────────────────────────────────────────────────────────────────────┘
  265.        ╔═══════════════════════ And the WINNER is... ═══════════════════════╗
  266.        ║                                                                    ║
  267.        ║   Enter the PASSWORD : 1234 <---Entered PASSWORD will NOT actually ║
  268.        ║                                 show on the screen as it does here.║
  269.        ║   PASSWORD matches!                                                ║
  270.        ║                                                                    ║
  271.        ║   At this point in the GuessIt Tournament, the minimum             ║
  272.        ║   absolute deviation between the current cumulative defect         ║
  273.        ║   rate and player guesses is 0.0000.                               ║
  274.        ║                                                                    ║
  275.        ║   Right now, the Tournament Leader is Bob Obenchain.               ║
  276.        ║                                                          NOT the   ║
  277.        ║   Is the GuessIt Tournament now COMPLETE ? [N|y] : y <---DEFAULT   ║
  278.        ║                                                          Response  ║
  279.        ║   The Tournament Winner is Bob Obenchain.                          ║
  280.        ║                                                                    ║
  281.        ║   ...His/Her Best Guess was 0.025200.                              ║
  282.        ║                                                                    ║
  283.        ║   The VGA graphics screen will show the cumulative defect rate     ║
  284.        ║   in White, the individual defect rates in CYAN, and player        ║
  285.        ║   guesses in GREEN.  The horizontal RED line is the theoretical    ║
  286.        ║   true fraction defective of 0.0321.                               ║
  287.        ║                                                                    ║
  288.        ║   Press a Key to initiate Graphics...                              ║
  289.        ╚════════════════════════════════════════════════════════════════════╝
  290.  
  291.        NOTE: Once the "current" tournament leader is revealed, the tournament
  292.              organizer still has the option of using the default response of NO
  293.              to continue rather than end the tournament.  After all, neither
  294.              that leading player's guess or the current cumulative average
  295.              have yet been displayed on the screen.  Even though the current
  296.              leader's deviation from the current cumulative average may be
  297.              0.0000 at this point, a different player could still end up
  298.              winning at a later point in the tournament!
  299.           GuessIt.EXE, ver.9210.....................................Page 7
  300.  
  301.  
  302.  
  303.        NOTE: Two players could also tie, of course.  Suppose the cumulative
  304.              average defect rate ends up at, say, 0.0383 and the two closest
  305.              guesses bracket this value at, say, 0.0379 and 0.0387.  Then
  306.              both guesses are off by exactly 0.0004, and those two players
  307.              would then tie.
  308.  
  309.        Once a winner has been declared, Guessit.EXE terminates with the
  310.        messages...
  311.  
  312.        ╔═══════════════════════ And the WINNER is... ═══════════════════════╗
  313.        ║   Press a Key to EXIT the GuessIt software system.                 ║
  314.        ╚════════════════════════════════════════════════════════════════════╝
  315.  
  316.        REMINDER(S) :
  317.                     
  318.        GUESSIT created an output file named: GUESSIT.out
  319.                     
  320.                Use the DOS invocation... TYPE GUESSIT.out | MORE
  321.                to review detailed information about this
  322.                run of the GUESSIT game.
  323.  
  324.  
  325.        The GuessIt.EXE output file will contain a wealth of information about
  326.        how the tournament actually progressed...
  327.           GuessIt.EXE, ver.9210.....................................Page 8
  328.  
  329.  
  330.  
  331.           ┌─────────────────────────────────────────────────────────────────┐
  332.           │    GuessIt Sampling Tournament...                               │
  333.           │    Date/Time Stamp : Sat Oct 10 22:17:10 1992                   │
  334.           │                                                                 │
  335.           │    PASSWORD set to >>87654321<<                                 │
  336.           │    Total Number of Defects = 501                                │
  337.           │    Random Number Seed  = -18218                                 │
  338.           │                                                                 │
  339.           │    At Turn Number NNN, the Cumulative Defect Rate was 0.0488.   │
  340.           │    The Tournament Leader at that point was Player Number 10     │
  341.           │        whose Guess was 0.0488.                                  │
  342.           │    The Tornament ENDED at this point.                           │
  343.           │                                                                 │
  344.           │    Elapsed Tournament Time in Seconds = XXX                     │
  345.           │    Total Number of Players = NNN                                │
  346.           │                                 Observed   Cumulative           │
  347.           │                                 Defect     Defect     Best      │
  348.           │    Player Name:                 Rate       Rate       Guess     │
  349.           │    Start-Up...                  0.0480     0.0480    -0.0999    │
  350.           │    Start-Up...                  0.0560     0.0520    -0.0999    │
  351.           │    Start-Up...                  0.0400     0.0480    -0.0999    │
  352.           │    Start-Up...                  0.0440     0.0470    -0.0999    │
  353.           │    Player Number 5              0.0380     0.0452     0.0452    │
  354.           │    Player Number 6              0.0620     0.0480     0.0480    │
  355.           │    Player Number 7              0.0440     0.0474     0.0456    │
  356.           │    Player Number 8              0.0420     0.0468     0.0460    │
  357.           │    Player Number 9              0.0380     0.0458     0.0448    │
  358.           │    Player Number 10             0.0580     0.0470     0.0488    │
  359.           │    Player Number 11             0.0440     0.0467     0.0451    │
  360.           │    Player Number 12             0.0420     0.0463     0.0447    │
  361.           │    Player Number 13             0.0560     0.0471     0.0476    │
  362.           │    Player Number 14             0.0600     0.0480     0.0520    │
  363.           │    Player Number 15             0.0460     0.0479     0.0496    │
  364.           │    etc., etc.                                                   │
  365.           │    Player Number NNN            0.0620     0.0488     0.0478    │
  366.           └─────────────────────────────────────────────────────────────────┘
  367.