Course materials for Computational Physics B at University of Science and Technology of China (USTC), 2024 Fall.
- TA: Yixuan Li
- Email: yixuanli@mail.ustc.edu.cn
This repository contains TA session materials covering the following topics:
- Programming Basics: C, Python, MATLAB, Julia, R
- Tools: Jupyter Notebook, Anaconda, VS Code/Cursor
- Stochastic Processes: Random processes, Markov chains, Poisson processes
- MCMC: Metropolis-Hastings algorithm, Gibbs sampling
- Notebooks:
Why_Metropolis.ipynb- Understanding the Metropolis algorithmWhy_Variance_of_Monte_Carlo_Is_Important.ipynb- Variance reduction techniquesWeird_Property_of_High_Dim.ipynb- High-dimensional sampling propertiesWhy_Monte_Carlo_in_High_Dim.ipynb- MC in high dimensionsMetropolis_in_High_Dim.ipynb- High-dimensional MetropolisWhy_Class.ipynb- Object-oriented programming for physics simulations
- Classification Problems:
Iris.ipynb- Iris dataset classificationTitanic.ipynb- Titanic survival prediction
- Notes:
ML_Note_Yixuan.md- Machine learning notes
.
├── TA_Session_1/ # Monte Carlo methods and stochastic processes
│ ├── *.ipynb # Jupyter notebooks
│ ├── *.py # Python scripts
│ └── TA_Session_1.md # Session notes
├── TA_Session_2/ # (Upcoming content)
├── TA_Session_3/ # Machine learning basics
│ ├── Iris.ipynb
│ ├── ML_Note_Yixuan.md
│ └── Titanic/
└── Readme.md # This file
- Python 3.x
- Jupyter Notebook
- NumPy, Matplotlib, SciPy
# Clone the repository
git clone <repository-url>
# Install dependencies
pip install numpy matplotlib scipy jupyter
# Start Jupyter
jupyter notebook- HW1: Vectorization
- HW2: Inverse transform sampling
- HW3: Metropolis algorithm
- HW4: High-dimensional sampling
This repository is for educational purposes only.