Question

In: Statistics and Probability

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 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.

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.

a. Write the estimated equation that associates the financial condition of a bank with its two predictors in three formats:

i. The logit as a function of the predictors

ii. The odds as a function of the predictors

iii. The probability as a function of the predictors

b. Consider a new bank whose total loans and leases/assets ratio = 0.6 and total expenses/assets ratio = 0.11. From your logistic regression model, estimate the following four quantities for this bank (use R to do all the intermediate calculations; show your final answers to four decimal places): the logit, the odds, the probability of being financially weak, and the classification of the bank (use cutoff= 0.5).

c. The cutoff value of 0.5 is used in conjunction with the probability of being financially weak. Compute the threshold that should be used if we want to make a classification based on the odds of being financially weak, and the threshold for the corresponding logit.

d. Interpret the estimated coefficient for the total loans & leases to total assets ratio (TotLns&Lses/Assets) in terms of the odds of being financially weak.

e. When a bank that is in poor financial condition is misclassified as financially strong, the misclassification cost is much higher than when a financially strong bank is misclassified as weak. To minimize the expected cost of misclassification, should the cutoff value for classification (which is currently at 0.5) be increased or decreased?

banks.csv data file

Obs Financial Condition TotCap/Assets TotExp/Assets TotLns&Lses/Assets
1 1 9.7 0.12 0.65
2 1 1 0.11 0.62
3 1 6.9 0.09 1.02
4 1 5.8 0.1 0.67
5 1 4.3 0.11 0.69
6 1 9.1 0.13 0.74
7 1 11.9 0.1 0.79
8 1 8.1 0.13 0.63
9 1 9.3 0.16 0.72
10 1 1.1 0.16 0.57
11 0 11.1 0.08 0.43
12 0 20.5 0.12 0.8
13 0 9.8 0.07 0.69
14 0 7.9 0.08 0.53
15 0 9.6 0.09 0.73
16 0 12.5 0.09 0.3
17 0 18.3 0.08 0.49
18 0 7.2 0.11 0.55
19 0 14 0.08 0.44
20 0 8.3 0.08 0.51

Solutions

Expert Solution


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...
The Book of R (Question 20.2) Please answer using R code. Continue using the survey data...
The Book of R (Question 20.2) Please answer using R code. Continue using the survey data frame from the package MASS for the next few exercises. The survey data set has a variable named Exer , a factor with k = 3 levels describing the amount of physical exercise time each student gets: none, some, or frequent. Obtain a count of the number of students in each category and produce side-by-side boxplots of student height split by exercise. Assuming independence...
Please Provide the answers and Solution for this question. Question One The financial records of Manchester...
Please Provide the answers and Solution for this question. Question One The financial records of Manchester Corporation were destroyed by fire at the end of 2017. Fortunately, the controller had kept the following statistical data related to the income statement and the balance sheet in addition to the published balance sheet of the year 2017: The beginning merchandise inventory was $92,000 and decreased 20% during the current year. Sales discounts amount to $17,000. Interest expense was $20,000. The income tax...
Please use RStudio to answer the question and give the R command: please load data use...
Please use RStudio to answer the question and give the R command: please load data use data: library(MASS) data(cats) Use the “cats” data set to test for the variance of the body weight in male and female cats
Can You please Answer the question using R studio and R cloud Telomeres are complexes of...
Can You please Answer the question using R studio and R cloud Telomeres are complexes of DNA and protein that cap chromosomal ends. They consist of the same short DNA sequence TTAGGG repeated over and over again. They tend to shorted with cell divisions and with advancing cellular age, which will lead to chromosome instability or apoptosis (programmed cell death). Eukaryotic cells have the ability to reverse telomere shortening by expressing telomerase, an enzyme that extends the telomeres of chromosomes....
Please solve all of the question using R and do clarify the answers. Using the (SATGPA)...
Please solve all of the question using R and do clarify the answers. Using the (SATGPA) data set in (Stat2Data) package. Test by using ?= .01. 1) Create the following three variables and then print out all the six variables. A) Create new variable "SAT", which is the sum of (MathSAT) and (VerbalSAT). B) Create second new variable ("SATLevel"), and assign the value of( "SATLevel") as 1 when SAT<=1100, 2 when 1100<SAT<=1200, 3 when 1200<SAT<=1300, and 4 when SAT>1300. C)Create...
Please give me solution and pick from multiple choice Using the following returns, calculate the average...
Please give me solution and pick from multiple choice Using the following returns, calculate the average returns for Abundant and Slim. Returns (%) Year Abundant Slim 2006 8 15 2007 5 -4 2008 -6 -9 2009 7 11 2010 12 6 2011 9 10 a. The average return for Share Abundant is 5.83% and 4.83% for Share Slim. b. The average return for Share Abundant is 5.4% and 2.8% for Share Slim. c. The average return for Share Abundant is...
Solve following using Program R studio. Please show code and results. Thank you. 1. Assume that...
Solve following using Program R studio. Please show code and results. Thank you. 1. Assume that ? is a random variable follows binomial probability distribution with parameters 15 and 0.25.   a. Simulate 100 binomial pseudorandom numbers from the given distribution (using set.seed(200)) and assign them to vector called binran. b. Calculate ?(? < 8) using cumulative probability function. c. Calculate ?(? = 8) using probability distribution function. d. Calculate the average of simulated data and compare it with the corresponding...
Solve following using Program R studio. Please show code and results. Thank you. 3. Assume that...
Solve following using Program R studio. Please show code and results. Thank you. 3. Assume that ? is a random variable represents lifetime of a certain type of battery which is exponentially distributed with mean 60 hours.   a. Simulate 500 pseudorandom numbers (using set.seed(10)) and assign them to a vector called expran. b. Calculate average of simulated data and compare it with corresponding theoretical value. c. Calculate probability that lifetime is less than 50 hours using cumulative probability function. d....
*Please answer the following question using R code* 3. A bank wants to get new customers...
*Please answer the following question using R code* 3. A bank wants to get new customers for their credit card. They try two different approaches in their marketing campaign. The first promises a "cash back" reward, and the second promises low interest rates. A sample of 500 people is mailed the first brochure; of these, 125 get the credit card. A separate sample of 500 people is mailed the second brochure; 150 get the credit card. Are the two campaigns...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT