Professional Documents
Culture Documents
Dupol
BSAC 2-1
table(ID_no.$Smoking.Status)
table(ID_no.$Smoking.Status)/length(ID_no.$Smoking.Status)
Interpretation:
The table depicts and shows that the respondents in terms of smoking
status has 7 out of 20 or 35% of the respondents does not smoke, 8 out
of 20 or 40% of the respondents smoke less than one pack per day while
5 of 20 or 25% respondents smoke one or more than one pack per day.
Having a total of 20 respondents and having the higher percentage of
the respondents that smoke less than one pack per day.
table(ID_no.$Exercise)
table(ID_no.$Exercise)/length(ID_no.$Exercise)
Interpretation:
The table shows the distribution of respondents in terms of
exercise wherein 8 out of 20 or 40% of the respondents do not exercise
while 12 out of 20 or 60% of the respondents says that they do
exercise. Having the total of 20 respondents and having the highest
percentage of the respondents are doing exercises.
colors.pie <- c("blue", "skyblue")
pie(Exercise.table, col=colors.pie, main = "Exercise")
legend("topleft", legend=c("no", "yes"), fill = c("blue", "skyblue"))
3. Compute descriptive statistics such as minimum, maximum, mean and
standard deviation for weight, serum cholesterol amd systolic
pressure. Interpret.
a.
min(ID_no.$Weight)
max(ID_no.$Weight)
mean(ID_no.$Weight)
sd(ID_no.$Weight)
Interpretation:
As what can be observed from the given data, the lowest weight
that has been recorded from the respondents is 106 lbs while the
highest is 234 lbs. Having the average weight recorded is 154.35 lbs
and the standard deviation having 36.1128 units.
b.
min(ID_no.$Serum_Cholesterol)
max(ID_no.$Serum_Cholesterol)
mean(ID_no.$Serum_Cholesterol)
sd(ID_no.$Serum_Cholesterol)
Interpretation:
As what can be observed from the given data, the lowest serum
cholesterol is 168mg% while the highest is 253 mg%. The average serum
cholesterol is 205.65 mg% and the standard deviation is 23.39652.
c.
min(ID_no.$Systolic_Pressure)
max(ID_no.$Systolic_Pressure)
mean(ID_no.$Systolic_Pressure)
sd(ID_no.$Systolic_Pressure)
Interpretation:
As what can be observed from the given data, the lowest systolic
pressure recorded Is 115 while the highest is 163. The average
systolic pressure is 137 and the standard deviation is 13.81075 units.
4. Create histogram, normal probability plot and box plot for the
variable weight. Interpret.