SPSS Exercise
SPSS Exercise
Comparing Means:
One or Two Samples t-Tests
t- Test and Z-Tests are commonly used for making comparisons between the means of
the two samples or between some standard value and the mean of one sample.
Results:
One-Sample Statistics
N Mean Std. Std. Error
Deviation Mean
salary of 30 713.50 81.26 14.84
the
graduate
student
One-Sample Test
Test Value
= 750
t df Sig. (2- Mean 95%
tailed) Difference Confidenc
e Interval
of the
Difference
Lower Upper
salary of -2.460 29 .020 -36.50 -66.84 -6.16
the
graduate
student
Result: Since the p value has come out to be .020 therefore the difference is significant to
reject the null hypothesis.
Paired t-test
1. A corporate training institution claimed that its training program can greatly enhance
the efficiency of the call centre employees. A big call centre sent some of its employees
for the training program. The efficiency was measured by the no. of deals closed by each
employee in a one month period. Data was collected for a one month period before
sending the employees for the training program. After the training program the data was
again collected on the same program. After the training program, data was collected on
the same employees for a month period.
Variables: Employee, before, after
Data View:
H1: There is sig diff between employees before and after the training program.
Syntax:
Analyse-Compare means-paired sample t-test
Std. Error
Mean N Std. Deviation Mean
Pair 1 before 40.70 20 4.318 .965
after 44.15 20 6.158 1.377
N Correlation Sig.
Pair 1 before & after 20 .281 .230
Paired Samples Test
Paired Differences
95% Confidence Interval
of the Difference
Std. Error
Mean Std. Deviation Mean Lower Upper t df Sig. (2-tailed)
Pair 1 before - after -3.450 6.452 1.443 -6.470 -.430 -2.391 19 .027
Since the p value is coming out to be .027 which is very much lower than .05 so the null
hypothesis is rejected at 5% level of significance.
Syntax: Analyse- Descriptive- cross tabs- select one variable in row and the other one in
column.
Ho: There is no relationship between the grades obtained and educational background of
the students P=0.117
H1: There is relationship between the grades obtained and educational background of the
students
Case Processing Summary
Cases
Count
grades obtained
a B C Total
B.SC. 0 2 3 5
BBA 1 2 2 5
5 1 0 4 5
Total 7 7 11 25
Chi-Square Tests
a .117
Pearson Chi-Square 12.857 8
N of Valid Cases 25
Case: This problem relates to the taste/ quality of food dishes served to 28 customers in Taj Group Hotel
Chain. The customers, who are basically from HIG, were asked to give their opinion about the quality/taste
of the four common non-vegetarian dishes served to them. The following are the common dishes:
Code Dish Name:
Dish 1(not 2 3 4 5 6 7 8 9 10(most
type like at preferred)
all
1 Chicken
Platter
2 Honey
Chicken
3 Chicken
Spinach
4 Tandoori
Chicken
1 Chicken Platter
2 Honey Chicken
3 Chicken Spinach
4 Tandoori Chicken
The Taj Group wants to test, which of the above mentioned groups of dishes are preferred by HIG
customers. At random 28 customers are asked for their preference on a scale of 10(1=not liked at all, and
10= most preferred) and these data have been tabulated.
Syntax- Analyse- Compare Mean-One Way ANOVA- Options- Descriptive- Post Hoc-
Scheffe test (to compare which of the groups differ significantly).
Descriptive
PREFERENCE GRADE
95% Confidence Interval for
Mean
N Mean Std. Deviation Std. Error Lower Bound Upper Bound Minimum Maximum
CHICKEN PLATTER 7 7.14 1.345 .508 5.90 8.39 5 9
HONEY CHIKEN 7 8.14 .690 .261 7.50 8.78 7 9
CHICKEN SPINACH 7 6.14 .900 .340 5.31 6.97 5 7
TANDOORI CHICKEN 7 6.57 .787 .297 5.84 7.30 6 8
Total 28 7.00 1.186 .224 6.54 7.46 5 9
ANOVA
PREFERENCE GRADE
Sum of
Squares df Mean Square F Sig.
Between Groups 15.714 3 5.238 5.641 .005
Within Groups 22.286 24 .929
Total 38.000 27
Post Hoc (To see which groups differ significantly in terms of rating)
Multiple Comparisons
Refer table2; p value has come out to be .005<.05 therefore null hypothesis is rejected
and it is concluded that the mean rating scale is not same.
Table: Multiple Comparisons: P value where ever it is less that .05 is sig.
Honey Chicken-Chicken Spinach- .008<.05- Difference is significant
Honey chicken Tandoori Chicken-.46>.05-- Difference is significant.
Regression Analysis
Students population and quarterly sales data for 10 Armands Pizza Parlors
Variables Entered/Removedb
Variables Variables
Model Entered Removed Method
1 populationa . Enter
Model Summary
ANOVAb
Total 15730.000 9
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
Case II
The owner of the pizza Corner Bangalore would like to build a regression model
consisting of six factors to predict the sale of pizza. Data for the past 15 months on sales
and six different factors were collected for the purpose.
Input:
Dependent variables:
Factor Analysis
The Problem
Private domestic airline operators raised their airfare in December 2000. Indian Airlines,
the government-owned carrier, was the only domestic airline which did not follow suit.
Information available (source-Economic Times) showed that people still prefer to fly Jet
Airways. Our group set out to ascertain the reasons for the above preference, as according
to Indian Airlines officials domestic flyers are price-conscious customers.
Our study consisted of 20 respondents who had recently flown with Jet Airways.
They were asked to indicate on a seven point scale (1 = completely agree, 7 = completely
disagree), their agreement or disagreement with the set of 10 statements relating to their
perceptions and attributes of the airline.