Q-4
Transcript of Q-4
-
18/08/2015
1
Q1. 25 people were surveyed to find their attitude towards physical exercise. They were also
asked their age, number of hours per week in physical exercise and whether they
participated in team sports.
a. Determine whether the continuous variable is normal or not.
b. Is the variable hour of exercise normally distributed? Transform the variable in
such a way that the transformed variable is normally distributed.
c. Record the variable age in such a way that we are able to know the number of
person with age greater than 40
d. Insert a variable containing sum of all non-continuous variables.
e. Insert a variable demonstrating the use of if condition selecting suitable existing
variable.
Ans1.
Step-1 In the variable view, define the variables i.e. NAME, AGE, NUMBER_OF_HOURS,
PARTICIPATION_IN_TEAM_SPORTS, ATTITUDE_TOWARDS_PHYS._EXERCISE.
Step-2 In the data view, enter the data for these variables.
-
18/08/2015
2
Step-3 To know about number of person with age greater than 40; under Transform menu option choose compute variable option.
Step-4 Under Compute Variable enter Target variable as AGE_GREATER_THAN_40 and for numeric expression write AGE and use if condition as AGE > 40.
-
18/08/2015
3
Now, the data view will be as follows:
-
18/08/2015
4
Step-5 To know the sum non-continuous variables i.e. AGE, NUMBER_OF_HOURS; Under
Compute Variable enter Target variable as sum and for numeric expression write AGE+NUMBER_OF_HOURS.
Now, the data view will be as follows: