Skip to content

craigwalton/MortgageSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

211 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mortgage Simulator

A deterministic simulator written in C# can be found in Simulator/ which compares two options that prospective first time buyers are faced with:

  • Buying a property with a mortgage
  • Renting a property and investing any remaining funds.

.NET Python: Lint, format & type check License: MIT

The results of this simulation are presented on a web page in docs/ and hosted at craigwalton.github.io/MortgageSim.

Screenshot of results web page

The Jupyter notebooks in Analysis/ are used to generate the Plotly plots used on the web page.

The numeric results of the simulation are written to the Results/ directory as CSV files.

Limitations and non-goals

This simulator takes no consideration of the affordability of either scenario. Either scenario may result in negative equity.

Costs associated with property purchase (e.g. stamp duty, solicitor fees, mortgage product fees, maintenance fees or mortgage early repayment fees) are not considered.

This simulator only considers the financial ramifications of the two options. It does not consider non-monetary aspects such as the speed of property transactions, the flexibility to make home modifications, or other lifestyle factors.

Data Sources

The following sources were consulted in November 2025 to select appropriate baseline values for the independent variables.

About

A deterministic simulator written in C#, with plots generated Python, presented on a webpage.

Topics

Resources

License

Stars

Watchers

Forks

Contributors