Question: could someone please help me answer these questions and copy r codes Problem 1 (100 pts): The text file credit.txt is a data set containing

could someone please help me answer these questions and copy r codes

Problem 1 (100 pts): The text file "credit.txt" is a data set containing information on 400 credit card customers. It consists of following 11 variables. Income: Income in thousands of dollars Limit: Credit limit Rating: Credit rating Cards: Number of credit cards Age: Age in years Education: Number of years of education Gender: A factor with levels Male and Female Student: A factor with levels No and Yes indicating whether the individual was a student Married: A factor with levels No and Yes indicating whether the individual was married Ethnicity: A factor with levels African American, Asian, and Caucasian indicating the individual's ethnicity Balance: Credit card balance in dollars After you set working directory where the physical copy of "credit.txt" is located, use the code read.table("credit.txt", stringsAsFactors = T) to import it to R and assign it to credit. Now answer the following questions:

1. (2 pts) What is the type of Rating variable?

2. (3 pts) Find five-number summary of Rating variable.

3. (4 pts) What is an appropriate plot to visualize the five-number summary? Visualize the five-number summary of Rating variable.

4. (6 pts) Find how many outliers we have in Rating variable. Provide your reasoning how you defined them as outliers.

5. (6 pts) Find a 95% confidence interval to estimate the population mean of credit rating and interpret the confidence interval.

6. (9 pts) Credit card company is interested in whether the population mean of credit rating is greater than 340. State the null and alternative hypothesis. Perform the hypothesis test. Compare the p-value to significance level (0.05) and make final decision. Make your final conclusion

data set- https://drive.google.com/file/d/1UkoenRfFdEUHaF4HqwQm4TwVtva9faMR/view

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!