Le due versioni sono allineate blocco per blocco, nell’ordine del testo: titolo, l’essenziale, poi paragrafo per paragrafo. Quando la traduzione ha fuso o diviso un paragrafo, la casella corrispondente resta vuota — non accostiamo mai due passaggi a occhio.
“If a model needs more memory than your computer has, waiting longer will not solve the problem. You simply cannot run it.” Mauricio Vargas Sepulveda, a PhD researcher in economics at the University of Surrey, describes the wall that stops many trade analyses. His answer is a free package, Capybara 2.0, which in the largest benchmark of his study used less than 1 megabyte of memory, where the conventional base R approach needed approximately 897 megabytes. The tests ran on a standard Lenovo laptop.
«Se un modello richiede più memoria di quella che il tuo computer possiede, aspettare più a lungo non risolverà il problema. Semplicemente, non puoi eseguirlo.» Mauricio Vargas Sepulveda, dottorando in economia all'Università del Surrey, descrive il muro che blocca molte analisi del commercio internazionale. La sua risposta è un pacchetto gratuito, Capybara 2.0, che nel test più grande del suo studio ha usato meno di 1 MB di memoria, mentre l'approccio convenzionale di base R ne richiedeva circa 897 MB. I test sono stati eseguiti su un laptop Lenovo standard.
Trade models ask how exports move between countries while accounting for differences between exporters, importers and trading partners. As those comparisons become more detailed, conventional calculations can exhaust the computer’s available memory. Capybara handles those differences without building the large tables of extra variables that conventional methods need, and it couples its memory-saving calculations with safeguards against misleading statistical estimates.
I modelli commerciali chiedono come si muovono le esportazioni tra paesi, tenendo conto delle differenze tra esportatori, importatori e partner commerciali. Man mano che i confronti diventano più dettagliati, i calcoli convenzionali possono esaurire la memoria disponibile del computer. Capybara gestisce queste differenze senza costruire le grandi tabelle di variabili aggiuntive di cui hanno bisogno i metodi tradizionali, e associa i suoi calcoli che risparmiano memoria a salvaguardie contro stime statistiche fuorvianti.
The study, a preprint posted on SSRN, compared Capybara with base R and with two specialist statistical packages, Fixest and Alpaca, using international trade models. Each test was repeated 100 times. In the largest benchmark, which contained 6,006 observations covering 1994 to 2006, Fixest needed approximately 6 megabytes and Alpaca 54 megabytes, so Capybara’s footprint was smaller than both. Speed is another matter: the study reports competitive performance, but the release gives no timings. The first Capybara paper, published in the journal PLOS ONE in September 2025, reported 1.6 seconds and 42 MB against 700 seconds and 12,261 MB for Base R, and noted that fixest may be faster in some cases.
Lo studio, un preprint pubblicato su SSRN, ha confrontato Capybara con base R e con due pacchetti statistici specializzati, Fixest e Alpaca, usando modelli di commercio internazionale. Ogni test è stato ripetuto 100 volte. Nel test più grande, che comprendeva 6.006 osservazioni relative agli anni dal 1994 al 2006, Fixest ha richiesto circa 6 MB e Alpaca 54 MB, quindi l'impronta di Capybara è risultata inferiore a entrambi. Sulla velocità il discorso è diverso: lo studio riporta prestazioni competitive, ma la pubblicazione non fornisce tempi di esecuzione. Il primo articolo su Capybara, pubblicato su PLOS ONE nel settembre 2025, riportava 1,6 secondi e 42 MB contro 700 secondi e 12.261 MB per base R, e segnalava che fixest potrebbe essere più veloce in alcuni casi.
The new version also flags cases where a model cannot yield valid finite estimates, which helps avoid distorted results. A second feature lets researchers look at patterns toward the lower and upper ends of trade flows, not only at the average. The memory figures, the study notes, apply to the one model tested, not to every possible use.
La nuova versione segnala anche i casi in cui un modello non può produrre stime valide e finite, il che aiuta a evitare risultati distorti. Una seconda funzione permette ai ricercatori di esaminare le tendenze verso le estremità inferiori e superiori dei flussi commerciali, e non soltanto la media. I dati sulla memoria, sottolinea lo studio, valgono per l'unico modello testato, non per tutti gli usi possibili.
For a researcher with a modest machine, the change is practical and immediate: a model that could not be completed can be run on a laptop, and the software is already free to download. The documentation and the code needed to reproduce the analysis are available with it, so other economists can inspect the methods and apply them to their own data. “Reducing that demand can make the difference between being able to answer an economic question and having to leave it unanswered,” Vargas Sepulveda said.
Per un ricercatore con una macchina modesta, il cambiamento è concreto e immediato: un modello che non poteva essere completato può essere eseguito su un laptop, e il software è già scaricabile gratuitamente. La documentazione e il codice necessari per riprodurre l'analisi sono disponibili insieme, così altri economisti possono esaminare i metodi e applicarli ai propri dati. «Ridurre questa domanda di risorse può fare la differenza tra poter rispondere a una domanda economica e doverla lasciare senza risposta», ha dichiarato Vargas Sepulveda.