_This website is being refreshed. Thanks for your patience while it has less content than
usual._

Welcome to my professional website, focusing on Nick as a statistician.

**I am an applied statistician with an MS in Biostatistics with, with experience in the
applied health and social sciences – until now mostly in academic institutions.** I enjoy
working in multidisciplinary teams. I've worked in all sorts of fields – everything from
mental health epidemiology, autism services research, large-scale opinion survey research,
spatiotemporal modelling and geography in public health...

I believe my best work has always been done in collaboration with methodologists from
other fields. Although I'm trained as a biostatistician, I've enjoyed working with
methodologists that have been industrial/organizational psychologists, geographers,
research/evaluation folks in health departments, etc...

I care both about analysis _and_ rigorous research design. I gravitate towards
observational/longitudinal research with large and complex samples, and techniques that
answer causal questions. Currently, my favorite tools are structural equation models with
mixed-effects bells and whistles.

Finally, I believe [everybody
counts.](https://sites.lsa.umich.edu/math-lcit/wp-content/uploads/sites/1398/2025/04/220113_ardila_federico_todos_cuentan.pdf)

<mark>I am looking for a job!</mark> Email me at `nchaiyachakorn@gmail.com` if my
statistical toolkit's right up your alley

<!-- end-introduction -->

<!-- collapsible -->
## Professional history

---

**2026, summer.**

It was a privilege to be an **HRTP intern at New York City's Department of Health and
Mental Hygiene.** (I think it used to stand for Health Research Training Program (?)) I
worked with the Bureau of Mental Hygiene's Surveillance team, <u>wrangling data from many
meaningful, very large real-life public health datasets</u> — anonymized patient
discharges (for those in the know, NYS SPARCS), ED admissions data, referrals to mental
health services. I ended up creating an interactive composite indicator dashboard with R
and Shiny – with maps, a sensitivity analysis tool, etc... And, I met fantastic people who
taught me a great deal about work-life balance... so you can be in there for the long
haul.

---

**2024-2026.**

I finally decided to get an **MS in Biostatistics from Oregon Health and Science
University's School of Public Health.** What a privilege to finally get a well-rounded
statistical training... <u>from causal methods with epidemiologists, to clinical trial
design with cancer biostatisticians (alpha-spending! adaptive methods!)</u>

More importantly, I spent two wonderful years interning in an **NIH-funded research
trainee program for pre-doctoral students**, learning how to <u>conceive and plan
secondary data analysis on Medicaid claims</u> (for those in the know, CMS' T-MSIS TAF),
looking at what might be associated with ED use by autistic adolescents in crisis... and
comparing state rates. I learned a great deal about secondary data analysis on large
health datasets - operationalizing analytic cohorts, sets of diagnosis and CPT codes...

I had some fun (but sadly unfinished) side-tracks doing <u>geographical analyses on
provider availability by geography</u> (NPI databases, the "AHRF Health Resource File"),
and cutting my teeth on GIS by measuring overlaps between Census-designated Native
American tribal areas, and Census estimates of actual Native American populations.

---

**2021-2024.**

I picked up an **MSW from Portland State University.** Why? I thought you were a
statistician, Nick? Well, I wanted to learn and do systems-level social work. Most
importantly, it let me take <u>advanced quantitative methods classes at PSU's Psychology
department e.g. structural equation modelling, multilevel modelling!</u> And, it opened a
door or two:

For two wild years, and for some hands-on real-world policy experience, I interned at
**Multnomah County's Joint Office of Homeless Services.** I did various analytic,
planning, and evaluation-adjacent things for Adult Coordinated Access, the Data Team, and
the Supportive Housing Services oversight team. And I served under three chief honchos!

I also spent a summer as an **Oregon Summer Fellow at the Oregon Health Authority's Health
Policy and Analytics** unit, analyzing Oregon managed Medicaid "health-related services"
payments, with the help of a kind RA from ORPRN (Oregon Rural Practice-Based Research
Network). I piloted health disparity analyses in spending. It was fun.

---

**2016-2020.**

I had tremendous fun getting a **BA in Mathematics from Reed College.** I wanted to be an
algebraic topologist - but also cared deeply about inclusion in the mathematics community.
The highlight of my undergrad experience was participating in [J.P. May's UChicago REU
(2018).](https://math.uchicago.edu/~may/REU2018/)

---

<!-- collapsible -->
## Data/stats/programming writeups

---

**My approach towards AI in coding...**

I love designing personalized tools to make my life easier. For example, this webpage is currently generated from a [Markdown file](index.md). However...

As a statistician, I care about (a) rigorous reasoning, (b) accountability to your product and reasoning, and (c)
careful documentation of strategy, limitations, and caveats... while (d)
also remembering that, regardless of AI, we are always trying to get things out as quickly as possible.

However, it turns out that best practices as a working statistician apply here!

Here are some practices I've settled on that match my values as a statistician.

- **Be transparent: always treat, and state, that AI-generated code as prototype-level quality, not a final product.** If you want your code to be relied on by other people, re-write it yourself, so you can be accountable to bugs and requests.

- **Document, document, document.** After all, statisticians work on statistical analysis plans! Carefully specify the behavior of your code. I like to use a [PURPOSE.md](tooling/index-from-markdown/PURPOSE.md) file that has "target", "context", and "goals and non-goals" sections (i.e. things to *not* do!). *Then*, ask AI to see if it has any clarification questions.

- **Transparency:** as with any work in general, carefully note the contributions of AI: what you did, and what the agent did. As with "contributions" sections in writeups, it helps people anticipate how to ask questions.

- **Read the [damn code](tooling/index-from-markdown/test_converter.py) that's produced.** If you won't write your code, at least read it.

---

**(Vibed):** an [impractically large and possibly garbage](writeups/firestorm-diagram/firestorm-connections.html)
of the functional units of the Apple M1's Firestorm performance core,
with links to original patents (2026-11-30). It is mostly an art piece
of questionable accuracy.

Warning: it will slow your browser to a crawl.

While I'm a statistical programmer, I've always wanted to understand
modern CPUs at the level of actual digital design... not the standard
1980s "single RISC pipeline with forwarding" level, but how 1990s-era
features like exception handling, branch prediction, and modern dependency
tracking and dispatch work.

The result has 189 functional units, and 589 edges

Well, I tried to vibe a diagram from
Maynard Handley's "M1 Explainer", but god knows how accurate this is,
and I've learned absolutely nothing from this.

If you would like it, here's a
[static image of all of the functional units](writeups/firestorm-diagram/firestorm-pipeline-width.png)
and the [original Graphviz diagram](writeups/firestorm-diagram/firestorm-connections.dot).

---

**Recreational programming: a highly portable C89 RISC-V emulator.**

In my spare time, I am writing a highly portable riscv64 emulator. By "highly portable",
it is (a) written in C89 with a user-defined 64-bit "long long" datatype, (b) is
endian-independent – e.g. M68K is big-endian! – and (c) runs on computers with very small
memory capacities by "meta-paging" emulated physical RAM to and from disk.

**Non-goal:** an emulator fast enough for interactive access! Being able to submit batch
jobs is enough.

**The target emulated environment** is a ~8GB Linux environment with multiple serial TTYs,
block disk access, etc.

**The target host** is an MMU-less 68k Macintosh with 8-16MB memory, but with a multi-GB
disk

**The target use case:** running batch jobs, e.g. cross-compiling in the emulator for the
host.

**[Design for a memory access tracing format that can record ~30 seconds of a ~1 GHz
emulated machine (2026-10-14).](writeups/riscv-emu/emulator-trace/emulator-trace.html)**
Recordings of memory access patterns from a booting Linux VM will be used to determine
which is the most efficient combination of "meta-page" size, and number of meta-pages
resident in memory.

---

<!-- collapsible -->
## Some self-coded utilities/references for remote collaboration.

---

**[Presentation speech pacer/3-minute timer.](resources/pacer-app/pacer-app.html)**

A little breathing rectangle that helps me pace myself during presentations, and a timer
that gently reminds you when you're nearing time.

**_AI note:_** I used ChatGPT 6 to iteratively code this app, based on a
[diagram](resources/pacer-app/app-wireframes.pdf) I created to prototype the UI.

---

**[Self-contained presentation notes/timer web
app.](resources/teleprompt-app/teleprompt-app.html)**

I sometimes have to present presentations from PDFs (weird, but it does happen!). This app
allows you to present your own notes, specify your target timings, and then shows a
prompted with a stopwatch.

**_AI note:_** I _also_ used ChatGPT 6 to iteratively code this app, based on a
[diagram](resources/teleprompt-app/app-design-wireframes.png) I created to prototype the
UI.

---

**Doing your own admin and technical writing: secretarial and correspondence manuals.**

In teams working on a long-term series of projects, I'm increasingly finding it useful to
record information in a formal and readable way for the long term. Here's a way of not
reinventing the wheel:

Ye olde secretarial manuals have a wealth of information, about "correspondence" – ways of
keeping people in large businesses correspondence through a lot of letterwriting. **These
days,** I've found that the same formats of document are very useful for formally
recording decision-making in remote collaboration!

Stevens, Mark A., ed. <cite>**_[Merriam-Webster’s Secretarial
Handbook](resources/secretarial-handbooks/MWSecretarialHandbook_1993.pdf)_**</cite>. 3rd
ed. Merriam-Webster, 1993.

United States. General Services Administration. <cite>**_[U.S. Government Correspondence
Manual](resources/secretarial-handbooks/Typewriting_Style_Manual_1972.pdf)_**</cite>.
Information Resources Management Service, 1992.

---
