Académique Documents
Professionnel Documents
Culture Documents
LECTURE
MINITAB
Objectives of
Lecture
[A]
Cover.
List of Contents
3.
Introduction
4.
Methodology
5.
Statistical Analysis.
This should include descriptive statistics; cross-tabulations;
graphs (e.g. histogram, pie chart, multiple bar charts, scatter
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 2
[B]
Number of cinema.
2.
Cinema Chain.
1 = Chain A
3.
(C1)
(C2)
2 = Chain B
3 = Chain C
2 = Scotland
(C3)
3 = Wales
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 3
4.
5.
6.
2 = Out of Town
(C5)
(C4)
(C6)
2 = Female
7.
(C7)
8.
Distance of the cinema away from the High Street (miles). (C8)
9.
(C9)
(C10)
(C11)
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 4
Note that the first column, namely C1, is a list of the cinemas and as
such this does not serve any purpose in the report, and therefore this
should not be used in the statistical analysis.
The directors of the FILM2011 have employed you as a statistical consultant
to carry out the appropriate statistical analysis for satisfying the objectives].
[C]
MINITAB VERSION 16
1.
2. MINITAB WINDOWS.
DATA WINDOW (or WORKSHEET WINDOW).
This displays your current worksheet (rows, columns and
constants). Once you retrieve the data file FILM2011.MTW, this
will occupy the first 60 rows and 11 columns of the worksheet.
Note that a saved Minitab worksheet file has the file extension .MTW
(that is, MiniTabWorksheet).
SESSION WINDOW.
This displays the output (that is, results). This can also allow you to
type Minitab commands but this we will not be doing. All commands
will be accessed from the menu bar. Each menu command opens a
dialog box, which allows you to make further choices.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 5
Note that this file can only be created and accessed from Minitab.
GRAPH WINDOW.
This window appears each time you create a high-resolution graph.
Note that character graphs are displayed in the Session Window. You
are not required to produce character graphs for this report.
HELP WINDOW.
This window can be opened by selecting the HELP command from
the menu bar.
ASSISTANTWINDOW.
This window can be opened by selecting the ASSISTANT command
from the menu bar.
[D]
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 6
[E]
To open the data file FILMTRIAL.MTW, which has been previously saved on
your usb stick drive.
Open Minitab as it has been stated in Section [C] above.
Click OPEN.
The following message will appear
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 7
Click OK.
[F]
Either click on the icon on the toolbar which looks like an open
book
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 8
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 9
[G]
Note that only two columns have been left without a name, namely C5
and C6. The maximum length of 32 characters is allowed for a name.
C5
SIZE
C6
GENDER
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 10
[H]
MISSING VALUES.
This is
already been done in the datafile FILMTRIAL.MTW. Failure to
replace these missing values will result in inaccurate results in the
statistical analysis.
Note that for making life easy these have already been replaced
by * so therefore you will need not have to change the -1 to *.
Looking at the information on columns (see Project Manager) you will
see that Minitab has already identified the columns in which missing
values are found as well as the number of missing values in each
column.
Note that you can find out which columns have missing values by
checking the column information (follow the steps of section [F]
above).
[I]
England
2=
Scotland
3 = Wales
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 11
Note that 1, 2 and 3 are just labels (or identifiers) used to identify each
category. We could have easily used any other numbers for example,10 =
England, 20 = Scotland and 30= Wales.
This coding helps one to avoid making mistakes while typing in the data and
any mistakes you might make will be more easily detected by this coding.
For example, typing 11 instead of 1.
To ease the statistical analysis and improve presentation, we would convert
the numerical codes of all categorical variables to text codes.
This is illustrated using the categorical variable REGION (C3).
HOW DO WE DO THIS?
2
3
Highlight the categorical variable (say e.g. C3) and then click on
SELECT. Alternatively, highlight the categorical variable and double
click it.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 12
Note that this column now has moved into the box with the heading
CODE DATA FROM COLUMNS:
Click inside the box with the heading STORE CODED DATA IN
COLUMNS: .
Highlight the categorical variable (e.g. C3) and double click it.
Note we choose the same column if we want the result to be placed back
into the same column. You are advised to do this. This is what we would be
doing here.
Click OK.
NOTE that
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 13
1.
[J]
2.
you can also check this change by using the Project Manager (see
section [F] above).
3.
STATISTICAL ANALYSIS.
We would like to summarise the data. The question is
FOR
NUMERICAL
VARIABLES.
HOW DO WE DO THIS?
BASIC STATISTICS
STAT
DISPLAY DESCRIPTIVESTATISTICS
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 14
EXAMPLE 1
Distance is a numerical (continuous) variable and represents the distance of
a cinema away from the High Street. We can summarise the information on
distance by using the above command as follows:
Highlight the variable DISTANCE (that is, C8) and double click
it.
Click OK.
NOTE
You can also produce a graphical representation of the data (that is, a
histogram or a boxplot or a dotplot or a graphical summary). If you wish to
do this then you need to click on GRAPHS and choose the graph of your
choice. Then click OK and then OK again for executing the command.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 15
OUTPUT
Descriptive Statistics: DISTANCE
Variable
DISTANCE
N N*
59 1
Mean
2.651
Median
2.750
Maximum
6.000
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 16
Click on OK
The output now will exclude the SE of Mean which is not required in
this course.
Note that
N
N*
Mean
Median
StDev
Minimum
Maximum
Q1
Q3
OUTPUT
Descriptive Statistics: DISTANCE
Variable
DISTANCE
N N*
59 1
Mean StDev
2.651 1.514
Median
2.750
Q3
4.000
Minimum
0.500
Q1
1.250
Maximum
6.000
Interpretation.
One manager failed to provide information regarding the distance of the
cinema away from the High Street. The distance varies with a minimum of
half a mile (0.5 miles) and a maximum of 6 miles. On average we would
expect a cinema to be about 2.7 miles away from the High Street with an
average variation of about 1.5 miles. Seventy-five percent of the cinemas
have a distance of 4 miles or less while 25% of the cinemas have a distance
of 1.25 miles or less away from the High Street. The middle 50% of the
cinemas have a distance of between 1.25 and 4 miles away from the High
Street. We also note that the median is slightly higher than the mean value
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 17
Note
that the coefficient of skewness can be obtained by clicking the
SKEWNESS box in the STATISTICS dialoq (see page 15 above).
PLOTTING A
HISTOGRAM.
There are two methods that you may use to plot a histogram. A histogram
is used to display graphically the distribution of a continuous variable.
METHOD 1
BASIC STATISTICS
STAT
DISPLAY DESCRIPTIVESTATISTICS
GRAPHS
subcommand.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 18
Click OK.
Click OK.
OUTPUT
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 19
Histogram of DISTANCE
10
Frequency
1.2
2.4
3.6
DISTANCE
4.8
6.0
Note
You can edit the x-axis label, y-axis label and also make changes to
the title. You can easily do this by double clicking on the x-axis label,
y-axis label and title respectively.
You can add your initials or any other information you would like at
the foot of the graph by right clicking the mouse, selecting ADD and
then choosing FOOTNOTE. In a similar manner you can add a
TITLE, to your graph.
You can edit the bars of the histogram (change the fill pattern and the
colour if you are using a colour printer) by double clicking on the bars.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 20
10
Number of Cinemas
6
5
4
4
3
0
1.2
2.4
3.6
4.8
6.0
Distance of the cinema away from the High Street (miles)
NOTE that you can save a graph if you so wish (see section [M]).
METHOD 2
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 21
GRAPH
HISTOGRAM
The second method for plotting a histogram is carried out by using the
following steps:
After selecting the HISTOGRAM option, the following dialog box appears:
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 22
Click OK.
Highlight the variable of interest (in this case, DISTANCE) and double
click it.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 23
Once you add the title and footnote, then click OK.
You can now click on DATA OPTIONS .
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 24
From the following next dialog box, remove the tick (by clicking
inside the box) next to INCLUDE MISSING AS A GROUP.
After doing this, then click OK.
Click OK to produce the histogram.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 25
Frequency
20
15
10
3
DISTANCE
AM
NOTE
The graph needs to be edited as we have explained before. For
example, the name of the vertical axis is FREQUENCY. It is important
that this is replaced by the appropriate name, which in this case is
Number of Cinemas.
The name of the horizontal axis also needs to be replaced by the
appropriate name namely Distance of a Cinema away from the High
Street (miles).
You can also further edit your graph as we have described during the
lecture as well as above. Name for the axes should not be in capital
letters. Presentation is very important.
OUTPUT
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 26
10
Number of Cinemas
6
5
4
4
3
0
1.2
2.4
3.6
4.8
Distance of a cinema away from the High Street (miles)
6.0
AM
FILE
Click SAVE.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 27
[L]
SAVE PROJECT AS
FILE
To save your data (Minitab worksheet) as well as your results in the session
window, you need to save these as a project file. To do this, you follow the
steps below:
In the FILE NAME box you will see that the name MINITAB is
enteterd by default. Delete this and givean appropriate name to your
output file.
Note that in the SAVE AS TYPE: box you can see that this file is a MINITAB
PROJECT file and the file extension given to this file is .MPJ.
This file can be opened in Minitab only by selecting OPEN PROJECT from
the FILE menu.
[M]
Click SAVE to save your project (that is, both data and results).
SAVING A GRAPH.
FILE
SAVE GRAPH AS
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 28
After you have produced a high resolution graph then you can save this as
follows:
Click on FILE.
Note that Minitab has already given a name to your graph inside the
FILE NAME: box. If you are not happy with the chosen name then
change it by typing a name of your choice.
Note that in the SAVE AS TYPE: box the file extension that will be given
to a Minitab graph is .MGF.
[N]
OPEN GRAPH
FILE
You can open a graph that you have previously saved as follows:
Click on FILE.
In the LOOK IN: box choose the drive on which you have saved your
graph.
Click on OPEN.
Click OK.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 29
[O]
[P]
Select COPY.
Select PASTE.
After producing a high resolution graph, follow the steps below in copying
your graph in Microsoft Word:
[Q]
Select PASTE.
EXITING MINITAB.
FILE
EXIT
If you have made any changes to the data file make sure you save your file
before exiting Minitab.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW
Page 30
Click on FILE.
Choose EXIT.
A dialog box appears, asking you if you want to save changes made to this
project (that is, worksheet and output in the session window).
Note that:
If your response is YES then you will be given the chance to save
your work (that is, you will be given the chance to save both the data
as well as your results).
Minitab refers to this as a PROJECT and the file extension that will be
given to your file will be .MPJ (that is, Minitab ProJect).
If your response is NO then you will automatically exit Minitab.
Dr AndroullaMichaeloudis
Data file: FILMTRIAL.MTW