Question

In: Computer Science

Financial Condition of Banks (5 points). The file Banks.csv includes data on a sample of 20...

Financial Condition of Banks (5 points). The file Banks.csv includes data on a sample of 20 banks. The “Financial Condition” column records the judgment of an expert on the financial condition of each bank. This outcome variable takes one of two possible values—weak or strong—according to the financial condition of the bank. The predictors are two ratios used in the financial analysis of banks: TotLns&Lses/Assets is the ratio of total loans and leases to total assets and TotExp/Assets is the ratio of total expenses to total assets. The target is to use the two ratios for classifying the financial condition of a new bank.

  1. Using R programming run a logistic regression model (on the entire dataset) that models the status of a bank as a function of the two financial measures provided. Specify the success class as weak (this is similar to creating a dummy that is 1 for financially weak banks and 0 otherwise), and use the default cutoff value of 0.5. Show code. (2 points)

data set

https://drive.google.com/file/d/1pnIK-EKkkynPY1sp_LuK42JdORBdbDn6/view?usp=sharing

Solutions

Expert Solution

The given data set has Bank data with 5 columns and 20 rows. The columns are Obs, Financial Condition(FC), TotCap/Assets(TCA), TotExp/Assets(TEA), TotLns&Lses/AssetsFinca(TLLA).

Step 1: Load the Dataset

  bankdata <- read.csv("folder path\\bank.csv")

Step 2 Run a Logicstic Regression model

 FC.data = glm(formula = FC ~ TCA + TEA + TLLA, data = bankdata, family = binomial)

Step 3: Print result

  summary(FC.data) 

Result:

Call: glm(formula = FC ~ TCA + TEA + TLLA, family = binomial, data = bankdata) Deviance Residuals: Min 1Q Median 3Q Max -3.267e-05 -2.100e-08 0.000e+00 2.100e-08 3.358e-05 Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -686.10 551916.96 -0.001 0.999 TCA -13.71 11273.27 -0.001 0.999 TEA 3353.22 2938727.45 0.001 0.999 TLLA 677.51 624215.61 0.001 0.999 (Dispersion parameter for binomial family taken to be 1) Null deviance: 2.7726e+01 on 19 degrees of freedom Residual deviance: 2.6647e-09 on 16 degrees of freedom AIC: 8 Number of Fisher Scoring iterations: 25

confint() function is Confidence Intervals for Model Parameters.

Computes confidence intervals for one or more parameters in a fitted model. The default method can be called directly for comparison with other methods.

 confint.default(FC.data)  2.5 % 97.5 % (Intercept) -1082423.47 1081051.27 TCA -22108.91 22081.49 TEA -5756446.74 5763153.19 TLLA -1222762.60 1224117.62 Analysis of Variance also termed as ANOVA. It is procedure followed by statisticans to check the potential difference between scale-level dependent variable by a nominal-level variable having two or more categories. > anova(FC.data) Analysis of Deviance Table Model: binomial, link: logit Response: FC Terms added sequentially (first to last) Df Deviance Resid. Df Resid. Dev NULL 19 27.726 TCA 1 8.0288 18 19.697 TEA 1 8.6694 17 11.028 TLLA 1 11.0278 16 0.000 The below function is for Chi Square Test performed on the model. > anova(FC.data,test = "Chisq") Analysis of Deviance Table Model: binomial, link: logit Response: FC Terms added sequentially (first to last) Df Deviance Resid. Df Resid. Dev Pr(>Chi) NULL 19 27.726 TCA 1 8.0288 18 19.697 0.0046040 ** TEA 1 8.6694 17 11.028 0.0032361 ** TLLA 1 11.0278 16 0.000 0.0008976 *** --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Related Solutions

