This assignment is suppose to be an R studio sheet which is then knited into an R markdown file and word doc. The instructions are attached in greater detail. It is for a linear Regression & Analysis...

1 answer below »
This assignment is suppose to be an R studio sheet which is then knited into an R markdown file and word doc. The instructions are attached in greater detail. It is for a linear Regression & Analysis course that uses R studio


-Data Assignment - A Case Study in R, with Communication and Visual Report General Instructions: · This data assignment is due on Wed. April 10 (end of day, 11:59 pm). After this time/date, there is a 50% penalty per day. · This is an individual assignment. You need to complete it independently without help from anyone else. · Once you put your name on it, you are responsible for all answers. · Your statistical report should clearly demonstrate all steps of hypothesis test/confidence intervals. Interpretation of any statistical output is required and must accompany all calculations, especially those involving testing procedures and confidence intervals. · Use R Markdown and knit your document as a word or pdf document. Projects where is code copied and pasted in Word will have a 50% penalty. · Organize your R code script with comments into a report. · Include interpretations of statistical analyses. · Label each question properly, include headings. · Use R/R Studio only. Projects solved in Excel will not be accepted. · There is a page limit of about 10 pages for this report. · START EARLY! Score (out of 100):_____________________________ NAME_____________________ Signature (I worked individually):___________________ USE CreditCard.csv data posted in Brightspace Credit Card Company. A Business Analytics Lab Report. Suppose you work for a credit card company and were assigned an analytics project for which you decided to apply regression analysis methods. Your supervisor asked you to investigate differences in credit card balance between males and females, differences in average balance between different ethnicities Caucasians, Asians and African Americans (AA) and address differences in credit card balances between married and non-married. In addition, you were also asked to investigate the effect of Income, Age, and Education on credit card balances. The following observations for a number of potential customers were recorded and stored in a data file named “CreditCards”: balance (average credit card debt for a number of individuals), as well as quantitative predictors: age, education (years of education), marital Status (married or not), income (thousands of dollars), limit (credit limit). (Data file, “CreditCards.csv” is posted on Brightspace). Please provide a self-contained managerial report to present your research findings. To help you organize your writing, I list some points below. For example, your report should incorporate full work on the items below. 1. Do an exploratory analysis of your data (know your data, variable types, generate visuals). 2. Generate a matrix scatterplot (with interpretation). 3. Propose a simple linear regression model to investigate Credit Card Balances between males and females, ignoring the other variables at the moment. Define any dummy variables that you use, interpret coefficient estimates in context, assess model utility using coefficient of determination, and the standard error. Clearly address the Question: Is there a significant difference between average card balances between males and females? 4. Suppose you want to investigate the relationship between credit card balance and ethnicity. Set up the regression model and thoroughly explain the model output and state conclusions derived from it. Is there any statistical evidence of a real difference in credit card balance between the ethnicities? 5. Suppose you want to investigate the relationship between credit card balance and marital status. Set up the regression model and thoroughly explain the model output and state conclusions. Is there any statistical evidence of a real difference in credit card balance between the married and non-married individuals? 6. Suppose you want to investigate the relationship between credit card balance and Income, Age, Education, Gender, Ethnicity and Marital status. Set up a regression model. Discuss this model and derive conclusions from it. 7. Suppose you would like to predict card balance for a new (unobserved case). Set your particular values for predictors. For example: 57 year old non-married Caucasian female customer with an income of 90,000 and 21 years of education (you do not need to use this example, pick your own). Find the interval designed to hold a fraction (95%) of the values of the response (credit card balance) for particular predictor values in this regression. Interpret. 8. Suppose your supervisor is asking about other possible insights, and a possibility of formulating interaction models, that may potentially contribute to his/her understanding of the market better. By doing quick model explorations with this data set, can you suggest other possibilities that might offer insightful analysis in the credit card business? CreditCards IncomeLimitAgeEducationGenderMarriedEthnicityBalance 14.89136063411MaleYesCaucasian333 106.02566458215FemaleYesAsian903 104.59370757111MaleNoAsian580 148.92495043611FemaleNoAsian964 55.88248976816MaleYesCaucasian331 80.1880477710MaleNoCaucasian1151 20.99633883712FemaleNoAA203 71.4087114879MaleNoAsian872 15.12533006613FemaleNoCaucasian279 71.06168194119FemaleYesAA1350 63.09581173014MaleYesCaucasian1407 15.04513116416MaleNoCaucasian0 80.6165308577FemaleYesAsian204 43.6826922499MaleYesCaucasian1081 19.14432917513FemaleNoAA148 20.08925255715FemaleYesAA0 53.59837147317FemaleYesAA0 36.49643786915FemaleYesAsian368 49.576384289FemaleYesAsian891 42.0796626449MaleNoAsian1048 17.728606316FemaleNoAsian89 37.34863787217FemaleNoCaucasian968 20.10326316110MaleYesAA0 64.0275179488MaleYesAA411 10.74217575715FemaleNoCaucasian0 14.0943232516FemaleYesAA671 42.47136254412FemaleNoCaucasian654 32.79345344416MaleNoAA467 186.634134144114FemaleYesAA1809 26.81356115516FemaleNoCaucasian915 34.1425666475FemaleYesCaucasian863 28.94127334316MaleYesAsian0 134.18178384813FemaleNoCaucasian526 31.36718293010MaleYesCaucasian0 20.1526462514FemaleYesAsian0 23.3525584912FemaleNoCaucasian419 62.41364577111FemaleYesCaucasian762 30.0076481699FemaleYesCaucasian1093 11.79538992510FemaleNoCaucasian531 13.64734614714MaleYesCaucasian344 34.9533275414FemaleNoAA50 113.65976596615MaleYesAA1155 44.15847636613FemaleYesAsian385 36.92962572414FemaleYesAsian976 31.86163752516FemaleYesCaucasian1120 77.3875695012FemaleYesCaucasian997 19.53150436416FemaleYesAsian1241 44.64644314915MaleYesCaucasian797 44.52222527215MaleYesAsian0 43.47945694913MaleYesAA902 36.36251834915MaleYesAA654 39.70539692720MaleYesAA211 44.20554413212MaleYesCaucasian607 16.30454666610MaleYesAsian957 15.3331499479FemaleYesAsian0 32.9161786608FemaleYesAsian0 57.147427918FemaleYesAsian379 76.27347796514FemaleYesCaucasian133 10.35434807017MaleYesCaucasian333 51.87252948117FemaleNoCaucasian531 35.5151983520FemaleNoAsian631 21.23830895910FemaleNoCaucasian108 30.6821671777FemaleNoCaucasian0 14.13229987517MaleNoCaucasian133 32.16429377915FemaleYesAA0 1241602814FemaleYesCaucasian602 113.82997043813FemaleYesAsian1388 11.18750996916FemaleNoAA889 27.84756197815FemaleYesCaucasian822 49.50268195514MaleYesCaucasian1084 24.88939547512MaleYesCaucasian357 58.78174028112FemaleYesAsian1103 22.93949234718FemaleYesAsian663 23.98945233115MaleNoCaucasian601 16.10353904510FemaleYesCaucasian945 33.01731802816MaleYesAA29 30.62232936816MaleNoCaucasian532 20.93632543015FemaleNoAsian145 110.96866624511FemaleYesCaucasian391 15.35421016514MaleNoAsian0 27.3693449409FemaleYesCaucasian162 53.4842638315MaleNoCaucasian99 23.67244336311MaleNoCaucasian503 19.22514333814FemaleNoCaucasian0 43.5429066911MaleNoCaucasian0 152.298120664112FemaleYesAsian1779 55.36763403315MaleYesCaucasian815 11.74122715912FemaleNoAsian0 15.564307578MaleYesAA579 59.537518529FemaleNoAA1176 20.19157674216MaleYesAA1023 48.49860404716MaleYesCaucasian812 30.73328325113MaleNoCaucasian0 16.47954352616MaleNoAA937 38.00930754515FemaleNoAA0 14.0848554617FemaleYesAA0 14.31253825917MaleNoAsian1380 26.06733887417FemaleYesAA155 36.29529636814FemaleNoAA375 83.85184944718MaleNoCaucasian1311 21.15337364111MaleNoCaucasian298 17.97624337016FemaleNoCaucasian431 68.71375825616MaleNoCaucasian1587 146.18395406615MaleNoCaucasian1050 15.84647685312FemaleNoCaucasian745 12.03131825818FemaleYesCaucasian210 16.81913377415MaleYesAsian0 39.1131897212MaleNoAsian0 107.98660336414MaleYesCaucasian227 13.56132613719MaleYesAsian297 34.53732715717FemaleYesAsian47 28.57529596011FemaleNoAA0 46.00766374214MaleYesCaucasian1046 69.25163863012FemaleYesAsian768 16.48233264115MaleNoCaucasian271 40.4424828818FemaleNoAA510 35.17721176216FemaleNoCaucasian0 91.36291134717MaleYesAsian1341 27.03921614017FemaleNoCaucasian0 23.01214108116MaleNoCaucasian0 27.24114026715FemaleYesAsian0 148.0881578313MaleYesCaucasian454 62.60270568411FemaleNoCaucasian904 11.80813007714FemaleNoAA0 29.56425293012FemaleYesCaucasian0 27.57825313415FemaleYesCaucasian0 26.42755335015FemaleYesAsian1404 57.20234117211FemaleNoCaucasian0 123.29983768917MaleNoAA1259 18.14534615615MaleYesAA255 23.79338215612FemaleYesAA868 10.72615684619MaleYesAsian0 23.28354434913MaleYesAA912 21.45558298012FemaleYesAA1018 34.66458357715FemaleYesAA835 44.47335008116FemaleNoAA8 54.6634116708FemaleNoAA75 36.3553613359MaleYesAsian187 21.37420737411FemaleYesCaucasian0 107.84110384877MaleNoAA1597 39.83160453212FemaleYesAA1425 91.87667543310MaleYesCaucasian605 103.89374168417MaleNoAsian669 19.63648966410FemaleNoAA710 17.39227483214MaleYesCaucasian68 19.52946735114MaleNoAsian642 17.05551105515FemaleYesCaucasian805 23.85715015616MaleYesCaucasian0 15.18424206911FemaleYesCaucasian0 13.4448864410MaleYesAsian0 63.93157282814FemaleYesAA581 35.86448316613FemaleYesCaucasian534 41.41921202411FemaleNoCaucasian156 92.11246123217MaleNoCaucasian0 55.05631553116MaleYesAA0 19.5371362349FemaleYesAsian0 31.81142847513FemaleYesCaucasian429 56.25655217216FemaleYesCaucasian1020 42.35755508312FemaleYesAsian653 53.31930005313MaleNoAsian0 12.23848656711FemaleNoCaucasian836 31.35317058114MaleYesCaucasian0 63.80975305612MaleYesCaucasian1086 13.67623308016FemaleNoAA0 76.78259774412MaleYesAsian548 25.38345274611MaleYesCaucasian570 35.69128803515MaleNoAA0 29.40323273714FemaleYesCaucasian0 27.4728203211FemaleYesAsian0 27.3361793612FemaleYesCaucasian1099 34.7722021579MaleNoAsian0 36.9344270639FemaleYesCaucasian283 76.34846976018MaleNoAsian108 14.88747455812MaleYesAA724 121.834106735416MaleNoAA1573 30.13221685217MaleNoCaucasian0 24.0526073218MaleYesCaucasian0 22.37939653414FemaleYesAsian384 28.31643912910FemaleNoCaucasian453 58.02674996711FemaleNoCaucasian1237 10.63535846916MaleYesAsian423 46.10251808112MaleYesAA516 58.9296420669FemaleYesAA789 80.86140902915FemaleYesAsian0 158.889115896217FemaleYesCaucasian1448 30.4244423014FemaleNoAA450 36.47238065213MaleNoAA188 23.36521797515MaleNoAsian0 83.86976678311MaleNoAA930 58.35144118516FemaleYesCaucasian126 55.18753525017FemaleYesCaucasian538 124.2995605217FemaleNoAsian1687 28.50839335614MaleYesAsian336 130.209100883919FemaleYesCaucasian1426 30.40621207914MaleYesAA0 23.88353847316FemaleYesAA802 93.03973986712MaleYesAA749 50.69939778417FemaleNoAA69 27.34920005116FemaleYesAA0 10.4034159437MaleYesAsian571 23.94953434018MaleYesAA829 73.91473336715FemaleYesCaucasian1048 21.03814485813FemaleYesCaucasian0 68.20667844016FemaleNoAA1411 57.3375310457FemaleNoCaucasian456 10.79338782913MaleNoCaucasian638 23.4524507813MaleNoCaucasian0 10.84243913710FemaleYesCaucasian1216 51.34543274615MaleNoAA230 151.94791569111FemaleYesAA732 24.54332066212FemaleYesCaucasian95 29.56753092515MaleNoCaucasian799 39.14543516613MaleYesCaucasian308 39.42252454419MaleNoAA637 34.90952896216FemaleYesCaucasian681 41.02542297919FemaleYesCaucasian246 15.47627626018MaleNoAsian52 12.45653956514MaleYesCaucasian955 10.62716477110FemaleYesAsian195 38.95452227613FemaleNoCaucasian653 44.84757655313FemaleNoAsian1246 98.51587607811FemaleNoAA1230 33.4376207449MaleNoCaucasian1549 27.51246137217MaleYesAsian573 121.7097818506MaleYesCaucasian701 15.07956732815FemaleYesAsian1075 59.87969067815FemaleNoCaucasian1032 66.98956144714FemaleYesCaucasian482 69.16546683411FemaleNoAA156 69.9437555769MaleYesAsian1058 33.2145137599MaleNoAA661 25.12447762912MaleYesCaucasian657 15.74147883914MaleYesAsian689 11.60322787111MaleYesCaucasian0 69.65682444114MaleYesAA1329 10.50329232518FemaleYesAA191 42.52949863711MaleYesAsian489 60.57951493815MaleYesAsian443 26.53229105819FemaleYesCaucasian52 27.95235573513FemaleYesAsian163 29.70533517114FemaleYesAsian148 15.6029063611MaleYesAA0 20.91812334718FemaleYesAsian16 58.16566175612FemaleYesCaucasian856 22.56117876615FemaleNoCaucasian0 34.50920018018FemaleYesAA0 19.58832115914FemaleNoAsian199 36.36422205019MaleNoCaucasian0 15.7179053816MaleYesCaucasian0 22.57415514313FemaleYesCaucasian98 10.36324304718FemaleYesAsian0 28.47432026612MaleYesCaucasian132 72.9458603648FemaleNoCaucasian1355 85.42551826012MaleYesAA218 36.5086386796FemaleYesCaucasian1048 58.0634221508MaleNoAA118 25.93617747114FemaleNoAsian0 15.62924936014MaleYesAsian0 41.425613614MaleYesCaucasian0 33.6576196559FemaleNoCaucasian1092 67.93751846312MaleYesAsian345 180.3799310678FemaleYesAsian1050 10.58840496613FemaleYesCaucasian465 29.72535365215FemaleNoAA133 27.99951075510MaleYesCaucasian651 40.88550134613FemaleYesAA549 88.8349528616FemaleYesCaucasian15 29.63858332915FemaleYesAsian942 25.98813498212MaleNoCaucasian0 39.05555654818FemaleYesCaucasian772 15.86630853913MaleNoCaucasian136 44.97848663010FemaleNoCaucasian436 30.41336902515FemaleNoAsian728 16.75147064814MaleNoAsian1255 30.555869819FemaleNoAA967 163.32987325014MaleYesCaucasian529 23.10634765015FemaleNoCaucasian209 41.53250005012MaleYesCaucasian531 128.0469827811FemaleYesCaucasian250 54.3193063598FemaleNoCaucasian269 53.40153193512FemaleNoAA541 36.14218523313FemaleNoAA0 63.53481005017FemaleYesCaucasian1298 49.92763967517FemaleYesCaucasian890 14.7112047676MaleYesCaucasian0 18.96716264111FemaleYesAsian0 18.03615524815FemaleNoCaucasian0 60.4493098698MaleYesCaucasian0 16.71152744216FemaleYesAsian863 10.8523907309MaleNoCaucasian485 26.3732357811MaleYesAsian159 24.08836655613FemaleYesCaucasian309 51.53250963115MaleYesCaucasian481 140.67211200469MaleYesAA1677 42.91525324213MaleYesAsian0 27.27213896710FemaleYesCaucasian0 65.89651404917FemaleYesCaucasian293 55.05443817417MaleYesAsian188 20.79126727018FemaleNoAA0 24.91950517611FemaleYesAA711 21.78646325017MaleYesCaucasian580 31.3353526387FemaleNoCaucasian172 59.85549644613FemaleYesCaucasian295 44.06149707911MaleYesAA414 82.70675066413FemaleYesAsian905 24.4619245014FemaleYesAsian0 45.123762808MaleYesCaucasian70 75.40638744114FemaleYesAsian0 14.9564640336MaleNoAsian681 75.25770103418FemaleYesCaucasian885 33.69448915216MaleNoAA1036 23.37554295715FemaleYesCaucasian844 27.82552276311MaleYesCaucasian823 92.38676857518FemaleYesAsian843 115.5292726914MaleNoAA1140 14.47939074316MaleYesCaucasian463 52.17973065714MaleNoAsian1142 68.46247127116MaleYesCaucasian136 18.95114858213FemaleNoCaucasian0 27.5925865416MaleYesAA0 16.27911607813MaleYesAA5 25.07830962715FemaleYesCaucasian81 27.22934845111MaleNoCaucasian265 182.728139139817MaleYesCaucasian1999 31.02928636617MaleYesAsian415 17.76550726612FemaleYesCaucasian732 125.48102308216MaleYesCaucasian1361 49.16666626814FemaleNoAsian984 41.19236735416FemaleYesCaucasian121 94.19375764416FemaleYesCaucasian846 20.40545437217MaleNoAsian1054 12.58139764816MaleYesCaucasian474 62.32852288315MaleNoCaucasian380 21.01134026817MaleYesAA182 24.2347566415FemaleYesCaucasian594 24.3143409237FemaleYesCaucasian194 32.85658846813MaleNoCaucasian926 12.4148553212MaleYesAA0 41.36553034514MaleNoCaucasian606 149.316102788016MaleNoAA1107 27.7943807358FemaleYesAA320 13.23439227717FemaleYesCaucasian426 14.5952955379MaleYesAA204 10.73537464417FemaleYesCaucasian410 48.21851993910MaleYesAsian633 30.01215113317MaleYesCaucasian0 21.55153805118MaleYesAsian907 160.231107486917MaleNoCaucasian1192 13.43311347014MaleYesCaucasian0 48.57751457113FemaleYesAsian503 30.00215617013FemaleYesCaucasian0 61.625140719MaleYesCaucasian302 104.48371404114MaleYesAA583 41.86847164718MaleNoCaucasian425 12.06838734418FemaleYesAsian413 180.68211966588FemaleYesAA1405 34.4860903614MaleNoCaucasian962 39.60925394014MaleYesAsian0 30.11143368118MaleYesCaucasian347 12.33544717912MaleYesAA611 53.56658918210FemaleNoCaucasian712 53.21749434616FemaleYesAsian382 26.16251016219FemaleNoAA710 64.17361278010MaleYesCaucasian578 128.66998246716MaleYesAsian1243 113.77264426915MaleYesCaucasian790 61.06978715614MaleYesCaucasian1264 23.79336157014MaleNoAA216 895759376FemaleNoCaucasian345 71.68280285716MaleYesCaucasian1208 35.6161354012MaleNoCaucasian992 39.11621507515MaleNoCaucasian0 19.78237824616FemaleNoCaucasian840 55.41253543716FemaleYesCaucasian1003 29.448407618FemaleYesCaucasian588 20.97456734416FemaleYesCaucasian1000 87.62571674610FemaleNoAA767 28.14415675110MaleYesCaucasian0 19.34949413319MaleYesCaucasian717 53.30828608410MaleYesCaucasian0 115.12377608314FemaleNoAA661 101.78880298411MaleYesCaucasian849 24.8245495339MaleNoCaucasian1352 14.2923274649MaleYesCaucasian382 20.08818707616MaleNoAA0 26.456405815FemaleNoAsian905 19.25336835710MaleNoAA371 16.5291357629MaleNoAsian0 37.87868278013FemaleNoCaucasian1129 83.94871004418MaleNoCaucasian806 135.118105788115FemaleYesAsian1393 73.32765554315FemaleNoCaucasian721 25.97423082410MaleNoAsian0 17.31613356513MaleNoAA0 49.7945758408MaleNoCaucasian734 12.09641003213MaleYesCaucasian560 13.36438386517MaleNoAA480 57.87241716712FemaleYesCaucasian138 37.72825254413MaleYesCaucasian0 18.7015524647FemaleNoAsian966
Answered 4 days AfterApr 02, 2024

