20 | 20000
98
20 | 20000
92
19 | 65000
102
26 | 10000
100
27 | 15000
96
22 | 18000
98
24 | 45000
75
1
1
a
2
a
4
5
1
4
1
4
1
5
3
Create an M-File in MATLAB and write a pseudocode to answer the questions below. Save your m-
file as studentnoQ2.m. in your folder in the z-drive.
[4]
2.1 Determine the mean, median, mode, range, variance and standard deviation of the
variables; age, salary and age of oldest person.
[6]
2.2 Display the shape of the distribution of salary in the form of a histogram with legends
and their exponential fit.
[5]
2.3 Find the covariance of age and salary, the correlation coefficient and the correlation of
determination.
[6]
QUESTION 3 [28 MARKS]
Use IBM SPSS Statistics 25, installed in your computer, to answer the following questions.
The Centre for Entrepreneur Development (CED) hired students to do in-home care for elderly people
at the Senior Park in Pioneers Park, Windhoek so that they can remain independent and stay in their
homes as long as possible. The students do cleaning, yard work, shopping, etc. The staff at the Senior
Park begins by interviewing the seniors in their homes and assessing their need for services. The
information is used to match the seniors with the students who want employment:
The following variables were used to collect data about the elderly people:
e Age at last birthday (“age”):
e Sex of respondent (“sex”):
1= Male
2 = Female
e Lives alone (“alone”):
1=Yes
2=No
e Low income (“lowincome”):
1 = Yes, Eligible for Supplemental Security Income (SSI),
2 = No, Not Eligible for Supplemental Security Income (SSI)
e Need for assistance with the activities of daily living (“ADL”):
1 = Bathing
2 = Dressing
3 = Toileting
4 = Transferring in/out of bed
5 = Eating
e Total number of ADLs needing help: Need for assistance with the instrumental
activities of daily living (“IADL”):
1=Using telephone