Data Analysis using R
Assignment-1: Exploratory Data Analysis
Due date: 24/2/2024
General Instructions:
a) Create a folder (working directory) namely, Assignment_1 on your PC/Laptop
b) Open a R Script file and save in the directory folder namely,
Assignment_1_YourName_StdID.R and write the commands in the script.
c) Give appropriate headers/comments in the R Script file identical to the question number
and contents.
d) Make a Microsoft word file with the results and graphs obtained in the following questions
(Q. 3-15).
1. Set working directory to the folder namely, Assignment_1 in your BUS_173_R Folder.
2. Import the [Link] dataset in RStudio.
3. How many highschool and beyond students are there in the dataset? How many variables
are recorded for each student?
4. What is the range of the mathematical score in the dataset?
5. Calculate mean and standard deviation of the mathematical score in the dataset?
6. How many female students are there?
7. How many students have low socio-economic status?
8. Make a contingency table between gender (female) and socio-economic status (ses) of the
students. How many female students are from low level of socio-economic status?
9. How many female students have below the average of mathematical score?
10. Calculate the mean and standard deviation of science score in both types of school.
11. Calculate the mean and standard deviation of mathematical score in different socio-
economic status groups.
12. Create a bar diagram showing the frequency distribution of socio-economic status groups.
13. Create a histogram of mathematical score of the students.
14. Create a boxplot showing mathematical score of the students.
15. Create boxplots of mathematical score for the different categories of the socio-economic
status groups of the students.