MTB > execute 'condo.mtb' MTB > # Bill Qualls MTB > # MTB > # Monthly Rentals of Condominiums MTB > # Mason & Lind, Chapter 2, Table 2-1, Page 23 MTB > # MTB > set into c1 DATA> 1170 1207 1581 1277 1305 1472 1077 1319 1537 1849 DATA> 1332 1418 1949 1403 1744 1532 1219 896 1500 1671 DATA> 1471 1399 1041 1379 821 1558 1118 1533 1510 1760 DATA> 1826 1309 1426 1288 1394 1545 1032 1289 695 803 DATA> 1440 1421 1329 1407 718 1457 1449 1455 2051 1677 DATA> 1119 1020 1400 1442 1593 1962 1263 1788 1501 1668 DATA> 1352 1340 1459 1823 1451 1138 1592 982 1981 1091 DATA> 1428 1603 1699 1237 1325 1590 1142 1425 1550 913 DATA> 1470 1783 1618 1431 1557 896 1662 1591 1551 1612 DATA> 1249 1419 2162 1373 1542 1631 1567 1221 1972 1714 DATA> 949 1539 1634 1637 1649 1607 1640 1739 1540 2187 DATA> 1752 1648 1978 640 1736 1222 1790 1188 2091 1829 DATA> end MTB > # MTB > # Sort the data MTB > # Text refers to this as an "ordered array" MTB > # Compare with Table 2-2, page 23 MTB > # MTB > sort c1 c2 MTB > print c2 C2 640 695 718 803 821 896 896 913 949 982 1020 1032 1041 1077 1091 1118 1119 1138 1142 1170 1188 1207 1219 1221 1222 1237 1249 1263 1277 1288 1289 1305 1309 1319 1325 1329 1332 1340 1352 1373 1379 1394 1399 1400 1403 1407 1418 1419 1421 1425 1426 1428 1431 1440 1442 1449 1451 1455 1457 1459 1470 1471 1472 1500 1501 1510 1532 1533 1537 1539 1540 1542 1545 1550 1551 1557 1558 1567 1581 1590 1591 1592 1593 1603 1607 1612 1618 1631 1634 1637 1640 1648 1649 1662 1668 1671 1677 1699 1714 1736 1739 1744 1752 1760 1783 1788 1790 1823 1826 1829 1849 1949 1962 1972 1978 1981 2051 2091 2162 2187 MTB > # MTB > # Produce a stem-and-leaf MTB > # We will use C1; data need not be ordered. MTB > # Text does not show a stem-and-leaf for this data, MTB > # but compare with "tallies" on page 25 MTB > # MTB > stem c1; SUBC> increment 200. Stem-and-leaf of C1 N = 120 Leaf Unit = 100 3 0 667 10 0 8888999 21 1 00000111111 43 1 2222222222333333333333 (40) 1 4444444444444444444455555555555555555555 37 1 666666666666666777777777 13 1 888899999 4 2 0011 MTB > # MTB > # Produce a histogram. Compare with page 40. MTB > # Equal signs (as in increment=200) are optional, MTB > # as are lots of things in Minitab. MTB > # MTB > hist c1; SUBC> increment 200; SUBC> start 700. Histogram of C1 N = 120 Midpoint Count 700 3 *** 900 7 ******* 1100 11 *********** 1300 22 ********************** 1500 40 **************************************** 1700 24 ************************ 1900 9 ********* 2100 4 **** MTB > # MTB > # Determine mean and median as shown on page 86. MTB > # MTB > mean c1 MEAN = 1457.9 MTB > median c1 MEDIAN = 1464.5 MTB > # MTB > # In the same manner, we can determine the standard MTB > # deviation, range, minimum, maximum. These are MTB > # shown in your text on page 150, but the output MTB > # there is from SPSS rather than Minitab. MTB > stdev c1 ST.DEV. = 307.59 MTB > range c1 RANGE = 1547.0 MTB > minimum c1 MINIMUM = 640.00 MTB > maximum c1 MAXIMUM = 2187.0 MTB > # MTB > # But there is an easier way to get all of this. For some MTB > # reason the authors have chosen to omit the DESCRIBE function... MTB > # MTB > describe c1 N MEAN MEDIAN TRMEAN STDEV SEMEAN C1 120 1457.9 1464.5 1462.3 307.6 28.1 MIN MAX Q1 Q3 C1 640.0 2187.0 1288.3 1639.3 MTB > # MTB > # Type STOP to leave Minitab. MTB > # MTB > stop *** Minitab Release 8.21 *** Minitab, Inc. *** Storage available 16174