10.1. Financial Condition of Banks. The file Banks.xls includes data on a sample of 20 banks....
10.1. Financial Condition of Banks. The file Banks.xls includes data on a sample of 20 banks. The Financial Condition column records the judgment of an expert on the financial condition of each bank. This dependent variable takes one of two possible values—weak or strong—according to the financial condition of the bank. The predictors are two ratios used in the financial analysis of banks: TotLns&Lses/Assets is the ratio of total loans and leases to total assets and TotExp/Assets is the ratio...
Data, information, and file structures are necessary components of an EHR. This includes: types of data...
Data, information, and file structures are necessary components of an EHR. This includes: types of data and their formats, process requirements (i.e., vocabulary standards), types of data architectures, data dictionaries, metadata, data management and data modeling. discuss the meaning of: Data governance Data quality Data integrity Please include the sources as well as refrences  
Banks are an important part of Australia’s financial system and their business includes taking deposits from...
Banks are an important part of Australia’s financial system and their business includes taking deposits from the public and providing loans to households and businesses. What is a reserve ratio and explain how a fractional banking system operates? Following the 2008 global financial crisis (GFC), the real-world deposit multiplier tended to be way smaller than the simple multiplier. Explain why that was the case and how it would have affected the money supply in the economy.
Please give the solution for the following question using R program 10.1 Financial Condition of Banks....
Please give the solution for the following question using R program 10.1 Financial Condition of Banks. The file Banks.csv includes data on a sample of 20 banks. The “Financial Condition” column records the judgment of an expert on the financial condition of each bank. This outcome variable takes one of two possible values—weak or strong—according to the financial condition of the bank. The predictors are two ratios used in the financial analysis of banks: TotLns&Lses/Assets is the ratio of total...
The accompanying data file contains 20 observations for t and yt.
The accompanying data file contains 20 observations for t and yt. t 1 2 3 4 5 6 7 8 9 10 yt 12.1 12.2 9.3 12.8 8.6 9.3 14.3 12.1 11.5 15.1 t 11 12 13 14 15 16 17 18 19 20 yt 13.5 9.8 9.6 14.5 14.9 12.4 11.2 8.8 11.8 10 a. Discuss the presence of random variations. The smoother appearance of the graph suggests the presence of random variations. The smoother appearance of the graph...
The accompanying data file contains 20 observations for t and yt. The data are plotted below....
The accompanying data file contains 20 observations for t and yt. The data are plotted below. t 1 2 3 4 5 6 7 8 9 10 yt 10.8 14.1 10.3 10.9 11.3 13.5 10.7 9.2 8.8 12 t 11 12 13 14 15 16 17 18 19 20 yt 9.8 11 15.1 12.5 12.9 12.3 9 14.9 10.1 11.9 b-1. Use the exponential smoothing method to make forecasts with α = 0.2. (Round intermediate calculations to at least 4...
Assess the financial situations of commercial banks over the last 5 years.
Assess the financial situations of commercial banks over the last 5 years.
A simple random sample of 20 customers is taken from a customer information file and the...
A simple random sample of 20 customers is taken from a customer information file and the average age is 27. The sample standard deviation s is found to be 5.                                              (5 marks) Test the hypothesis that the population mean age is less than 29 using the critical value approach and a 0.10 level of significance. Test the hypothesis that the population mean age is different from 30 using the 0.05 level of significance.
A simple random sample of 20 customers is taken from a customer information file and the...
A simple random sample of 20 customers is taken from a customer information file and the average age is 27. The sample standard deviation s is found to be 1.5.                                                 (5 marks) Test the hypothesis that the population mean age is less than 29 using the critical value approach and a 0.10 level of significance. Test the hypothesis that the population mean age is different from 30 using the 0.05 level of significance. .
The following data for a random sample of banks in two cities represent the ATM fees...
The following data for a random sample of banks in two cities represent the ATM fees for using another​ bank's ATM. Compute the range and sample standard deviation for ATM fees for each city. what is the standard deviation for city A? what is the standard deviation for city B? Which city has the most dispersion based on​ range? Which city has more dispersion based on the standard​ deviation? City A 2.5 1.0 1.0 0.0 2.0 City B 1.25 1.00...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT