Practical No 1

27
APPLIED PROBABILITY & APPLIED PROBABILITY & STATISTICS(MT-330) STATISTICS(MT-330) PRACTICAL NO. 01 PRACTICAL NO. 01 Introduction to Minitab Introduction to Minitab Syed Tauqeer Ahmed Hashmi Lecturer, Department of Mathematics NED university of Engineering & Technology, Karachi

description

minitab intro

Transcript of Practical No 1

  • APPLIED PROBABILITY & STATISTICS(MT-330)

    PRACTICAL NO. 01 Introduction to Minitab

    Syed Tauqeer Ahmed HashmiLecturer, Department of MathematicsNED university of Engineering & Technology, Karachi

  • (1) Following table gives some facts on 10 major countries.(a) Enter, Save and Print data.(b) Sort data according to alphabetical order and print.

    CountryPopulationAreaPoland38600000120728China12176000003691500United States2652000003615278Taiwan2140000013900Netherlands1550000016133Egypt63700000386661Russia1477000006592850Sweden8800000170250Bangladesh11980000055598Indonesia9496000001222244

  • (c) Insert following information in dictionary order and print.

    CountryPopulationAreaPakistan133500000307374

  • SESSION WINDOW Session window is used to enter Minitab commands and to display output

    DATA WINDOW Data window, sometimes called the worksheet, displays active data entered by you or produced by the computer

  • How To Enable Minitab Commands ?

    To make Session window active, place the mouse pointer on the window and just click it. Choose Editor Enable Command Language.

  • How to Enter data in Minitab ?To enter Text data MTB > SET C1; SUBC > FORMAT (A15). DATA > Poland DATA > China. DATA > END

    To enter Numeric data MTB > SET C2 DATA > 38600000 DATA > 1217600000. DATA > END

  • To enter multiple column entries at same timeMTB > READ C2-C3 DATA > 38600000 120728. DATA > END

    Name column (s) MTB > NAME C1 Country C2 Population C3 Area

    Print worksheet on session window MTB > PRINT C1-C3

    To save in default directoryMTB > SAVE

    To save in destination directoryMTB > SAVE D:\PRACTICAL 1.MTW

  • Row Country Population Area

    1 Poland 38600000 1207282 China 1217600000 36915003 United States 265200000 36152784 Taiwan 21400000 139005 Netherlands 15500000 161336 Egypt 63700000 3866617 Russia 147700000 65928508 Sweden 8800000 1702509 Bangladesh 119800000 5559810 Indonesia 949600000 1222244

  • Single Column SortingSort column 1 and store in column 2

    MTB > SORT C1 C2

    Multiple Columns SortingSort column 1, 2 & 3 and store respectively in column 4, 5 & 6

    MTB > SORT C1 C2 C3 C4 C5 C6

  • Before SortingCountry Population Area

    Poland 38600000 120728 China 1217600000 3691500 United States 265200000 3615278 Taiwan 21400000 13900 Netherlands 15500000 16133 Egypt 63700000 386661 Russia 147700000 6592850 Sweden 8800000 170250 Bangladesh 119800000 55598 Indonesia 949600000 1222244

    After Sorting

    Country Population Area

    Bangladesh 119800000 55598China 1217600000 3691500Egypt 63700000 386661Indonesia 949600000 1222244Netherlands 15500000 16133Poland 38600000 120728Russia 147700000 6592850Sweden 8800000 170250Taiwan 21400000 13900United States 265200000 3615278

  • INSERT [ between rows K and K ] of C ... C

    MTB > INSERT 5 6 C4; SUBC > FORMAT (A10).DATA > PakistanDATA >END

    MTB > INSERT 5 6 C5-C6 DATA > 133500000 307374DATA >END

  • RowCountry Population Area

    1 Bangladesh 119800000 555982 China 1217600000 36915003 Egypt 63700000 3866614 Indonesia 949600000 12222445 Netherlands 15500000 161336 Pakistan 133500000 3073747 Poland 38600000 1207288 Russia 147700000 65928509 Sweden 8800000 17025010 Taiwan 21400000 1390011 United States 265200000 3615278

  • Plot the given four relative functions for andstep size h = 0.5, on the same graph.

  • Arithmetic Operations Can Perform in Minitab

    ADD+

    SUBTRACT -

    MULTIPLY *

    DIVIDE /

    POWER**

    ABSO calculate Absolute of number (s) or column (s)

    SQRT calculate Square Root of number (s) or column (s)

    LOGE calculate Natural Log of number (s) or column (s)

  • LOGTEN calculate Base 10 Log of number (s) or column (s)

    EXPO calculate Exponentiation of number (s) or column (s)

    ANTILOGcalculate Antilog of number (s) or column (s)

    SUMcalculate Sum of numbers or columns

    MEAN calculate Mean of column (s)

    STDEV calculate Standard Deviation of column (s)

    MEDIAN calculate Median of column (s)

    MINIMUMcalculate Minimum of column (s)

    MAXIMUM calculate Maximum of column (s)

  • MTB > SET C1 DATA > 0:64/0.5DATA > END

    MTB > LET C2=C1

    MTB > LET C3=C1*(LOGTEN (C1)/LOGTEN (2))

    MTB > LET C4=C1*(LOGTEN (C1)/LOGTEN (2))**2

    MTB > LET C5=C1**2

  • Row X Y=X Y= X (LOG X) Y= X (LOG X)**2 Y= X**2

    1 0.0 0.0 * * 0.00 2 0.5 0.5 -0.500 0.50 0.25 3 1.0 1.0 0.000 0.00 1.00 4 1.5 1.5 0.877 0.51 2.25 5 2.0 2.0 2.000 2.00 4.00 6 2.5 2.5 3.305 4.37 6.25

    128 63.5 63.5 380.281 2277.39 4032.25 129 64.0 64.0 384.000 2304.00 4096.00

  • Single variable plotting

    MTB > PLOT C2*C1; SUBC > CONNECT;SUBC > TITLE GRAPH OF Y=X.

  • Multiple variables plotting on same graph (Superimposing graph)

    MTB > PLOT C2*C1 C3*C1 C4*C1 C5*C1; SUBC > CONNECT;SUBC > OVERLAY;SUBC > TITLE GRAPH OF FOUR RELATIVE FUNC.

  • Given Evaluate the following expressions using default Minitab commands and store in constants K1, K2 K10 and print.

  • MTB > LET K1=SUM (C1)*SUM(C2)

    MTB > NAME K1SUM X*SUM Y =

    MTB > PRINT K1

    Data Display

    SUM X*SUM Y = 600.000FOR EXAMPLE TO CALCULATE

  • MTB > LET K1=SUM (C1)*SUM(C2)

    MTB > LET K2=SUM (C1*C2)

    MTB > LET K3=SUM (((C1)**2)*C2)

    MTB > LET K4=SUM (LOGTEN (C1))

    MTB > LET K5=SUM (LOGE (C2))

    MTB > LET K6=SUM (2*C1+C2-3)

    MTB > LET K7=SQRT (SUM(5*C1+C2))

    MTB > LET K8=SUM(ABSO(2*C1-5*C2))

  • MTB > LET K9=SUM((C1+C2)**3)

    MTB > LET K10=EXPO (SUM(C1))

    MTB > NAME K1'SUM X*SUM Y' K2 'SUM (X*Y)++

    CONT> K3'SUM ((X**2)*Y)'K4'SUM LOG X'K5'SUM LN Y++

    CONT> K6'SUM (2X+Y-3)' K7'SQRT (SUM(5X+Y))'++

    CONT> K8'SUM (ABSO(2X-5Y))'K9'SUM(X+Y)**3'K10'EXPO(SUM X)

    MTB > PRINT K1-K10

  • SUM X*SUM Y =600.000SUM (X*Y) =130.000SUM ((X**2)*Y) =500.000SUM LOG X =2.07918SUM LN Y =10.3169SUM(2X+Y-3) =55.0000SQRT (SUM(5X+Y)) =10.7238SUM (ABSO(2X-5Y)) =170.000SUM(X+Y)**3 =7975.00EXPO(SUM X) =3269017