SlideShare a Scribd company logo
Using Minitab Exec Files
Prof. Tom Willemain
05/25/15 1T. R. Willemain
Why Use Exec Files?
• You can do many Monte Carlo simulations
without Exec files.
• Usually, this means putting each simulation
replication in one row of the Data Window.
• But you soon run out of space for both data
and results, so you can only do relatively small
problems.
• Exec files free you to do bigger problems and
use more of the features of Minitab.
05/25/15 T. R. Willemain 2
Typical Simulation using Exec files
• Put (possibly lots of) data in columns, not
rows.
• Compute a statistic using Calc>Column
Statistics or Calc>Calculator.
• Store the statistic in an (invisible) location
called a “constant” (e.g., K1, K2,…)
• “Stack” the results, moving them from the
constant into a single column holding results.
• Analyze the results column.
05/25/15 T. R. Willemain 3
How It’s Done: Creating an Exec
1. Create the first simulation replication manually. All your
menu choices and dialog box inputs are recorded in the
form of Minitab commands in the History folder of the
Project Management window.
2. Compute the result statistic from the simulation using
Calc>Column Statistics and store it in constant K1.
3. Open the Notepad using Tools>Notepad.
4. Open the History folder, highlight the commands you
want to repeat, and copy/paste them into the Notepad.
5. Manually add one more line in the Notepad to Stack the
result statistics in a column of the data window.
6. Save the Exec file from the Notepad to your hard drive
using File>Save As>All Files. Save it as an xxx.mtb file.
05/25/15 T. R. Willemain 4
How It’s Done: Running an Exec
• In Minitab, select File>Other Files>Run an Exec
• In the Run an Exec dialog box, enter the number of
additional replications you want. (It’s safer to first ask
for just 2 replications to see that everything is working
ok. Then you can add more replications.)
• In response to the prompt, select the Exec file you
want to run. Exec files have names like foo.mtb.
• Minitab will run the Exec file the desired number of
times and stack the results into the column you
selected.
• Finish the problem by analyzing the column of results.
05/25/15 T. R. Willemain 5
Example: Inter-point Distances
• The next slide show how to estimate the
distribution of the distance between two points
whose X and Y coordinates have unit exponential
distributions.
• Note that you need 5 columns: 4 coordinates and
one distance. Without an Exec file, and with a
10,000 number limit in the Minitab Student 14
Edition, you could do a maximum of 2,000
replications (2,000 = 10,000/5).
• But with an Exec file, you can do as many as
9,995 replications.
05/25/15 T. R. Willemain 6
05/25/15 T. R. Willemain 7
05/25/15 T. R. Willemain 8
Example: A Matching Problem
• A class has 20 students, who take a quiz.
• The professor collects the quizzes, shuffles
them well, and hands them back to students
to grade.
• Some students may get their own quiz back to
grade. The number of such “matches” is a
discrete random variable ranging from 0 to 20.
• Estimate the p.m.f. using an Exec file.
05/25/15 T. R. Willemain 9
One Trial of the Matching Simulation
05/25/15 T. R. Willemain 10
1. List the 20 students by number.
2. Create a set of 20 random
numbers.
3. Create a list of 20 graders and
sort it by the random numbers.
4. Compute a binary variable = 1 if
there is a match or else = 0.
The Exec File
05/25/15 T. R. Willemain 11
This last line is added to Notepad manually.
The Estimated P.M.F.
05/25/15 T. R. Willemain 12
Comment
• We have estimated the p.m.f. by Monte Carlo simulation.
• It is possible, though quite complicated, to work out the
answer analytically. This is always preferable, if possible.
• Theory tells us that, asymptotically (as the # of cases
increases), the p.m.f. is Poisson with mean = 1.
• The simulation suggests this, since the sample mean and
sample variance are both near 1.0. Sometimes simulation
and analysis alternate in the search for knowledge: they
are complementary approaches.
– Theory first: Use simulation to check the correctness of your
theory.
– Theory second: Use simulation to suggest a theoretical
approach.
05/25/15 T. R. Willemain 13

More Related Content

What's hot

