Topics /

Math & Algorithms

The most popular blog posts about math & algorithms on Hacker News. 221 posts.

2023
121

The Garden of Computational Delights

Beneath the utilitarian purpose of computation, computing is also a source of delight and wonder . Software is not just databases and mail merges or SaaS and spreadsheets; it's creative coding and simulated cities , code poetry and bulletin board systems . It's websites that dazzle and iPhone apps that make the heart…

122

Improving mathematical reasoning with process supervision

We’ve trained a model to achieve a new state-of-the-art in mathematical problem solving by rewarding each correct step of reasoning (“process supervision”) instead of simply rewarding the correct final answer (“outcome supervision”). In addition to boosting performance relative to outcome supervision, process…

123

Bayes is guaranteed to overfit

The myth A few years ago I saw a StackOverflow question (but I cannot find it now): allegedly Andrew Gelman blogged that Bayesian models would not overfit and would only underfit (I also cannot find Andrew’s blog post now but I think what he meant by “Bayesian models only underfits” is that you can never fully model…

134

Statistical Arbitrage – An Easy Walkthrough

Statistical arbitrage (stat arb) is a pillar of quantitative trading that relies on mean reversion to predict the future returns of an asset. Mean reversion believes that if a stock has risen higher it’s more likely to revert in the short term which is the opposite of a momentum strategy that believes if a stock has…

143

High Precision Mapping from Scratch

The fun of owning rural property is that knowing where your land actually starts and ends is a guess usually. Sure, you have a parcel description, and maybe even an online service with “official” GIS boundaries (for us here in New Brunswick, this is GeoNB ). However, since it’s in the middle of the forest, the odds of…

144

Lindenmayer Systems

Originally developed by Aristid Lindenmayer in 1968, an L-System is a formalism to generate self-similar structures. Although, L-Systems are capable of generating famous fractals like the Sierpinski Triangle (Axiom: FXF--FF--FF, F → FF , X → --FXF++FXF++FXF-- , angle = 60 ) or the Gosper Curve (Axiom: FX, X →…

145

SVD Image Compression

Singular Value Decomposition (SVD) is a fundamental concept in linear algebra, and it is particularly important in the field of machine learning for tasks such as dimensionality reduction, data compression, and noise reduction.

148

An easy-to-implement, arena-friendly hash map

My last article had tips for for arena allocation . This next article demonstrates a technique for building bespoke hash maps that compose nicely with arena allocation. In addition, they’re fast, simple, and automatically scale to any problem that could reasonably be solved with an in-memory hash map. To avoid…