Mono-and multimetallic nanoparticles have been extensively studied in various fields due to their tunable physicochemical properties and potential for replacing expensive metals with more abundant and affordable ones. The chemical structure, i.e., the spatial distribution of elements inside nanoparticles, plays a crucial role in defining their properties, particularly in catalytic processes. However, accurately determining the spatial chemical distribution within sub-10-nm bimetallic nanoparticles remains a challenge. In this study, we have used scanning transmission electron microscopy associated with energydispersive spectroscopy to acquire hyperspectral images of gold− silver alloy nanoparticles in the 3−10-nm size range. We have quantified the chemical composition as a function of radial position; Ag enrichment toward the nanoparticle surface is robustly confirmed by statistical analysis, error bars, and nonoverlapping 3-sigma uncertainty intervals at the nanoparticle center and surface. Two complementary machine learning analyses (principal component analysis and non-negative matrix factorization) reveal that our experiments contain latent information on subtle composition variations inside the particles. The proposed data analysis procedures have also been validated by simulated data sets. These findings pave the way for more precise structural and chemical investigations of alloys on the nanoscale.