Pointers lesson 3 (data types and pointer arithmetics)
Pointers lesson 3 (data types and pointer arithmetics)Pointers lesson 3 (data types and pointer arithmetics)
Pointers lesson 3 (data types and pointer arithmetics)
SetuMaheshwari1
 
Simulink
SimulinkSimulink
Simulink
Kelin Jose
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
Ravikiran A
 
MATLAB
MATLABMATLAB
Algorithm and Data Structure - Queue
Algorithm and Data Structure - QueueAlgorithm and Data Structure - Queue
Algorithm and Data Structure - Queue
AndiNurkholis1
 
AssignmentC
AssignmentCAssignmentC
AssignmentC
Shuhei Nakada
 
Algorithm and Data Structure - Stack
Algorithm and Data Structure - StackAlgorithm and Data Structure - Stack
Algorithm and Data Structure - Stack
AndiNurkholis1
 
Scilab for very beginners
Scilab for very beginnersScilab for very beginners
Scilab for very beginners
Scilab
 
Discrete event simulation
Discrete event simulationDiscrete event simulation
Discrete event simulation
ssusera970cc
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
Memo Love
 
simulink
simulinksimulink
simulink
Aditi Tiwari
 
Matlab tut2
Matlab tut2Matlab tut2
Matlab tut2
Vinnu Vinay
 
Automated Testing of Hybrid Simulink/Stateflow Controllers
Automated Testing of Hybrid Simulink/Stateflow ControllersAutomated Testing of Hybrid Simulink/Stateflow Controllers
Automated Testing of Hybrid Simulink/Stateflow Controllers
Lionel Briand
 
working with matrices in r
working with matrices in rworking with matrices in r
working with matrices in r
Kavitha Chandramohan
 

What's hot (14)

Pointers lesson 3 (data types and pointer arithmetics)
Pointers lesson 3 (data types and pointer arithmetics)Pointers lesson 3 (data types and pointer arithmetics)
Pointers lesson 3 (data types and pointer arithmetics)
 
Simulink
SimulinkSimulink
Simulink
 
Introduction to MATLAB
Introduction to MATLABIntroduction to MATLAB
Introduction to MATLAB
 
MATLAB
MATLABMATLAB
MATLAB
 
Algorithm and Data Structure - Queue
Algorithm and Data Structure - QueueAlgorithm and Data Structure - Queue
Algorithm and Data Structure - Queue
 
AssignmentC
AssignmentCAssignmentC
AssignmentC
 
Algorithm and Data Structure - Stack
Algorithm and Data Structure - StackAlgorithm and Data Structure - Stack
Algorithm and Data Structure - Stack
 
Scilab for very beginners
Scilab for very beginnersScilab for very beginners
Scilab for very beginners
 
Discrete event simulation
Discrete event simulationDiscrete event simulation
Discrete event simulation
 
Introduction to simulink (1)
Introduction to simulink (1)Introduction to simulink (1)
Introduction to simulink (1)
 
simulink
simulinksimulink
simulink
 
Matlab tut2
Matlab tut2Matlab tut2
Matlab tut2
 
Automated Testing of Hybrid Simulink/Stateflow Controllers
Automated Testing of Hybrid Simulink/Stateflow ControllersAutomated Testing of Hybrid Simulink/Stateflow Controllers
Automated Testing of Hybrid Simulink/Stateflow Controllers
 
working with matrices in r
working with matrices in rworking with matrices in r
working with matrices in r
 

Viewers also liked

Minitab 17
Minitab 17Minitab 17
Minitab 17
Eko Ilman Gunawan
 
Advanced DOE with Minitab (presentation in Costa Rica)
Advanced DOE with Minitab (presentation in Costa Rica)Advanced DOE with Minitab (presentation in Costa Rica)
Advanced DOE with Minitab (presentation in Costa Rica)
Blackberry&Cross
 
ICANN Rules vs Privacy
ICANN Rules vs PrivacyICANN Rules vs Privacy
ICANN Rules vs Privacy
Blacknight
 
How the Internet Works
How the Internet WorksHow the Internet Works
How the Internet Works
Dan Goldstein
 
Making domain name and IP address policy at ICANN
Making domain name and IP address policy at ICANNMaking domain name and IP address policy at ICANN
Making domain name and IP address policy at ICANN
Stephane Van Gelder
 
Cmmi hm 2008 sepg model changes for high maturity 1v01[1]
Cmmi hm 2008 sepg model changes for high maturity  1v01[1]Cmmi hm 2008 sepg model changes for high maturity  1v01[1]
Cmmi hm 2008 sepg model changes for high maturity 1v01[1]
JULIO GONZALEZ SANZ
 
Power Point Lesson 06
Power Point Lesson 06Power Point Lesson 06
Power Point Lesson 06
Nasir Jumani
 
E-COMMERCE: The Dark Web
E-COMMERCE: The Dark Web E-COMMERCE: The Dark Web
E-COMMERCE: The Dark Web
rardthebeast
 
Setting standards-friendly web type
Setting standards-friendly web typeSetting standards-friendly web type
Setting standards-friendly web type
Pascal Klein
 
How the internet works
How the internet worksHow the internet works
How the internet works
ftcim
 
Brief History of the PC
Brief History of the PCBrief History of the PC
Power Point Lesson 07 P1
Power Point  Lesson 07  P1Power Point  Lesson 07  P1
Power Point Lesson 07 P1
Nasir Jumani
 
Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...
Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...
Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...
Ghassan Shahrour
 
A4. What about other religions?
A4. What about other religions?A4. What about other religions?
A4. What about other religions?
Tony Watkins
 
The Needs Of Computation
The  Needs Of  ComputationThe  Needs Of  Computation
The Needs Of Computation
Nasir Jumani
 
ICANN 51: Thick WHOIS Implementation (working session)
ICANN 51: Thick WHOIS Implementation (working session)ICANN 51: Thick WHOIS Implementation (working session)
ICANN 51: Thick WHOIS Implementation (working session)
ICANN
 
How the internet works
How the internet worksHow the internet works
How the internet works
Sharon Chen
 
Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.
Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.
Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.
Jaime P
 
World Without Wires 2007
World Without Wires 2007World Without Wires 2007
World Without Wires 2007
Nasir Jumani
 
Inside The Computer
Inside The ComputerInside The Computer
Inside The Computer
Nasir Jumani
 

Viewers also liked (20)

Minitab 17
Minitab 17Minitab 17
Minitab 17
 
Advanced DOE with Minitab (presentation in Costa Rica)
Advanced DOE with Minitab (presentation in Costa Rica)Advanced DOE with Minitab (presentation in Costa Rica)
Advanced DOE with Minitab (presentation in Costa Rica)
 
ICANN Rules vs Privacy
ICANN Rules vs PrivacyICANN Rules vs Privacy
ICANN Rules vs Privacy
 
How the Internet Works
How the Internet WorksHow the Internet Works
How the Internet Works
 
Making domain name and IP address policy at ICANN
Making domain name and IP address policy at ICANNMaking domain name and IP address policy at ICANN
Making domain name and IP address policy at ICANN
 
Cmmi hm 2008 sepg model changes for high maturity 1v01[1]
Cmmi hm 2008 sepg model changes for high maturity  1v01[1]Cmmi hm 2008 sepg model changes for high maturity  1v01[1]
Cmmi hm 2008 sepg model changes for high maturity 1v01[1]
 
Power Point Lesson 06
Power Point Lesson 06Power Point Lesson 06
Power Point Lesson 06
 
E-COMMERCE: The Dark Web
E-COMMERCE: The Dark Web E-COMMERCE: The Dark Web
E-COMMERCE: The Dark Web
 
Setting standards-friendly web type
Setting standards-friendly web typeSetting standards-friendly web type
Setting standards-friendly web type
 
How the internet works
How the internet worksHow the internet works
How the internet works
 
Brief History of the PC
Brief History of the PCBrief History of the PC
Brief History of the PC
 
Power Point Lesson 07 P1
Power Point  Lesson 07  P1Power Point  Lesson 07  P1
Power Point Lesson 07 P1
 
Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...
Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...
Ghassan Shahrour, The 70th anniversary of the atomic bombings at Hiroshima an...
 
