Homework 2

Jaryt Salvo

Date: 9/18/24

Fall 2024 | MATH6410 Probability Theory


This project contains solutions to Homework 2 from the Probability Theory course (Math 6410) using Clojure. The code provided here demonstrates a functional programming approach to solving various probability problems, including discrete and continuous probability distributions, expected values, and variance calculations.

The code is organized into different sections corresponding to each homework problem, with detailed explanations of the logic and mathematical steps involved. By using Clojure and its associated libraries, such as scicloj.clay for rendering, tablecloth for data manipulation, and fastmath for mathematical operations, we provide a comprehensive solution set for the assigned problems.

Utils

The utils.clj file contains various utility functions and helpers used throughout the homework solutions. It includes:

  • Formatting functions for markdown and LaTeX rendering
  • Statistical functions for probability distributions
  • Helper functions for calculations and data manipulation

These utilities are designed to streamline the problem-solving process and provide reusable components for statistical computations.

The code in the src/assignments folder was rendered with Clay and deployed with Github Pages.

source: src/index.clj