Answer To: This assignment is suppose to be an R studio sheet which is then knited into an R markdown file and...

Mukesh answered on Apr 07 2024
16 Votes
Credit Card Company. A Business Analytics Lab Report.
Credit Card Company. A Business Analytics Lab Report.
ABC
2024-04-06
About project
Suppose you work for a credit card company and were assigned an analytics project for which you decided to apply regression analysis methods. Your supervisor asked you to investigate d
ifferences in credit card balance between males and females, differences in average balance between different ethnicities Caucasians, Asians and African Americans (AA) and address differences in credit card balances between married and non-married. In addition, you were also asked to investigate the effect of Income, Age, and Education on credit card balances.The following observations for a number of potential customers were recorded and stored in a data file named “CreditCards”: balance (average credit card debt for a number of individuals), as well as quantitative predictors: age, education (years of education), marital Status (married or not), income (thousands of dollars), limit (credit limit). (Data file, “CreditCards.csv” is posted on Brightspace).
library(readxl)
library(tidyverse)
library(dplyr)
library(ggplot2)
library(GGally)
# Step 1: Load data and perform exploratory data analysis
credit <- read_excel("C:/Users/vishw/Downloads/creditcards-kbg2csvx.xlsx")
# Assuming 'credit' is your data frame, you can use mutate_at to convert multiple columns to factors
credit <- credit %>%
mutate_at(vars(Gender, Married, Ethnicity), as.factor)
# Structure of data
str(credit)
## tibble [400 × 8] (S3: tbl_df/tbl/data.frame)
## $ Income : num [1:400] 14.9 106 104.6 148.9 55.9 ...
## $ Limit : num [1:400] 3606 6645 7075 9504 4897 ...
## $ Age : num [1:400] 34 82 71 36 68 77 37 87 66 41 ...
## $ Education: num [1:400] 11 15 11 11 16 10 12 9 13 19 ...
## $ Gender : Factor w/ 2 levels "Female","Male": 2 1 2 1 2 2 1 2 1 1 ...
## $ Married : Factor w/ 2 levels "No","Yes": 2 2 1 1 2 1 1 1 1 2 ...
## $ Ethnicity: Factor w/ 3 levels "AA","Asian","Caucasian": 3 2 2 2 3 3 1 2 3 1 ...
## $ Balance : num [1:400] 333 903 580 964 331 ...
1. Do an exploratory analysis of your data (know your data, variable types, generate visuals).
# Summary of data set
summary(credit)
## Income Limit Age Education Gender
## Min. : 10.35 Min. : 855 Min. :23.00 Min. : 5.00 Female:207
## 1st Qu.: 21.01 1st Qu.: 3088 1st Qu.:41.75 1st Qu.:11.00 Male :193
## Median : 33.12 Median : 4622 Median :56.00 Median :14.00
## Mean : 45.22 Mean : 4736 Mean :55.67 Mean :13.45
## 3rd Qu.: 57.47 3rd Qu.: 5873 3rd Qu.:70.00 3rd Qu.:16.00
## Max. :186.63 Max. :13913 Max. :98.00 Max. :20.00
## Married Ethnicity Balance
## No :155 AA : 99 Min. : 0.00
## Yes:245 Asian :102 1st Qu.: 68.75
## Caucasian:199 Median : 459.50
## Mean : 520.01
## 3rd Qu.: 863.00
## Max. :1999.00
Create bar chart for Gender
ggplot(credit, aes(x = Gender)) +
geom_bar(fill =...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here