Make your own free website on Tripod.com

Y.MEHRALI.TRIPOD.COM

Abute Minitab

Home | About Me | Favorite Links | Contact Me | My Friend's Link | Abute Statistics | Abute Minitab | Abute Computer And Internet | Litral | Other Sciences And Topics

powered by lycos
SEARCH:Tripod The Web

Sasion's Comands For Minitab
موضوع

در این قسمت شما دستورات پنجره ی محاوره ی مینیتب را می بینید.
این دستورات قابل استفاده ی دانشجویان رشته ی آمار می باشد.

به پایین صفحه پیمایش کنید تا دستورات پنجره ی محاوره را برای درس آزمایشگاه روش های آماری ببینید

دستورات پنجره ی محاوره برای درس آزمایشگاه آمار و احتمال
 
بزودی توضیحات هر دستور نوشته خواهد شد.

MTB > Retrieve  "C:\Program Files\MTBWIN\Data\Pulse.MTW".
Results for: Pulse.MTW
MTB > New.
MTB > Sort 'Sex' 'Activity' 'Pulse1' C9-C11;
SUBC>   By 'Sex' 'Activity' 'Pulse1'.
MTB > Sort 'Sex' 'Activity' 'Pulse1' C12-C14;
SUBC>   By 'Sex' 'Activity' 'Pulse1';
SUBC>   Descending 'Sex' 'Activity' 'Pulse1'.
MTB > Rank 'Activity' C15.
MTB > Rank 'Activity' C15.
MTB > Delete 10:20 35 36 40:50 C9-C13
MTB > Erase C14 C15.
MTB > Copy C9 C10 C12 C14-C16.
MTB > Copy C9 C10 C12 C14-C16;
SUBC>   Use 1:10 15 18:25.
MTB > Copy C9 C10 C12 C14-C16;
SUBC>   Use 1:10 15 18:25;
SUBC>   Omit 10 25:34.
MTB > Stack C9 C10 C17.
MTB > Stack C9 C10 C17;
SUBC>   Subscripts C16;
SUBC>   UseNames.
MTB > Unstack ('Height');
SUBC>   Subscripts 'Activity';
SUBC>   After;
SUBC>   VarNames.
MTB > Unstack ( C17);
SUBC>   Subscripts  C16;
SUBC>   After;
SUBC>   VarNames.
MTB > Transpose 'Pulse1'-'Activity';
SUBC>   New.
MTB > Transpose 'Pulse1'-'Activity';
SUBC>   After.
MTB > Describe 'Pulse1'-'Activity'.

Descriptive Statistics: Pulse1; Pulse2; Ran; Smokes; Sex; Height; Weight; Activi


Variable             N       Mean     Median     TrMean      StDev    SE Mean
Pulse1              92      72.87      71.00      72.61      11.01       1.15
Pulse2              92      80.00      76.00      78.85      17.09       1.78
Height              92     68.717     69.000     68.784      3.659      0.382
Weight              92     145.15     145.00     144.52      23.74       2.48

Variable       Minimum    Maximum         Q1         Q3
Pulse1           48.00     100.00      64.00      80.00
Pulse2           50.00     140.00      68.00      87.00
Height          61.000     75.000     66.000     72.000
Weight           95.00     215.00     125.00     156.50

 

MTB > Code (0) 10 (1) 20 (2) 30 (3) 40 'Activity' C9
MTB > Code (10) "A" (20) "B" (30) "C" (40) "D" C9 C10
MTB > Code ( "A" ) "X" ( "B" ) "Y" ( "C") "Z" ( "D") "T" C10 C11
MTB > Code ( "A" "D" ) "X" ( "B" ) "Y" ( "C") "Z" C10 C11
MTB > Code ( "A" ) 1 ( "B" ) 2 ( "C" ) 3 ( "D" ) 4 C10 C12
MTB > New.


Results for: Worksheet 4

MTB > Convert C1 C2 C5 C6.
MTB > Convert C2 C3 C6 C7.
MTB > Convert C3 C4 C7 C8.
MTB > Convert C4 C1 C8 C9.


Results for: Pulse.MTW

MTB > Print 'Pulse1'-'Activity'.

Data Display


 Row  Pulse1  Pulse2   Ran  Smokes   Sex  Height  Weight  Activity


MTB > Sum 'Pulse1' K1.

Sum of Pulse1

   Sum of Pulse1 = 6704.0
MTB > Mean 'Pulse1'.

Mean of Pulse1

   Mean of Pulse1 = 72.870
MTB > Mean 'Pulse1' K1.

Mean of Pulse1

   Mean of Pulse1 = 72.870