A4. What about other religions?
A4. What about other religions?A4. What about other religions?
A4. What about other religions?
 
The Needs Of Computation
The  Needs Of  ComputationThe  Needs Of  Computation
The Needs Of Computation
 
ICANN 51: Thick WHOIS Implementation (working session)
ICANN 51: Thick WHOIS Implementation (working session)ICANN 51: Thick WHOIS Implementation (working session)
ICANN 51: Thick WHOIS Implementation (working session)
 
How the internet works
How the internet worksHow the internet works
How the internet works
 
Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.
Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.
Hiroshima i Nagasaki. 4t ESO. Ies Josep Tapiró.
 
World Without Wires 2007
World Without Wires 2007World Without Wires 2007
World Without Wires 2007
 
Inside The Computer
Inside The ComputerInside The Computer
Inside The Computer
 

Similar to Using minitab exec files

Lecture 01 variables scripts and operations
Lecture 01   variables scripts and operationsLecture 01   variables scripts and operations
Lecture 01 variables scripts and operations
Smee Kaem Chann
 
Online Advance Excel & VBA Training in India
 Online Advance Excel & VBA Training in India Online Advance Excel & VBA Training in India
Online Advance Excel & VBA Training in India
ibinstitute0
 
SoftwareApplicationInTermsOFMatlabSimulation
SoftwareApplicationInTermsOFMatlabSimulationSoftwareApplicationInTermsOFMatlabSimulation
SoftwareApplicationInTermsOFMatlabSimulation
MechTech9
 
Learn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in DelhiLearn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in Delhi
ibinstitute0
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
Vinay Kumar
 
Matlab programming
Matlab programmingMatlab programming
Matlab programming
Md. Rayid Hasan Mojumder
 
Matlab Tutorial.ppt
Matlab Tutorial.pptMatlab Tutorial.ppt
Matlab Tutorial.ppt
RaviMuthamala1
 
Mit6 094 iap10_lec01
Mit6 094 iap10_lec01Mit6 094 iap10_lec01
Mit6 094 iap10_lec01
Tribhuwan Pant
 
Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0
PMILebanonChapter
 
Matlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - IMatlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - I
Vijay Kumar Gupta
 
Basic matlab and matrix
Basic matlab and matrixBasic matlab and matrix
Basic matlab and matrix
Saidur Rahman
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
Ravibabu Kancharla
 
Cloneselector software training
Cloneselector software trainingCloneselector software training
Cloneselector software training
Shiphar Babirye
 
Matlab lec1
Matlab lec1Matlab lec1
Matlab lec1
Amba Research
 
Break through e2e-testing
Break through e2e-testingBreak through e2e-testing
Break through e2e-testing
tameemahmed5
 
Matlab lecture 2 matlab basic syntax & variables @taj
Matlab lecture 2   matlab basic syntax & variables @tajMatlab lecture 2   matlab basic syntax & variables @taj
Matlab lecture 2 matlab basic syntax & variables @taj
Tajim Md. Niamat Ullah Akhund
 
Matlab pt1
Matlab pt1Matlab pt1
Matlab pt1
Austin Baird
 
Simulating data to gain insights into power and p-hacking
Simulating data to gain insights intopower and p-hackingSimulating data to gain insights intopower and p-hacking
Simulating data to gain insights into power and p-hacking
Dorothy Bishop
 
Matlab
MatlabMatlab
Elementary Data Analysis with MS Excel_Day-4
Elementary Data Analysis with MS Excel_Day-4Elementary Data Analysis with MS Excel_Day-4
Elementary Data Analysis with MS Excel_Day-4
Redwan Ferdous
 

Similar to Using minitab exec files (20)

Lecture 01 variables scripts and operations
Lecture 01   variables scripts and operationsLecture 01   variables scripts and operations
Lecture 01 variables scripts and operations
 
Online Advance Excel & VBA Training in India
 Online Advance Excel & VBA Training in India Online Advance Excel & VBA Training in India
Online Advance Excel & VBA Training in India
 
