SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1610.08088 · 2016

Estimation and Inference for Very Large Linear Mixed Effects Models

arXiv · PDF · Open in the Atlas

Code that ran

3 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1610.08088.json · badge: /api/ran/1610.08088.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
kxgao/scalable-crossed-mixed-effects canonical (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
colleastsq Ran
ran; our contract draft was wrong, not the code
kxgao/scalable-crossed-mixed-effects/mixed.py
code served (permissive licence) · get_code("ac541707c9ea2acb")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Define parameters
p = 4  # number of features
num_cols = 3  # number of columns/groups

# Create VBhat and VEhat (variance parameters)
VBhat = 0.5
VEhat = 0.3

# Create colCounts dictionary mapping column IDs to counts
colCounts = {
    0: 2,
    1: 3,
    2: 2
}

# Create XTX matrix (p x p)
XTX = np.random.randn(p, p)
XTX = XTX @ XTX.T  # Make it symmetric positive definite

# Create XTY vector (p,)
XTY = np.random.randn(p)

# Create XTE dictionary mapping column IDs to vectors (p,)
XTE = {
    0: np.random.randn(p),
    1: np.random.randn(p),
    2: np.random.randn(p)
}

# Create ETY dictionary mapping column IDs to scalars
ETY = {
    0: np.random.randn(),
    1: np.random.randn(),
    2: np.random.randn()
}

ARGS = {
    "VBhat": VBhat,
    "VEhat": VEhat,
    "p": p,
    "colCounts": colCounts,
    "XTX": XTX,
    "XTY": XTY,
    "XTE": XTE,
    "ETY": ETY
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
moments Ran
ran; our contract draft was wrong, not the code
kxgao/scalable-crossed-mixed-effects/mixed.py
code served (permissive licence) · get_code("1a20e5064707174d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os

# Create a temporary file with sample data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("row1 col1 1.5\n")
temp_file.write("row1 col2 2.3\n")
temp_file.write("row2 col1 3.1\n")
temp_file.write("row2 col2 1.8\n")
temp_file.write("row3 col3 2.5\n")
temp_file.write("row3 col1 4.2\n")
temp_file.close()

ARGS = {
    'fileName': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rowleastsq Ran
ran; our contract draft was wrong, not the code
kxgao/scalable-crossed-mixed-effects/mixed.py
code served (permissive licence) · get_code("8968817ab17fbf5e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Define parameters
p = 4  # number of features/parameters
num_rows = 2  # number of rows/groups

# Create rowCounts dictionary mapping rowid to count
rowCounts = {
    0: 3,
    1: 5
}

# Create XTX: (p, p) matrix - X^T X
XTX = np.random.randn(p, p)
XTX = XTX @ XTX.T  # Make it symmetric positive definite

# Create XTY: (p,) vector - X^T Y
XTY = np.random.randn(p)

# Create XTD: dictionary mapping rowid to (p,) vectors - X^T D for each row
XTD = {
    0: np.random.randn(p),
    1: np.random.randn(p)
}

# Create DTY: dictionary mapping rowid to scalar - D^T Y for each row
DTY = {
    0: np.random.randn(),
    1: np.random.randn()
}

# Create variance parameters
VAhat = 0.5  # additive genetic variance
VEhat = 0.3  # environmental variance

ARGS = {
    "VAhat": VAhat,
    "VEhat": VEhat,
    "p": p,
    "rowCounts": rowCounts,
    "XTX": XTX,
    "XTY": XTY,
    "XTD": XTD,
    "DTY": DTY
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 3 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Linear mixed models with large imbalanced crossed random effects structures pose severe computational problems for maximum likelihood estimation and for Bayesian analysis. The costs can grow as fast as $N^{3/2}$ when there are N observations. Such problems arise in any setting where the underlying factors satisfy a many to many relationship (instead of a nested one) and in electronic commerce applications, the N can be quite large. Methods that do not account for the correlation structure can greatly underestimate uncertainty. We propose a method of moments approach that takes account of the correlation structure and that can be computed at O(N) cost. The method of moments is very amenable to parallel computation and it does not require parametric distributional assumptions, tuning parameters or convergence diagnostics. For the regression coefficients, we give conditions for consistency and asymptotic normality as well as a consistent variance estimate. For the variance components, we give conditions for consistency and we use consistent estimates of a mildly conservative variance estimate. All of these computations can be done in O(N) work. We illustrate the algorithm with some data from Stitch Fix where the crossed random effects correspond to clients and items.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1610.08088")
get_code_for_paper("1610.08088")
have("1610.08088")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1610.08088.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1610.08088.svg)](https://syntology.ai/paper/1610.08088)

Connect an agent — have() is free.