# CLASS HOMEWORK | 20201007 [TOC] Using data : [**Statlog German Credit Data Data Set**](https://archive.ics.uci.edu/ml/datasets/statlog+(german+credit+data)) Using language : [R](https://www.r-project.org/) Using package : [ggplot2](https://ggplot2.tidyverse.org/) # PLOT 1 Attribute 2 : Duration in month **(numerical)** Attribute 5 : Credit amount **(numerical)** **R source code :** ```r ggplot(data1, aes(duration, creditAmount, colour = duration))+geom_point()+geom_smooth() ``` ![](https://i.imgur.com/UZv8SB0.png) **brief analysis :** *Credit amount* ==rising== when *Duration* is ==high==. # PLOT 2 Attribute 5 : Credit amount **(numerical)** Attribute 13: Age in years **(numerical)** **R source code :** ```r ggplot(data1, aes(age, creditAmount, colour = age))+geom_point()+geom_smooth() ``` ![](https://i.imgur.com/usrdpiO.png) **brief analysis :** *Age* is ==not== an important factor for the total money one is saving. # PLOT 3 Attribute 5 : Credit amount **(numerical)** Attribute 12 : Property **(qualitative)** **R source code :** ```r ggplot(data1, aes(creditAmount, property, colour = creditAmount))+geom_point()+geom_smooth() ``` ![](https://i.imgur.com/dfhsurX.png) **brief analysis :** *Class A122*,which means have property like building society savings agreement or life insurance, has a maximum Credit amount almost **twice** than in *class A121*, which has real estate property. # PLOT 4 Attribute 5 : Credit amount **(numerical)** Attribute 9 : Personal status and sex **(qualitative)** **R source code :** ```r ggplot(data1, aes(creditAmount, personalStatus, colour = creditAmount))+geom_point() ``` ![](https://i.imgur.com/CckX6Bh.png) **brief analysis :** *Single Male(A93)* has a higher saving rate than others in general. # PLOT 5 Attribute 5 : Credit amount **(numerical)** Attribute 17: Job **(qualitative)** **R source code :** ```r ggplot(data1, aes(creditAmount, job, colour = creditAmount))+geom_point() ``` ![](https://i.imgur.com/4tFh06k.png) **brief analysis :** *Unemployed/Unskilled non-resident* has the lowest saving rate than others in general.