SoftwareApplicationInTermsOFMatlabSimulation
SoftwareApplicationInTermsOFMatlabSimulationSoftwareApplicationInTermsOFMatlabSimulation
SoftwareApplicationInTermsOFMatlabSimulation
 
Learn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in DelhiLearn VBA Training & Advance Excel Courses in Delhi
Learn VBA Training & Advance Excel Courses in Delhi
 
Mat lab workshop
Mat lab workshopMat lab workshop
Mat lab workshop
 
Matlab programming
Matlab programmingMatlab programming
Matlab programming
 
Matlab Tutorial.ppt
Matlab Tutorial.pptMatlab Tutorial.ppt
Matlab Tutorial.ppt
 
Mit6 094 iap10_lec01
Mit6 094 iap10_lec01Mit6 094 iap10_lec01
Mit6 094 iap10_lec01
 
Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0
 
Matlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - IMatlab Tutorial for Beginners - I
Matlab Tutorial for Beginners - I
 
Basic matlab and matrix
Basic matlab and matrixBasic matlab and matrix
Basic matlab and matrix
 
Introduction to Matlab.ppt
Introduction to Matlab.pptIntroduction to Matlab.ppt
Introduction to Matlab.ppt
 
Cloneselector software training
Cloneselector software trainingCloneselector software training
Cloneselector software training
 
Matlab lec1
Matlab lec1Matlab lec1
Matlab lec1
 
Break through e2e-testing
Break through e2e-testingBreak through e2e-testing
Break through e2e-testing
 
Matlab lecture 2 matlab basic syntax & variables @taj
Matlab lecture 2   matlab basic syntax & variables @tajMatlab lecture 2   matlab basic syntax & variables @taj
Matlab lecture 2 matlab basic syntax & variables @taj
 
Matlab pt1
Matlab pt1Matlab pt1
Matlab pt1
 
Simulating data to gain insights into power and p-hacking
Simulating data to gain insights intopower and p-hackingSimulating data to gain insights intopower and p-hacking
Simulating data to gain insights into power and p-hacking
 
Matlab
MatlabMatlab
Matlab
 
Elementary Data Analysis with MS Excel_Day-4
Elementary Data Analysis with MS Excel_Day-4Elementary Data Analysis with MS Excel_Day-4
Elementary Data Analysis with MS Excel_Day-4
 

More from JULIO GONZALEZ SANZ

Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]
Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]
Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]
JULIO GONZALEZ SANZ
 
Cmmi 26 ago_2009_
Cmmi 26 ago_2009_Cmmi 26 ago_2009_
Cmmi 26 ago_2009_
JULIO GONZALEZ SANZ
 
Creation use-of-simple-model
Creation use-of-simple-modelCreation use-of-simple-model
Creation use-of-simple-model
JULIO GONZALEZ SANZ
 
Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]
JULIO GONZALEZ SANZ
 
Workshop healthy ingredients ppm[1]
Workshop healthy ingredients ppm[1]Workshop healthy ingredients ppm[1]
Workshop healthy ingredients ppm[1]
JULIO GONZALEZ SANZ
 
The need for a balanced measurement system
The need for a balanced measurement systemThe need for a balanced measurement system
The need for a balanced measurement system
JULIO GONZALEZ SANZ
 
Magic quadrant
Magic quadrantMagic quadrant
Magic quadrant
JULIO GONZALEZ SANZ
 
6 six sigma presentation
6 six sigma presentation6 six sigma presentation
6 six sigma presentation
JULIO GONZALEZ SANZ
 
Volvo csr suppliers guide vsib
Volvo csr suppliers guide vsibVolvo csr suppliers guide vsib
Volvo csr suppliers guide vsib
JULIO GONZALEZ SANZ
 
Just in-time and lean production
Just in-time and lean productionJust in-time and lean production
Just in-time and lean production
JULIO GONZALEZ SANZ
 
History of manufacturing systems and lean thinking enfr
History of manufacturing systems and lean thinking enfrHistory of manufacturing systems and lean thinking enfr
History of manufacturing systems and lean thinking enfrJULIO GONZALEZ SANZ
 
Sga iso-14001
Sga iso-14001Sga iso-14001
Sga iso-14001
JULIO GONZALEZ SANZ
 
