0% found this document useful (0 votes)
39 views

Data Analytics Lab Exercise-2: Mirtuyanjana N 1801114

This document outlines exercises for analyzing credit card expense data. It includes instructions to: 1) Read in credit card expense data and compute summary statistics. 2) Analyze a dataset of credit card usage, sex, and shopping/banking attributes to check if average usage varies by these factors. 3) Compute aggregate averages based on combinations of sex, shopping, and banking attributes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Data Analytics Lab Exercise-2: Mirtuyanjana N 1801114

This document outlines exercises for analyzing credit card expense data. It includes instructions to: 1) Read in credit card expense data and compute summary statistics. 2) Analyze a dataset of credit card usage, sex, and shopping/banking attributes to check if average usage varies by these factors. 3) Compute aggregate averages based on combinations of sex, shopping, and banking attributes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Mirtuyanjana N

1801114

DATA ANALYTICS LAB EXERCISE-2


Mirtuyanjana N
1801114
Exercise 2
The monthly credit card expenses of an individual in 1000 rupees is given in the
file CC_Expenses_Exercise.csv
1) Read the dataset to R

2)Compute mean, median minimum, maximum, range, variance, standard deviation,


skewness, kurtosis and quantiles of Credit Card Expenses

3)Compute default summary of Credit Card Expenses


Mirtuyanjana N
1801114
Credit

4)Draw Histogram of Credit Card Expenses

2).B The data of 30 customers on credit card usage in INR1000, sex (1:male, 2: female) and
whether they have done
shopping or banking (1: yes , 2: no) with credit card are given in file
CC_Expenses_Exercise.csv.
Mirtuyanjana N
1801114
1) Import the file to R

2) Copy first 20 records from the file to another dataset and save it as csv file
Mirtuyanjana N
1801114
3) Compute descriptive summary of variable Credit Card Usage

4) Convert the variables sex, banking & shopping to categorical (factor)

5) Check whether the average usage varies with sex?


Mirtuyanjana N
1801114

6) Check whether the average credit card usage vary with those who do shopping with credit
card and those who don’t do shopping?

7) Check whether the average credit card usage vary with those who do banking with credit
card and those who don’t do banking?
Mirtuyanjana N
1801114

8) Compute the aggregate average of usage with sex & shopping?

9) Compute the aggregate average of usage with all three factors?


Mirtuyanjana N
1801114

You might also like