MTB > Print  K1.

Data Display

K1    72.8696
MTB > RMean 'Pulse1' C14.
MTB > RMean 'Pulse1' 'Pulse2' C14.
MTB > RMinimum 'Pulse1' 'Pulse2' C15.


Results for: Worksheet 4

MTB > Set C1
DATA>   1( 0 : 10 / 1 )1
DATA>   End.
MTB > PDF C1;
SUBC>   Binomial 10 .5.

Probability Density Function

Binomial with n = 10 and p = 0.500000

         x     P( X = x )
      0.00        0.0010
      1.00        0.0098
      2.00        0.0439
   
MTB > PDF C1 C2;
SUBC>   Binomial 10 .5.
MTB > PDF 3;
SUBC>   Binomial 10 .5.

Probability Density Function

Binomial with n = 10 and p = 0.500000

         x     P( X = x )
      3.00        0.1172

MTB > PDF 3 K3;
SUBC>   Binomial 10 .5.
MTB > PDF C1 C3;
SUBC>   Binomial 10 .2.
MTB > PDF C1 C4;
SUBC>   Binomial 10 .8.
MTB > Plot C2*C1 C3*C1 C4*C1;
SUBC>   Connect;
SUBC>     Type 1 2 3;
SUBC>     Color 1 7 2;
SUBC>     Size 3;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2*C1 C3*C1 C4*C1;

MTB > Plot C2*C1 C3*C1 C4*C1;
SUBC>   Project;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2*C1 C3*C1 C4*C1;

MTB > Plot C2*C1 C3*C1 C4*C1;
SUBC>   Project;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2 * C1


Plot C3 * C1


Plot C4 * C1

MTB > CDF C1 C5;
SUBC>   Binomial 10 .5.
MTB > Plot C5*C1;
SUBC>   Project;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C5 * C1

MTB > CDF C1 C6;
SUBC>   Binomial 10 .8.
MTB > Plot C6*C1;
SUBC>   Project;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C6 * C1

MTB > Set C1
DATA>   1( 2 5 3:7 5 5 )2
DATA>   End.
MTB > Set C1
DATA>   1( -4 : 4 / .2 )1
DATA>   End.
MTB > PDF C1 C2;
SUBC>   Normal 0.0 1.0.
MTB > PDF C1 C3;
SUBC>   Normal -1 1.0.
MTB > PDF C1 C4;
SUBC>   Normal 1 1.0.
MTB > Plot C2*C1 C3*C1 C4*C1;
SUBC>   Connect;
SUBC>     Type 1 2 3;
SUBC>     Color 1 3 2;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2*C1 C3*C1 C4*C1;

MTB > PDF C1 C3;
SUBC>   Normal 0 .5.
MTB > PDF C1 C4;
SUBC>   Normal 0 2.
MTB > Plot C2*C1 C3*C1 C4*C1;
SUBC>   Connect;
SUBC>     Type 1 2 3;
SUBC>     Color 1 3 2;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2*C1 C3*C1 C4*C1;

MTB > InvCDF .08 K1;
SUBC>   Normal 14 1.7.
MTB > Print  K1.

Data Display

K1    11.6114
MTB > CDF C1 C2;
SUBC>   Normal 0 1.
MTB > InvCDF C2 C5;
SUBC>   Normal 0 1.
MTB > InvCDF .013903;
SUBC>   Normal 0 1.

Inverse Cumulative Distribution Function

Normal with mean = 0 and standard deviation = 1.00000

P( X <= x )          x  
    0.0139       -2.2000


MTB > Describe 'Pulse1'-'Smokes';
SUBC>  GDotplot;
SUBC>  GBoxplot.

Descriptive Statistics: Pulse1; Pulse2; Ran; Smokes

 

 

Results for: Pulse.MTW

MTB > Tally  'Smokes' 'Sex' 'Activity';
SUBC>   Counts;
SUBC>   CumCounts;
SUBC>   Percents;
SUBC>   CumPercents.

Tally for Discrete Variables: Smokes; Sex; Activity


Smokes  Count CumCnt  Percent CumPct   Sex  Count CumCnt  Percent CumPct
     1     28     28    30.43  30.43     1     57     57    61.96  61.96
     2     64     92    69.57 100.00     2     35     92    38.04 100.00
    N=     92                           N=     92

 

Activity  Count CumCnt  Percent CumPct
       0      1      1     1.09   1.09
       1      9     10     9.78  10.87
       2     61     71    66.30  77.17
       3     21     92    22.83 100.00
      N=     92


MTB > Chart N( Weight ) * 'Activity';
SUBC>   Bar;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Chart N( Weight ) * Activity

