Introduction To Minitab
Introduction To Minitab
Introduction To Minitab
1. Introduction
MINITAB gives you a ’point-and-click’ environment where you work with pull-down menus
and dialog boxes to carry out statistical data analysis including data manipulation and
graphical presentation.
A typical MINITAB session on the computer involves any or all of the following:
• Starting MINITAB
• Entering data or retrieving existing data
• Analysing your data including data manipulation & graphing
• Saving (including word-processing) and printing your work
• Exiting MINITAB
You will soon become familiar with the terms like worksheet, session window, reportpad &
project manager soon once you complete reading further sections of this handout.
Note: Just read Section 2 without actually beginning to explore MINITAB! Section 3 "A
Sample MINITAB Session" will take you through a simple exercise of exploring MINITAB,
while the remaining sections provide you with further useful information about the software.
Although only the Data and Session windows appear at the start, you may come across a
few additional windows during a typical MINITAB session. These include the Graph
windows, the Help windows and Project Manager window. To see any of the hidden
windows, pull-down the Window menu and make a choice, e.g. choose Window > Project
Manager to see the Project Manager window.
MINITAB’s windows are compatible with Microsoft conventions: you can minimise and
maximise them, reduce them to icons, etc. The top of a typical window looks like,
The Toolbar provides a quick way to issue MINITAB commands: just click on a tool button to
perform an action or open a dialog box. The Toolbar displays different tool buttons,
depending on which MINITAB window is active.
The Status bar at the bottom of the MINITAB screen displays helpful messages (such as the
status of the current worksheet) explaining the highlighted/selected menu items and/or tools
on the Toolbar (see the figure below, for an example).
If you ’click’ once (using the mouse) on any of these menus a list of options appears; you
then click on the option you need. The options marked with ’%’ generate their own menus
(called sub-menus). To choose an option on a sub-menu, just click on it. An example of a
pull-down menu Stat > Basic Statistics > Display Descriptive Statistics… is shown
below (note the Status bar displaying the message 'Calculate descriptive statistics…'):
When you choose an option marked with '...' in a menu, MINITAB displays a dialog box.
Dealing with a dialog box is like filling in a form, although clicking on options will usually
replace typing. If you enter something MINITAB did not expect, you would be prompted by
The dialog box associated with the menu selection Stat > Basic Statistics > Display
Descriptive Statistics… is shown below (on the left).
You fill various boxes (and choose various
options - e.g. click on the Graphs… button
to see its dialog box – shown below).
As an another example, the dialog box associated with the menu selection Graph >
Histogram … together with its Options dialog box is shown below.
Note: For most pull-down menus, there are Session window commands that do exactly the
same thing. Remembering what the commands are so you can type them in the Session
window can be difficult, but the option of doing it is always there.
Note: Although, the Data window has rows and columns, it is not a spreadsheet like
Microsoft Excel. In MINITAB, cells contain values that you type or generate with commands.
Cells do not contain formulae that update based on other cells.
To get into a Data window, just click on it (if you can see it on the screen) or choose Window
> Worksheet name or Worksheet # …, where # denotes a number, e.g.. Window >
pulse.MTW … or Window > Worksheet 1 …
You may also print (on a printer) the contents of a Data window by first clicking on it to make
it 'active', and then choosing File > Print Worksheet … (and filling in the resulting dialog
box). Explore this later!
It also contains a record of all commands you issue, either by simply typing the commands at
the MTB> prompt in the Session window (followed by <Enter>), or using pull-down menus &
dialog boxes.
The session commands can be abbreviated - you only need to type the first four letters.
Commands are not case-sensitive so you can type them in lowercase, uppercase, or a
combination of both. Start each session command on a new line and press the <Enter> key
when you are done with each line. You can intersperse menu commands and session
commands, or just use one or the other.
Although, you can edit and format text (i.e. add comments, copy and paste, change fonts, or
find and replace numbers and text) in the Session window just as you would in a word
processor, this should really be carried out in the ReportPad (see below).
An example of a Session window is shown below. It shows the "Describe" command and its
output (the mean, median etc.) of the variable/column Pulse1 (in C1 of pulse.mtw worksheet)
in a tabular form separately for each Activity level.
During a typical MINITAB session, a lot of output is generated in the Session window. These
can be individually viewed using the Session Folder in the Project Manager. The session
window output can be easily appended to the ReportPad (of the Project Manager).
You may also ’copy’ the marked/highlighted portion of the output from the Session window
and ’paste’ it into a word-processor such as Microsoft WORD (see Section 6.5 for details).
You can save the character graphs as mentioned before (i.e. highlight, copy & paste) into the
ReportPad of Project Manager or into a word-processor.
To delete or remove a graph from the MINITAB project or interface, simply click on the
box at the top right of the Graph window. You cannot retrieve it thereafter! However, unless
you have edited the graph, re-creating it will only take a few seconds. When you minimise a
Graph window, it may look as if it has disappeared. But, it is still there (!) - just use the
Project Manager to open it (or bring to front).
• A History folder (icon ) that lists commands you have used in your session. This is a
list of all the commands you have used.
• A Graphs folder (icon ) for managing, arranging, and naming your graphs. This is a
list of all graphs.
• A ReportPad folder (icon ) for creating, arranging, and editing, reports of your work.
This is a word processing tool.
• A Worksheets folder (icon ) that displays a summary of the columns (shown above),
stored constants, matrices, and designs used in the current worksheet (pulse.mtw in the
above figure).
Similarly, we may append high-resolution graphs in the ReportPad as shown in the example
below.
and double click on the icon (or similar) from the screen, if exists. Within a few seconds,
you will see the MINITAB interface (similar to that Section 1) on the screen.
In this session, you will use the data file pulse.mtw. This is one of the dozens of worksheets
that accompany MINITAB. Most of these worksheets are in the DATA folder of MINITAB
older on your computer. To open the worksheet pulse.mtw,
• Pull-down File > Open Worksheet… (i.e. click on File menu and scroll down & click on
Open Worksheet… as shown below on the left). This will bring up a dialog box as shown
below on the right.
Once the worksheet ’pulse.mtw’ is loaded, the Data window will look like this:
Note that the data are arranged such that, columns representing variables and rows
representing observations (or items, units etc.). The columns are denoted by C1, C2 etc. with
’labels’ beneath them.
3.1 Enter additional data, Edit current data and Save revised worksheet…
The worksheet pulse.mtw contained the data collected so far, but three new students join the
class and you wish to add then to the existing data. The details of the new observations are,
Pulse1 Pulse2 Ran Smokes Sex Height Weight Activity
66 76 2 2 2 60 165 2
82 80 2 2 2 79 182 3
87 84 2 2 2 59 179 1
Next, you are to correct a data entry error in the Pulse data. The activity level of the 54th
student in the data has been recorded as ’0’, but it should be 1.
• Go to row 54 and make this correction (in the Data window for pulse.mtw).
Furthermore, you notice that the heights and weights have been recorded in inches and
pounds respectively. However, you wish to change them to cm and kg respectively.
Here, you can utilise MINITAB’s calculator
facilities. First, pull-down Calc > Calculator
and fill-in the dialog box as shown here ⇒
(i.e. you are changing the values in column
C6 ’Height’ from inches to cms…; note that 1
inch = 2.54 cm).
Don't forget to click 'OK' to carry out the task.
Similarly, change the values in C7 ('Weight') from pounds to kgs (where, 2.2pounds = 1kg).
You need to select C7 in Store result in variable box, and type C7 ⁄ 2.2 in Expression box.
After the changes to columns C6 & C7, you may wish to format them to 'one decimal place'.
To do this, go into the Data window and highlight the
column C6 entirely (i.e. just click your mouse on the C6
box), then pull-down Editor > Format column >
Numeric… and fill-in the resulting dialog box as shown
here ⇒
Then click 'OK'.
Repeat the process with column C7.
Don't forget to observe these changes in the Data window.
Since you have just made some changes, it is probably a good time to save your worksheet
(onto the data disk in drive A or somewhere appropriate on the hard drive of your computer).
To do so, pull-down File > Save Worksheet As…
and fill-in the resulting dialog box as shown here ⇒
Choose the folder or disk drive of your choice
appropriately in the Save in: box (use the or
buttons to choose the A: drive).
Type pulse1 in the File Name: box (pulse1.mtw
being the new worksheet…)
Check that the Save as type: box says 'Minitab'.
Then click on the Save button.
This will save your worksheet as 'pulse1.mtw' on the diskette in drive A:.
The corresponding session commands will appear in the Session window, followed by the
associated output. The figure in section 2.3 shows this output.
Now restore the Project Manager (i.e. try Windows > Project Manager) and go to the
Session folder. You will see the session window output header as shown below:
Creating Graphs
We shall create a character graph, say, a stem-and-leaf diagram of ’Pulse1’ data. To do so,
pull-down Graph > Stem-and-Leaf... menu and in the resulting dialog box, select ’Pulse1’
into the Variables: box & click the OK button – shown below.
You may save the generated Report in Rich Text Format (RTF) for further word processing
(use menu: File > Save Report As… or simple right click the ReportPad folder icon in the
Note: You can open a project file by pulling-down File > Open Project … (or by simply
clicking the mouse on the button on the toolbar) and filling in the dialog box appropriately.
All the worksheets, Session output, graphs etc. that were inside that project when you last
saved are made available to you! Try this later - next time you use MINITAB!
Now to retrieve the MINITAB project called ’pulse1.mpj’ from the disk in A: drive (or from
wherever you saved it), choose File > Open Project … and fill-in the resulting dialog box as
shown below:
This will open your project pulse1.mpj into the current MINITAB interface. To check what
you have,
• scroll up & down in the Session & Data windows to see that all your results (i.e.
Descriptive statistics and Stem-and-leaf plot) and the added and corrected data are still
available in these windows!
We shall now carry out some further analysis on the ’Pulse1’ data.
Create a high-resolution scatter plot in MINITAB, using Graph > Plot menu. The resulting
dialog box is shown below and the instructions are,
• Select ’Weight’ as the Y variable and ’Height’ as the X variable for Graph 1.
• Give your graph a title, by first clicking on the down arrow next to the Annotation button
and then choosing Title from the resulting list. Type a title, say, Size and Shape, in the
first line of the resulting sub-dialog box.
• Click on OK in the sub-dialog box, and then, again in the main dialog box.
The generated graph can also be appended to the ReportPad. This can be done by right
clicking on the graph or from the Graph folder of the Project Manager. Check that the
ReportPad now has three sets of results, namely, Descriptive statistics, Stem-and-leaf
display and the Scatter plot above.
When you exit MINITAB, you will be back on to the computer’s Windows NT desktop screen,
where you started MINITAB.
MINITAB’s Help facilities are quite useful. Use these facilities as frequently as you can to
understand what each command (and dialog box) is doing.
You can pull-down the Help menu on the menu bar, and choose the appropriate sub-menu.
There are also ’Help’ buttons within dialog boxes. When you pull-down the Help menu, you
will see the choices shown below.
Tutorials - introduces the Minitab environment and provide a quick overview of some of
Minitab’s most important features. It walks you through five sample sessions of MINITAB 13,
showing you step-by-step how to perform a broad range of analyses.
Search Tutorials - opens the Windows Search or Windows 95 dialog box. Type keywords
to find topics, just like you would skim an index in a printed manual.
Session Command Help - opens Session Command Help containing documentation on
each session command, including syntax and examples; and is useful when you write
macros.
Search Session Command Help - opens the Windows Search or Windows 95 dialog
box. Type keywords to find topics, just like you would skim an index in a printed manual.
Minitab on the Web - connects to MINITAB's web-site www.minitab.com. At this web site
you can get answers to common technical questions, download macros, and download free
maintenance releases of Minitab.
About Minitab - gives basic information that is not directly connected with data analysis, like
who is licensed to use your copy of MINITAB, etc.
If you click on an item in the help menu, a help window will appear. For example, if you try
Help > Help you'll get the window shown below.
Clicking on any of the underlined phrases will reveal another window with information about
it. The new window may also have underlined phrases that open up windows with additional
information.
Let’s say you want some help on "Regression", so you are in the first of the situations
mentioned above. This is where you know the name of the Help topic you want, or you know
the command to use, but want help with using it. If you knew what the command was, i.e.
that it is Stat > Regression, you could use the Help buttons in the various dialog boxes.
The Stat > Regression menu and the help window from the dialog box associated with Stat
> Regression > Regression… are shown below.
Note that each Help topic displays the related links (i) Overview (ii) how to (iii) examples
(iv) data (v) see also.
For example, clicking on Regression will result in the help window obtained earlier via the
dialog box for Stat > Regression > Regression… menu. In other words, scrolling down
the Topics Found window and double clicking on ’Regression (Stat menu)’ should result in,
You may explore the use of Find option in your own time! An example is shown below on
how to use it for obtaining help on 'Regression…' (as before):
First, consider the mouse and keyboard commands used for manipulating the graphs.
or “polyline” (polylines are generated using the button in the attribute palette, and
polygons with the button). If you do something you didn’t mean to do, then hold down
the <Alt> key and type <z>. This is the universal command for undoing what you have just
done, and it works in many computer programs (including WORD).
You may want to move something in a horizontal, vertical, or diagonal direction. To make
the direction exactly horizontal/ vertical/ diagonal, press the <Shift> key after you press the
mouse button.
To resize a symbol you need to click the button in the attribute palette. All other objects
a resized and reshaped using the “handles” mentioned earlier. You need to use the
‘selection’ tool for this (click the button in the tool palette, if it isn’t already chosen).
To resize squares rectangles, ellipses, and circles click on one of the corner handles. Hold
the mouse button down. Then move the cursor so that the object becomes the desired size.
If you are resizing a circle or square , hold the <Shift> key down while you are resizing. This
ensures that it does not become an oval or rectangle. If you drag a handle at the midpoint of
an object, this will change either the width or the height.
‘Polylines’ and polygons (generated using the and buttons, respectively) cannot be
resized. However, they can be reshaped. First, click where two lines join (this is where the
“handle” is). Now hold the mouse button down and drag the handle to a new point on the
page. This changes the length and direction of the lines. For example, consider a polyline
line like this: . Resizing it can change it to this: . If you press <Shift> after you hold
down the mouse button, you can move or reshape the polygon/polyline along the nearest 45°
line (i.e., you can reshape in such a way that lines become vertical, horizontal, or diagonal).
To change the size of the font, click the button in the attribute palette. Changing the area
that the text is in requires dragging the handles of the text string. When you click on a text
string, its handles become visible, like this:
• The button in the tool palette inserts a small diamond symbol, but you can change the
symbol’s shape, colour, and size with the , , and buttons, respectively (in the
attribute palette).
• The button connects the point on the page where you click to the last point on the
page where you clicked. This produces a “polyline”. The button differs from the
button, in that it connects the first and last point. Thus, a closed shape is obtained (a
polygon).
• If you press <Shift> when drawing a line, it will be vertical, horizontal, or diagonal.
• If you press <Shift> when drawing an oval, it will be a circle.
If you minimise the tool palette or attribute palette, you probably won’t be able to see its icon
on the screen. However, you can get the palette back by choosing Editor > Show Tool
Palette or Editor > Show Attribute Palette.
Graph Brushing
“Brushing” is when a computer program will give you details on specific data points in a
graph. Without brushing, you would not know whether a data point in a graph corresponded
to, say, Jenny or Jim. Remember, you can select and deselect data points in the same way
you select and deselect any objects in a graph. See “Some Tips on Selecting Text and
Objects” (above) for details. You must be in ‘brush mode’ to do brushing.
An Example
This example uses the worksheet A10.mtw, which has data on the age, length, and weight of
a sample of Ruahine Deer (males only). Suppose we created a plot of length vs weight as
follows (using Graph > Plot pull-down menu…).
350
LENGHT
250
150
20 30 40 50 60 70 80 90 100
WEIGHT
Note that a few of the points don’t seem to follow the general trend – they may be outliers.
We will use MINITAB’s brushing facility to find out more about them. Choosing Editor
> Brush makes a window appear, looking like this:
If you click on a point (say, one of the outliers) in the graph, the row number (in the
Worksheet…) will appear in the brushing window, as shown below.
The point selected is the outlier at the bottom of the graph, with the smallest value of the
variable length.
The brushing window shows that the selected point is in row 50 of the worksheet. We could
look in the worksheet to find row 50 to find out more about this male deer. There is only one
other variable in the worksheet, apart from weight and length, and this is age. If you look at
the worksheet, you will see that it has a dot besides row 50.
As an alternative to looking at the worksheet, we can make the age (and other variables of
interest) of the deer appear in the brushing window. To do this, make sure you are in the
Graph window that is being brushed and then pull-down Editor > Set ID Variables. In the
window that appears, click in the little box beside the heading Use columns: (a tick will
appear in it) and type the columns (e.g. C1 C2 C3) that you are interested in. Alternatively,
you could type AGE WEIGHT LENGTH (as these being the labels…) in the box. Then
click OK. (An example is shown below.)
And the brushing window appear as, (after pointing at the outlier at the bottom of the graph)
From the brushing window, we can see that the age of the deer is 18 years (and the weight
and length respectively, 55 and 157). Is this a mistake?
Hopefully, this example has shown how brushing can be used to gain greater insight into
your data. You should also try brushing with multiple graphs!
Brushing Across Graphs
You may have lots of variables in a data set, where each variable is a measurement on the
same group of people (or animals, vegetables, or minerals, it doesn’t matter). If a person is
unusual in one respect (with regard to the variables measured) it may be interesting to see if
they are unusual in other respects. In other words, if all the variables are graphed, is the
person an outlier in every graph?
‘Brushing across graphs’ can answer this question. First, ‘tile’ the graphs, i.e., get the graphs
to completely fill the space where MINITAB windows appear, as if each graph were a floor
tile. To do this, choose Window > Tile, and retain only the graphs you want.
Then brush the points you are interested in. Lets say you had a group of people you took
various measurements on, then if you select a person in one graph they will be selected in all
the others as well. Doing this, you can see if a person is an outlier in all the graphs, some, or
just one graph.
Also open WORD, say, from your WindowsNT menu, in the usual manner.
• Get back into MINITAB (in the usual manner, click on the tab at
the bottom of the Windows screen).
• Highlight/mark the required output in the Session window (e.g. as shown below)
• ’Copy’ it (i.e. choose Edit > Copy)
• Get back to WORD (click on the tab at the bottom of your Windows
screen), and position you cursor where you wish to insert the MINITAB output,
• And ’paste’ it (i.e. choose Edit > Paste).
(In WORD, use a font such as ’Courier New’ with font size 10 to get good representation of
MINITAB text output.)
This will make the graph appear in your word document in the place where the cursor is.
Finally, save your WORD document (onto your preferred folder in the computer). Again,
follow the usual procedure, i.e. pull-down File > Save As (within WORD) and fill-in the
dialog box appropriately.
(And, don’t forget to quit MINITAB too!)
6. MINITAB web-site
Explore!
Furthermore,
• Write down instructions for your self...
• use HELP…
• editing within MINITAB (Graphs and Session window…)
If you would like the CD posted to you, please send this order form along with a cheque for
$75 to:
Statement of Understanding:
I am a confirmed student in paper 161.220. In making this order and accepting the delivery
of the Minitab CD, I understand this is a special student licence which is only valid during
2002. I understand this is a non-refundable licence fee and the CD cannot be returned for
refund of purchase price.
Address: ___________________________
___________________________
___________________________
Signature: ___________________________
Date: ___________________________
If you wish to collect the CD in person please bring this order form, along with $75 cash or
cheque, to the Administration Office (Rm 2.19 upstairs), National Student Administration and
Teaching Support, Extramural Building, Albany Drive, Massey University, Palmerston North.
Please note that the above office does not hold change and does not have facilities for
payment by EFT-POS.