Barnabas Sng

I’m a mathematics and computer science graduate from the National University of Singapore, drawn to problems where rigorous maths meets real-world data.

Degree
B.Sc. (Hons) double major, May 2026
GPA
4.34 out of 5
Internship
A*STAR, 2024, with its Research Internship Award

Projects

My MA4198 capstone at the National University of Singapore, November 2025

Monte Carlo methods and their applications to finance

Same rate, smaller constant. The half-width of each estimator’s 95% confidence interval against the number of payoff samples, both axes logarithmic, for a one-year call (S0 = 100, K = 90, r = 3%, σ = 20%), computed in your browser from a fixed seed. Both fall like 1/√n, the slope of −½ marked by the triangle; antithetic pairs sit lower for the same budget, each pair counted as two payoff samples.
Show the numbersHide the numbers
Half-width of the 95% confidence interval by number of payoff samples, for a one-year call with a starting price of 100 and a strike of 90
Payoff samples Plain Monte Carlo Antithetic variates Antithetic ÷ plain

A paper on pricing options by simulation, and on why variance reduction works: antithetic variates, control variates, stratified sampling and importance sampling, benchmarked against the closed-form Black–Scholes price.

Result. In the paper’s European-call test (S0 = 50, K = 40), antithetic pairs cut the standard error from 0.067 to 0.024 for the same number of payoff samples.

Built with Python and LaTeX

A self-hosted web app, built full stack with agentic development

Aurora Calendar

The simulated demo on the project page, in brief: an email from a dental clinic becomes a proposed Thursday appointment, outlined until it is approved in the review queue.

A privacy-first calendar aiming at Google Calendar feature parity with zero Google integration. It reads email over read-only IMAP and a local LLM turns messages into proposed events; it also syncs over CalDAV and installs as a PWA with push reminders.

Invariant. No event found in an email reaches the calendar until you approve it in the review queue.

Built with React, TypeScript, NestJS and PostgreSQL with Prisma, deployed with Docker Compose on a self-hosted VPS

My first machine-learning project, from 2023

Singapore HDB resale price predictor

Higher floors, higher prices, for every flat type. Median resale price for each storey band and flat type across the dataset’s 157,681 sales, from $240,000 for a 2-room flat on storeys 1 to 3 to $1,210,000 for a 5-room flat on storeys 46 to 48. Bands with fewer than 10 sales of a type are left out.
Show the numbersHide the numbers
Median HDB resale price by storey band and flat type, January 2017 to July 2023. A dash marks a band with fewer than 10 sales of that type.
Storeys2-room3-room4-room5-roomExecutive
1–3$240,000$300,000$410,000$500,000$640,000
4–6$241,000$315,000$433,000$525,000$659,499
7–9$250,000$323,000$450,000$540,000$668,000
10–12$258,000$330,000$457,000$550,000$680,000
13–15$262,000$360,000$487,888$564,000$650,000
16–18$273,000$398,000$518,000$610,000$675,000
19–21$280,000$435,000$610,000$690,000$800,000
22–24$310,000$475,000$642,000$715,000$996,000
25–27$304,500$548,000$735,000$830,000–
28–30–$588,000$800,000$910,000–
31–33–$620,000$830,000$1,012,500–
34–36–$608,500$850,000$1,053,000–
37–39–$612,500$860,000$1,039,000–
40–42–$659,000$883,000$1,138,888–
43–45––$985,000––
46–48––$1,030,000$1,210,000–

An XGBoost model that predicts a flat’s resale price from its town, flat type, flat model, storey, floor area, remaining lease and its block’s amenities, built on a dataset of 157,681 transactions from January 2017 to July 2023.

Result. A test RMSE of about $48,080 against a median price of $455,000; remaining lease, floor area and storey range were the features the trees split on most often.

Built with Python, pandas, XGBoost, scikit-learn and Jupyter

Also. SoCCer Manager, a team project for NUS CS2103T: a Java desktop app, with both a command line and a GUI, for managing players, staff and events across teams, with filtering, sorting and conditional queries over a validated data model. See the team repository and the user guide.

Experience and education

  1. Research intern

    A*STAR

    to

    A*STAR Research Internship Award

    • Built a discrete-event simulator of EV battery-swapping stations in Singapore, and used genetic algorithms to allocate their resources.
    • Researched deep probabilistic models for deriving a probability distribution from a set of demand forecasts.
    • Used parallel processing to cut an industry project’s application start-up time by 70%.
  2. Communications peer tutor

    National University of Singapore

    to

    • Coached undergraduates on technical and academic presentations.
    • Ran sessions on interview and professional communication for graduate students.
    • Designed and delivered workshops on workplace communication.
  3. B.Sc. (Hons), Mathematics and Computer Science

    National University of Singapore

    Graduated

    GPA 4.34 out of 5

    A double major. Courses include Design and Analysis of Algorithms, Data Structures and Algorithms, Foundations of Machine Learning, Probability, Linear and Non-Linear Optimisation, Stochastic Processes and Regression Analysis.

Skills

Languages
Python, Java, C, SQL
Libraries
PyTorch, scikit-learn
Areas
Mathematics, machine learning, AI, agentic development

Contact

barnabassng10@gmail.com

My resume has the full details.