Cslt closing plenary_portugal
Cslt closing plenary_portugalCslt closing plenary_portugal
Cslt closing plenary_portugal
JULIO GONZALEZ SANZ
 
Une 66175 presentacion norma 2006 por julio
Une 66175 presentacion norma 2006 por julioUne 66175 presentacion norma 2006 por julio
Une 66175 presentacion norma 2006 por julio
JULIO GONZALEZ SANZ
 
Swebokv3
Swebokv3 Swebokv3
An architecture for data quality
An architecture for data qualityAn architecture for data quality
An architecture for data quality
JULIO GONZALEZ SANZ
 
Sap analytics creating smart business processes
Sap analytics   creating smart business processesSap analytics   creating smart business processes
Sap analytics creating smart business processes
JULIO GONZALEZ SANZ
 
Big data analytics, research report
Big data analytics, research reportBig data analytics, research report
Big data analytics, research report
JULIO GONZALEZ SANZ
 
Evaluating and comparing software metrics in the software engineering laboratory
Evaluating and comparing software metrics in the software engineering laboratoryEvaluating and comparing software metrics in the software engineering laboratory
Evaluating and comparing software metrics in the software engineering laboratory
JULIO GONZALEZ SANZ
 
Cmmi six sigma bok
Cmmi six sigma bokCmmi six sigma bok
Cmmi six sigma bok
JULIO GONZALEZ SANZ
 

More from JULIO GONZALEZ SANZ (20)

Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]
Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]
Cmmi%20 model%20changes%20for%20high%20maturity%20v01[1]
 
Cmmi 26 ago_2009_
Cmmi 26 ago_2009_Cmmi 26 ago_2009_
Cmmi 26 ago_2009_
 
Creation use-of-simple-model
Creation use-of-simple-modelCreation use-of-simple-model
Creation use-of-simple-model
 
Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]Introduction to bayesian_networks[1]
Introduction to bayesian_networks[1]
 
Workshop healthy ingredients ppm[1]
Workshop healthy ingredients ppm[1]Workshop healthy ingredients ppm[1]
Workshop healthy ingredients ppm[1]
 
The need for a balanced measurement system
The need for a balanced measurement systemThe need for a balanced measurement system
The need for a balanced measurement system
 
Magic quadrant
Magic quadrantMagic quadrant
Magic quadrant
 
6 six sigma presentation
6 six sigma presentation6 six sigma presentation
6 six sigma presentation
 
Volvo csr suppliers guide vsib
Volvo csr suppliers guide vsibVolvo csr suppliers guide vsib
Volvo csr suppliers guide vsib
 
Just in-time and lean production
Just in-time and lean productionJust in-time and lean production
Just in-time and lean production
 
History of manufacturing systems and lean thinking enfr
History of manufacturing systems and lean thinking enfrHistory of manufacturing systems and lean thinking enfr
History of manufacturing systems and lean thinking enfr
 
Sga iso-14001
Sga iso-14001Sga iso-14001
Sga iso-14001
 
Cslt closing plenary_portugal
Cslt closing plenary_portugalCslt closing plenary_portugal
Cslt closing plenary_portugal
 
Une 66175 presentacion norma 2006 por julio
Une 66175 presentacion norma 2006 por julioUne 66175 presentacion norma 2006 por julio
Une 66175 presentacion norma 2006 por julio
 
Swebokv3
Swebokv3 Swebokv3
Swebokv3
 
An architecture for data quality
An architecture for data qualityAn architecture for data quality
An architecture for data quality
 
Sap analytics creating smart business processes
Sap analytics   creating smart business processesSap analytics   creating smart business processes
Sap analytics creating smart business processes
 
Big data analytics, research report
Big data analytics, research reportBig data analytics, research report
Big data analytics, research report
 
Evaluating and comparing software metrics in the software engineering laboratory
Evaluating and comparing software metrics in the software engineering laboratoryEvaluating and comparing software metrics in the software engineering laboratory
Evaluating and comparing software metrics in the software engineering laboratory
 
