Lab Record
Lab Record
LABORATORY RECORD
Name : _______________________________
Semester : _______________________________
1
KATHIR COLLEGE OF ENGINEERING
An ISO 9001:2008 Certified Institution
(Approved by AICTE, New Delhi / Affiliated to Anna University, Chennai)
Coimbatore – 641062
NAME : ___________________________________
DEPARTMENT : ___________________________________
This is certified to be a bonafide record of work done by the above student in the
BA5211-DATA ANALYSIS & BUSINESS MODELING Laboratory during the year 2020
-2021.
2
CONTENTS
1 DESCRIPTIVE STATISTICS
2 DESCRIPTIVE STATISTICS
- UNI VARIATE
FREQUENCY
DISTRIBUTION (SPSS)
3 BIVARIATE FREQUENCY
DISTRIBUTION (SPSS)
4 HYPOTHESIS
PARAMETRIC – ONE WAY
ANOVA
8 KRUSKAL – WALLS H-
TEST
3
CONTENTS
10 REGRESSION
11 FORECASTING
12 FORECASTING - USING
EXPONENTIAL
SMOOTHING WITH TREND
13 PORTFOLIO SELECTION
15 REVENUE MANAGEMENT
17 TRANSPORTATION
18 ASSIGNMENT PROBLEMS
19 NETWORKING MODELS -
CPM
20 NETWORKING MODELS -
PERT
21 QUEUING ANALYSIS
22 BASIC EOQ
4
Exp No.: 1 DESCRIPTIVE STATISTICS Date:
Aim:
To find the mean, median, mode, standard deviation, range, variance for the given data
Procedure:
Formula:
Mean = AVERAGE(A2:A16)
Median = MEDIAN(A2:A16)
Range = MAX(A2:A16)-MIN(A2:A16)
Standard Deviation = STDEV(A2:A16)
Variance = VAR(A2:A16)
Mode = MODE(A2:A16)
5
OUTPUT
Result:
Thus mean, median, mode, range, standard deviation, Variance has been found for the given
data.
6
Exp No.: 2 DESCRIPTIVE STATISTICS Date:
AIM
UNI VARIATE FREQUENCY
DISTRIBUTION (USING SPSS)
AIM
ESCRIPTIVE STATISTICS
To prepare a Univariate Frequency Distribution for the given data using SPSS.
ALGORITHM
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor window choose the option
‘Variable View’ and enter the name as ’MARKS’ then select the option ‘Data View’ to enter the
marks.
STEP 2:
In the SPSS Data Editor window, choose Transform→ Recode into Different Variables then in
the Recode into Different Variables dialog box, select the variable name and Click on ► to transfer it
into the Input Variable → Output Variable box after that type Frequency in the Name box
similarly type ‘FRE’ in the label box and click the option Change.
STEP 3:
Click Old and New Values…. to open the Recode into Different Variables: Old and New Values
Dialog box. In that dialog box, select the Range box and type ’0’ and in the through box type ’10’.
Select the Output variables are strings box and type ‘10’ in the Width box .Also type ’0.0-10.0’ in
the box for New Value then click Add.
STEP 4:
Repeat the actions of Step 3 until all the ranges are set as shown in the following Dialog box. Then
click Continue to return to the Recode into Different Variables dialog box, and the same way click
OK to return to the SPSS Data Editor window.
7
STEP 5:
In the SPSS Data Editor window, choose Analyze → Descriptive Statistics → Frequencies…. to
open the Frequencies dialog box
STEP 6:
In the Frequencies dialog box, select the variable name ‘Frequency’ and click on ► to transfer it
into the Variables: box, and then click OK to view the output.
8
OUTPUT:
RESULT: Thus the Univariate Frequency Distribution is prepared by using SPSS software.
9
Exp No.: 3 BIVARIATE FREQUENCY Date:
DISTRIBUTION(SPSS)
.AIM:
To prepare a Bi-Variate Frequency Distribution for the given data using SPSS.
ALGORITHM:
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “Height” as well as “Weight” then select the option ‘Data View’ to
enter heights and weights.
STEP 2:
After entering the datas choose Transform →Recode into Different Variables dialog box
STEP 3:
In the Recode into Different Variables dialog box, select the variable name Height and Click on ►
to transfer it into the Input Variable → Output Variable: box. Type ‘FREQUENCY’ in the Name
box and type ‘FRE1’ in the label box then click the option Change.
Similarly select the variable name Weight and Click on ► to transfer it into the Input Variable →
Output Variable: box. Type ‘FREQUENCY’ in the Name box and type ‘FRE2’ in the label box then
click the option Change.
STEP 4:
Click on Old and New Values…. to open the Recode into Different Variables: Old and New
Values Dialog box. In tat dialog box, select the Range: box and type ’100’ as well as type ‘120’ in the
through box. Select the Output variables are strings box and type ‘10’ in the Width: box. Also type
’100-120’ in the box for New Value then click Add. Repeat the same actions untill all the ranges are
set for the heights.
STEP 5:
10
Select the Range: box and type ’40’ as well as ’50’ in the through box. Select the Output variables
are strings box and type ‘10’ in the Width: box and also type ’40-50’ in the box for New Value then
click Add. Repeat the same actions untill all the ranges are set for the Weights.
STEP 6:
Click Continue to return to the Recode into Different Variables dialog box, and then click OK to
return to the SPSS Data Editor window.
STEP 7:
OUTPUT:
11
Exp No.: 4 HYPOTHESIS - PARAMETRIC Date:
X1 X2 X3 X4
8 12 18 13
10 11 12 9
12 9 16 12
8 14 6 16
7 4 8 15
ALGORITHM:
STEP 1 :
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “Treatment” as well as “Count” then select the option ‘Data View’ to
enter Treatment and Counts.
STEP 2:
After entering the data Choose Analyze → Compare Means → One-way Anova to open the one way
Anova dialog box.
STEP 3:
Select the variable name “count” and click on ► to transfer it into Factor: box and select the variable
names “treatment” and click on ► to transfer it into Dependent list: box and then click OK.
12
13
OUTPUT:
RESULT:
There is no significant difference between the treatments. Hence we accept our hypothesis.
14
Exp No.: 5 T-TEST & F-TEST – TWO SAMPLE MEAN Date:
& TWO SAMPLE VARIANCE USING SPSS
AIM:
School A 76 68 70 43 94 68 33
School B 40 48 92 85 70 76 68
ALGORITHM:
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “Marks” and “Count” then select the option ‘Data View’ to enter the
marks of school A & B.
STEP 2:
Choose Data → Weight Cases to open the weight cases dialogue box. Click ► to transfer the count into
frequency variable then click OK.
STEP 3:
Choose Analyze → Compare Means → Independent Samples T Test to open the Independent Sample
T Test dialogue box.
STEP 4:
Click ► to transfer Marks into Test Variable(s) and Count into Grouping Variable. Select options in the
same dialogue box to fix Confidence Interval Percentage and click Continue to go back to the Independent
Samples T Test dialogue box.
STEP 5:
Select the option Define Groups in the same dialogue box to enter the specified group values as 1 and 2
then click Continue to go back to the Independent Samples T Test dialogue box.
15
STEP 6:
Output:
F Sig.
16
Independent Samples Test
RESULT:
17
Exp No.: 6 NON PARAMETRIC TEST Date:
AIM:
To test the association between national healthcare employees and region using SPSS.
ALGORITHM:
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “Data”,“Sample”& “Region” then select the option Data View to enter
the datas.
STEP 2:
Choose Data → Weight Cases to open the weight cases dialogue box. Click ► to transfer the data into
frequency variable then click OK.
18
STEP 3:
Choose Analyze → Descriptive → Cross Tabs to open the cross tabs dialogue box. Click ► Sample to
Rows and Region to Columns.
STEP 4:
Select the option Statistics to open cross tabs : Statistics box . Select Chi Square Test and click
Continue to return back to cross tabs dialogue box.
STEP 5:
19
OUTPUT:
Result: There is no association between national healthcare employees and region. Hence we accept our
hypothesis H0.
20
Exp No.: 7 MANN- WHITNEY U TEST USING SPSS Date:
AIM:
CAT Branch
scores 1000 1100 800 750 1300 950 1050 1250 1400 850 1150 1200 1500 600 775
A
for
students at
two state
university Branch
920 1120 830 1360 650 725 890 1600 900 1140 1550 550 1240 925 500
branches S
ALGORITHM:
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “Branches” & “Count” then select the option Data View to feed the
data’s.
STEP 2:
Choose Analyze → Non Parametric Test → Legacy Dialogs →2 Independent Samples to open the
Two Independent Sample test dialogue box. Click ► Branches to Test Variable List Column & and Click
► Count to Grouping Variable.
STEP 3:
Select Define Groups and enter 1 under group 1 and 2 under group 2 then click Continue to return back
to Two Independent Sample test dialogue box.
STEP 4:
Select the option Mann Whitney U Test and click Ok to view the output.
21
Mann-Whitney Test
Ranks
Mean Sum of
Count N Rank Ranks
Total 30
22
Test Statisticsb
Branches
Mann-Whitney U 98.000
Wilcoxon W 218.000
Z -.601
RESULT:
There is no significant difference between two branches A& S. Hence we accept our hypothesis.
23
Exp No.: 8 KRUSKAL – WALLS H-TEST Date:
R
AIM:
ALGORITHM:
STEP 1:
Analyze > Nonparametric Tests > Legacy Dialogs > K Independent Samples
STEP 2:
Transfer the dependent variable, into the Test Variable List: box and the independent variable, into
the Grouping Variable: box.
STEP 3:
Click the Define Range button. "Several Independent Samples: Define Range" dialogue box will open.
STEP 4:
Enter the Minimum and Maximum values in the box. These values represent the range of codes given to
groups of the independent variable
STEP 5:
Click the Continue button and return to the "Tests for Several Independent Samples" dialogue box, with a
completed Grouping Variable: box.
STEP 6:
Click the Options button. "Several Independent Samples: Options" dialogue box will open.
STEP 7:
Select the Descriptive checkbox for descriptives and/or the Quartiles checkbox for medians and quartiles.
STEP 8:
Click the Continue button and return to the "Tests for Several Independent Samples" dialogue box.
24
STEP 9:
OUTPUT:
RESULT:
25
Exp No.: 9 KARL PEARSON’S & SPEARMAN’S RANK Date:
CORRELATION
AIM
To find the Karl Pearson’s and Spearman’s rank correlation using SPSS
ALGORITHM:
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “X” & “Y” then select the option Data View to feed the data’s.
STEP 2:
Select Analyze → Correlate → Bivariate to open the Bivariate Correlation dialog box then click ► X &
Y to transfer into variables box.
STEP 3:
Choose the option Pearson & Spearman and click Ok to view the output.
26
OUTPUT:
Correlations
x y
x Pearson 1 -.739**
Correlation
N 11 11
y Pearson -.739** 1
Correlation
N 11 11
27
NONPAR CORR
/VARIABLES=x y
/MISSING=PAIRWISE.
Correlations
x y
N 11 11
N 11 11
RESULT:
Thus the Karl Pearson & Spearman Rank correlation is prepared using SPSS.
28
Exp No.: 10 REGRESSION USING SPSS Date:
AIM
To calculate the regression for the given data using SPSS.
Experience 1 2 3 4 5 6 7 8 9 10
Income 15000 20000 25000 30000 35000 50000 60000 70000 80000 90000
ALGORITHM
STEP 1:
Start the SPSS software by clicking Start → All Programs→ SPSS Statistics. In the SPSS Statistics
screen choose ‘Type in data’ and click OK. In the SPSS Data Editor Window choose the option
Variable View and type the name “Experience” and “Income” then select the option ‘Data View’.
STEP 2:
Select Analyze → Regression → Linear to open the Linear Regression dialogue box.
STEP 3:
Click ►Experience to the Dependent box and Income to the Independent box.
STEP 4:
29
30
Output:
31
Exp No.: 11 FORECASTING Date:
Day 1 2 3 4 5 6 7 8 9
Sales 25 31 29 33 34 37 35 32 38
i). Forecast the sales for tenth day using Naïve method.
ii). If a two period moving average had been used to forecast sales, what would be the daily
forecast have been starting with the forecast for day 2.
iii). If a three period moving average had been used to forecast sales, what would be the daily
forecast have been starting with the forecast for day 3.
iv). If a four period moving average had been used to forecast sales, what would be the daily
forecast have been starting with the forecast for day 4.
v). Use three period weighted moving average with w1=0.2, w2=0.3 and w3=0.5 and forecast sales
for 7th and 8th day.
vi). Use exponential moving average with alpha equal to 0.20 to forecast the sales for tenth day.
32
Aim:-
To calculate 2 day, 3 day, 4 day average, 3 period weighted average and exponential moving
average for the given data.
Procedure:-
33
OUTPUT
Result:-
34
Exp No.: 12 FORECASTING Date:
AIM
To calculate the exponential smoothing of the given values using the software package POM.
ALGORITHM
STEP 8: Set the parameter as smoothing beginning forecast for period 1=450.
1 2 3 4 5 6 7 8 9 10 11 12
450 345 545 650 760 600 550 450 400 700 800 820
35
Output:
RESULT:
Thus the exponential smoothing of the given values is prepared using the software package POM.
36
Exp No.: 13 PORTFOLIO SELECTION Date:
AIM:
ALGORITHM:
STEP-2: Enter the expected returns of both the securities with corresponding
STEP-3: Calculate mean return of both the securities using average function.
Formula
(=SQRT(E8^2*$B$22^2+F8^2*$C$22^2+2*$B$24*E8*F8*$B$22*$
C$22)
STEP-8: Compare risk and return of various combinations and select a better
combination of portfolio.
37
DATA:
Markowitz portfolio selection model. With the available select a best portfolio combination.
MONTH SMALLCAP LT
TREASURIES
1 0.1126 -0.0325
2 0.0452 0.0051
3 -0.0249 -0.0094
4 -0.0403 0.0016
5 -0.0014 0.0243
6 -0.0519 0.02
7 0.037 0.0398
8 -0.0228 0.0067
9 0.0131 0.0185
10 0.0259 0.0198
11 0.0885 0.001
12 0.0441 0.0246
38
OUTPUT:
1 0.1126 -0.0325
2 0.0452 0.0051
3 -0.0249 -0.0094
4 -0.0403 0.0016
5 -0.0014 0.0243
6 -0.0519 0.02
7 0.037 0.0398
8 -0.0228 0.0067
9 0.0131 0.0185
10 0.0259 0.0198
11 0.0885 0.001
12 0.0441 0.0246
CORRELATION -0.316711486
39
W1 W2 RISK RETURN
1 0 0.050405 0.018758
0 1 0.018107 0.009967
RESULT:
40
Exp No.: 14 RISK AND SENSITIVITY ANALYSIS Date:
AIM:
To analyse the risk and sensitivity between two companies using
MS-Excel.
ALGORITHM :
STEP-1: Find the mean, median ,mode etc using excel function
For company.1 excel.
41
DATA:
The annual rate of return for 2 company A & B for the past 20 year age
are given below. You are requested to find out the average rate of return
for two companies and identify which company to invest money where
the risk is minimum.
COMPANY(A) COMPANY(B)
2.2 1.1
-3.5 1.1
11.6 4.2
-2.1 7.1
-2.1 3.8
-3.1 -2.9
-8.8 -9.1
1.4 31.1
1.4 33.9
-5.8 13.6
5.5 30.4
10.1 -4.3
-4.4 -12.9
-5.3 22.1
21.7 8.4
-5.5 -5.4
-2.5 28.7
-3.4 15.6
-1.6 9.6
2.3 13.5
42
OUTPUT:
COMPANY A COMPANY B
MEAN 0.405 8.14
MEDIAN -2.1 5.65
MODE -2.1 1.1
STANDARD 7.212232 14.85184
DEVIATION
SAMPLE 52.01629 220.5773
VARIANCE
KURTOSIS 2.95163 -1.06491
SKEWNESS 1.617245 0.430826
RANGE 30.5 46.8
STANDARD ERROR 1.612704 3.320973
MAXIMUM 21.7 33.9
MINIMUM -8.8 -12.9
SUM 8.1 162.8
COUNT 20 20
RESULT:
43
Exp No.: 15 REVENUE MANAGEMENT Date:
AIM
To calculate the revenue by increasing and decreasing the price of the product by using spreadsheet.
ALGORITHM:
STEP 1: To open the spreadsheet click Start All programs Microsoft Office
Microsoft Excel.
STEP 2: Give a suitable title for the problem and draw the table by using the border option under Home
Menu.
STEP 3: Use the Merge option under Home Menu to center the title.
STEP 4: Enter the price and quantity then calculate the revenue by using the formula price*quantity in
the mid of the cell.
STEP 5: Reduce the price and increase the quantity then calculate the revenue by using the same formula.
STEP 6: The same way increase the price and decrease the quantity then calculate the revenue by using
the same formula.
STEP 7: Select the Price, Quantity and Revenue and choose the option Insert Charts.
44
OUTPUT:
RESULT:
45
Exp No.: 16 TRANSPORTATION Date:
Distribution Centers
Availability
D1 D2 D3 D4
S1 11 13 17 14 250
Origin S2 16 18 14 10 300
S3 21 24 13 10 400
Requirements 200 225 275 250
AIM
ALGORITHM
Open TORA and click “Click here” to continue and select Transportation problem.
Select New Problem and give suitable title.
Enter the source and destination count
Press Y for Yes and N for No for the queries.
Enter the user names for source and destination.
Type the supply and demand values as per in the problem.
Enter the source value for different destinations.
Click Solve menu and Save data, it shows Solve or Modify menu.
Select Solve Problem and Final solution.
Click Go to Output Screen button.
46
INPUT
OUTPUT
Results:-
47
Exp No.: 17 ASSIGNMENT PROBLEMS Date:
Machines
M1 M2 M3 M4
J1 5 7 11 6
Jobs J2 8 5 9 6
J3 4 7 10 7
J4 10 4 8 3
AIM
ALGORITHM
Open TORA and click”Click here” to continue and select Transportation Problem.
Select New problem and give suitable title.
Enter the source and destination count.
Press Y for Yes and N for No for user defined names.
Enter the user names for source and destinations.
Type the supply and demand values as 1.
Enter the machine value for different operators.
Click Solve menu and save the program, it shows Solve or Modify menu.
Select Solve program and Final solution.
Click Go to Output Screen Button to view output.
48
INPUT
OUTPUT
Result:-
49
Exp No.: 18 NETWORKING MODELS – CPM Date:
METHOD
AIM:
ALGORITHM:
DATA :
50
OUTPUT:
CPM:
4 5
1
CPM Output:
Earliest Latest
Activity Duration Start Complete Start Complete Total Free
Float Float
1-2 20 0 20 0 20 0 0
1-3 25 0 25 5 30 5 5
2-3 10 20 30 20 30 0 0
2-4 12 20 32 23 35 3 3
3-4 5 30 35 30 35 0 0
4-5 10 35 45 35 45 0 0
RESULT:
51
Exp No.: 19 NETWORKING MODELS – PERT Date:
METHOD
AIM:
ALGORITHM:
DATA:
52
PERT:
1 2 5 6
PERT Output:
Node Longest Path Mean Duration Std Deviation
2 1-2 2 1
3 1-3 4 1
4 1-4 3 1
5 1-3-5 10 2.24
6 1-3-5-6 17 3
RESULT:
53
Exp No.: 20 QUEUING ANALYSIS Date:
KFC analyzed data on customer arrivals and concluded that the mean arrival is 45 customers/hour.
Orders are taken at the average of 1customer/minute. Use the Poisson arrivals and exponential
service times model to answer the following questions.
AIM:
ALGORITHM:
Open TORA and click “Click here” to continue and select Queuing Analysis.
Select new problem and give suitable title.
Enter the value of lambda, mu, number of servers, system limit and source limit.
Select Solve menu and Save data, it shows Solve and Modify Menu.
Select Solve Problem and Final Solution.
Click Go to Output Screen and select Output option as Comparative analysis/Scenrio.
54
INPUT
OUTPUT
RESULT:
55
Exp No.: 21 INVENTORY MODELS Date:
BASIC ECONOMIC ORDER QUANTITY
AIM
To calculate the fixed order quantity inventory model of the given values using the software package POM.
ALGORITHM
STEP 1:
STEP 2:
STEP 3:
Click the module menu and open “fixed order quantity inventory model”.
STEP 4:
Give a suitable title for the experiment in the problem title text box.
STEP 5:
STEP 6:
STEP 7:
STEP 8:
56
STEP 9:
OUTPUT
--------------------------------------------------------------------------
--------------------------------------------------------------------------
--------------------------------------------------------------------------
RESULT:
Thus the fixed order quantity inventory model of the given values is calculated using the software
package POM.
57
Exp No.: 22 EOQ WITH QUARTERLY DISCOUNT Date:
AIM
To calculate the fixed order quantity inventory model of the given values using the software
package.
ALGORITHM
STEP 3: Click the module menu and open fixed order quantity inventory model.
STEP 4: Give suitable title for the experiment in the problem title bar.
STEP 5: Select the module III EOQ with quantity discounts under the column general.
STEP 6: Enter the value under quantity D- annual -4800, S- average ordering cost
($ per order) 500, what percent acquisition cost is carrying cost 24 and
0 1200 10
1200 2000 9
2000 3000 8
58
OUTPUT
--------------------------------------------------------------------------
--------------------------------------------------------------------------
Order Point = 0.
RESULT:
Thus the fixed order quantity inventory model of the given values is calculated using the software POM.
59