MTB > Histogram 'Height';
SUBC>   MidPoint;
SUBC>   Bar;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Histogram Height

MTB > Boxplot 'Height';
SUBC>   Box;
SUBC>   Symbol;
SUBC>     Outlier;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Boxplot Height

MTB > Boxplot 'Height'*'Sex';
SUBC>   Box;
SUBC>   Symbol;
SUBC>     Outlier;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Boxplot Height * Sex

MTB > %Dotplot  'Height' 'Weight'.
Executing from file: C:\Program Files\MTBWIN\MACROS\Dotplot.MAC
Macro is running ... please wait

Dotplot for Height


Dotplot for Weight

MTB > %Dotplot  'Height' 'Weight';
SUBC>   By 'Sex'.
Executing from file: C:\Program Files\MTBWIN\MACROS\Dotplot.MAC
Macro is running ... please wait

Dotplot for Height


Dotplot for Weight

MTB > %Dotplot  'Height' 'Weight';
SUBC>   OnePage.
Executing from file: C:\Program Files\MTBWIN\MACROS\Dotplot.MAC
Macro is running ... please wait

Dotplot for Height-Weight

MTB > %Dotplot  'Pulse1' 'Pulse2';
SUBC>   OnePage.
Executing from file: C:\Program Files\MTBWIN\MACROS\Dotplot.MAC
Macro is running ... please wait

Dotplot for Pulse1-Pulse2

MTB > %Pie 'Activity'.
Executing from file: C:\Program Files\MTBWIN\MACROS\Pie.MAC
Macro is running ... please wait
Setting up plot ...

Pie Chart: Activity

MTB > %Pie  'Pulse1'.
Executing from file: C:\Program Files\MTBWIN\MACROS\Pie.MAC
Macro is running ... please wait
Setting up plot ...

Pie Chart: Pulse1

 

Results for: Worksheet 4

MTB > %Pie C1;
SUBC>   Counts C2.
Executing from file: C:\Program Files\MTBWIN\MACROS\Pie.MAC
Macro is running ... please wait
Setting up plot ...

Pie Chart: C1

 

Results for: Pulse.MTW

MTB > Stem-and-Leaf 'Pulse1';
SUBC>   By 'Sex'.

Stem-and-Leaf Display: Pulse1


Stem-and-leaf of Pulse1    Sex = 1         N  = 57
Leaf Unit = 1.0


    1    4 8
    3    5 44
    5    5 88
   17    6 000222222444
   28    6 66688888888
  (15)   7 000000222244444
   14    7 6668
   10    8 0244
    6    8 8
    5    9 00022


Stem-and-leaf of Pulse1    Sex = 2         N  = 35
Leaf Unit = 1.0


    1    5 8
    7    6 012224
   12    6 66888
   14    7 22
   (6)   7 668888
   15    8 002244
    9    8 6788
    5    9 04
    3    9 66
    1   10 0

MTB > GStd.
* NOTE  * Character graphs are obsolete.

MTB > Histogram 'Pulse1';
SUBC>   By 'Sex'.

Histogram


Histogram of Pulse1   Sex = 1   N = 57

Midpoint        Count
      50            1  *
      55            2  **
      60           11  ***********
      65            6  ******
      70           18  ******************
      75            8  ********
      80            3  ***
      85            2  **
      90            6  ******
      95            0
     100            0


Histogram of Pulse1   Sex = 2   N = 35

Midpoint        Count
      50            0
      55            0
      60            6  ******
      65            3  ***
      70            5  *****
      75            2  **
      80            8  ********
      85            4  ****
      90            3  ***
      95            3  ***
     100            1  *

MTB > GPro.
MTB > GStd.
MTB > BoxPlot 'Height'.
       

Boxplot


                              -------------------------
          --------------------I           +           I------------
                              -------------------------
          ------+---------+---------+---------+---------+---------+Height 
             62.5      65.0      67.5      70.0      72.5      75.0

MTB > GPro.
MTB > GStd.
MTB > BoxPlot 'Height';
SUBC>   By 'Sex'.
       

Boxplot

Sex    

                                          -----------------
1                             ------------I       +       I--------
                                          -----------------

                  ---------------------
2         --------I         +         I--------
                  ---------------------
          ------+---------+---------+---------+---------+---------+Height 
             62.5      65.0      67.5      70.0      72.5      75.0

MTB > GPro.
MTB > DotPlot 'Height'.

