Skip to content

Instantly share code, notes, and snippets.

View minghao912's full-sized avatar

Ming minghao912

View GitHub Profile
@minghao912
minghao912 / hw4q3.ipynb
Created October 20, 2022 01:56
MATH 170E HW 4 Q3
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@minghao912
minghao912 / attempt.ipynb
Created November 4, 2022 23:39
C&EE 181/281 HW 2 Q4
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@minghao912
minghao912 / hw3q1.py
Last active March 10, 2023 02:04
C&EE 185/285 HW3 Q1: Code for Monte Carlo Simulation
import random
# Values given in table 3
# In the format [car, transit, taxi]
given_mode_choice_probabilities = [
[0.75, 0.23, 0.02],
[0.93, 0.06, 0.01],
[0.21, 0.41, 0.38],
[0.09, 0.24, 0.67],
[0.66, 0.13, 0.21],