This repository contains the source files for Option Pricing with R, a Quarto book by Dr. Martin Lozano. The book introduces core option-pricing ideas through reproducible R code, numerical examples, and graphics.
Published site: https://mlozanoqf.github.io/tutorial_if/
The current version focuses on:
- Option payoffs and profit diagrams
- Option properties and put-call parity
- Binomial valuation
- Risk-neutral reasoning
- Black-Scholes intuition
- Wiener processes and their role in continuous-time models
- Foundations for future extensions, including Greeks
index.qmd: preface and publication metadata01-payoff-functions.qmd: payoff functions02-options-properties.qmd: option properties and valuation relationships03-wiener-processes.qmd: Wiener processesreferences.qmd: references
The book configuration lives in _quarto.yml.
R/: helper scripts used during rendering_freeze/: cached execution results used by Quarto'sfreeze: auto_book/: generated HTML output created byquarto render.github/workflows/publish.yml: GitHub Actions workflow for rendering and deploying the book to GitHub Pagesstyles.cssand*.htmlpartials: custom navigation, layout, and page behaviorreferences.bib: bibliography
Install Quarto and R, then render the book from the repository root:
quarto renderFor interactive local preview:
quarto previewThe GitHub Actions workflow installs the R packages needed for deployment. For local rendering, the main package set is:
dplyrggplot2kableExtraknitrplotlyrmarkdowntidyrvembedrxfun
Pushing to main triggers the GitHub Actions workflow. The workflow renders the Quarto book and deploys the _book artifact to GitHub Pages.
- Edit the source
.qmdfiles,_quarto.yml,styles.css, or the HTML partials. - Treat
_book/as generated output. - Because
freeze: autois enabled, Quarto reuses cached execution results when source chunks have not changed. - After removing or renaming chapters, check
_quarto.yml,sidebar-chapter-sections.html,_freeze/, and the rendered_book/output for stale references.
This project is licensed under the GNU General Public License v3.0. See LICENCE.