Dotplot: Height


                                     :   :
                             :   .   :   :           :   .
                             :   :   :   :   :   :   :   :   .
             :   :       :   :   :   :   :   :   :   :   :   :   .
         .  .:  .:   :   : . :   :   :   : . :   : . :   : : :   :
          -----+---------+---------+---------+---------+---------+-Height 
            62.5      65.0      67.5      70.0      72.5      75.0

MTB > Stem-and-Leaf 'Pulse1'.

Stem-and-Leaf Display: Pulse1


Stem-and-leaf of Pulse1    N  = 92
Leaf Unit = 1.0


72.0
73.5
73.0
69.0
73.0
72.0
    1    4 8
    3    5 44
    6    5 888
   24    6 000012222222224444
   40    6 6666688888888888
  (17)   7 00000022222244444
   35    7 6666688888
   25    8 0002224444
   15    8 67888
   10    9 0000224
    3    9 66
    1   10 0

MTB > 

TOP

دستورات پنجره ی محاوره برای درس آرمایشگاه روشهای آماری - جلسه ی اول :

MTB > pdf 4 k1;
SUBC> bino 5 0.3 .
MTB > print k1

Data Display

K1    0.0283500
MTB >  cdf 4 k1;
SUBC>  bino 5 0.3 .
MTB >  print k1

Data Display

K1    0.997570
MTB >   cdf 4 ;
SUBC>  bino 5 0.3 .

Cumulative Distribution Function

Binomial with n = 5 and p = 0.300000

         x    P( X <= x )
      4.00        0.9976

MTB > invcdf 0.95

Inverse Cumulative Distribution Function

Normal with mean = 0 and standard deviation = 1.00000

P( X <= x )          x  
    0.9500        1.6449

MTB >  invcdf 0.82 ;
SUBC> geom 0.7 .

* ERROR * Unknown MINITAB subcommand:  GEOM or subcommand out of sequence.
        * Subcommand ignored.
SUBC> end .
MTB >  invcdf 0.82 ;
SUBC> bino 10 0.6 .

Inverse Cumulative Distribution Function

Binomial with n = 10 and p = 0.600000

         x    P( X <= x )              x    P( X <= x )
         6        0.6177               7        0.8327

MTB > rand 200 c1 ;
SUBC> norm 4 3 .
MTB > pdf c1 c2 ;
SUBC> norm 4 3 .
MTB > cdf c1 c3 ;
SUBC> norm 4 3 .
MTB > invcdf c3 c4 ;
SUBC> norm 4 3 .
MTB >  Plot c3*c1;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C3 * C1

MTB > Plot c2*c1;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2 * C1

MTB > Stop.
* NOTE * Command canceled.
MTB > Stop.
* NOTE * Command canceled.
MTB > sample 3 c1 c5
MTB > sample 300 c1 c6

* ERROR * Illegal argument.

MTB >  sample 300 c1 c6 ;
SUBC> repl .
MTB >

TOP

دستورات پنجره ی محاوره برای درس آرمایشگاه روشهای آماری - جلسه ی دوم

MTB > rand 200 c1
MTB > cdf c1 c2
MTB > Plot c2*c1;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2 * C1

MTB > let k1=20*14
MTB > print k1

Data Display

K1    280.000
MTB > let k2=mean(c1)
MTB > let k3=stdev(c1)
MTB > let c3(1)=mean(c1)
MTB > let k1=10
MTB > let k2=1
MTB > Execute "C:\Documents and Settings\User\My Documents\mac444.mtb" 100.
Executing from file: C:\Documents and Settings\User\My Documents\mac444.mtb
MTB > mean c2

Mean of C2

   Mean of C2 = 3.0061
MTB > Plot c2*c3;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.

Plot C2 * C3

MTB >

در دستورات فوق از ماکروی زیر استفاده شده است

rand k1 c1 ;
norm 3 2 .
let c2(k2)=mean(c1)
let c3(k2)=k1
let k1=k1+30
let k2=k2+1

TOP

دستورات پنجره ی محاوره برای درس آرمایشگاه روشهای آماری - جلسه ی سوم
 

MTB > let k1=1
MTB > Execute "A:\minitab\mac445.mtb" 50.
Executing from file: A:\minitab\mac445.mtb
MTB > cdf c2 c3
MTB > Plot c3*c2;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.
Plot C3 * C2
MTB >  cdf c2 c3
MTB > Plot c3*c2;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.
Plot C3 * C2
MTB > Stop.
* NOTE * Command canceled.
MTB >  pdf c2 c3
MTB > Plot c3*c2;
SUBC>   Connect;
SUBC>   ScFrame;
SUBC>   ScAnnotation.
Plot C3 * C2
MTB >

در دستورات فوق از ماکروی زیر استفاده شده است

