arXiv Science⌕ Search

arXiv subjects

Nurzhan Sapargali

Publications and source records attributed to Nurzhan Sapargali.

4 recordsLinked to original sources

Longest run for $q$-binary trials

We investigate the longest-run distribution for binary trials in which the success probability varies geometrically. Exact formulae are derived for the probability mass function and the cumulative distribution function of the length of the longest success run in a sequence of $q$-binary trials, using enumerative combinatorics. The setting covers independent but not necessarily identically distributed zero--one trials whose success probabilities follow a geometric rule, and the classical independent and identically distributed Bernoulli longest-run distribution is recovered in the limit $q\to 1$. A simulation study confirms accurate maximum likelihood estimation of the base success probability and the geometric parameter $q$, a well-calibrated and powerful boundary-corrected likelihood ratio test of the hypothesis that $q=1$, and close agreement between the analytical cumulative distribution function and its empirical counterpart.

math.PR↗

Estimating Global Network Density from Snowball Samples

Many analyses aim to estimate a global property of a population network, such as its density, yet only a subsample of the network is observed. Ignoring the sampling scheme, and treating the samples as complete networks leads to biased inference. Although this selection problem is generally intractable, we show that it admits an exact solution for snowball samples drawn from Erdős--Rényi networks. We derive the exact likelihood of such a sample, showing that it forms a curved exponential family in the edge probability with a low-dimensional sufficient statistic. We obtain the maximum likelihood estimator that accounts for the sampling design, alongside valid confidence intervals constructed by inverting a test based on the exact sampling distribution, via Monte Carlo simulation. Simulations show that this estimator remains unbiased even when observing as little as 0.1\% of the vertices, with nominal confidence interval coverage. We further assess robustness to departures from the Erdős--Rényi assumption using scale-free and small-world synthetic networks, as well as a real Facebook ego network. We find that, while the corrected estimator no longer attains unbiasedness under these departures, it still substantially outperforms the naive alternative throughout.

stat.ME↗

The Truncation Blind Spot: How Decoding Strategies Systematically Exclude Human-Like Token Choices

Why does machine-generated text remain detectable? We investigate a mechanistic explanation at the decoding stage: standard strategies such as top-$k$ and nucleus sampling restrict generation to high-probability tokens, while human writers routinely choose contextually appropriate words from deeper in the model's probability distribution. Truncation makes a measurable share of these choices unreachable; we call this the \emph{truncation blind spot}. Across five open models and three domains, 8--18\% of human-selected tokens fall outside common truncation boundaries. Linguistic analysis further reveals disproportionate exclusion of content-word tokens. In a benchmark comprising 1.8 million machine generations, classifiers using only predictability and lexical diversity achieve mean AUC-ROC near 0.97, with substantial variation across decoding settings and strong transfer across generators. Probability-floor samplers substantially narrow the blind spot, demonstrating that the choice of truncation criterion matters for retaining human-used tokens. Together, these findings characterize a source of human--machine distributional mismatch and motivate decoding methods that preserve contextually appropriate low-probability choices while maintaining generation quality. Code and data are available at https://github.com/EstebanGarces/human_vs_machine.

cs.CL↗

Maximum Likelihood Estimation for Network Models with Latent Geometry under Snowball Sampling

Snowball sampling is a widely used design for collecting network data from large or hard-to-reach populations, yet naive inference that ignores the sampling mechanism produces systematically biased parameter estimates. We derive the exact likelihood of a multi-wave snowball sample for the class of continuous latent space (CLS) models, in which edges form independently conditional on latent vertex-level quantities, and show that conditional edge independence reduces the marginalization over unobserved network configurations to a closed-form expression portable across the entire CLS class. We develop a stochastic Expectation-Maximization algorithm for the Euclidean latent distance model as a concrete implementation, and apply the framework to the large-scale co-inventor network of German semiconductor patent applicants by drawing multiple snowball samples. We find that the naive procedure severely underestimates latent space variance, produces networks with nearly twice the observed edge count, and achieves a spectral goodness-of-fit nine times worse than the corrected model, which directly affects the quantitative interpretation of covariate effects.

stat.ME↗