Q3. Decision Tree and Random Forest Models (17 points) (10 points) a) Using the dataset “trainData”, fit the following classification models below using all the predictors in “trainData” and “Completed” as the response variable. i) Decision Tree Model (call it model_dt). ii) Random Forest Model (call it model_rf). Use metric = “Accuracy”, trControl = trainControl(method=“cv”, number=5) for both models. Display the summary of both models and state the average accuracy, sensitivity and specificity for both the resampled models. Interpret “Accuracy”, “Sensitivity” and “Specificity” values and explain your overall conclusion about the models. Which model performs better? (4 points) b) Using testData, Using testData, predict the probability of a student completing the course, and output the average of these probabilities for each of the models below: i) Decision tree model (model_dt) ii) Random forest model (model_rf) (3 points) c) Using decision tree model, what is the overall predicted completion rate in the test dataset? How does it compare to the training dataset?
Blog
If a household that owns its home chooses to take the standa…
If a household that owns its home chooses to take the standard deduction instead of itemizing their “personal” expenses on “Schedule A” of their federal income tax return (Form 1040), the federal tax savings associated with property tax and mortgage interest expenses
The creation and development of Fannie Mae and Freddie Mac e…
The creation and development of Fannie Mae and Freddie Mac established the framework for a liquid secondary market for residential mortgages. In 2024, the share of all residential mortgage loans owned or securitized by Fannie Mae and Freddie Mac was approximately:
Suppose that a mortgage bank “locked in” an interest rate fo…
Suppose that a mortgage bank “locked in” an interest rate for a prospective borrower at 6.5%. However, prior to the loan closing, the market mortgage rate falls to 5.5 %. In this scenario, the mortgage banker would be most concerned with which of the following risks?
In my interview with an industry professional, UF Clinical P…
In my interview with an industry professional, UF Clinical Professor Steven Tufts, I asked him how he markets his brokerage franchises to potential buyers, sellers, and agents that work for other brokerage firms. Which of the following best describes his answer?
Which of the following types of loans are often used to prov…
Which of the following types of loans are often used to provide short-term financing for “transitional” properties (e.g., properties that are currently experiencing heightened vacancies, or that need to be redeveloped or renovated before they can be stabilized)?
Suppose you are considering the purchase of an apartment bui…
Suppose you are considering the purchase of an apartment building that has 12 units that can be rented out at $1,050 per month. You have estimated operating expenses and expected vacancy and collection losses for the first year to be $35,700 and $30,240, respectively. No capital expenditures are forecasted. You also have estimated that you will be able to generate an additional $3,840 in the first year of rental operations from garage rentals on the property. If the expected purchase price of the property is $1,100,000 and you are planning on borrowing 90% of the purchase price, calculate the debt yield ratio.
After a contract for sale has been singed by both parties, t…
After a contract for sale has been singed by both parties, the party who has the right to obtain ownership of a freehold estate when closing occurs is said to have:
Suppose that you decide to purchase a property that has annu…
Suppose that you decide to purchase a property that has annual property taxes of $2,427.22. If the closing occurred on March 13th, calculate your share (Buyer’s share) of the total property taxes. For this problem, assume that we are dealing with a 365-day calendar year. Assume the day of closing belongs to the buyer. (There are 31 days in January and 28 in February.)
In my interview with Steve DeRose, he mentioned that he earn…
In my interview with Steve DeRose, he mentioned that he earned three degrees from the University of Florida. His masters degree was a