R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.

#Que 1: A list of at least 3 columns (or values) in your data which are unclear until you read the documentation.

1.Interest_rate_spread: when seen directly in dataset, could’nt actually got the meaning of this column.After reading the dataset documentation, i have understood this column values represents the interest rate charged by banks on loans to private sector customers minus the interest rate paid by commercial or similar banks for demand, time, or savings deposits.

2.loan_type : This column has 4 different values in my dataset,as type1,type2,type3. There are 3 differnet types of loans provided by banks ,and this column helps in distingush on which loan type bank approved for specific customer.

3.interest_only : After reading the documentation, i understood this column helps in understanding whether the customer has to pay only interest or has any other payments like insurance,maintainance fee or any loan service fee.

#Que 2:At least one element or your data that is unclear even after reading the documentation Loan_type : The explanation for this column is not satisfactory in the documentation.Loan_type is categorized into 3 type names type1, type2 and type3 but the exact discription is missing.

#Que 3:Build a visualization which uses a column of data that is affected by the issue you brought up in bullet #2, above. In this visualization, find a way to highlight the issue, and explain what is unclear and why it might be unclear.

Loan <- read.csv("C:/Users/vj/Desktop/Loan.csv")
library(ggplot2)
library(dplyr)
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
result <- aggregate(Loan$income,na.rm=T,by=list(Loan$loan_type), mean)
result
##   Group.1        x
## 1   type1 7557.573
## 2   type2 4816.337
## 3   type3 5674.653
barplot(result$x, names.arg=result$Group.1, xlab="Loan type", ylab="Average upfront charges ", col=rainbow(6),
        main="Loan type vs Avg upfront charges",border="black")

From above plot we could predict that type1 loan type has significantly more upfront charges than type2 and type3, apart from that no predictions can be made from above plot.

Significant risks:

1.The unclear or inconsistent data in the “upfront_charges” column can lead to incorrect analysis and decisions. 2.From above plot,we can see which type of loans did customers took, but there is no conlusion we could draw from this plot as we don’t know what are types of loans. 3.Misinterpretation of the data can result in poor business decisions or inaccurate risk assessments.

mitigation strategies:

1.Clearly document any data quality issues, assumptions, and transformations applied to the data. 2.Validate the data against a trusted source or business rules to ensure accuracy.