Skip to the content.

README

Built in public, on purpose

Sam Castillo is a Massachusetts entrepreneur. He studied mathematics and actuarial science at the University of Massachusetts Amherst, climbed through corporate analytics, and now owns Predictive Insights AI and LEARN AI.

Clients hire Sam and buy the products at Predictive Insights AI. SamWiki is the proof behind that business: live demos, source, and notes in one index, ranked so a customer, a student, or a collaborator can see what shipped and how hard it is.

Why one business resource beats a pile of repos

There is always someone smarter out there. The edge is putting the work where people can use it together. This is not a zero-sum game. It is a cooperative one.

Sam

Trust

Testimonials

Notes from clients, collaborators, and a mentor.

Hire

He was able to accomplish this all under the budget I set aside for the project. He discovered patterns in the data that I never expected to see, pairing his expertise with my industry knowledge perfectly. I’d strongly recommend Sam for any data task you may have.

Veteran entrepreneur

Besides being easy to work with, he has been extremely consistent with project management. We have had many tight deadlines and last-minute changes, but he always provided me with clear instructions. His talent, demeanor, professionalism, and attitude speak volumes.

Video editor, motion graphics and 2D animation

Sam took action and created a data visualization survey to better understand which tools others were using so that we could tailor design decisions to match our end users. He goes out of his way to improve the work experience for others. He takes action when it is needed.

Senior product manager, healthcare analytics

Sam is making predictive analytics approachable and accessible to new talent in the actuarial field. It’s a tough subject and a hard thing to do, but he has proven he’s up to the task. Sam is the kind of hard working, humble, smart person everyone wants to work with.

Mentor, product and education advisor

He immediately stood out as someone that values hands-on experience over theorizing. Sam’s real world experience on how to promote a business would make him an asset to any team.

Founder, AI-powered data visualization

Technical projects can often have many unknowns, but Sam always knew and expressed what the overarching end goal was. The coordination he did between the different members, and making sure everyone had the things they needed, was the reason everything moved along.

Freelance funnel builder, landing pages and AI automation

The challenge ladder

Difficulty is a level, the same way a game asks you to pick one before you play. Choose a rank and test yourself. The line on each card says who the project is for.

Every card has Contribute / Open a PR. Fork the project, make the improvement, and send it back. You are joining the team.

The public index

SamWiki lists the original public work in mathematics, machine learning, and actuarial science. A Live link opens a demo. Source opens the repository. Notes stay next to the code.

Much of the math was built at the University of Massachusetts Amherst, on Sam’s own time. The pages are being brought up to one GitHub Pages look.

Search by name, language, topic, or who a project is for. Forks of other projects stay off this index. Training notes from the previous homepage are on the Running page. Also on this site: Home, About, and Code.

For a forecast, a model, or a product, go to Predictive Insights AI. Linktree holds the other off-site links.

40 public projects

Level 1 · Beginner 9

Notes, sites, and first looks. A place to start, then pass what you learn back to the team.

Level 1 Beginner

Companion to the Text Introduction to Statistical Learning

Who is this for? ISL reading companions

Updated 2017-12-17

Level 2 · Intermediate 14

Shiny apps and guided tutorials. The central limit theorem explorer is this level.

Level 2 Intermediate

Clustering

HTML

Explanation, discussion, simulations, and comparisons of clustering methods

Who is this for? first clustering notes

Updated 2018-05-06

Level 2 Intermediate

A container for data sets to help actuaries who are practicing predictive analytics

Who is this for? actuarial exam prep

Updated 2026-04-10

Level 3 · Advanced 13

Actuarial depth and models you finish yourself. Loss development triangles are this level.

Level 3 Advanced

MAS-I

HTML

Study Notes and Code from Modern Actuarial Statistics I

Who is this for? actuarial exam prep

Updated 2025-12-04

Level 3 Advanced

Field notes from a Hetzner + Tailscale + Nginx + Ollama build: how to run a local LLM ethically and safely for nonprofit workforce training.

Who is this for? self-hosted LLM operators

Updated 2026-10-01

Level 4 · Painfully challenging 4

Research math and machine learning. Prior weights in XGBoost, the Riemann zeta function, and P vs NP live here.