You are on page 1of 1

Assignment 4

Kindly use R programming to solve these questions

Answer all the questions given

1. Answer the steps below


a. Load the library called MASS
b. Get the dataset called survey
c. List all available field in dataset survey
d. How many records in the dataset survey?
e. How many record in the field height in dataset survey? Note : Do not count null field.
f. Assume the population standard deviation σ  of the student height in survey is 7.78. Find
the margin of error and interval estimate at 95% confidence level. Explain your answer.
g. Without assuming the population standard deviation of the student height in dataset
survey, find the margin of error and interval estimate at 95% confidence level.

2. The population standard deviation σ of the resident of Kampung Berjaya height in survey is
9.48. Find the sample size needed to achieve a 1.2 centimeters margin of error at 95%
confidence level.

3. Find a point estimate of the male student proportion from dataset survey.

4. From dataset survey, compute the margin of error and estimate interval for the male students
proportion at 95% confidence level.

Due date : 28/6/2021 before 8.00pm. Upload via e-learning

You might also like