Cmmi six sigma bok
Cmmi six sigma bokCmmi six sigma bok
Cmmi six sigma bok
 

Using minitab exec files

  • 1. Using Minitab Exec Files Prof. Tom Willemain 05/25/15 1T. R. Willemain
  • 2. Why Use Exec Files? • You can do many Monte Carlo simulations without Exec files. • Usually, this means putting each simulation replication in one row of the Data Window. • But you soon run out of space for both data and results, so you can only do relatively small problems. • Exec files free you to do bigger problems and use more of the features of Minitab. 05/25/15 T. R. Willemain 2
  • 3. Typical Simulation using Exec files • Put (possibly lots of) data in columns, not rows. • Compute a statistic using Calc>Column Statistics or Calc>Calculator. • Store the statistic in an (invisible) location called a “constant” (e.g., K1, K2,…) • “Stack” the results, moving them from the constant into a single column holding results. • Analyze the results column. 05/25/15 T. R. Willemain 3
  • 4. How It’s Done: Creating an Exec 1. Create the first simulation replication manually. All your menu choices and dialog box inputs are recorded in the form of Minitab commands in the History folder of the Project Management window. 2. Compute the result statistic from the simulation using Calc>Column Statistics and store it in constant K1. 3. Open the Notepad using Tools>Notepad. 4. Open the History folder, highlight the commands you want to repeat, and copy/paste them into the Notepad. 5. Manually add one more line in the Notepad to Stack the result statistics in a column of the data window. 6. Save the Exec file from the Notepad to your hard drive using File>Save As>All Files. Save it as an xxx.mtb file. 05/25/15 T. R. Willemain 4
  • 5. How It’s Done: Running an Exec • In Minitab, select File>Other Files>Run an Exec • In the Run an Exec dialog box, enter the number of additional replications you want. (It’s safer to first ask for just 2 replications to see that everything is working ok. Then you can add more replications.) • In response to the prompt, select the Exec file you want to run. Exec files have names like foo.mtb. • Minitab will run the Exec file the desired number of times and stack the results into the column you selected. • Finish the problem by analyzing the column of results. 05/25/15 T. R. Willemain 5
  • 6. Example: Inter-point Distances • The next slide show how to estimate the distribution of the distance between two points whose X and Y coordinates have unit exponential distributions. • Note that you need 5 columns: 4 coordinates and one distance. Without an Exec file, and with a 10,000 number limit in the Minitab Student 14 Edition, you could do a maximum of 2,000 replications (2,000 = 10,000/5). • But with an Exec file, you can do as many as 9,995 replications. 05/25/15 T. R. Willemain 6
  • 7. 05/25/15 T. R. Willemain 7
  • 8. 05/25/15 T. R. Willemain 8
  • 9. Example: A Matching Problem • A class has 20 students, who take a quiz. • The professor collects the quizzes, shuffles them well, and hands them back to students to grade. • Some students may get their own quiz back to grade. The number of such “matches” is a discrete random variable ranging from 0 to 20. • Estimate the p.m.f. using an Exec file. 05/25/15 T. R. Willemain 9
  • 10. One Trial of the Matching Simulation 05/25/15 T. R. Willemain 10 1. List the 20 students by number. 2. Create a set of 20 random numbers. 3. Create a list of 20 graders and sort it by the random numbers. 4. Compute a binary variable = 1 if there is a match or else = 0.
  • 11. The Exec File 05/25/15 T. R. Willemain 11 This last line is added to Notepad manually.
  • 12. The Estimated P.M.F. 05/25/15 T. R. Willemain 12
  • 13. Comment • We have estimated the p.m.f. by Monte Carlo simulation. • It is possible, though quite complicated, to work out the answer analytically. This is always preferable, if possible. • Theory tells us that, asymptotically (as the # of cases increases), the p.m.f. is Poisson with mean = 1. • The simulation suggests this, since the sample mean and sample variance are both near 1.0. Sometimes simulation and analysis alternate in the search for knowledge: they are complementary approaches. – Theory first: Use simulation to check the correctness of your theory. – Theory second: Use simulation to suggest a theoretical approach. 05/25/15 T. R. Willemain 13