rand 400 c1;
pois 4 .
let c2(k1)=(sum(c1)-4*400)/(2*sqrt(400))
let k1=k1+1

TOP

دستورات پنجره ی محاوره برای درس آرمایشگاه روشهای آماری - جلسه ی چهارم

MTB > rand 150 c1;
SUBC> norm 2 2 .
MTB > rand 300 c2 ;
SUBC> norm 2 6 .
MTB > pdf c1 c3 ;
SUBC> norm 2 2 .
MTB > pdf c2 c4 ;
SUBC> norm 2 6 .

MTB > Plot C3*C1 C4*C2;
SUBC>   Connect;
SUBC>     Type 1 3;
SUBC>     Color 1 4;
SUBC>     Size 1;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.
Plot C3*C1 C4*C2;
MTB >  rand 150 c5;
SUBC> t 10 .
MTB >  rand 300 c6 ;
SUBC> t 40 .
MTB > pdf c5 c7 ;
SUBC> t 10 .
MTB > pdf c6 c8 ;
SUBC> t 40 .
MTB > rand 100 c9
MTB > pdf c9 c10
MTB > Plot C7*C5 C8*C6 C10*C9;
SUBC>   Connect;
SUBC>     Type 1 2 3;
SUBC>     Color 1 4 2;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.
Plot C7*C5 C8*C6 C10*C9;
MTB > rand 200 c11 ;
SUBC> chis 2 .
MTB > rand 100 c12 ;
SUBC> chis 25 .
MTB > rand 500 c13 ;
SUBC> chis 200 .
MTB > pdf c11 c14 ;
SUBC> chis 2 .
MTB > pdf c12 c15 ;
SUBC> chis 25 .
MTB > pdf c13 c16 ;
SUBC> chis 200 .
MTB > Plot C14*C11 C15*C12 C16*C13;
SUBC>   Connect;
SUBC>     Type 1 2 3;
SUBC>     Color 1 4 2;
SUBC>   Overlay;
SUBC>   ScFrame;
SUBC>   ScAnnotation.
Plot C14*C11 C15*C12 C16*C13;
MTB >

TOP

دستورات پنجره ی محاوره برای درس آرمایشگاه روشهای آماری - جلسه ی پنجم

MTB > rand 80 c1;
SUBC> integer 1 1000.
MTB > invcdf 0.025 k1;
SUBC> t 79.
MTB > Let k2 = MEAN(C1) + (K1 *STDEV(C1)/SQRT(COUNT(C1)) )
MTB > Let k3 = MEAN(C1) - (K1 *STDEV(C1)/SQRT(COUNT(C1)) )
MTB > print k2 k3
Data Display
K2    396.787
K3    526.263
MTB > OneT C1;
SUBC>   Test 600.
One-Sample T: C1
Test of mu = 600 vs mu not = 600
Variable          N      Mean     StDev   SE Mean
C1               80     461.5     290.9      32.5
Variable             95.0% CI            T      P
C1            (   396.8;   526.3)    -4.26  0.000
MTB >

TOP

دستورات پنجره ی محاوره برای درس آرمایشگاه روشهای آماری - جلسه ی ششم

 
Welcome to Minitab, press F1 for help.
MTB > rand 70 c1 ;
SUBC> norm  2 2 .
MTB > invcdf 0.025 k1 ;
SUBC> chis 69 .
MTB > invcdf 0.975 k2 ;
SUBC> chis 69 .
MTB > let k3=(count(c1)-1)*stdev(c1)*stdev(c1)/k2
MTB > let k4=(count(c1)-1)*stdev(c1)*stdev(c1)/k1
MTB > print k3 k4
Data Display
K3    3.25691
K4    6.37846
MTB > Describe C1.
Descriptive Statistics: C1

Variable             N       Mean     Median     TrMean      StDev    SE Mean
C1                  70      1.732      1.685      1.750      2.105      0.252
Variable       Minimum    Maximum         Q1         Q3
C1              -5.089      6.655      0.545      3.097
MTB >  %Describe C1;
SUBC>  Confidence 95.0.
Executing from file: C:\Program Files\MTBWIN\MACROS\Describe.MAC
Descriptive Statistics Graph: C1

MTB > rand 50 c1 ;
SUBC> integer 1 100 .
MTB > %NormPlot c1.
Executing from file: C:\Program Files\MTBWIN\MACROS\NormPlot.MAC
Macro is running ... please wait
Normal Prob Plot: C1
MTB >

Home | About Me | Favorite Links | Contact Me | My Friend's Link | Abute Statistics | Abute Minitab | Abute Computer And Internet | Litral | Other Sciences And Topics