home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / SS / SS050.ZIP / QPRO.DOC < prev    next >
Text File  |  1989-10-17  |  17KB  |  565 lines

  1.  
  2.                             OVERVIEW
  3.  
  4. Q-Pro brings Monte-Carlo techniques to desktop computing.  It
  5. uses Monte-Carlo methods to derive the probability distribution
  6. of a user defined function which can contain two independent
  7. random variables.  It has a variety of features, including:
  8.  
  9.      *    Each variable within the user defined functions can be
  10.           attributed one of eight distributions.
  11.  
  12.      *    User defined functions can contain a variety of
  13.           standard functions, eg., log, sine and hyperbolic
  14.           cosine.
  15.  
  16.      *    Development of the mean can be plotted during the
  17.           calculation.
  18.  
  19.      *    No. of Cycles can range from 100 to 1,000
  20.  
  21.      *    Full screen editing
  22.  
  23.      *    Comprehensive context sensitive help screens.
  24.  
  25.      *    Function key driven (F1 - F10)
  26.  
  27.      *    Results are displayed in both tabular and graphics
  28.           form.
  29.  
  30.      *    Supports IBM Colour Graphics Adaptor and Hercules
  31.           Graphics Card.  (Graphics are suppressed on machines
  32.           without graphics capability.)
  33.  
  34. The following parameters of the user defined function are
  35. derived:
  36.  
  37.      *    Mean
  38.  
  39.      *    Standard Deviation
  40.  
  41.      *    2nd Moment about Mean (Variance)
  42.  
  43.      *    3rd Moment about Mean
  44.  
  45.      *    4th Moment about Mean
  46.  
  47.      *    Skewness
  48.  
  49.      *    Kurtosis
  50.  
  51.      *    Kappa (Pearson Co-efficient)
  52.  
  53.      *    No. of Cycles
  54.  
  55.      *    Cumulative Probability
  56.           (Table and Curve)
  57.  
  58.      *    Probability
  59.           (Table and Curve)
  60.  
  61. The input data and the parameters of the derived distribution can
  62. be listed and the probability curves printed on an Epson LX800 or
  63. compatible printer.
  64.  
  65.                           INSTALLATION
  66.  
  67. INTRODUCTION
  68.  
  69. Experienced PC users should have no problems installing Q-PRO. 
  70. There is no copy protection or hidden files to deal with.  The
  71. programme senses the hardware configuration and DOS version
  72. number.
  73.  
  74. OPERATING SYSTEM
  75.  
  76. The programme is designed for use on IBM PC's and Compatible
  77. running DOS Version 2.0 or higher.
  78.  
  79. GRAPHICS
  80.  
  81. When the programme is launched, it detects the graphics
  82. capability of the machine on which it is running.  Graphics will
  83. not be displayed with an MDA.  IBM CGA and Hercules Graphics
  84. cards are supported.  On machines with EGA and VGA cards, an
  85. equivalent mode to CGA is used.
  86.  
  87. PRINTERS
  88.  
  89. Printers should be attached to the 1st Parallel interface (LPT1
  90. or PRN).  The tabular results can be printed on a TTY device. 
  91. These are printed with the visible part of the ASCII character
  92. set with no special format codes.
  93.  
  94. The graphics are printed using the bit image commands of an Epson
  95. LX800 printer.  A printer which is not compatible with ESC/P
  96. commands will not be able to print graphics.
  97.  
  98. SINGLE & DOUBLE DISKETTE DRIVES
  99.  
  100. Before following the instructions below, the machine should be
  101. running an appropriate version of DOS.
  102.  
  103. STEP 1
  104.  
  105. Make a copy of the delivery disk on a formatted working disk, and
  106. then store it away safely.  Put a write-protect tab on the
  107. working disk to prevent accidents and label it clearly.
  108.  
  109. STEP 2
  110.  
  111. Ensure that the prompt looks similar to:
  112.  
  113.           A:> or B:>
  114.  
  115. Take the working disk and insert it into one of the drives, then
  116. type:
  117.  
  118.           QPRO <Return>
  119.  
  120. Then press the ENTER key.  At this point Q-Pro's signature screen
  121. appears and the programme is ready to be used.
  122.  
  123. It is common practice on machines with two diskette drives to
  124. have the system disk in drive A: and to run applications from the
  125. B: drive.
  126.  
  127. FIXED DISK
  128.  
  129. The procedure set out below assumes that the hard disk is
  130. designated C:.  If your machine is not configured this way,
  131. modify the procedure accordingly.
  132.  
  133. STEP 1
  134.  
  135. Make a back-up copy of the delivery disk and store it away
  136. safely.  Put a write protect tab on it to prevent accidents and
  137. label it clearly.
  138.  
  139. STEP 2
  140.  
  141. It is common practice to install applications programmes in their
  142. own directory.  The process is easier if you execute a PROMPT
  143. command to show you the name of the current directory.
  144.  
  145.           PROMPT $P$G
  146.  
  147. Your AUTOEXEC.BAT may execute this or a similar command when you
  148. boot the machine.
  149.  
  150. The starting point is the root directory, the prompt should be:
  151.  
  152.           C:\>
  153.  
  154. Now make a directory with the command
  155.  
  156.           MD QPRO
  157.  
  158. Next, get into the new directory by typing:
  159.  
  160.           CD\QPRO
  161.  
  162. After this the prompt should like this:
  163.  
  164.           C:\QPRO>
  165.  
  166. STEP 4
  167.  
  168. The final stage is to copy the files on the delivery disk (or a
  169. copy) into the QPRO directory:
  170.  
  171.           COPY A:*.*
  172.  
  173. STEP 5
  174.  
  175. To run the programme type:
  176.  
  177.           QPRO <Return>
  178.  
  179. At this point the signature screen will appear and the programme
  180. is ready for use.
  181.  
  182. LAUNCH & LOAD
  183.  
  184. An application file can be loaded when the programme is loaded by
  185. adding the filename to the launch line with a space as a
  186. separator eg.
  187.  
  188.           QPRO [D:]\[Path]\Filename
  189.  
  190. This is illustrated by the example which loads the file TEST.QPR
  191. from the directory QPR on drive A:.
  192.  
  193.           QPRO A:\QPR\TEST
  194.  
  195. Extensions are ignored.
  196.  
  197.                             TUTORIAL
  198.  
  199. Driving the Programme
  200.  
  201. The programme is driven by the PC's function keys.  Most
  202. functions can only be invoked from the input screen.  Any "Help"
  203. windows which are displayed must be cleared with the ESC key
  204. before using a function key.
  205.  
  206. The "manual" is contained in the "Help" windows, which are
  207. accessed through the function keys.  The ones listed below will
  208. help you get up and running. 
  209.  
  210.      Shift-F1  How to use the programme 
  211.            F3  Keyboard Directory 
  212.            F4  Function Reference
  213.        Ctr-F8  Exit to DOS
  214.  
  215. The context sensitive help key F1 displays a window describing
  216. the input required by the cell highlighted by the cell cursor. 
  217. There is enough information in the Help Screens to enable you to
  218. use the programme.  However, we suggest that you work through
  219. this tutorial. It will only take a few minutes and may save hours
  220. when you use the programme for your own application.
  221.  
  222. STARTING THE PROGRAMME 
  223.  
  224. If you are launching the programme from a diskette drive make
  225. sure that the prompt is ready for a command, for example: 
  226.  
  227.           A:\> or   B:\>
  228.  
  229. If you have installed the programme in its own directory on a
  230. hard disk the prompt should be similar to: 
  231.  
  232.           C:\QPRO> 
  233.  
  234. Then launch the programme with the command:
  235.  
  236.           QPRO <Enter>
  237.  
  238. (Note <Enter> means strike the ENTER Key.  Similar notation is
  239. used for other keys in this tutorial.)
  240.  
  241. At this point Q-Pro displays its signature screen (Yes - The
  242. order in which the logo is printed is different each time you
  243. launch the programme).  When prompted by the text at the bottom
  244. of the screen,  strike return to get into the programme. 
  245.  
  246. A SAMPLE RUN WITH ONE VARIABLE 
  247.  
  248. This is a trivial operation, but it brings out some important
  249. points about how the programme works.  We are going to see what a
  250. single uniformly distributed variable looks like. 
  251.  
  252. STEP 1
  253.  
  254. Place the cursor on the first line of the FUNCTION cell.  Type: 
  255.  
  256.           X <F5> 
  257.  
  258. The F5 key "Enters" the function.  Once it has been struck, X"
  259. appears in the variable column.  At this point, the TEST and DIST
  260. cells become unlocked allowing you to enter 
  261. data.  Ignore the TEST cell until later. 
  262.  
  263. STEP 2
  264.  
  265. To define the distribution, place the cursor on the DIST cell and
  266. press F1.  This will display a menu window showing the types of
  267. distribution available to you.  Use the Up/Down Arrow keys to
  268. select a Uniform Distribution (this has the mnemonic UFM). When
  269. the menu cursor is on UFM press return. The window will disappear
  270. and two further cells will become unlocked.  Alternatively, you
  271. could have typed "UFM" directly into  the DIST cell. 
  272.  
  273. Enter the following data: 
  274.  
  275.           Min = 10       Max = 20 
  276.  
  277. Use the arrow keys to move between cells.  You can enter the data
  278. either by striking the "Enter" key or moving the cursor.  If you
  279. make a mistake during entry, strike "ESC" and start again.  You
  280. can also use the F2 key to change into Edit Mode.  Shift-F2
  281. displays the "Help" window which describes cell editing. 
  282.  
  283. STEP 3
  284.  
  285. Specify the number of cycles used in the Monte Carlo process. 
  286. Place the cell cursor on the CYCLES Cell and enter 1000. 
  287.  
  288. STEP 4
  289.  
  290. With Monte Carlo processes it is helpful to know if the mean of
  291. the derived distribution converges.  To see how the mean develops
  292. select the "Graphics" option.  Place the    cursor on the OPTIONS
  293. cell and enter:
  294.  
  295.           G <Enter>
  296.  
  297. Alternatively, use the F1 key to display a menu window.
  298.  
  299. Whilst it is helpful to see the calculation in progress, it does
  300. increase the run time, so if you are confident that your function
  301. will converge and want to save time, ensure than "NONE" is
  302. displayed in the OPTIONS Cell. 
  303.  
  304. STEP 5
  305.  
  306. Initiate the Monte-Carlo process by striking the F10 key.  The
  307. first thing that happens is that "Q-Pro - Calculation in
  308. Progress" appears on a blank screen.  After a few seconds, this
  309. is replaced by a graph which plots the instantaneous value of the
  310. mean. 
  311.  
  312. When the programme is ready, it will invite you to strike "Enter
  313. to Continue" on the bottom line.  When you do this the parameters
  314. of the derived distribution will appear.  Use the PgDn key to see
  315. the tabular results and graphics.  To get back to the Entry
  316. screen, strike the "Home" key.
  317.  
  318. Monte Carlo processes are by nature variable in their results. 
  319. The programme has been designed to display a wide range of
  320. results. After each run, it selects the optimum way  of
  321. displaying the results.  Occasionally, it will select different
  322. axes for the graphs for the same input data.
  323.  
  324. STEP 6
  325.  
  326. The graphics are printed using a screen dump.  When printing the
  327. graphics the bottom line prompts are removed, as soon as the
  328. operation has been completed, they are re-displayed. 
  329.  
  330. To print the results use the F7 key: 
  331.  
  332.      TABLES
  333.  
  334.      To print the results in tabular form, put the programme into
  335.      entry mode with the input screen showing and check that the
  336.      paper in the printer is in the right position then strike: 
  337.  
  338.                F7 
  339.  
  340.    GRAPHICS
  341.  
  342.      To print the Cumulative Frequency Distribution use the PgDn
  343.      key to display the graph, then strike: 
  344.  
  345.                Alt-F7 
  346.  
  347.      The time and date are displayed on the results printout to
  348.      assist filing the output.
  349.  
  350. INTRODUCING A SECOND VARIABLE 
  351.  
  352. The Uniform Distribution can be used to form other distributions
  353. such as the Triangular and Normal Distribution.  One way of
  354. achieving this is to add two uniformly distributed variables.  To
  355. demonstrate this we have to add another variable to the function.
  356.  
  357. STEP 1
  358.  
  359. Place the cursor on the Function Cell.  Either edit the contents
  360. or enter a new function so that the cell contains:
  361.  
  362.           A + X 
  363.  
  364. Enter this with the F5 key.  At this point, the A variable
  365. appears at the top of the    list of variables.  The X variable
  366. and its distribution definition moves down a line. 
  367.  
  368. STEP 2
  369.  
  370. This is a good time to demonstrate the Function test facilities. 
  371. As stated above, the Monte-Carlo process can produce results  
  372. which are complex and which cannot be derived analytically. 
  373. Prior to initiating a Monte-Carlo process, it is a good idea to
  374. evaluate the function using a single value for each variable, the
  375. result of which can be easily checked. 
  376.  
  377. To do this, enter the following data in the TEST cells for each
  378. variable: 
  379.  
  380.           A         5
  381.           X         2
  382.  
  383. Use the F9 key and the programme will perform a test calculation,
  384. in this case, the value 7 will be displayed in the message box. 
  385.  
  386. STEP 3
  387.  
  388. Define the distribution for the variable A, using a Uniform
  389. Distribution with:
  390.  
  391.           Min = 10  Max = 20 
  392.  
  393. STEP 4
  394.  
  395. Initiate the Monte-Carlo process by striking F10.  When the
  396. programme has finished calculating, it should have formed a
  397. Triangular Distribution.  The mean will be in the range:
  398.  
  399.           29.67 - 30.33 
  400.  
  401. The analytical value of the Standard Deviation is 4.08. 
  402.  
  403. SAVING AND RETRIEVING FILES
  404.  
  405. Path and Filenames follow the usual DOS conventions.  The user
  406. should only specify the path and filename.  Q-Pro adds its own
  407. .QPR extension to each application file.  Any extension included
  408. by the user will be ignored.
  409.  
  410. The path is defined as the disc identifier and any directory,
  411. this is followed by the primary filename.
  412.  
  413. If you cannot remember the name of a file that you want, you can
  414. access DOS by striking the F8 key and performing a directory
  415. listing eg:
  416.  
  417.           DIR A:*.QPR/w
  418.  
  419. To get back to Q-Pro, type EXIT and strike the return key.
  420.  
  421. Valid characters in a filename are: 
  422.  
  423.           A-Z 0-9 $ & # @ ! % ( ) - { } _ /
  424.  
  425. Examples of valid paths and filenames as entered in the "FILE"
  426. cell are:
  427.  
  428.      EXPRATIO            Refers to the file EXPRATIO.QPR on the
  429.                          default drive and directory.
  430.  
  431.      A:EXPRATIO          Refers to the file EXPRATIO.QPR in the
  432.                          default directory on the A drive.
  433.  
  434.      A:\EXPRATIO         Refers to the file EXPRATIO .QPR in the
  435.                          root directory on the A Drive.
  436.  
  437.      \TEST\EXPRATIO      Refers to the file EXPRATIO.QPR in the
  438.                          directory TEST on the default drive.
  439.  
  440.      A:\TEST\EXPRATIO    Refers to the file EXPRATIO.QPR in the
  441.                          directory TEST on the A drive.
  442.  
  443. SAVING FILES
  444.  
  445. Enter the path and filename in the "FILE", cell then strike: 
  446.  
  447.           F6
  448.  
  449. RETRIEVING FILES
  450.  
  451. Enter the path and filename in the "FILE", cell then strike:
  452.  
  453.           Alt-F6
  454.  
  455. RESETTING THE PROGRAMME
  456.  
  457. Reset the programme by typing: 
  458.  
  459.           Alt-F8 
  460.  
  461. This will clear the cells on the entry screen and reset the
  462. results screens ready for a new set of input data.  Make sure
  463. that the previous set of input data is saved if you want to keep
  464. it.
  465.  
  466. EXIT TO DOS
  467.  
  468. When you have finished with the programme exit to the operating
  469. system by typing:
  470.  
  471.           Ctrl-F8
  472.  
  473. This clears the screen, and resets the path to the default path
  474. which was set at the time the programme was launched.
  475.  
  476. TUTORIAL FILE
  477.  
  478. The application file TUTOR.QPR contains the simple application
  479. described above.
  480.                          REGISTRATION
  481.  
  482. If you have found Q-Pro useful, there are advantages in becoming
  483. a registered user:
  484.  
  485.      *    Enhanced version with greater power:
  486.  
  487.                                    Current   Enhanced
  488.  
  489.                No. of variables       2         8
  490.                No. of cycles       1000      8000
  491.  
  492.      *    8087 Maths Coprocessor Version (cuts run time)
  493.  
  494.      *    Printed Manual
  495.  
  496.      *    News of updates and new products
  497.  
  498. The registration fee is $50 + $10 for handling and air mail
  499. charge.
  500.  
  501. An order form is included with this documentation.
  502.  
  503.                               NOTES
  504.  
  505. Q-Pro is the intellectual property of Q-Soft (Brighton) Ltd.
  506.  
  507. This version of Q-Pro is distributed as user supported software
  508. in North America.  You may copy and distribute this disk freely
  509. provided that no fee is charged for such copying and distribution
  510. and that the programmes are in their original unmodified state
  511. with their original names. Registration Form
  512.  
  513. Use this form to become a registered Q-Pro user.  If you do not
  514. require a Monte-Carlo programme right now, we would be grateful
  515. if you would use it to tell us more about your software
  516. requirements.
  517.  
  518.           Name: _____________________________________________
  519.  
  520.           Position: _________________________________________
  521.  
  522.           Company: __________________________________________
  523.  
  524.           Site: _____________________________________________
  525.  
  526.           Street: ___________________________________________
  527.  
  528.           City: ________________________ Zip Code: __________
  529.  
  530.  
  531. I wish to become a registered user of Q-Pro.
  532.  
  533.           Signature: ________________________________________
  534.  
  535. The registration fee is $40 + $10 for handling and air mail
  536. charge.  Cheques or money orders accepted.
  537.  
  538. Indicate the type of disk required:
  539.  
  540.           O    5.25 inch (360 KB)       O    3.50 inch (720 KB)
  541.  
  542.                       Please Keep Me Posted
  543.  
  544. I do not need a Monte-Carlo programme right now, but please keep
  545. me informed about your new products.
  546.  
  547.           Signature: _______________________________________
  548.  
  549.             Market Research - Software Requirmements
  550.  
  551. Q-Soft (Brighton) Ltd. designs and markets specialist technical
  552. and statistical software.  It would help our product planning to
  553. know more about your requirements.  We are particularly
  554. interested in applications which are not well handled on multi
  555. purpose packages such as Spreadsheets, Databases and Graphics.
  556.  
  557. _________________________________________________________________
  558.  
  559. _________________________________________________________________
  560.  
  561. _________________________________________________________________
  562.  
  563.      Q-Soft (Brighton) Ltd - PO Box 251 - Brighton - BN1 5BU
  564.             Tel: +44 273 565776   Fax: +44 273 695455
  565.