Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data for this Homework num _ borrowers _ per _ state.csv total _ loans _ per _ state.csv This is the same student loan data
Data for this Homework
numborrowersperstate.csv
totalloansperstate.csv
This is the same student loan data weve used in class, but extended over several years. For each state and year, the data has:
Number of US borrowers who currently have an outstanding student loan
Total outstanding balance for the state
Recall that the data reflects current state the values might go up or down each month depending on whether new people took on loans, or existing borrowers paid money off.
Part Questions about the Data
This part of your solution will be autograded. When you find this assignment on gradescope, the first part will ask you the following questions; type or select your answers. You must compute the answers to these questions programmatically. Gradescope will confirm your answers are correctincorrect
Check the output! Gradescope can be a little picky about formatting, and we dont want you to lose points for putting extra characters or whitespace in an answer. Make sure youve got the correct answer to each question for full credit. Note that the original dataset has monetary values in millions eg $ $ million but the homework questions want the real values $ million $ million
Answer these questions make sure you compute these answers in your Python solution:
How many borrowers had student loans in
What is the total outstanding balance for all students as of
What is the average outstanding balance per student in
What is Nevadas average outstanding balance over all years in the dataset?
Which state had the greatest balance on average over all years in the dataset, and how much was it
Which state had the lowest balance on average over all years in the dataset, and how much was it
On average, how much did the number of borrowers in a given state change per year? Assume that, in the first year, the number of borrowers did not change. Compute your first value as the change from to Negativespositives dont matter here. Going from borrowers to or from to is a change of person.
Part Visualization
Create two Python plots and upload them as screenshotsdownloads
Plot #: A histogram showing the average outstanding balance per borrower in each state, in Note that a histogram shows a frequency distribution ie number of states within a range of outstanding balances and you should not create a plot with one bar per state.
Plot #: A line chart showing how the average outstanding balance per borrowing changed over time. This chart should have two lines, comparing any two states you choose.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started