10,000 Matching Annotations
  1. Last 7 days
    1. Reviewer #1 (Public review):

      This paper investigates how hippocampal CA1 theta sequences, or sweeps, relate to activity in the deep superior colliculus (dSC) in mice navigating a Y-maze with changing reward locations. Similar to previous work, the authors found that CA1 theta sweeps around maze bifurcation points correlate with upcoming spatial choices. By performing simultaneous silicon probe recordings in CA1 and dSC, they report the novel observation that dSC, preferentially active for left or right turns, respectively, were coordinated with hippocampal theta sweeps. Hippocampal sweeps toward a particular path were associated with stronger firing of dSC neurons preferring turns in that direction, including when the animal ultimately took the alternative path. Furthermore, using generalized linear models, the study identified predictive relationships across several theta cycles from CA1 to dSC activity, but not in the opposite direction.

      This is an interesting and clearly presented study addressing an important gap between hippocampal representations and the circuits that control behavior. I find particularly valuable the simultaneous recordings of ensemble activity in CA1 and dSC and the investigation of coordinated spatial representations across them, to my knowledge, the first of its kind. These observations open the door to subsequent studies on downstream consequences of hippocampal theta sweeps and their coordination with motor circuits. The weakest part of the study is the relationship with behavior. The data currently presented do not provide strong support to interpret how the representations described actually relate to behavioral decisions or cognitive task demands. I have three main concerns pertaining to movement-related covariates, a more detailed physiological characterization of the circuit, and behavioral significance.

      (1) The central analysis needs stronger controls for the animal's ongoing behavior. Conditioning on eventual turn direction is useful, but Figures 4 and S8 show that ipsi and contra sweep trials differ in trajectory, duration, and speed. The GLMs include turn direction and sweep indicators, without these additional variables. I would like to see whether sweeps add predictive information after accounting for position, speed, head direction, and angular velocity. Other covariates that could also be examined in a similar fashion are stepping phase (since the authors mentioned a strong coupling) and maze arm and reward-block stage. A surprising observation is the negative correlation between running speed and sweep occurrence. This seems contradictory to multiple earlier reports that tend to find a positive correlation between speed and the presence and strength of hippocampal theta sweeps. Please explain.

      (2) Similarly, global physiological variables, such as theta power or CA1-dSC theta coherence, may be exerting an important influence on the interactions reported here, but they are unfortunately not analyzed. It would be useful to characterize basic theta dynamics in the circuit before delving into the representations and their coordination across structures. What is the theta modulation and phase preference of dSC cells, and how does it compare to that of CA1? What is the typical lag between spiking activity in both structures, and how does it change with behavior? Traditional spectral, spike-LFP, and spike train cross-correlation analyses would be very informative to understand the basic interactions across these structures.

      (3) The significance of the modest behavioral differences in Figure 4 is difficult to interpret. The data presented do not offer strong support for the claims about behavioral or functional significance of CA1-dSC coordination throughout the text. I would suggest either revising those claims to better reflect the data presented here, or to conduct additional analysis to relate neural representations to behavioral or task variables. A potentially useful comparison to support behavioral significance would be to repeat similar analysis but with sweeps that happened far from the bifurcation point, like at the end of each arm.

      (4) The temporal analysis does not establish when dSC activity changes relative to an individual hippocampal sweep. Each GLM uses sweeps from one theta cycle to predict firing in cycle 0, without conditioning on earlier dSC activity or sweeps in the intervening cycles. An early predictive cycle could therefore reflect different states spanning multiple cycles or correlated later sweeps. Please complement this analysis with dSC responses aligned to sweep onset and a model that includes preceding dSC activity and multiple sweep lags.

      (5) Similar CA1 sweep dynamics in spatial alternation tasks have been previously described, including a landmark paper (Kay et al., 2020) by the same authors. However, a recent report from the Moser group (Vollan et al., 2025) has called into question this analysis framework and interpretation, claiming that theta sweeps alternate to the left and the right of heading direction in a stereotyped manner across successive theta cycles. The data presented here do not seem to reproduce the same phenomenon, but a direct comparison is difficult to make due to multiple differences in analysis and study design. While fully addressing this issue may be beyond the current study, it would still be very useful to discuss the differences between the studies and the authors' interpretation of how seemingly disparate observations may be reconciled.

      (6) Several statistical comparisons could be improved to account for the structure of the dataset. In particular, analysis should account for cells and sessions nested within mice, with animal-level effect sizes shown where possible.

    2. Reviewer #2 (Public review):

      Summary

      This manuscript asks whether hippocampal representations of possible future paths leave a measurable trace in the activity of a motor structure that could implement them. The authors record simultaneously from dorsal CA1 and from the intermediate and deep layers of the superior colliculus (dSC) in mice performing a Y-maze alternation task. Using state-space decoding of CA1 activity, they identify theta sweeps into the left or right arm as the animal approaches the bifurcation. In the dSC, they describe a population of turn cells that fire selectively for left or right turns regardless of the arm of origin.

      The central finding is that, for a given turn direction, the firing of a subset of turn cells at the bifurcation depends on the direction of the preceding hippocampal sweeps: dSC cells tend to fire more on trials with sweeps towards their preferred turn direction. Analyses using generalised linear models suggest that sweeps occurring up to ~4 theta cycles before the bifurcation are associated with turn cell firing at the bifurcation, whereas dSC activity does not reliably predict subsequent sweeps. Finally, the authors show that on trials with sweeps towards the unchosen arm, trajectories deviate towards that arm. They conclude that when the hippocampus represents a possible future path, it also engages motor commands that turn the animal towards that path, providing a potential route by which mental simulation of possible futures can influence action.

      Strengths

      I think that the question is very clear, timely and novel. Representations of possible futures have been extensively characterised in the hippocampus, but how such representations reach the circuits that generate action is largely unknown. The interface between cognitive and motor structures has received little direct experimental attention, and this work is a solid step in this direction. The dSC is a well-chosen target given it has an established role in orienting and turning, it integrates a wide range of inputs, and its lateralised organisation provides a clear left/right motor readout that can be directly aligned with the direction of hippocampal sweeps.

      The experiments are well designed, and the data are of good quality. Recording simultaneously from both structures in the same animals, in a task that produces many turns and a substantial number of sweeps towards the unchosen arm, is what allows the comparison of dSC activity across sweep directions for the same turn. The manuscript is well written and clearly explained. While the approach is simple, I find the simplicity of the hypothesis and of the experiments used to test it somewhat refreshing: if hippocampal representations of possible futures influence action, then motor signals in the dSC should covary with sweep direction, and this prediction is tested directly. The authors are also appropriately careful to acknowledge that their data are correlational and do not establish a causal role for hippocampal sweeps.

      Overall, this work opens up new ideas about how cognitive and motor structures interact, and I expect it will inspire future studies on this topic, including causal manipulations and identification of the pathways linking the hippocampus to the dSC.

      Weaknesses

      The main observation, that the direction of hippocampal sweeps is associated with the activity of dSC turn cells, is interesting and supported by the data. However, I think that the authors have not fully excluded that ongoing movement of the animal during the task can contribute to the observed shared relationship between hippocampal representations and dSC activity. Some of the analyses would also benefit from clarification.

      (1) What are turn cells encoding, and what is the head doing at the turn? Are the dSC turn cells neurons that drive the head-turning movement, eg: would they be active outside the context of the task when the mouse is making head turns while exploring an environment? Or are they somehow upstream of these? I think this matters for the interpretation because if they are indeed action neurons, then it is important to know what exactly the head is doing around the bifurcation, and when the head movement or deviation starts on a trial-by-trial basis. If deviation of the head towards one arm starts before the animal reaches the junction, turn cell firing at the bifurcation could already be reflecting this action. This alone could explain part of the overlap between hippocampal and SC activity, without any influence of one structure on the other. The GLM results do not by themselves resolve this. Contra sweeps occur earlier than ipsi sweeps and contra-sweep trials have different kinematics, so an early sweep may partly flag a trial with a different movement profile, and the models include only turn direction as a covariate. In general, it would be useful to have more detailed behavioural quantification, such as head yaw, head angular velocity, head angle relative to the body, and running speed, aligned both to the bifurcation and to sweep onset. It would also help to know how well turn cell firing is explained by these variables, and whether the sweep-related modulation (SDSI and GLM) survives when kinematics are included as covariates or when trials are matched for kinematics.

      (2) Do contra sweeps suppress turn cell activity, or do ipsi sweeps enhance it? From the examples in Figures 2C and 2D, it seems that the main difference is that sweeps towards the unchosen arm suppress turn cell activity, rather than sweeps towards the chosen arm enhancing it. The preferred-turn average looks very similar to the ipsi-sweep trace, which would be expected given that ~74% of sweeps are ipsi. The SDSI contrasts two sweep conditions, and as such I believe that it cannot distinguish between these possibilities. Similarly, the statement that most cells "fired more on average during trials with sweeps in their preferred turn direction compared to trials with sweeps in their non-preferred turn direction" is consistent with enhancement, suppression, or both. Is suppression by contra sweeps what is happening? A comparison with no-sweep trials, carried out within each turn direction, could maybe answer this.

      (3) Trial composition in Figure 2F. I could not determine from the Methods what data goes into each trial type in this analysis, and in particular whether trials are separated by turn direction. Sweeps in a cell's preferred direction correlate with the animal choosing that direction, and vice versa for the non-preferred direction. If trials are pooled across turn directions, it seems that there is a risk that this analysis simply splits the data into one set with many turns in the cell's preferred direction and another with more turns in the non-preferred direction. No-sweep and both-direction trials would contain a mixture of the two. The resulting pattern (higher, lower, and unchanged firing, respectively) is what one would expect from a turn-selective cell alone. The authors should clarify this and, if needed, repeat the analysis within each turn direction.

      (4) Behavioural significance of the sweeps. I would have liked to hear more about the behavioural significance of these findings. The authors show that turns are tighter on trials with sweeps in the chosen direction. For example, what is the meaning of a tighter turn? Does it reflect earlier commitment or more conviction about the choice? Relatedly, trials without sweeps had the shortest durations and highest running speeds. What does this imply for the role of sweeps? Does it suggest that sweeps are associated with slowing or deliberation rather than with more efficient execution? More generally, I think the paper would benefit from a more extended or explicit discussion of the behavioural role of sweeps, beyond the finding that these representations leave "a specific and measurable impression on activity in regions that drive action".

    3. Reviewer #3 (Public review):

      Summary

      Wilhite and colleagues investigate whether hippocampal representations of possible future paths are linked to activity in the superior colliculus, a brain structure involved in movement control. They recorded simultaneously from dorsal CA1 and the intermediate/deep layers of the superior colliculus in mice performing a Y-maze task with uncued changes in reward location. They decoded the animals' location from the hippocampal neural activity, termed "sweeps," that sometimes represented positions that extended ahead of the animal into potential future locations in the maze. For a given turn direction, turn cells in the superior colliculus fired more strongly when preceded by sweeps that favored their preferred turn direction. Sweep direction predicted collicular firing across several preceding theta cycles, whereas evidence for the reverse predictive relationship was weaker. Trajectories also deviated toward the represented arm when that arm was not subsequently chosen.

      Strengths

      The simultaneous recordings from CA1 and the superior colliculus allow the authors to examine how hippocampal representations of position and future plans relate to turn-related neural activity during freely moving behavior. This connects the study of possible future paths to a brain structure involved in movement control. The task also distinguishes representations of the subsequently chosen path from those of an alternative path, providing a useful setting in which to investigate how internal representations relate to action.

      Comparing sweep directions while holding the eventual turn direction fixed helps separate the association with the represented path from differences in the turn ultimately performed. This behavioral observation complements the neural findings and makes the proposed relationship relevant to movement itself.

      Complementary analyses of neural activity in the superior colliculus support the central observation. Modulation relative to trials without sweeps, shuffle controls, and cross-validation provide different ways to assess the association, while the animal-level analysis of the main correlation supports its consistency across mice. The authors also test the reverse relationship rather than examining only their proposed direction of influence. Their acknowledgment that these findings do not establish causality appropriately distinguishes the observed associations from the proposed mechanism.

      Weaknesses

      Behavioral differences warrant closer consideration. Trials with sweeps toward the unchosen arm are slower, longer, and show greater deviations. Accounting for running speed and head orientation would help distinguish a hippocampal contribution to movement from shared behavioral influences or feedback from ongoing movement. The trajectory deviations are consistent with the authors' interpretation but do not resolve these alternatives.

      Some statistical aspects would benefit from clarification. Sweep direction adds modestly to the prediction of collicular activity, and the highlighted correlation is based on cells selected for their sensitivity to sweep direction. Giving greater prominence to results across all cells would help readers assess how broadly the relationship holds. Because cells recorded within the same session or animal are not independent observations, clarifying how the analyses account for this nested structure would strengthen confidence in the results. Sweeps toward the unchosen arm are relatively rare, so it would also be useful to assess sensitivity to small trial counts.

      A more complete and transparent reporting of the data and analysis would make the findings easier to assess and build upon. Examples linking spikes, decoded positions, and sweep classification would help readers distinguish sweeps from decoding uncertainty near the junction. Clarifying how the statistics account for cells nested within sessions and animals, and showing animal-level consistency beyond the main correlation, would strengthen confidence in the generality of the results. Additional documentation of unit isolation and recording locations would also be helpful, particularly because the reported depths suggest that some sites may have extended into the periaqueductal gray, and it is not clear how cells recorded in different sessions in the same animal are determined to be distinct cells or tracked across sessions.

    1. Reviewer #1 (Public review):

      Summary:

      This study characterizes the firing of turn-selective superior colliculus (SC) neurons in relation to head-, body-, and limb movements during locomotion. By combining neural recordings and gait-cycle analysis, they reveal a novel oscillatory firing pattern in SC turn cells during locomotion, where left- and right-preferring turn cells fire at opposite phases of the stepping cycle. The authors propose that the oscillatory firing of SC turn cells could mediate the coordination between left/right turns (e.g. on a maze) and the stepping rhythm.

      Strengths:

      The study is well-structured, and the data are clearly presented. Effect sizes are convincing in general, and most findings are clearly visible in raw data. The authors provide compelling demonstrations of (1) stepping-coupled head swings during straight locomotion, (2) locking of left/right turns on a Y-maze to opposite phases of the gait cycle, (3) turn selectivity in deep SC neurons, and (4) that turn-selective SC neurons display oscillatory firing, with left/right-preferring cells firing at opposite phases of the stepping cycle, even during straight locomotion. Findings 1-3 have been described earlier, but usually not together. Finding (4) is novel and opens the door for future studies on the mechanisms and functions of oscillatory turn-cell activity during locomotion.

      Weaknesses:

      The main weaknesses of the study relate to its correlational nature and limited quantitative analysis. The study opens by asking what neural circuits mediate the coordination of left/right turns to opposite phases of the stepping cycle. The authors propose that oscillatory SC neurons gate left/right trajectory turns to opposite phases of the stepping cycle, perhaps by a circuit that reads out the stepping rhythm (sensory input/efference copy). While the presented data is consistent with such a coordination mechanism, the findings remain correlational and alternative interpretations may fit the data equally well.

      An alternative explanation, raised by the authors in discussion, is that oscillatory SC activity during locomotion reflects active motor commands. Since SC cells trigger head turns, and the mouse swings its head left or right with every other footstep, it is somewhat expected that turn-selective SC cells would fire more with every other footstep (since their firing may be needed to trigger the small head turns). The correlation between SC firing and footsteps may thus arise from the coupling between head turns and footsteps, rather than a modulation by footsteps per se. Of note, the firing rate modulation of SC cells appears to be much larger during trajectory turns at the Y-junction compared to that observed with each footstep (Fig. 3B, although not quantified), suggesting that their firing primarily reflect (head) turns and their amplitude/vigor.

      The study could be strengthened by trying to disentangle the contribution of turning vs footsteps to SC neuron firing. First, the authors could use their simultaneous recordings of head- and limb movements on the linear track to directly test how much of SC firing variability is explained by head turns vs. footsteps (e.g. using a GLM). Second, the authors could include trials without significant locomotion-related head oscillations (an unreported fraction of trials currently excluded from analyses). Inclusion of such trials could uncover whether footstep-locked oscillatory SC activity persists when prominent head oscillations are lacking (suggestive of true footstep modulation rather than trivial correlation). The impact of the findings would be elevated if SC cells are conjunctively/independently tuned to head turns and footsteps.

      Experiments that further break the correlation between head turns and footsteps (such as other gait patterns or altered biomechanical constraints) would be insightful but are likely beyond the scope of the study. Causal perturbation experiments are also beyond the scope of the study, but would be needed to support the current concluding sentence of the paper ("This temporal modulation ensures the coordination between motor commands for a specific movement with the ongoing behavior of the organism as it navigates through its world").

      To aid the reader in interpreting and evaluating the results, the authors could provide more detailed quantifications of the data throughout (tuning strengths, number of trials, etc.).

      Currently, numbers behind statements such as "tightly phase-locked" are not clearly shown. Also, given the concern raised above, it appears slightly circular that head oscillation phase is used as a proxy for stepping cycle phase for most analyses in the paper.

    2. Reviewer #2 (Public review):

      Summary:

      The authors investigate how turn-related activity in the intermediate and deep SC is coordinated with ongoing locomotion. They report that many turn cells are phase-locked to head-body oscillations, used as a proxy for the stepping rhythm, and that selected left- and right-turn cell populations prefer approximately opposite phases. This phase relationship is also observed during straight locomotion. The authors further propose that this organization may create alternating windows of opportunity for left and right turns. The phase relationships are empirical findings, whereas their contribution to smooth turning is a functional hypothesis.

      The manuscript provides population-level evidence for phase locking: 195 of 411 turn cells pass the Bonferroni-corrected Rayleigh test, and Figures S3-S5 characterize the distribution of Z values and the dependence of phase separation on the selection threshold. Figure S4 also provides comparisons across behavioral conditions, animals, and simultaneously recorded cell pairs. These analyses provide useful evidence for the reported phase relationships. However, the main left-right phase comparison focuses on 49 cells, approximately 12% of all turn cells, selected largely by high Rayleigh Z values. Moreover, the pooled Rayleigh test does not establish whether the phase preference is stable across independent cycles or trials, or whether a small number of high-spike-count episodes disproportionately influence it. Figure 3A shows cycle rasters for two cells, and Figure S3 adds examples with trial-averaged responses, but population-wide temporal stability remains insufficiently quantified. This concern does not require a cell to fire on every cycle; it concerns the reproducibility of its phase-dependent firing across independent data subsets.

      The observations during straight locomotion support the presence of phase-dependent activity outside the turn itself. However, they do not establish that this activity causes the smooth coordination of walking and turning. The abstract and discussion often present this possibility appropriately as a hypothesis, but the concluding statement that temporal modulation "ensures the coordination" of motor commands and ongoing behavior (p. 5, lines 201-204) is stronger than the evidence supports and should be softened.

      Strengths:

      A major strength of this study is the large number of neurons recorded from the intermediate and deep SC in freely moving mice. The requirement that turn selectivity retain the same sign and remain significant across all three approach arms helps establish an egocentric relationship to turning. Anatomical reconstruction, the population analyses, and the comparisons of simultaneously recorded cells provide useful supporting evidence. The approximate recording locations will also help guide future studies.

      Weaknesses:

      The main limitations concern temporal stability, the spike-count dependence of the selection statistic, the validation of the behavioral phase proxy, and the statistical treatment of phase distributions and repeated observations. The methods also leave unclear whether actual time spent in each phase bin was accounted for. These issues affect the strength and scope of the conclusions and should be addressed with targeted analyses, rather than additional representative examples alone.

      Likely impact of the work on the field:

      The finding that turn-related SC activity is coordinated with a locomotor rhythm, including during straight locomotion, could be valuable for understanding how orienting movements are organized within ongoing behavior. Its significance does not depend on establishing the complete circuit mechanism in this study. Its impact would be strengthened by showing how stable the relationship is and how broadly it extends beyond the selected high-Z subpopulation.

      A causal role in preparing or facilitating turns remains an interesting possibility. Distinguishing this possibility from ongoing head-movement control or sensory and motor-related inputs will require further work, as the authors themselves discuss.

      The relationship between head movement and stepping is also useful, but it is central to the interpretation of the neural results because head-body oscillation phase supplies the estimate of stepping phase. The accuracy and limits of that proxy therefore warrant explicit assessment.

    1. Reviewer #1 (Public review):

      Summary:

      The manuscript by Kaslow et al. investigates the role of ACC neurons that project to the PAG in pain-related behavior. Viral tracing revealed that these neurons collateralize to several regions, including the medial thalamus, zona incerta, and pontine nucleus, but not to other major ACC targets such as the BLA and NAc. Chemogenetic inhibition of ACC→PAG neurons increased time spent on the hot side in a two-temperature choice assay and reduced complex nocifensive behaviors such as licking, guarding, jumping, and rearing, while leaving stimulus-evoked withdrawal intact. The authors interpret this dissociation in terms of reflexive versus affective-motivational dimensions of pain. Fiber photometry revealed broadly similar responses in ACC→PAG and general ACC glutamatergic neurons, although ACC→PAG responses were selectively potentiated after SNI. Both populations showed activity temporally associated with pain-related behaviors following discrete noxious stimuli, but this relationship disappeared during ongoing noxious stimulation. Together, these findings suggest that ACC→PAG neurons might contribute to regulation of complex nocifensive behaviors but do not simply encode ongoing pain affect.

      Strengths:

      I really like this paper because it characterizes a specific subset of ACC output neurons in detail. The fiber photometry data also have important implications for our interpretation of their role.

      Weaknesses:

      This is a minor (albeit long) comment.

      This paper frames pain-related behaviors as either affective or reflexive. However, I am not sure that we currently know which animal behaviors can be considered specific readouts of the affective component of pain. Indeed, the way these behaviors have been interpreted has changed over time. For example, in an early study of the role of the ACC, Johansen, Fields, and Manning described formalin-induced conditioned place avoidance as "a learned behavior that directly reflects the affective component of pain in the rat," while distinguishing this measure from "acute" formalin-induced nociceptive behaviors-including paw lifting, licking, and flinching-which they argued reflected the intensity and localization of the nociceptive stimulus. In contrast, the current manuscript classifies lifting and licking themselves as affective behaviors.

      The rationale provided in the Methods is that "paw withdrawal reflexes are a product of spinal and brainstem reflex circuits, while affective-motivational behaviors require brain processing." I'm not sure I agree with this brainstem/forebrain classification. Several relatively elaborate nocifensive behaviors, including licking, guarding/lifting, and escape-like behaviors, can be observed in decerebrate animals, indicating that forebrain processing is not strictly required for their expression (even though forebrain circuits undoubtedly modulate these behaviors in the intact animal). Moreover, even spinal reflexes are modulated in a top-down way (cortical control). I would argue that, at this point, we don't really know the extent to which any particular behavior provides a specific readout of affect.

      For this reason, I feel the manuscript would be stronger if the authors more clearly separated the behavioral observations from their interpretation. For example, rather than referring to a particular measure throughout the Results as an "affective behavior," it might be preferable to describe the behavior that was actually quantified (e.g., licking, guarding, jumping), which could be qualified as consistent with affective behavior (i.e., the authors' interpretation). Given that the field's definitions and interpretations of affective pain behaviors seem to have evolved over time (and will likely continue to do so), I think it would add clarity to anchor the Results in the behaviors themselves. At a minimum, the authors should clearly state an operational definition of "affective behavior" in the main text, along with a rationale, while acknowledging limitations.

    2. Reviewer #2 (Public review):

      Summary:

      This manuscript by Kaslow et al. presents new insight into the role of the ACC in the affective component of pain. The authors should be commended for the experiments that are well-done and comprehensive. It's really striking that the response frequency to stimuli is not affected, but the duration of attending behaviors following stimulation is reduced in animals where the ACC-dlPAG circuit is inhibited. However, it is unclear how specific these neurons are to pain rather than general attention gating to changing stimuli, both of which are interesting phenomena. The idea that a specific population is governing the affective side is very relevant and timely, and it adds significantly to the ongoing discussion of the role of the ACC in pain and the affective component. However, there are major concerns presented below that the authors should address to solidify support for their conclusions.

      Major Concerns:

      (1) As the authors point out, there is considerable diversity in L5p neurons. Aside from being excitatory, do they have a specific identity? It might be helpful to examine the Allen Projection Atlas and compare their findings with specific Cre-drivers for either dlPAG or vlPAG.

      (2) It would be of interest to know if the L5p ACC neurons that are hypothesized to be related to pain affect receive selective inputs compared to the general population.

      (3) Whether stimulating the L5p-dlPAG neurons, using either a similar DREADD system or optogenetics, produces increased pain behaviors would be a crucial piece of information to formally show these neurons govern the likelihood of output behaviors.

      (4) As these neurons produce collaterals to other pain-related regions (CPu, Zi, and Th (Figure 1A)), to determine the dlPAG as the source of this behavior, the authors might consider selectively silencing ACC outputs using an optical fiber implanted in the dlPAG.

      (5) The fact that ACC-to-dlPAG inhibition produces increased duration on a hot or cold plate during avoidance tests is really striking. Mice in this test will often survey first with their nose/whiskers and, if too hot/cold, avoid entering without even putting their paws on the other plate. Does this suggest that there is a motivational or attentional component that has changed rather than a pain-related component?

      (6) The analysis and interpretation of the fiber photometry results are unclear.

      a. The authors state SNI increases calcium amplitudes but comparison of Figures 4 and 5, looks to be minimal if at all.

      b. How do behavior duration and response magnitude correlate in Figures 4D and F? In your model, is it that more neurons are recruited, or is their temporal activation different, or is their firing frequency different? Further, what does sharper decay represent in Figure 4 H? For example, with acetone, presumably the peripheral activation of the drop being applied and then evaporated and the associated behaviors are longer in nature than a von Frey filament or pin prick. Therefore, it might just be increased peripheral drive and the comparison of response magnitudes is less interesting to compare. It's really challenging to understand with this data how activity and behavior are temporally correlated.

      c. The decrease in activity observed during the free foraging task is interesting but again challenging to interpret, as it is a different suite of behaviors across a longer timescale.

      d. In Figure 6, why are uninjured animals displaying pain behaviors? A better description of how this behavioral analysis was conducted would be beneficial.

      e. It is unclear how specific these neurons are to pain rather than general attention gating to changing stimuli. If you take an SNI animal and stimulate the contralateral paw (uninjured), do you get photometry responses?

      Minor Points:

      (1) Supplemental 3B is hard to see.

      (2) The authors cite the literature well and mention the Lee et al., 2022 Current Biology paper, but a more direct comparison to their experiments might be beneficial given the similarity of the experiments but opposing conclusions.

    3. Reviewer #3 (Public review):

      I thoroughly enjoyed reading this manuscript by Kaslow et al. The study addresses an important question regarding the contribution of cortical circuits to the affective-motivational versus reflexive components of pain. The manuscript is exceptionally well written, the scholarship is strong, and the experimental design is elegant and comprehensive, spanning anatomical and molecular characterization, circuit-specific manipulations establishing causality, and in vivo fiber photometry measurements of population calcium activity in freely behaving animals. The finding that ACC→dlPAG neurons selectively contribute to affective-motivational pain-related responses without altering reflexive nociceptive responses is particularly interesting and provides an important advance in our understanding of the functional organization of pain-related circuits. Overall, the conclusions are well supported by the data. My primary concern relates to the exclusion of females. I also have several relatively minor comments related primarily to interpretation, rigor, and transparency.

      Major:

      The behavioral and in vivo experiments were conducted exclusively in male mice. This is the major weakness of an otherwise rigorous study. Given established sex differences in mechanisms underlying pain processing, it is surprising to continue to see male-only studies in the field when inclusion of both sexes has become the expected standard. The exclusion of females limits the generalizability of the findings and perpetuates assumptions that mechanisms identified in males will generalize across sexes. Ideally, key findings should be evaluated in females. The study does not need to be powered to detect sex differences unless overt sex-dependent effects emerge. The authors appropriately acknowledge the lack of female inclusion as a limitation. However, the rationale for the decision to study males exclusively is not provided. If additional experiments are not feasible, providing this rationale would improve transparency and help place the limitation in the context of the experimental design.

      Minor:

      (1) "Pain behaviors" is used throughout the manuscript to describe behavioral responses to noxious stimuli. Because pain is a subjective experience that cannot be directly measured in mice, "pain-related behaviors," "pain-like behaviors," or, where appropriate, "nociceptive responses/behaviors" would be more precise.

      (2) p. 18: The conclusion that ACC→dlPAG activity "does not encode the degree of unpleasantness" appears to rely on the absence of a significant relationship between calcium responses and behavioral/stimulus measures (Figure 6 and Figure S12). A nonsignificant correlation does not establish absence of encoding, particularly without demonstrating that the analyses are sufficiently powered to detect a biologically meaningful relationship and that the behavioral assay provides sufficient dynamic range to resolve graded unpleasantness. I suggest tempering this conclusion or, alternatively, acknowledging that the negative findings may reflect limited statistical power and/or insufficient dynamic range to detect graded differences in unpleasantness.

      (3) The electrophysiological and anatomical experiments provide strong evidence for connectivity between ACC and dlPAG neurons. However, I did not find experiments using TTX/4-AP or equivalent approaches demonstrating that the recorded responses are monosynaptic, and response latency/jitter are not reported. Although a direct connection is highly likely given the converging anatomical and physiological data, the experiments do not formally establish monosynaptic connectivity. I recommend removing "monosynaptic" or revising the terminology accordingly rather than performing additional experiments.

      (4) Please add individual data points to Figure 2G.

      (5) Please provide the number of animals and/or independent experimental replications for all anatomical experiments. Some anatomical conclusions rely primarily on representative images; major conclusions regarding projection distribution, colocalization, and related anatomical measures should be quantified where appropriate.

      (6) The chemogenetic experiments manipulate projection-defined ACC→dlPAG neurons at the level of the cell bodies. Because these neurons also exhibit collateral projections to other regions, the resulting behavioral effects cannot be attributed exclusively to their projections to the dlPAG. This does not diminish the evidence that the identified ACC neuronal population contributes to the behaviors examined, but conclusions assigning the causal effects specifically to ACC→dlPAG transmission should be qualified accordingly, and this limitation acknowledged in the Discussion.

      (7) Fiber photometry measures population-level calcium responses rather than neuronal excitation or firing. Please revise terminology throughout the manuscript where necessary.

      (8) For the photometry experiments, please clarify the number of stimulus presentations per animal and whether the reported responses represent individual trials or averages across trials. Please also indicate whether stimulus order was randomized/counterbalanced and provide the interstimulus intervals used to minimize habituation or sensitization.

      (9) Additional methodological details would improve reproducibility. For histological analyses, please report the number of sections analyzed per animal, rostrocaudal levels sampled, relevant imaging parameters/z-plane acquisition, and whether quantification was performed blinded. For viral manipulations and fiber implantation, describe procedures for verification of injection sites and fiber placement, predefined inclusion/exclusion criteria for off-target targeting, and the number of animals excluded.

      (10) Please ensure that statistical analyses appropriately account for repeated measurements within animals and clearly distinguish biological from technical replicates throughout. Exact n values should be provided for each experiment/figure panel, together with complete statistical reporting where appropriate.

      (11) The findings would benefit from discussion in the context of Becker et al. (2023), who identified a BLA→ACC pathway contributing to affective consequences of neuropathic pain without altering reflexive/sensory hypersensitivity. Although the affective outcomes examined in the two studies differ, both identify circuit-specific modulation of affective outcomes in the absence of effects on reflexive measures. It would be interesting to discuss whether BLA-recipient ACC neurons could overlap with, or provide input to, the ACC→dlPAG population identified here, while acknowledging that the relationship between these populations remains unknown.

    1. Reviewer #1 (Public review):

      Summary:

      The goal of this paper is to develop a new type of multifunctional therapeutics that can modulate multiple targets. The authors design an approach to use synthetic single-stranded DNA as a platform to attach additional oligonucleotides connected to functional elements (termed warheads), the authors term this a catamer. The authors design various catamers and molecularly model the product.

      Strengths:

      (1) Very interesting and elegant idea.

      (2) The parameters used for the molecular analysis are well described in the methods. The analyses presented are highly reproducible as a result.

      Weaknesses:

      (1) Essentially no validation beyond molecular modeling of the structures, which the authors acknowledge.

      (2) However, the idea that these catamers would stay intact in the body and/or not drive an immune response is a huge leap in my view. The paper would benefit from a more fulsome justification of why this is theoretically not the case.

      (3) More generally, there are a lot of floating statements without references. I think the paper would be stronger if more of those had citations.

    2. Reviewer #2 (Public review):

      Summary:

      Kamb and colleagues present a novel and interesting strategy for the design of multiwarhead drugs that could be useful for addressing cancer or other major disorders. They use in-silico modeling using a targeting peptide and a masked toxin delivery system attached to a DNA scaffold to show that such a drug could be assembled easily and would target appropriately. They have named these drugs as "Catamers"

      Strengths:

      Overall, the design of Catamers, as presented, is elegant in that double-stranded DNA is stable, relatively simple to assemble with current technology, can be made entirely in vitro, and commercial companies have been established to make DNA and modified DNA entirely in a tube. This clearly offers an advantage over the size constraints in making peptides, antibodies, and Darpins of any reasonable size. Since conjugation chemistry is well established, it is not unreasonable to assume it will be possible to conjugate the different payloads and allow them to assemble on a scaffold, making the process somewhat simpler. The work provides a theoretical molecular simulation of a catamer targeting PSMA, which supports the proposal that catamers have the properties required for the intended purposes. Overall, this is a very intriguing and potentially valuable technology that many in the field will be interested in testing experimentally in their respective systems.

      Weaknesses:

      Future experiments will be required to completely establish the authors' hopes or claims. For example, how generalizable will this strategy prove to be across targets? How much simpler will it be to manufacture catamers, given that the payloads are not DNA and have to be manufactured separately, conjugated to the scaffold and then assembled and separated from unconjugated material and other impurities, much like any other manufacturing? That this would be useful for multiple (greater than 3) payloads is likely, but that is not shown here. There are also additional issues of extending this that the authors have referred to: the release and uptake mechanisms that have to be engineered, the steric hindrances that impact design, potential interactions between the various payloads, and the issue of different concentration requirements for each warhead.

      The authors argue that this will be less immunogenic overall and that this is a further advantage. I agree with this position. However, the possibility of innate immune responses to DNA and fragmented DNA is something that would need to be addressed if using this therapy.

    1. Joint Public Review:

      Strengths:

      This study presents a valuable work that substantially advances our understanding of how a specific pool of DAG species (DAGs 36:0 and C36:1) can be harnessed in a context-dependent manner to modulate mitochondrial morphology and integrity. These findings contribute to a broader understanding of the functional significance of lipid structural diversity.

      The identification of a coordinated, mitochondria-localized signalling axis comprising the Psi1-Plc1 axis that produces specific DAG pools, the effector Pkc1, and the regulator Dip2 provides a mechanistic framework for understanding Pkc1 recruitment to mitochondria, a process that has not previously been demonstrated in yeast.

      The combination of yeast genetics and lipidomics under fermentative and respiratory growth conditions suggests that the accumulation of DAG 36:0 and 36:1 species is associated with changes in mitochondrial morphology and Pkc1 recruitment.

      Furthermore, the use of mutations in the C1 domains to dissect the distinct contributions of Pkc1's regulatory domains is a thoughtful approach. The findings support a functional division of labour between these domains, potentially reflecting an evolutionary history rooted in early opisthokonts.

      Overall, the evidence is solid and broadly consistent with current methodological standards in the field. This work will be of interest to cell biologists studying cell signalling, lipid biology, and mitochondrial dynamics.

      Weaknesses:

      Although the study proposes an interesting model in which a specific DAG pool regulates mitochondrial morphology and function, the data presented are not yet sufficient to fully support some of the authors' claims. In particular, the data describing changes in DAG composition within mitochondria are limited, the purity of the mitochondrial fractions is not clearly established, and the relationships between several of the reported phenotypes remain insufficiently defined.

      A more comprehensive analysis of the mitochondrial lipidome across the different experimental conditions and genetic backgrounds, together with additional genetic approaches, would help establish a more robust causal link between DAG accumulation, Pkc1 recruitment, and the observed changes in mitochondrial morphology and function. In particular, analysing mitochondrial morphology and function in the dip2Δ pkc1-(C422S, C455S) double mutant would be informative.

      Quantification and statistical analyses are also inconsistent across the study. Some experiments lack statistical analyses, while the assessment of mitochondrial colocalization relies heavily on line-scan profiles rather than more established quantitative metrics. The number of cells analysed should also be reported consistently. In addition, several key methodological details are insufficiently described, including the criteria used to assess and classify mitochondrial morphology, which is central to interpreting the results, as well as the methods used to quantify colocalization and perform statistical analyses.

      The microscopy data would further benefit from more consistent staining approaches, clearly specified image-acquisition and display settings, and more comprehensive figure legends that include scale bars and explain the rationale for the stains used. Taken together, these limitations do not invalidate the proposed model, which is plausible and supported by several lines of evidence. However, more rigorous methodological descriptions, quantitative analyses, and targeted experiments would strengthen the evidence and provide a more convincing basis for the main conclusions.

    1. I want it to run

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-35): The section stops at a wish: a specification table (test_models) and four hand-written model calls, with no code that runs the models from the table.

      Suggestion: One way to run the models from the table (code not run here; there is no R in this environment):

      ```r fit_spec <- function(df, filter, y, x, model, family) { d <- get(df) if (filter != "") d <- dplyr::filter(d, !!rlang::parse_expr(filter)) f <- reformulate(trimws(strsplit(x, ",")[[1]]), response = y) if (model == "glm") glm(f, data = d, family = family) else lm(f, data = d) }

      results <- test_models %>% mutate( fit = pmap(list(df, filter, y, x, model, family), fit_spec), coefs = map(fit, broom::tidy), summ = map(fit, broom::glance) )

      one row per coefficient

      results %>% select(dataset = df, filter, y, coefs) %>% unnest(coefs)

      one row per model

      results %>% select(dataset = df, filter, y, summ) %>% unnest(summ) ```

      Each row of the table becomes one call to fit_spec(). get() fetches the data frame by name, the filter string is parsed as in the 'lists of filters' section, and reformulate() builds the formula from the comma-separated regressors. The fitted models sit in a list-column, and tidy() and glance() turn them into the two standard result tables. The spec column df is renamed before unnesting because glance() returns a column of the same name. One caution about the example itself: the disp < 100 subset of mtcars has 5 cars, so the second specification estimates four coefficients from five observations.

    2. If you are new to tidyverse-style syntax, possibly the oddest component is the pipe

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-28): Several tooling references in this chapter predate changes in R and the tidyverse (native pipe, R4DS second edition, renamed or deprecated functions, Quarto). The quoted author's name is also misspelled.

      Suggestion: Updates to consider, in order of appearance:

      • line 35 (dynamic documents): Quarto (2022) is the successor to R Markdown and bookdown for new projects. Existing bookdown books keep working.
      • line 130: the quoted bookdown project is by A. Solomon Kurz ("Kurtz" in the text).
      • line 132 (the pipe): R 4.1 (2021) added a native pipe, |>, and R for Data Science (2nd edition, 2023) uses it throughout. %>% still works. Differences that affect this chapter: |> has no tee-pipe counterpart to %T>%, and its placeholder is _, which must be passed to a named argument (R ≥ 4.2), so lm(mpg ~ wt, data = _) replaces data = ..
      • lines 181, 201: as.tibble() → as_tibble() (deprecated since tibble 2.0).
      • line 297 onward: the second edition of R4DS dropped the modelling chapters, including 'Many models' and 'List-columns', which this section quotes. The first-edition links (r4ds.had.co.nz) still work. Nested data is now covered in the 'Hierarchical data' chapter (unnest_wider(), unnest_longer()), and for modelling workflows the authors point to Tidy Modeling with R (Kuhn and Silge).
      • lines 646–656: the .null argument of the map_*() extractor shortcuts was renamed .default; write map_dbl(x, "b", .default = NA_real_) and change the sentence above the chunk to match.
      • lines 557 and 567: see E-32 (invoke_map()) and E-33 (summarise() → reframe()).
    3. Organizing a project

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-26): Five headings have no content: 'Data: What/why/where/how' (line 31), 'Organizing a project' (33), 'Indenting and spacing' (150), 'Using functions, variable lists, etc., for clean, concise, readable code' (152) and 'Mapping over lists to produce results' (154, body commented out). The chapter cites Gentzkow and Shapiro at the top without using it.

      Suggestion: A minimal project layout. The chapter cites Gentzkow and Shapiro's Code and Data for the Social Sciences (2014). Its rules translate into a short checklist.

      • One folder per project, under version control, with a fixed structure: data/raw (never edited by hand), data/derived (always rebuilt by code), code, output, docs.
      • One script that rebuilds everything in order, from raw data to final tables (this repo's main.R is written for that role). A result that cannot be regenerated by running it should be treated as lost.
      • Paths relative to the project root, via here::here(), so the code runs on any machine.
      • Package versions recorded with renv, so the project can be rerun later.
      • Each fact stored once: derived variables are built in one place and data sets are merged on explicit keys.
      • Repeated steps turned into functions (the 'lists of filters' section below is an instance). A block pasted three times should become a function.
      • To-dos and discussion kept in an issue tracker; code comments reserved for what the code cannot say itself.

      For 'Indenting and spacing', a pointer is enough: follow the tidyverse style guide and let styler::style_file() and lintr enforce it.

    1. ROC Graphs and Curves The best-performing model at this performance point is Classifier 1.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-23): The notes stop at profit curves. ROC curves, AUC, cumulative response and lift curves (Ch. 8) have no notes, although the opening section singles out 'lift' as a key term and leaves it as a fragment (line 10, "Terms like 'lift'"). The Ch. 8 material also has no chapter heading and renders under Ch. 7.

      Suggestion: ROC, AUC, cumulative response and lift. A scoring model ranks cases, and each threshold on the score gives one confusion matrix. The ROC curve plots the true positive rate $TP/(TP+FN)$ against the false positive rate $FP/(FP+TN)$ over all thresholds. A random ranking lies on the diagonal. AUC, the area under the curve, equals the probability that a randomly drawn positive gets a higher score than a randomly drawn negative (the Mann–Whitney statistic); the Gini coefficient used in credit scoring is $2\,AUC-1$. Both rates are computed within an actual class, so ROC and AUC do not change with the class mix. They depend only on the ordering of scores, so they say nothing about calibration.

      The cumulative response (gains) curve plots the share of all positives captured against the share of the population targeted, going down the ranked list. Lift at a cut-off is the first share divided by the second: if the top 10% of the list contains 30% of responders, lift is 3. Equivalently, lift is the response rate among those targeted divided by the base rate. With a 2% base rate, lift 3 means a 6% response rate in the targeted group. These curves depend on the base rate (maximum lift is 1/base rate), so they must be computed on data with the population class mix.

    2. how does better information and forecasting boost payoffs?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-21): The author's two questions (how better information raises payoffs; commit or wait to learn) are listed with no answer. The expected value framework in this section gives a direct answer to the first.

      Suggestion: How much can better information add? Compare the model with the best decision made without one. Take the mailing example (\$99 from a responder, −\$1 from a non-responder) with a 5% response rate. Mailing everyone earns $0.05\cdot99-0.95\cdot1=4.00$ per consumer; mailing no one earns 0. A perfect classifier mails only responders and earns $0.05\cdot99=4.95$. The most any model can add is therefore 0.95 per consumer, the cost of the wasted mailings. A model with a 60% true positive rate and a 10% false positive rate earns 2.875, less than mailing everyone, so at that threshold it destroys value.

      In general, with response rate $\pi$, the ceiling on a model's contribution is $99\pi-\max(0,\,100\pi-1)$. It rises to 0.99 at $\pi=1\%$, where mailing everyone and mailing no one both earn zero, and falls on either side. Information is worth most when the uninformed decision is a close call, and worth nothing when no signal could change the action. Decision theory calls the ceiling the expected value of perfect information.

      'Commit or wait to learn' adds a cost of delay and the option to act after seeing more data; that is the explore/exploit trade-off raised in the Signet Bank margin note.

    3. Equation 7-2. Expected profit equation with priors p(p) and p(n) factored.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-20): The equation is a placeholder ('[Formula here]', line 990). Without it the point of factoring out the priors is lost. The file is pulled in from daaronr/data_acad_materials (see index.Rmd), so the text fix belongs upstream.

      Suggestion: Expected profit with class priors factored out. Write $p(\mathbf{p})$ and $p(\mathbf{n})$ for the shares of actual positives and negatives, $Y$ and $N$ for the model's predictions, and $b(\cdot,\cdot)$ for the value of each cell (costs enter as negative benefits):

      $$E[\text{profit}]=p(\mathbf{p})\,\big[\,p(Y\mid\mathbf{p})\,b(Y,\mathbf{p})+p(N\mid\mathbf{p})\,b(N,\mathbf{p})\,\big]+p(\mathbf{n})\,\big[\,p(N\mid\mathbf{n})\,b(N,\mathbf{n})+p(Y\mid\mathbf{n})\,b(Y,\mathbf{n})\,\big].$$

      The terms in brackets use only the true positive rate $p(Y\mid\mathbf{p})$ and the false positive rate $p(Y\mid\mathbf{n})$, which do not depend on the class mix. A model evaluated on a balanced sample can therefore be re-priced for the real population by inserting the real $p(\mathbf{p})$. This resolves the balanced-versus-representative confusion in the churn example earlier in the chapter.

      Example with the mailing values ($b(Y,\mathbf{p})=99$, $b(Y,\mathbf{n})=-1$, zero otherwise), a 5% response rate, and a model with a 60% true positive rate and a 10% false positive rate: $0.05\,(0.6\cdot99)+0.95\,(0.1\cdot(-1))=2.97-0.095=2.875$ per consumer.

    4. for any consumer whose feature vector description \(x\) is given as input DR: so it’s all lift

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-19): The targeting rule in this section rests on the quoted assumption that an untargeted consumer never buys, which makes the response probability equal to the causal effect of the offer. The note 'so it's all lift' points at this without spelling it out, and the later note that benefits may be correlated with observables (line 978) is left as a fragment.

      Suggestion: Response probability versus the effect of the offer. The rule 'target when $p_R(x)\cdot 99-[1-p_R(x)]\cdot 1>0$', that is $p_R(x)>1\%$, rests on the assumption quoted here: a consumer who gets no offer does not buy. Under it every sale to a targeted consumer is caused by the offer, and the predicted response rate equals the treatment effect.

      When some consumers would buy anyway, what targeting earns is the incremental margin. With margin $m$ and contact cost $c$, target when $[\,p(\text{buy}\mid x,\text{offer})-p(\text{buy}\mid x,\text{no offer})\,]\,m>c$. A consumer with an 8% purchase probability either way is worth nothing to target; one who moves from 0.5% to 2% is worth $0.015\,m$. A ranking by predicted response puts the first consumer ahead of the second.

      Estimating that difference by customer type is called uplift modelling in marketing and heterogeneous treatment effect estimation in econometrics (Athey and Imbens 2016, PNAS; Wager and Athey 2018, JASA). It needs data in which the offer was randomised, or another credible identification strategy. On terms: 'lift' in this book is a ratio of response rates (targeted group over base rate), a predictive measure, while 'uplift' is the causal difference. The book takes this up in Ch. 11.

      The later note about benefits correlated with observables is a related point: $E[p\cdot v]=E[p]\,E[v]+Cov(p,v)$, so an average value $v$ misprices targets whenever likely responders are systematically high- or low-value.

    5. However, when she applies her model to my balanced data set, she also sees an accuracy of 80% DR: a good practice pro

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-18): The author marks this as a good practice problem, but the numbers in the quoted narrative cannot hold together: a classifier with 80% accuracy on a 50:50 sample cannot have 37% accuracy on a population with 10% positives (or with any other class mix).

      Suggestion: The numbers in this example do not fit together. Accuracy is a weighted average of the true positive rate (TPR) and the true negative rate (TNR), with the class shares as weights: $accuracy=\pi\,TPR+(1-\pi)\,TNR$, where $\pi$ is the share of positives. A classifier with a fixed threshold has the same TPR and TNR on any sample.

      On the balanced data, $0.5\,TPR+0.5\,TNR=0.80$, so $TPR+TNR=1.6$ and each rate lies between 0.6 and 1. On the population, with $\pi=0.10$, accuracy is $0.1\,TPR+0.9\,TNR$, which ranges from 0.64 (TPR = 1, TNR = 0.6) to 0.96 (TPR = 0.6, TNR = 1). An accuracy of 37% lies outside that range, and for any class mix the minimum is 60%.

      The two extremes show the point the book's Figure 7-1 makes: two models with the same number of errors on balanced data, one making only false positives and the other only false negatives, score 64% and 96% on the 10%-churn population. For a practice problem, replace 37% with 64%, or ask students to show that 37% is impossible. The lesson holds either way: accuracy depends on the class mix of the test sample, so two accuracy figures can be compared only on the same population.

    6. how different from L2 with normalization?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-17): The author asks how cosine distance differs from Euclidean (L2) distance with normalisation. The answer is a one-line identity, and it depends on which normalisation is meant.

      Suggestion: Cosine distance versus Euclidean distance on normalised vectors. They rank neighbours identically. Cosine distance is $1-\dfrac{a\cdot b}{\lVert a\rVert\,\lVert b\rVert}$. Rescale each vector to unit length, $\tilde a=a/\lVert a\rVert$ and $\tilde b=b/\lVert b\rVert$. Then

      $$\lVert\tilde a-\tilde b\rVert^2=\lVert\tilde a\rVert^2+\lVert\tilde b\rVert^2-2\,\tilde a\cdot\tilde b=2\,(1-\cos\theta),$$

      which is twice the cosine distance. For the book's example, $A=(7,3,2)$ and $B=(2,3,0)$: $A\cdot B=23$, $\lVert A\rVert\lVert B\rVert=\sqrt{62}\sqrt{13}=28.4$, cosine distance $=1-23/28.4=0.19$, and the squared Euclidean distance between the unit-length versions is 0.38.

      The normalisation here is by row: each document's vector is scaled to length 1, which removes document length. That differs from the column standardisation discussed for k-NN, where each feature is rescaled across cases. Cosine distance without any column weighting still lets frequent words dominate, which is one reason text applications weight counts by TF-IDF first.

    7. curse of dimensionality—and this poses problems for nearest neighbor methods

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-15): The curse of dimensionality is named in a quote fragment and never explained.

      Suggestion: Curse of dimensionality. Nearest-neighbour methods assume that the closest training cases are close enough to resemble the case at hand. In many dimensions they are far away. Suppose features are spread uniformly over a unit cube. To capture 10% of the data around a point, a neighbourhood needs side length $0.1^{1/d}$: 0.10 with one feature, 0.32 with two, 0.79 with ten. With ten features the '10% nearest' neighbours span about 80% of the range of every feature, so the average is barely local.

      Two consequences. First, the sample size needed to keep neighbourhoods small grows exponentially with the number of features; the best achievable convergence rate for nonparametric regression of a twice-differentiable function is $n^{-2/(4+d)}$ (Stone 1982, Annals of Statistics), against $n^{-1/2}$ for a parametric model. Second, irrelevant features add noise to every distance, and with many of them the nearest and the farthest points become almost equally far away.

      The remedies listed in these notes (feature selection, domain knowledge, tuned distance functions) all reduce the effective dimension. The same problem is why exact matching on many covariates fails in causal work and why matching is usually done on a propensity score or a small set of covariates.

    8. NN for ‘regression’. Kernel models would be an extension of this

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-14): The author's note links nearest-neighbour prediction to kernel methods without saying how, and the notes do not mention that economists already use this estimator under the name of matching.

      Suggestion: k-NN regression, kernel regression and matching. Averaging the outcomes of the $k$ nearest neighbours is a nonparametric estimate of $E[y\mid x]$: a local average whose window adapts to how dense the data are around $x$. Kernel (Nadaraya–Watson) regression is the same idea with a fixed window: every observation gets a weight that declines with its distance from $x$, governed by a bandwidth $h$, and the prediction is the weighted mean. The book's 'weighted voting' is a hybrid of the two.

      $k$ and $h$ play the same role. Small $k$ (or $h$) gives low bias and high variance; $k=n$ returns the sample mean for everyone. Roughly $n/k$ acts as the number of effective parameters, so $k$ is chosen by cross-validation like any other complexity setting.

      Economists use the same estimator under another name. Nearest-neighbour matching imputes each treated unit's missing untreated outcome as the average outcome of its $k$ closest controls, which is k-NN regression fitted on the control group and evaluated at the treated units' covariates. Abadie and Imbens (2006, Econometrica) show that with several continuous covariates the matching discrepancy leaves a bias that does not vanish at the $\sqrt{n}$ rate. That is the curse of dimensionality that also limits k-NN prediction.

    9. Data doesn’t need to be normalized for methods such as decision trees as information gain is calculated for each individual variable

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-13): The explanation of why scaling affects distance is garbled ('affected by the distance between variables'), and the reason given for trees is wrong: trees do use relationships between variables, through successive splits. They are unaffected by scaling because a split depends only on the ordering of a feature's values. The author's later note (line 760) asks for a discussion of standardising, which this box supplies. The file is pulled in from daaronr/data_acad_materials (see index.Rmd), so the text fix belongs upstream.

      Suggestion: Scaling and distance. Euclidean distance adds squared differences across features, so each feature's contribution depends on its units. Take two customers who differ by 5 years of age and \$1,000 of income. With income in dollars the squared distance is $5^2+1000^2$ and age is irrelevant; with income in thousands it is $5^2+1^2$ and age dominates. The choice of units is an implicit choice of feature weights, and the resulting number has no interpretation until that choice is made deliberately.

      Common choices: z-scores (subtract the mean, divide by the standard deviation), which put distances in standard-deviation units; range normalisation to $[0,1]$, which is sensitive to outliers; Mahalanobis distance, which also adjusts for correlation between features. Any of these can be followed by explicit weights when domain knowledge says some features should count for more.

      Trees need no scaling, for a different reason from the one given. A split asks whether $x_j$ is above a threshold, which depends only on the ordering of $x_j$, so any monotone rescaling of a feature leaves the tree unchanged. Trees do use relationships between variables: each split is evaluated within the subsample defined by the splits above it, which is how they capture interactions.

    10. This means that the model will tend to perform poorly on newer data.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-12): OF's summary says that more flexibility 'means' poor performance on new data. That follows only where the variance added exceeds the bias removed. 'Highly non-linear models tend to have higher variation' should refer to flexible models and to variance. Later work also shows that the U-shaped fitting graph quoted at line 721 does not hold for all model classes.

      Suggestion: Suggested rewording: "For squared error, expected prediction error at a point decomposes as $E[(y-\hat f(x))^2]=\text{bias}^2+\text{variance}+\sigma^2$. Making a model more flexible, for example by adding tree nodes, lowers bias and raises variance. Test error falls while the bias reduction dominates and rises once the variance increase dominates; the best complexity is where the two balance. For a given sample size, more flexible models have higher variance, and more data lowers variance at any complexity."

      Update for the same passage: the U-shaped test-error curve (the book's fitting graph) describes models that are regularised or have fewer parameters than observations. Belkin, Hsu, Ma and Mandal (2019, PNAS) document 'double descent': as capacity grows past the point where the model fits the training data exactly, test error can fall again, sometimes below the classical minimum. Hastie, Montanari, Rosset and Tibshirani (2022, Annals of Statistics) derive this for minimum-norm least squares. The practical advice in these notes stands: choose complexity by validation performance. The inference from 'fits the training data perfectly' to 'overfit' does not hold in general. This also bears on the author's margin note at line 156 about overfitting versus model complexity.

    11. : I don’t entirely get how the nesting works

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-11): The author's note says the nesting in nested holdout / nested cross-validation and in sequential forward selection is unclear; the quotes give the pieces without the procedure.

      Suggestion: How the nesting works. There are two separate questions, and each needs data the other has not touched: (1) which model variant is best (which features, what tree size, what $\lambda$), and (2) how well the chosen model will do on new data.

      Nested holdout. Split off a test set and lock it away. Split the rest into a subtraining set and a validation set. Fit every candidate on the subtraining set and score it on the validation set. For sequential forward selection: fit each one-feature model and keep the best feature; fit each two-feature model that contains it and keep the best pair; continue until validation performance stops improving. Refit the chosen specification on subtraining plus validation data, and evaluate that one model once on the test set.

      Nested cross-validation replaces each split with folds. The outer loop holds out fold $j$ for testing. Within the remaining data, an inner cross-validation picks the variant, which is then refitted and scored on fold $j$. Averaging over the outer folds estimates the performance of the whole procedure, selection included.

      The nesting is needed because the winner's validation score is biased upward: it is the maximum of many noisy scores (Cawley and Talbot 2010, Journal of Machine Learning Research). With grouped or time-ordered data, split by group or by time at both levels; otherwise information leaks across folds.

    12. then the hypothesis test concludes that the difference is likely not due to chance DR: somewhat impre

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-10): The author flags the book's wording as imprecise without saying how. Two problems: a p-value below 5% is a statement about the data under the null hypothesis, and in a tree the test is applied to a split chosen as the best of many candidates, so its nominal p-value overstates the evidence.

      Suggestion: What the test at a leaf does and does not say. A p-value is the probability of seeing a split at least this good if the attribute were unrelated to the target in this node. A value below 5% means such data would be unusual under 'no relationship'. It does not give the probability that the split is due to chance, which would also depend on how plausible a real relationship was beforehand.

      In tree induction there is a second problem. The algorithm tests the best split found after searching over every attribute and every cut-point. The maximum of many noisy statistics is large even when nothing is going on, so the nominal p-value of the winning split overstates the evidence. With 20 independent irrelevant attributes, the chance that at least one passes a 5% test is $1-0.95^{20}=64\%$. This is the multiple-comparisons point in the book's sidebar, applied inside the tree.

      Conditional inference trees (Hothorn, Hornik and Zeileis 2006, Journal of Computational and Graphical Statistics; partykit::ctree in R) deal with this by using permutation tests with a multiplicity adjustment to choose the split variable and to stop. The more common alternative skips testing: grow a large tree and prune it back using cross-validated error.

    13. It does not explain why overfitting often causes models to become worse

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-09): The author notes that the book does not explain why overfitting makes models worse and offers a guess (less attention paid to meaningful information). The mechanism is estimation variance, and OLS gives an exact formula for it.

      Suggestion: Why overfitting makes predictions worse. The mechanism is estimation variance. Every parameter fitted from a finite sample carries sampling error, and a model with more parameters, or a tree with more leaves, turns more of the sample's noise into parameter values. New data do not share that noise, so the noise-fitted parts of the model produce errors.

      OLS gives an exact statement. With $n$ observations, $k$ regressors, error variance $\sigma^2$ and a correctly specified model, the expected in-sample mean squared error is $\sigma^2(1-k/n)$, while the expected error in predicting fresh outcomes at the same $x$ values is $\sigma^2(1+k/n)$. With $n=100$ and $k=20$ the training error understates $\sigma^2$ by 20% and the prediction error exceeds it by 20%. Adding a regressor whose true coefficient is zero always lowers training error and raises expected prediction error by $\sigma^2/n$. The gap, $2\sigma^2k/n$, is the penalty that Mallows' $C_p$ and AIC add back.

      In general, expected squared prediction error is bias² + variance + irreducible noise. Extra flexibility lowers bias and raises variance, and overfitting is the range where the variance added exceeds the bias removed. The guess in the note is close in one respect: with correlated features, including irrelevant ones also makes the coefficients on the relevant ones noisier.

    14. The stack of models can be represented by one big parameterized numeric function. The DR: So why consider it in many lay

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-07): The author's question (why think in layers if the network is one big function) is left open.

      Suggestion: Why layers, if it is all one function? The layers describe how the function is built, and the construction is the source of its flexibility. A single logistic regression is linear in its inputs: the decision boundary is a hyperplane, and any interaction or curvature has to be added by hand as extra features. In a network, each hidden unit applies a nonlinear transformation to a weighted sum of the inputs, and the next layer runs a regression on those transformed values. The hidden units are features that the fitting procedure constructs for itself. An economist can read a one-hidden-layer network as a regression on basis functions whose shapes are estimated together with the coefficients.

      The nonlinearity between layers is essential. If every unit were linear, a stack of layers would collapse algebraically into one linear model. With a nonlinear activation, one hidden layer with enough units can approximate any continuous function on a bounded domain (Hornik, Stinchcombe and White 1989, Neural Networks). Depth adds economy: functions built by composition can need far fewer parameters in a deep network than in a wide shallow one. The layered form also makes fitting feasible, because the derivative of the loss with respect to every weight follows from the chain rule applied layer by layer (back-propagation).

    15. not sure I get what the margin means here

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-06): The author's note says the margin is unclear. The quoted description of hinge loss is also looser than the standard definition, under which the loss is already positive for correctly classified points that lie inside the margin. The earlier note 'Which should we pick? underdetermined' (line 520) has a direct counterpart in logistic regression that is not mentioned.

      Suggestion: Margin and hinge loss. Code the classes as $y\in{-1,+1}$ and let $f(x)=w\cdot x+b$ be the linear score, with the decision boundary at $f(x)=0$. The product $y\,f(x)$ is positive when a point is classified correctly and grows with its distance from the boundary. The SVM scales $w$ so that the closest correctly classified points sit at $y\,f(x)=1$. The band $-1<f(x)<1$ is the margin. Its width is $2/\lVert w\rVert$, so maximising the margin means minimising $\lVert w\rVert$.

      Hinge loss is $\max(0,\,1-y\,f(x))$. It is zero for points on the correct side and outside the band, and rises linearly once a point crosses its own edge of the band. A point at $y\,f(x)=0.4$ is correctly classified and still pays 0.6; a point at $y\,f(x)=-2$ is misclassified and pays 3. The quoted sentence ('only becomes positive when an example is on the wrong side of the boundary and beyond the margin') is looser than this definition.

      On 'which should we pick' when many lines separate the classes perfectly: the SVM picks the one with the widest margin. Unpenalised logistic regression has no finite maximum likelihood estimate in that case (perfect separation; the coefficients grow without bound), which is why software warns or drops variables. A ridge penalty restores a finite solution.

    16. how much information has this attribute provided? That depends on how much purer the children are than the parent

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-04): The information gain formula appears only as an image (../picsfigs/infogain.png), and that path does not resolve in this repo, so the built page shows no formula. There is no worked example, and no link to statistics an economist already knows.

      Suggestion: Information gain, worked. For a set with class shares $p_1,\dots,p_k$, $entropy=-\sum_i p_i\log_2 p_i$: 0 for a pure set, 1 for a 50/50 two-class set. For a split of a parent set into children $c_1,\dots,c_m$,

      $$IG=entropy(parent)-\sum_j p(c_j)\,entropy(c_j),$$

      where $p(c_j)$ is the share of the parent's instances that fall in child $c_j$.

      Example: 100 borrowers, 40 of whom defaulted, so $entropy=-(0.4\log_2 0.4+0.6\log_2 0.6)=0.971$. Splitting on 'balance above 50K' gives one child with 30 borrowers (24 defaults, entropy 0.722) and one with 70 (16 defaults, entropy 0.776). The weighted child entropy is 0.759 (rounded), so $IG=0.971-0.759=0.212$ bits.

      Two links to familiar statistics. Information gain is the mutual information between the split and the class, and $2N\ln(2)\cdot IG$ is the likelihood-ratio ($G$) statistic for independence in the split-by-class table; here $2\cdot100\cdot0.693\cdot0.2115=29.3$ on one degree of freedom. CART uses Gini impurity, $1-\sum_i p_i^2$, in the same way and usually picks similar splits. Information gain favours attributes with many distinct values, which is why C4.5 divides it by the entropy of the split itself (gain ratio).

    17. To me this seems very close to the classification of class probability problem.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-03): Three margin notes (lines 236, 247, 262) ask how similarity matching, clustering and co-occurrence grouping differ from classification and from each other. The supervised/unsupervised section a page later answers this but is never connected back.

      Suggestion: How these tasks differ. The dividing line is whether a target variable defines what counts as similar.

      • Classification is supervised. Two customers land in the same class because their features predict the same label; features that do not predict the label are ignored.
      • Similarity matching has no label. The analyst chooses the features and the distance function, and the output is a ranking of neighbours for a given case. It becomes a predictive tool once the neighbours' labels are averaged (k-nearest neighbours, Ch. 6).
      • Clustering also has no label. It applies a similarity measure to the whole population at once and returns groups, with no reference case.
      • Co-occurrence grouping measures similarity between items (columns) from the transactions that contain them, where clustering compares customers (rows) by their attributes. Its outputs are rules such as 'baskets with A also contain B', scored by support, confidence and lift.

      The book's own summary, paraphrased: classification, regression and causal modelling are generally supervised; clustering, co-occurrence grouping and profiling are generally unsupervised; similarity matching, link prediction and data reduction can be either.

    18. This section notes that regression analysis is used for prediction rather than inference.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-02): DR and OF disagree in the margin about the book's claim that regression extracts patterns that generalise to other data, and the note leaves it unresolved. Each is right about a different use of the fitted model.

      Suggestion: What regression delivers without 'many further assumptions'. The book uses 'regression' for any supervised method with a numeric target, judged by prediction error on new cases. For that purpose few assumptions are needed. OLS estimates the best linear predictor of $y$ given $x$, the $\beta$ that minimises $E[(y-x'\beta)^2]$, whether or not $x$ is exogenous. If new cases come from the same joint distribution of $(x,y)$ as the training data, the predictions carry over, and a holdout sample measures how well.

      The further assumptions are needed for other uses. Reading a coefficient as the effect of changing $x$ requires exogeneity (no omitted confounders, no reverse causality). Standard errors and tests require assumptions about the error structure. Prediction itself fails when the joint distribution shifts, for example when the firm changes the policy that generated the data; this is the Lucas critique in a business setting.

      OF's reading matches what the book means. DR's objection applies as soon as the fitted model is used to say what would happen under an intervention. Mullainathan and Spiess (2017, Journal of Economic Perspectives) frame the split as $\hat{y}$ problems versus $\hat{\beta}$ problems; Shmueli (2010, Statistical Science) covers the same ground.

    19. Algorithm-wise, this is a ‘multi-armed bandit’ problem. Popular discussion of this:

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (E-01): The margin note says more efficient experimentation 'will be adaptive'. Efficiency depends on the objective: bandit allocation minimises profit forgone during the test, while Signet's stated aim was to gather data for predictive models of profitability across customer types and terms. Adaptive assignment also invalidates standard estimates and standard errors.

      Suggestion: Adaptive assignment is efficient for some goals and costly for others. A multi-armed bandit shifts customers toward the offers that have done best so far. That minimises profit forgone during the test (regret) and suits the case where the goal is to settle quickly on one best offer. Signet's goal in this passage was different: to learn how profitability varies with customer characteristics and contract terms, so that each segment could be priced later. Estimating that whole response surface needs observations on offers that look bad on average, and a bandit stops collecting them. The adaptive design that fits is a contextual bandit, or an allocation rule built for the estimation target (Kasy and Sautmann 2021, Econometrica, treat the case of choosing a policy after the experiment).

      Adaptive data also complicate inference. Assignment probabilities depend on earlier outcomes, so arm-level sample means are biased and the usual standard errors are invalid; Hadad, Hirshberg, Zhan, Wager and Athey (2021, PNAS) give corrected estimators. Fixed-share randomisation, as Signet used, gives unbiased estimates for every arm with standard methods.

    1. generate many copies of orig data set, imputing missing value for each

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-39): The multiple-imputation recipe stops at '2 more steps here', and the assumption that makes either imputation or the Bayesian treatment valid (missing at random) is not mentioned.

      Suggestion: Claude explains: the two missing steps, and the assumption underneath. (3) Run the analysis on each of the $m$ completed datasets, giving estimates $\hat Q_1,\dots,\hat Q_m$ with variances $U_1,\dots,U_m$. (4) Combine with Rubin's rules: the point estimate is the average $\bar Q$, and the total variance is $$T = \bar U + \left(1 + \tfrac{1}{m}\right)B,$$ where $\bar U$ is the average within-imputation variance and $B$ the variance of the $\hat Q_i$ across imputations. $B$ is the extra uncertainty from not knowing the missing values.

      Example: five imputations give 0.50, 0.55, 0.45, 0.60, 0.40, each with SE 0.10. Then $\bar Q = 0.50$, $\bar U = 0.01$, $B = 0.00625$, $T = 0.0175$ and the SE is 0.132, against 0.10 if one imputed dataset were treated as real.

      The fully Bayesian route does this in one pass. Missing values are unknowns sampled alongside the parameters, which is why a model for the incomplete variable ($X \mid \alpha$) is needed.

      Both rest on the data being missing at random: missingness may depend on observed variables but, given those, not on the missing value itself. If dropout depends on the unobserved outcome, the missingness process has to be modelled as well, and results then rest on assumptions the data cannot test.

    2. Jeffreys priors (??)

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-37): Jeffreys priors are listed with two question marks and no content. (The name is Jeffreys, after Harold Jeffreys, so the possessive is misplaced.)

      Suggestion: Claude explains: Jeffreys priors. Named after Harold Jeffreys. The prior density is proportional to the square root of the Fisher information, $p(\theta) \propto \sqrt{I(\theta)}$ (of its determinant, with several parameters).

      The motivation is invariance. A flat prior on a probability $p$ is not flat on the log-odds, so 'ignorance' depends on how the parameter is written. The Jeffreys prior gives the same answers under any parameterisation: derive it for $p$ and transform, or derive it directly for the log-odds, and the result is identical.

      Examples: for a binomial proportion, $I(p) = n/[p(1-p)]$, which gives a Beta(½, ½) prior. After 3 successes in 10 trials the posterior is Beta(3.5, 7.5) with mean 0.32; a flat prior gives Beta(4, 8) with mean 0.33. For a normal mean with known variance the Jeffreys prior is flat. For a standard deviation it is $p(\sigma) \propto 1/\sigma$, flat on $\log\sigma$. For a Poisson rate it is proportional to $\lambda^{-1/2}$.

      It serves as a default or 'objective' prior in one-parameter problems. It is often improper (it does not integrate to one), which rules out Bayes factors, and in multi-parameter models it can behave poorly. Applied work now mostly uses weakly informative priors.

    3. Most social scientists use non-informative or vague priors; i.e., large variance

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-36): The note reports the use of vague priors such as $N(0,1000)$ without the two standard warnings: the second argument means different things in BUGS/JAGS (precision) and Stan/brms (standard deviation), and a 'vague' prior on a coefficient can be strongly informative about the outcome. Advice has moved to weakly informative priors checked by prior predictive simulation, as the meta-analysis chapter of this book already recommends.

      Suggestion: Claude explains: 'vague' priors are informative on other scales. Two practical points.

      Parameterisation. $N(0, 1000)$ means different things in different software. BUGS and JAGS use precision: dnorm(0, 0.001) has variance 1000. Stan and brms use the standard deviation: normal(0, 1000) has variance one million. Copying numbers between them is a common error.

      Implied predictions. A wide prior on a coefficient can be a strong prior on the outcome. In a logit model with a standardised regressor and zero intercept, $\beta \sim N(0, 10^2)$ puts 62% of its mass on $|\beta| > 5$, which implies that moving $x$ from one SD below its mean to one SD above takes the outcome probability from under 1% to over 99%, or the reverse. Few social-science effects look like that, so the 'vague' prior asserts something implausible. Flat-looking priors on variance parameters cause similar trouble when there are few groups (Gelman 2006).

      Current advice is weakly informative priors on a sensible scale (Gelman et al. 2008 propose a Cauchy with scale 2.5 for logit coefficients on standardised inputs), checked by prior predictive simulation: draw parameters from the prior, simulate data, and see whether the simulated outcomes are believable.

    4. against the llhd at the posterior parameter mean. Always select model with lowest DIC

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-34): The description of DIC is hard to follow (the 'comparison' it describes yields the complexity penalty, not DIC itself), and DIC has since been superseded as the default by WAIC and PSIS-LOO. 'Always select the model with lowest DIC' ignores the uncertainty in the difference.

      Suggestion: Claude explains: DIC, and what replaced it. Define the deviance $D(\theta) = -2\log p(y \mid \theta)$. Let $\bar D$ be its average over posterior draws and $D(\bar\theta)$ its value at the posterior mean of the parameters. The gap $p_D = \bar D - D(\bar\theta)$ acts as an effective number of parameters, and $$DIC = \bar D + p_D = D(\bar\theta) + 2p_D .$$ So the comparison described in the text produces the complexity penalty; DIC is fit plus that penalty, a Bayesian analogue of AIC. Example: $\bar D = 210$ and $D(\bar\theta) = 204$ give $p_D = 6$ and $DIC = 216$.

      DIC is no longer the default recommendation. It relies on a point estimate, $p_D$ can be negative, it changes under reparameterisation, and it behaves poorly for hierarchical and mixture models (Spiegelhalter et al. 2014). Current practice estimates out-of-sample predictive accuracy with WAIC or approximate leave-one-out cross-validation (PSIS-LOO; Vehtari, Gelman and Gabry 2017), available as loo(fit) and loo_compare() in brms. These report a standard error for the difference between models, which tempers 'always pick the lowest': a difference smaller than about two standard errors is no clear preference.

    5. Systematic differences between replicate and actual data indicate model limitations

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-33): The section asks '?? what are reasonable values here??' for Bayesian p-values and leaves the posterior predictive display unfinished ('$p(y_{replicated}|y_{observed}= ...$'). The comparison is written with a draw superscript on the observed data. 'No r-squared' is out of date.

      Suggestion: Claude explains: posterior predictive p-values. Replicated data come from the posterior predictive distribution, $p(y^{rep} \mid y) = \int p(y^{rep} \mid \theta)\,p(\theta \mid y)\,d\theta$: draw $\theta^{(s)}$ from the posterior, then simulate a dataset from the model at $\theta^{(s)}$. Choose a test quantity $D$ (the maximum, the share of zeros, the skewness) and compare $D(y^{rep(s)})$ across draws with the single observed value $D(y)$. The observed data carry no draw index.

      The posterior predictive p-value is the share of replicates with $D(y^{rep}) \ge D(y)$. Values near 0.5 mean the model reproduces that feature. Values below about 0.05 or above 0.95 put the observed feature in the tail of what the model generates. Example: the data contain 30% zeros and 4000 replicated datasets contain between 5% and 18% zeros. The p-value is 0, and the model needs a component for zeros.

      Two cautions. These p-values are not uniform under a correct model; they concentrate around 0.5 because the data are used twice, so 0.05 is stronger evidence of misfit than it sounds (Gelman, Meng and Stern 1996). And the choice of $D$ matters: a feature the model fits directly, like the mean in a regression, will always look fine.

      On 'no r-squared': a Bayesian $R^2$ now exists (Gelman, Goodrich, Gabry and Vehtari 2019; brms::bayes_R2()).

    6. Every path starting from the center is a possible (sequence of) draws

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-30): The section sets up the 'garden of forking data' and then stops at '[CUT A BUNCH HERE]' before the counting argument reaches its conclusion, so the reader never sees how counting paths becomes a posterior. The referenced figure is also missing. (Just above, 'permutations rule' should be the multiplication rule: draws are with replacement, $4^3 = 64$.)

      Suggestion: Claude explains: where the garden leads (the part cut here). Suppose three draws with replacement give blue, white, blue. For each possible bag, count the paths through the garden that produce exactly this sequence. A bag with $b$ blue marbles out of 4 has $b$ ways to produce the first blue, $4-b$ ways to produce the white, and $b$ ways to produce the last blue:

      | Blue marbles in bag | Ways, $b(4-b)b$ | Plausibility | |---|---|---| | 0 | 0 | 0 | | 1 | 3 | 0.15 | | 2 | 8 | 0.40 | | 3 | 9 | 0.45 | | 4 | 0 | 0 |

      Plausibility is the count divided by the total, 20. This is Bayes' rule with a flat prior: the count is proportional to the likelihood $p^2(1-p)$ with $p = b/4$.

      Updating works by multiplication. Draw one more blue: multiply each count by $b$, the number of ways that bag can produce a blue, giving 0, 3, 16, 27, 0 and plausibilities 0, 0.07, 0.35, 0.59, 0. Yesterday's posterior counts act as today's prior. Other prior information, say that bags with one blue marble are three times as common as the rest, enters the same way, by multiplying the counts.

    7. When/what can we say about the ‘absence of an effect’

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-29): Two questions are posed and left unanswered: what can be said about the absence of an effect, and how to handle diagnostic tests such as the common-trend assumption. Both have standard answers that fit in a short box.

      Suggestion: Claude explains: saying something positive about a null. A non-significant test is compatible with no effect and, when the interval is wide, with large effects in either direction. A posterior lets you state how much probability lies in a range you would regard as negligible.

      Fix a smallest effect of interest $\delta$ before seeing the data, then compute $P(|\beta| < \delta \mid y)$ from the posterior draws. Example: the posterior for a treatment effect is $N(0.02, 0.05^2)$ and effects below 0.10 SD are judged unimportant. Then $P(-0.10 < \beta < 0.10 \mid y) = 0.94$, strong support for 'no meaningful effect'. Had the posterior SD been 0.20, the same probability would be 0.38 and the fair summary would be 'uninformative'.

      This is the 'region of practical equivalence' approach (Kruschke 2018). The frequentist counterpart is equivalence testing with two one-sided tests (Lakens 2017), which asks whether the 90% confidence interval lies inside $(-\delta, \delta)$. In both, the conclusion depends on $\delta$, which should be justified and reported.

      For diagnostic tests such as pre-trends, the same logic applies: Roth (2022, AER: Insights) shows that passing a low-powered pre-test is weak evidence, and Rambachan and Roth (2023, Review of Economic Studies) replace pass/fail with a stated bound on the violation of parallel trends and report the effects consistent with it (R package HonestDiD).

    1. Diagnosis and responses: P-curves, funnel plots, adjustments

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-27): The publication-bias section consists of one bullet, an unattributed quotation that reads like a pasted message, and an empty sub-heading, although robust_diagnos.Rmd links here for the topic. The tools named in the heading are not explained, and the field has moved on since these notes (selection models, comparisons with large replications).

      Suggestion: Claude explains: the logic of the standard tools. Without selection, small and large studies estimate the same thing, so estimates should scatter symmetrically around the pooled effect, more widely for small studies. A funnel plot (estimate against standard error) shows this. If small studies are published mainly when significant, the corner with small studies and small effects is empty, and estimates rise with the standard error.

      Egger's test regresses the estimate on its standard error, weighting by precision; a non-zero slope signals asymmetry. PET uses the same regression and reads the intercept as the effect in a hypothetical study with $SE = 0$; PEESE uses $SE^2$ as the regressor and is preferred when PET rejects zero (Stanley and Doucouliagos 2014). Example: if estimates cluster around 0.2 for studies with $SE = 0.05$ and around 0.5 for studies with $SE = 0.2$, the fitted line has slope 2 and intercept 0.1.

      p-curve looks only at significant results. A true effect produces many very small p-values, a null effect a flat distribution, and a pile-up just under 0.05 suggests specification searching (Simonsohn, Nelson and Simmons 2014).

      Asymmetry has other causes, including real heterogeneity correlated with study size and, for SMDs and odds ratios, a mechanical correlation between the estimate and its SE. All these tools have low power below about ten studies.

      Further pointers (for a hypothes.is comment). (1) Selection models estimate the publication probability as a function of the z-statistic and correct for it: Hedges (1992), Vevea and Hedges (1995), and Andrews and Kasy (2019, AER); implemented in metafor::selmodel() and, with Bayesian model averaging, in RoBMA (Maier, Bartoš and Wagenmakers 2023). (2) Carter, Schönbrodt, Gervais and Hilgard (2019) find that no correction method dominates and all degrade under heterogeneity. Kvarven, Strømland and Johannesson (2020, Nature Human Behaviour) compare meta-analyses with preregistered multi-lab replications of the same effects: meta-analytic effects were almost three times as large, and corrections closed only part of the gap. (3) On the multiple-testing bullet: yes. If a study can report the best of several outcomes or specifications, selection operates within studies too, where funnel-based methods cannot see it (Brodeur, Cook and Heyes 2020, AER). (4) Which DellaVigna paper is meant? DellaVigna and Linos (2022, Econometrica), comparing nudge-unit trials with published nudge studies, fits the description. The first name is Stefano, and the quotation has no attribution.

    2. so the effects of the interventions we find in this meta-analysis are very likely to be meaningful

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-26): The quoted conclusion moves from 'the mean effect is almost surely above 0.30' to 'the effects of the interventions are very likely to be meaningful'. The first is a statement about $\mu$; the second, read as a statement about an intervention in a given setting, needs the predictive distribution, which includes $\tau$ and gives a much less comfortable number.

      Suggestion: Claude explains: mean effect versus the effect in a new setting. The ECDF calculation concerns $\mu$, the average of the distribution of true effects. Someone deciding whether to run the intervention in a new setting needs the distribution of the effect there, $\theta_{new} \sim N(\mu, \tau^2)$, which is much wider.

      Rough numbers: with $\mu \approx 0.57$ and $\tau \approx 0.3$ (about what this model returns), $P(\theta_{new} < 0.30) \approx \Phi((0.30-0.57)/0.30) \approx 0.18$. The mean effect is almost surely above 0.30, yet nearly one setting in five would have a true effect below it.

      The posterior draws give this directly, including the uncertainty in $\mu$ and $\tau$:

      r theta_new <- rnorm(nrow(post.samples), post.samples$smd, post.samples$tau) mean(theta_new < 0.30) quantile(theta_new, c(.025, .975)) # 95% prediction interval

      Both probabilities are conditional on the model and on the included studies being an unselected sample of the evidence. Publication bias would pull $\mu$ down and is reflected in neither.

    3. Above we see the estimated ‘sd of the mean

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-25): 'sd(Intercept)' is described as the 'sd of the mean effect'; it is $\tau$, the between-study SD of true effects. Three margin notes nearby ask what 'Est.Error' is, why the density peaks differ from the printed values, and by what 'criteria' the study estimates are averaged toward the mean (said to be 'mentioned later', but never explained).

      Suggestion: Claude explains: reading the brms output. Under Group-Level Effects, sd(Intercept) is $\tau$, the standard deviation of true effects across studies. It measures heterogeneity and is unrelated to the precision of the mean effect. Under Population-Level Effects, Intercept is $\mu$. For each row, Estimate is the posterior mean, Est.Error the posterior standard deviation (the counterpart of a standard error, answering the margin question) and the CI columns are the 2.5th and 97.5th posterior percentiles. Density peaks differ from the printed values because the table reports means and a peak is a mode; the posterior of $\tau$ is right-skewed, so its mode is below its mean.

      ranef() returns each study's deviation after shrinkage. Given $\mu$ and $\tau$, the posterior mean of study $k$'s true effect is $$\tilde\theta_k = B_k\mu + (1-B_k)\hat\theta_k,\qquad B_k = \frac{\sigma_k^2}{\sigma_k^2+\tau^2}.$$ Noisy studies are pulled strongly toward $\mu$, precise ones barely. Example with $\mu = 0.57$ and $\tau = 0.30$: a study reporting 1.00 with $\sigma_k = 0.30$ has $B_k = 0.5$ and $\tilde\theta_k = 0.785$, a deviation of 0.215 against a raw gap of 0.43. With $\sigma_k = 0.10$, $\tilde\theta_k = 0.957$. The forest plot below shows these shrunken values, which is why its rows differ from the published estimates.

    4. Some priors never allow the data to overload them, so we should be careful using them

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-22): The margin note asks for a formal definition of the prior's influence shrinking with data. The standard result (Bernstein–von Mises) can be stated briefly, together with the point that in meta-analysis 'data' means the number of studies.

      Suggestion: Claude explains: the formal statement (Bernstein–von Mises). Under regularity conditions, if the prior density is continuous and positive at the true parameter value, the posterior converges in total variation distance to a normal distribution centred at the maximum likelihood estimate with variance $I(\theta)^{-1}/n$, the inverse Fisher information. Two analysts whose priors both satisfy the condition end up with posteriors that converge to each other. Total variation is the largest difference in probability the two distributions assign to any event, which answers the question of how 'smaller and smaller' is measured.

      A conjugate example shows the rate. With prior $\theta \sim N(m_0, s_0^2)$ and a sample mean $\bar y$ from $n$ observations of variance $\sigma^2$, the posterior mean puts weight $(1/s_0^2)/(1/s_0^2 + n/\sigma^2)$ on $m_0$, which falls like $1/n$.

      Priors that the data cannot overwhelm are those assigning zero probability to a region containing the truth, for example a uniform prior on $[0,1]$ for a parameter that is really 2. Bayes' rule multiplies by the prior, so zero stays zero.

      In meta-analysis the relevant sample size for $\mu$ and $\tau$ is the number of studies, however many participants each has. With ten studies the prior on $\tau$ still has influence, which is why sensitivity analysis over that prior is routine.

    5. Recommended distribution for this case (for variances in general)

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-21): Three imprecisions about the half-Cauchy prior: it is placed on the standard deviation $\tau$ (as the complete model and 'class = sd' show), not on the variance; it is a truncated Cauchy, not a censored one (censoring would put a point mass at zero); and the scale $s$ does not control 'how heavy-tailed' the distribution is. The margin exchange (line 491) about what $s$ means is left unresolved.

      Suggestion: Text fixes: 'Recommended distribution for the between-study standard deviation $\tau$ (and for scale parameters in general; Gelman 2006): the half-Cauchy prior, a Cauchy truncated to non-negative values', with the sub-heading 'For $\tau$'. Line 467: '$s$, the scale parameter (how spread out)'. Line 486: the half-Cauchy mean is infinite (it is the full Cauchy's mean that is undefined). 'One might consider $s=0.3$' appears twice (lines 484, 488).

      Claude explains: what the scale $s$ means. For a half-Cauchy with location zero, $s$ is the median: half the prior mass lies below $s$, which is what phcauchy(0.3, sigma = 0.3) returning 0.5 shows. Other quantiles scale in proportion, $q_p = s\tan(\pi p/2)$. The parameter sets the spread; the shape of the tail is the same for every $s$.

      With $s = 0.5$ the prior median of $\tau$ is 0.5, the 90th percentile is 3.2 and the 95th is 6.4; about 30% of the prior mass has $\tau > 1$. On the SMD scale, $\tau = 1$ means true effects differ across studies with a standard deviation of a full unit of $d$, so this prior is generous to very large heterogeneity. With many studies that hardly affects the result. With five to ten it can widen the posterior for $\tau$ and the interval for $\mu$ noticeably.

      Lighter-tailed alternatives are a half-normal or half-Student-$t$ with similar scale (Williams, Rast and Bürkner 2018; Röver et al. 2021). In brms, prior(cauchy(0, 0.5), class = sd) is truncated at zero automatically because sd parameters are constrained to be positive.

    6. a Bayesian term which links to our probability for an event to being our best guess estimate

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-20): In this contributor fold the term meant is 'coherent', not 'consistent', and coherence is described as if it required a zero prior mean when the sign of the effect is uncertain. The following fold states that bias 'doesn't really exist for subjectivists', which is one position among several.

      Suggestion: Comment for the author(s): the term is 'coherent' (de Finetti). A set of probability judgements is coherent if it obeys the probability axioms, equivalently if no combination of bets placed at those probabilities guarantees a loss. 'Consistent' has a different meaning in statistics (an estimator, or a posterior, converging on the truth as data accumulate). Coherence does not single out zero as the prior mean: a prior centred at 0.3 with wide spread, giving positive probability to negative effects, is fully coherent. Whether it is reasonable depends on prior evidence about this class of interventions. A zero-centred prior is a sceptical, regularising choice that shrinks estimates toward no effect, and can be defended on those grounds. On the next fold: Bayesian estimators have well-defined frequentist properties (a posterior mean is typically biased toward the prior mean and has lower variance), and many Bayesians check them; see Little (2006, The American Statistician) on 'calibrated Bayes'.

    7. DerSimonian-Laird is also seen to be prone to producing false positives (for the mean effect I think?)

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-18): Two separate choices are run together: the estimator of $\tau^2$ (DL, SJ, REML...) and the method for the confidence interval of the mean (Wald versus Hartung–Knapp). The parenthetical question and the unexplained 'residual concerns' about HKSJ can be answered directly.

      Suggestion: Claude explains: two separate choices. One is the estimator of $\tau^2$ (DerSimonian–Laird, REML, Paule–Mandel, Sidik–Jonkman). The other is how the confidence interval for the mean effect $\mu$ is built (Wald, or Hartung–Knapp, also written HKSJ). In the code below, method.tau = "SJ" sets the first and hakn = TRUE the second.

      The false positives do concern the mean effect. The classic interval is $\hat\mu \pm 1.96\,SE$ with $\hat\tau^2$ treated as known. With few studies $\hat\tau^2$ is noisy, the SE is too small on average, and the test of $\mu = 0$ rejects too often, especially with few studies or studies of unequal size (IntHout, Ioannidis and Borm 2014).

      Hartung–Knapp rescales the variance by $q = \sum_k w_k(\hat\theta_k - \hat\mu)^2/(K-1)$ and uses a $t_{K-1}$ quantile. The 'residual concern' is that when the estimates happen to agree closely, $q < 1$ and the interval becomes narrower than the classic one; a common modification uses $\max(1, q)$ (Röver, Knapp and Friede 2015).

      Current advice for $\tau^2$ is REML or Paule–Mandel (Veroniki et al. 2016). Sidik–Jonkman tends to overestimate $\tau^2$ when heterogeneity is low.

    8. point is correct, although it is certainly empirically the case below

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-17): The note doubts Harrer's statement that random effects 'pays more attention to small studies'. The statement is true by construction. The WLS estimator dismissed at line 125 as 'far less useful' is a response to exactly this property and is not explained there.

      Suggestion: Claude explains: the claim is correct by construction. Fixed-effect weights are $1/\sigma_k^2$; random-effects weights are $1/(\sigma_k^2+\tau^2)$. Adding the same $\tau^2$ to every variance flattens the weights, and as $\tau^2$ grows they approach equal weighting.

      Example: standard errors 0.05, 0.10, 0.20 give fixed-effect weights of 76%, 19%, 5%. With $\tau^2 = 0.021$ the random-effects weights are 46%, 35%, 18%, and the pooled estimate moves from 0.157 to 0.243 (estimates 0.10, 0.30, 0.50, as in the worked example above).

      The flattening is right if the model is right: a large study pins down its own effect but is still one draw from the distribution of effects. The objection (Poole and Greenland 1999) is that small studies are the most exposed to selective publication, so weight shifts toward inflated estimates.

      The WLS estimator mentioned earlier (Stanley and Doucouliagos 2015) responds to this. It keeps the fixed-effect weights and point estimate (0.157) and multiplies the fixed-effect variance by $Q/(J-1)$, giving $SE = 0.044\sqrt{6.29/2} = 0.077$. Heterogeneity widens the interval without moving weight to small studies. It provides no $\tau$, prediction interval or study-level shrinkage, which the hierarchical model does. Reporting fixed-effect and random-effects results side by side is a cheap check: a large gap signals small-study effects.

    9. and how do we estimate some of the components of these, like

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-15): The question of how $\tau$ is estimated is posed and left open; the margin note below it asks whether heterogeneity can be detected when confidence intervals are wide; and $I^2$ is defined (line 188) without the caveat that it is a relative measure that depends on study precision.

      Suggestion: Claude explains: estimating $\tau$, and reading $I^2$. Start from the heterogeneity statistic $Q = \sum_j p_j(\hat\beta_j - \hat\beta_{PW})^2$ with $p_j = 1/\hat\sigma_j^2$. If all studies share one effect, $Q$ is roughly $\chi^2_{J-1}$, with mean $J-1$. The DerSimonian–Laird estimator attributes the excess to between-study variance: $$\hat\tau^2 = \max\left(0,\ \frac{Q-(J-1)}{\sum_j p_j - \sum_j p_j^2/\sum_j p_j}\right),\qquad I^2 = \max\left(0,\ \frac{Q-(J-1)}{Q}\right).$$ REML and Paule–Mandel are now preferred to DerSimonian–Laird (Veroniki et al. 2016); the Bayesian model puts a prior on $\tau$ and reports its posterior.

      On the margin question: with few or imprecise studies there is little power to detect heterogeneity. $\hat\tau^2$ often lands at exactly zero, and that is weak evidence of homogeneity.

      $I^2$ is a relative measure. It depends on study precision as well as on how much effects differ. With $\tau = 0.1$, studies with $SE = 0.2$ give $I^2 = 0.01/(0.01+0.04) = 20\%$ and studies with $SE = 0.05$ give $80\%$, for the same spread of true effects. To describe how much effects vary, report $\hat\tau$ in the effect's units and a prediction interval for a new study, about $\hat\mu \pm 2\sqrt{\hat\tau^2 + SE(\hat\mu)^2}$ when $J$ is not small (Borenstein et al. 2017).

    10. Is this the estimated variance or the variance of the estimate

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-14): The displays mix the conditional posterior of $\mu$ given $\tau$ with the plug-in estimator that inserts $\hat\tau$. They also have notation errors: the numerator lacks the subscript on $\hat\beta_j$, the variance formula uses index $i$, '\hat{tau}' is missing a backslash and '\big(' is unmatched, and the label changes from $V_\mu$ to $Var(\hat\mu)$. Earlier (line 145) 'a large $\mu$ may suggest looking into sample splits' should read 'a large $\tau$'. The margin question deserves a direct answer.

      Suggestion: Corrected displays (conditional on $\tau$): $$\hat{\mu}=\frac{\sum_{j}\hat{\beta}j/(\hat{\sigma}^2_j+\tau^2)}{\sum{j}1/(\hat{\sigma}^2_j+\tau^2)},\qquad V_\mu = \frac{1}{\sum_j 1/(\hat{\sigma}_j^2+\tau^2)}.$$ Line 145: 'And a large $\tau$ (relative to $\mu$) may suggest looking for sample splits or moderators that explain the heterogeneity.'

      Claude explains. $V_\mu$ is the variance of the estimate of the mean effect: the posterior variance of $\mu$ for a given $\tau$, which equals the sampling variance of $\hat\mu$ when $\tau$ is known. It is distinct from $\tau^2$, the variance of true effects across studies. As the number of studies grows, $V_\mu$ goes to zero while $\tau^2$ stays where it is.

      The formulas hold for a given $\tau$. The frequentist random-effects estimator plugs in a point estimate $\hat\tau$ and treats it as known, which understates uncertainty when there are few studies (the reason for the Hartung–Knapp adjustment). The Bayesian analysis averages the conditional posterior $N(\hat\mu(\tau), V_\mu(\tau))$ over the posterior of $\tau$, so uncertainty about heterogeneity flows into the interval for $\mu$.

    11. (they give a numerical example here with 3 estimates)

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-13): The source's numerical example is mentioned but not reproduced, and the adjacent TODO asks for R code doing the calculation. A small worked example also makes the later fixed- versus random-effects discussion concrete.

      Suggestion: Claude explains: a worked example with three estimates. Estimates 0.10, 0.30, 0.50 with standard errors 0.05, 0.10, 0.20. Precisions are 400, 100, 25 (sum 525).

      • Equal-weight mean: 0.30.
      • Precision-weighted (fixed-effect) mean: $(400\times0.10 + 100\times0.30 + 25\times0.50)/525 = 0.157$, with $SE = 1/\sqrt{525} = 0.044$. The most precise study carries 76% of the weight.
      • Heterogeneity: $Q = \sum_j p_j(\hat\beta_j - 0.157)^2 = 6.29$ on 2 degrees of freedom, so $I^2 = (Q-2)/Q = 68\%$ and the DerSimonian–Laird estimate is $\hat\tau^2 = (Q-2)/200 = 0.021$, where $200 = \sum p_j - \sum p_j^2/\sum p_j$.
      • Random-effects mean, with weights $1/(\hat\sigma_j^2 + \hat\tau^2)$: 0.243 with $SE = 0.105$. The weight on the most precise study falls to 46%.

      r b <- c(0.10, 0.30, 0.50); se <- c(0.05, 0.10, 0.20) p <- 1 / se^2 c(fe = sum(p * b) / sum(p), se = sqrt(1 / sum(p))) metafor::rma(yi = b, sei = se, method = "FE") # same numbers metafor::rma(yi = b, sei = se, method = "DL") # random effects

    12. I think that’s loosely worded, it must be nonlinear

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-11): The margin note doubts the source's statement that precision weighting implies weights proportional to sample size. The source is right in the standard case: the standard error is nonlinear in N, but the weight is the inverse of its square, which is linear in N.

      Suggestion: Claude explains: precision is linear in sample size. For a difference in means with outcome variance $\sigma^2$ and two arms of $N/2$, $SE^2 = 4\sigma^2/N$, so the precision is $1/SE^2 = N/(4\sigma^2)$. Double the sample and the weight doubles. The standard error is the nonlinear quantity (it falls with $\sqrt{N}$); the weight uses its square.

      Example: studies with $N = 100$ and $N = 400$ and the same $\sigma$ have standard errors in the ratio 2:1 and weights in the ratio 1:4.

      Proportionality to $N$ breaks when studies differ in other things that affect precision: the outcome variance or measurement scale, unequal arm sizes, clustered assignment (effective sample size $N/[1+(m-1)\rho]$ with clusters of size $m$), and covariate adjustment. Two studies with the same $N$ then get different weights. Inverse-variance weighting accounts for all of these automatically, which is the reason for weighting by precision in place of raw $N$.

    13. this not to be confused with the random effects panel-data models discussed in standard Econometrics texts

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-10): The two are the same model family. Telling economists they are unrelated hides a useful mapping and the one real trap, which is that 'fixed effect(s)' means different things in the two literatures.

      Suggestion: Claude explains: same model, different vocabulary. The random-effects meta-analysis model is the econometrician's random-intercept model with one observation per group: $$\hat{\theta}_k = \mu + u_k + e_k,\quad u_k \sim N(0,\tau^2),\quad e_k \sim N(0,\sigma_k^2).$$ Here $u_k$ plays the role of the panel 'random effect' and $e_k$ is the idiosyncratic error. Two features are specific to meta-analysis: each study contributes a single observation, and the error variances $\sigma_k^2$ are treated as known from the reported standard errors. That is what allows $\tau^2$ to be separated from sampling noise with one observation per unit.

      The labels differ in a way that trips people up. In meta-analysis 'fixed effect' means $\tau^2 = 0$, one common effect. In panel econometrics 'fixed effects' means a separate intercept for every unit with no distributional assumption.

      The panel worry carries over to meta-regression. Panel random effects requires the unit effect to be uncorrelated with the regressors. Meta-regression of effect sizes on study characteristics requires $u_k$ to be uncorrelated with those characteristics, and with a few dozen studies as the data points there is rarely a way to check.

    1. Specify some informative but still somewhat diffuse prior distribution over these parameters

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-08): The model section ends with 'Update and iterate towards our best posteriors?'. The setup mentions that some individuals can be linked across years but never uses it; that linkage is the one feature of the data that can identify population size.

      Suggestion: Claude explains: linked respondents give a handle on population size (capture–recapture). Treat two survey years as two 'captures'. If $n_1$ people respond in year 1, $n_2$ in year 2 and $m$ in both, the Lincoln–Petersen estimate of the population is $$\hat{N} = \frac{n_1 n_2}{m}.$$ With $n_1 = 200$, $n_2 = 250$ and $m = 50$: a quarter of year-1 respondents came back, so year 2 is estimated to have reached a quarter of the population, giving $\hat{N} = 1000$ and response rates of 20% and 25%.

      Assumptions: a closed population between waves, complete linkage, and responding in year 2 independent of responding in year 1. The last fails when some people are persistently keener to respond; $m$ is then too large and $\hat{N}$ too small, so the estimate tends to understate the population the referrers reach. Log-linear and Bayesian capture–recapture models with three or more waves relax independence and allow heterogeneous response propensities.

      A full model could be $n_{rkt} \sim \text{Binomial}(\Pi_{rk}, \alpha_{rkt})$, with $\alpha_{rkt}$ built from referrer, demographic and year effects, priors on each, and the linked response histories entering the likelihood.

    2. We might dig more deeply to see if there are potential approaches to dealing with this

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-04): The text leaves 'the bias cannot be measured' as an open question. There is an organised literature on inference from non-probability samples, and a simple identity (Meng 2018) that turns the unmeasurable bias into a sensitivity parameter.

      Suggestion: Claude explains: what can be done about bias in a non-probability sample. Three families of methods exist (Elliott and Valliant 2017, Statistical Science). (1) Quasi-randomisation: estimate each respondent's probability of being in the sample by comparison with a reference probability survey of the same population, then weight by its inverse. (2) Outcome modelling: model the outcome given covariates and predict for the population (MRP is one version). (3) Sensitivity analysis and bounds, when neither a reference sample nor population totals exist, which is the situation here.

      Meng (2018, Annals of Applied Statistics) gives an identity for (3). The error of a sample mean is $$\bar{y}n - \bar{Y}_N = \rho{R,Y}\,\sqrt{(1-f)/f}\;\sigma_Y ,$$ where $f = n/N$ is the share of the population in the sample and $\rho_{R,Y}$ is the correlation between responding and the outcome. With $f = 0.01$ and $\rho = 0.05$ the error is half a standard deviation of $Y$. A larger $n$ helps only through $f$. One can report how large $\rho$ would have to be to overturn a conclusion.

      Pew's comparisons of opt-in panels find that the choice of adjustment variables matters more than the weighting method (Mercer, Lau and Kennedy 2018).

    3. Is our approach similar enough to this to be able to adopt these approaches

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-03): The margin note asks whether the adjustments that make opt-in election polls work can be borrowed. The method (MRP) is not named, and the ingredient it depends on, a census of the target population, is the one the 'Jazz' case lacks.

      Suggestion: Claude explains: why election polls can use opt-in samples, and what is missing here. The standard method is multilevel regression and post-stratification (MRP). Step 1: fit a multilevel model of the outcome on demographics and geography in the opt-in sample. Step 2: predict the outcome for every demographic cell and average the predictions using the cells' population counts from the census. Wang, Rothschild, Goel and Gelman (2015, International Journal of Forecasting) produced accurate 2012 US election forecasts this way from a sample of Xbox users that was 93% male.

      Two ingredients do the work: (i) a census table giving the true size of every cell, and (ii) the assumption that, within a cell, people who opt in answer like those who do not. Elections also supply a known outcome against which the method can be checked.

      The 'Jazz' case lacks (i). There is no census of the movement, so there is nothing to post-stratify to. MRP could still stabilise small-cell estimates and hold composition fixed when comparing years, but it cannot deliver representativeness without an outside benchmark for who is in the population.

    4. There are some intricate and interesting calculations involving network analysis

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-02): The method's central step is left as 'intricate calculations', so a reader cannot see why a chain-referral sample can be corrected or what it assumes. The notes also stop before the validation evidence (line 149: 'I didn't read the latter carefully'), and later evaluations of RDS are considerably less favourable. 'The authors propose' (line 104) attributes the RDS design to the 2004 paper; the design is Heckathorn (1997).

      Suggestion: Claude explains: how the RDS estimator works. Take two groups, A and B. Let $D_A$ and $D_B$ be the average number of contacts in the target population that members report (their degree), and $C_{AB}$ the share of A-members' recruits who are in B ($C_{BA}$ the reverse). If ties are reciprocal, the number of A-to-B ties equals the number of B-to-A ties, $N_A D_A C_{AB} = N_B D_B C_{BA}$, so the population share of A is $$P_A = \frac{D_B C_{BA}}{D_A C_{AB} + D_B C_{BA}}.$$ Example: each group recruits across the divide 30% of the time, A-members have 20 contacts and B-members 10. The recruitment chain settles at 50% A in the sample, while $P_A = 3/(6+3) = 1/3$. Well-connected people are easier to reach, and dividing by degree undoes that.

      The result needs respondents to recruit at random among their contacts, reciprocal ties, a connected network, accurately reported degrees, and chains long enough to forget the seeds. Later evaluations are sobering: simulations on real networks and field tests find variances several times larger than assumed, and biased estimates when recruitment is non-random (Goel and Salganik 2010, PNAS; Gile and Handcock 2010, Sociological Methodology; McCreesh et al. 2012, Epidemiology). On attribution: the RDS design is due to Heckathorn (1997, Social Problems); the 2004 paper contributes this estimator.

    5. we can sample/re-weight so that the heterogeneous parameter of interest can be said to represent the average value for the true population of interest

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (D-01): The fold runs together two different operations: sampling strata at chosen rates (design weights, known exactly) and re-weighting a realised sample to known population shares (post-stratification, which needs an assumption about non-respondents). Neither is defined, and the condition under which re-weighting removes bias is not stated.

      Suggestion: Claude explains: two kinds of weights. A design weight undoes unequal selection probabilities chosen by the sampler. If unit $i$ was selected with probability $\pi_i$, it gets weight $1/\pi_i$ (Horvitz–Thompson). A group sampled at twice the rate counts half as much per person. These weights are known exactly.

      A post-stratification weight corrects the realised sample using known population shares: for cell $h$, $w_h = (N_h/N)/(n_h/n)$. Example: women are 50% of the population and 70% of respondents, so women get $0.5/0.7 = 0.71$ and men $0.5/0.3 = 1.67$. If mean support is 0.60 among women and 0.40 among men, the raw mean is 0.54 and the weighted mean is 0.50.

      Post-stratification removes bias only if, within each cell, respondents resemble non-respondents on the outcome. It also needs trustworthy population shares, which a hidden population lacks. When only margins are known (age shares and gender shares, with no joint table), raking adjusts the weights iteratively until every margin matches.

      Weights cost precision. Kish's approximation is $deff \approx 1 + CV^2(w)$; the weights above give $deff = 1.19$, so 1,000 respondents carry the information of about 840.

    1. can obtain nominal coverage with more covariates than K-Nearest Neighbour matching or kernel methods

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-37): The notes ask 'What does this mean?' about nominal coverage, and the heterogeneity sections describe the literature as of the 2016 working paper. Several of the cited papers have since been published and the main tools have changed.

      Suggestion: 'Nominal coverage', and what has changed since the 2016 chapter. A 95% interval has nominal coverage if it contains the true conditional effect $\tau(x)$ in 95% of samples. Kernel and nearest-neighbour estimators average over a neighbourhood of $x$. With many covariates that neighbourhood has to be wide to contain any data, so the estimate is smoothed over units unlike $x$, and intervals centred on a biased estimate cover less than 95%. Causal forests choose neighbourhoods adaptively, narrow in the covariates that move the effect and wide in the others, so the bias stays small relative to the standard error for more covariates.

      Later work to cite alongside these notes:

      • Wager and Athey is published (2018, JASA). Generalised random forests (Athey, Tibshirani and Wager 2019) are implemented in the R package grf.
      • Chernozhukov, Demirer, Duflo and Fernández-Val ('Generic machine learning inference on heterogeneous treatment effects in randomized experiments') give up on inference for $\tau(x)$ itself and test features of it: the best linear predictor of effects, and average effects in the most and least affected groups.
      • Meta-learners (Künzel, Sekhon, Bickel and Yu 2019) and the R-learner (Nie and Wager 2021) turn any prediction method into an effect estimator.
      • List, Shaikh and Xu is published (2019, Experimental Economics).
    2. this will be an indirect method of stratifying

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-36): The summary leaves out the condition that makes re-randomisation legitimate (a rule fixed in advance), and 'p-values could/should be adjusted' can now be made precise. Related results on very small strata have also appeared since the 2016 chapter.

      Suggestion: Two qualifications. First, re-randomisation supports valid inference only when the acceptance rule is fixed in advance, for example 'redraw until the Mahalanobis distance between the arms' covariate means is below a stated threshold' (Morgan and Rubin 2012). Redrawing whenever the allocation 'looks bad' leaves the set of possible assignments undefined, so neither a randomisation test nor a standard error has a clear justification. Bruhn and McKenzie (2009) found this practice common among development economists and rarely reported.

      Second, on the adjustment: with a pre-specified rule, ordinary standard errors are conservative, and exact p-values come from a randomisation test that redraws only from acceptable assignments. Li, Ding and Rubin (2018, PNAS) give the large-sample distribution, and Li and Ding (2020, JRSS-B) show that regression adjustment for the balance covariates recovers the precision gain with standard robust errors. Athey and Imbens themselves prefer stratification.

      A related update for the advice at line 103 that strata should not be too small 'as variances cannot be estimated within pairs': variance estimators for matched pairs and very small strata now exist (Bai, Romano and Shaikh 2022, JASA; de Chaisemartin and Ramirez-Cuellar 2024, AEJ Applied).

    3. I am curious how these terms are derived and compared

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-34): The notes ask how $V_C-V_S\ge0$ is derived, and ask twice (lines 67 and 522) whether one may simply report the smaller of the two estimated variances. Both have short answers.

      Suggestion: Where the gain from stratification comes from, and which variance to report. Let stratum $g$ have population share $q_g$ and let a share $p$ be treated in every stratum. Split each potential outcome's variance into within- and between-stratum parts: $\sigma_t^2=E_g[\sigma^2_t(g)]+\mathrm{Var}_g(\mu_t(g))$, and likewise for controls. Complete randomisation gives $V_C=\sigma_t^2/(pN)+\sigma_c^2/((1-p)N)$. Stratified randomisation keeps only the within parts. So $$V_C-V_S=\frac{1}{N}\left[\frac{\mathrm{Var}_g(\mu_t(g))}{p}+\frac{\mathrm{Var}_g(\mu_c(g))}{1-p}\right]\ge0.$$ The gain is the between-stratum variance of mean outcomes: the noise that, under complete randomisation, comes from one arm drawing more units from high-outcome strata. It is zero when strata do not predict outcomes.

      Which estimate to report. The stratified estimator $\hat{V}_S$ matches the design and is the one to use. $\hat{V}_C$ is a valid fallback because it is conservative in expectation, which helps when strata are too small to estimate within-stratum variances. Reporting whichever of the two is smaller in the sample is a different procedure. The minimum of two noisy estimates is biased downward, so tests over-reject. Choose the estimator before seeing the data.

    4. in cases without homoskedasticity. I think this is pure speculation.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-33): The Athey and Imbens claim that equal arm sizes are close to optimal under heteroskedasticity is a short calculation, and it holds for any plausible ratio of standard deviations.

      Suggestion: Is an equal split close to optimal with unequal variances? A calculation. The variance-minimising allocation is $N_t/N_c=\sigma_t/\sigma_c$ (Neyman allocation), which gives variance $(\sigma_t+\sigma_c)^2/N$. An equal split gives $2(\sigma_t^2+\sigma_c^2)/N$. The ratio of the two is $$\frac{2(\sigma_t^2+\sigma_c^2)}{(\sigma_t+\sigma_c)^2}.$$ If one arm's standard deviation is 1.5 times the other's, the equal split has 4% more variance, which is 2% wider intervals. At twice, 11% more variance. At three times, 25%. So the claim holds for any plausible degree of heteroskedasticity. Since $\sigma_t$ is rarely known before the experiment, the equal split is also the safe default. Unequal costs per arm are the stronger reason to depart from it; see the allocation discussion in the power chapter.

    5. DR: I think this simply means that the unit ranked

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-32): 'The two are equal' under perfect rank correlation is slightly too strong as a statement about quantiles. The reading in the parenthesis (no crossing over) is right; what follows from it is identification of each unit's effect, which is a different object from the quantiles of the effect distribution unless effects rise with rank.

      Suggestion: A precision point. Under perfect rank correlation the unit at quantile $s$ of the untreated distribution is also at quantile $s$ of the treated distribution, so $\tau_s$ is that unit's own effect, and the whole distribution of individual effects is identified: it is the collection of $\tau_s$ values. That is weaker than saying $\tau_s$ equals the $s$-th quantile of the effects. The two coincide only if $\tau_s$ increases with $s$. If the treatment compresses the distribution, so that low-ranked units gain most, the largest individual effects sit at low $s$ and the $s$-th quantile of the effect distribution is $\tau_{1-s}$. Is 'the two are equal' the chapter's wording or a paraphrase? If it is the chapter's, a short qualifier here would help.

    6. In practice researchers ignore the third term, which leads to an upward bias for the

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-31): The bias described belongs to the variance estimator; the point estimate is unbiased under both views. The notes also ask what $S_{tc}^2$ is (line 241), ask for intuition (249) and for a practical strategy (255), and object several times that the sample ATE 'is really not what we care about' (lines 88, 137, 220). One decomposition answers all of these, and Abadie, Athey, Imbens and Wooldridge (2020) is the later reference.

      Suggestion: Reword line 247: "In practice researchers drop the third term. The resulting variance estimator is biased upward for the variance of $\hat\tau$ around the sample average effect, and unbiased for its variance around the population average effect."

      Box:

      The third variance term, and why the two views of uncertainty agree in practice. $S^2_{tc}$ is the variance across units of the individual effect $Y_i(1)-Y_i(0)$. It equals $S_t^2+S_c^2-2\,\mathrm{Cov}(Y(1),Y(0))$ and is zero only when the effect is the same for everyone. It cannot be estimated, because no unit is seen in both states.

      Split the error of $\hat\tau$ for the population effect in two: $$\hat\tau-\tau_{pop}=(\hat\tau-\tau_{sample})+(\tau_{sample}-\tau_{pop}).$$ The first piece is randomisation error, with variance $S_c^2/N_c+S_t^2/N_t-S^2_{tc}/N$. The second is sampling error, the average of $N$ unit effects around its population mean, with variance $S^2_{tc}/N$. They are uncorrelated, so the total is $S_c^2/N_c+S_t^2/N_t$. The dropped term is exactly the extra uncertainty from having sampled these units.

      So the usual estimator $s_c^2/N_c+s_t^2/N_t$ (equivalently HC2 robust errors) is right for the population effect and conservative for the effect in this sample. A researcher who cares about a wider population loses nothing by using it. Abadie, Athey, Imbens and Wooldridge (2020) extend this to regression; Aronow, Green and Lee (2014) give sharp bounds on the unidentified term.

    7. on estimating treatment effects based on rank statistics

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-30): The author writes 'I don't get this at all'. The idea (Hodges-Lehmann estimation by inverting a rank test) takes a few lines and one small example.

      Suggestion: Estimating an effect from a rank test (Hodges-Lehmann). A randomisation test gives a p-value for 'no effect'. The same machinery gives an estimate and a confidence interval once you assume a constant additive effect, $Y_i(1)=Y_i(0)+\tau$.

      Take a candidate value $\tau_0$ and subtract it from every treated outcome. If $\tau_0$ is the true effect, the adjusted outcomes are untreated outcomes for everyone, so the rank-sum statistic computed on them has its known null distribution.

      • The point estimate is the $\tau_0$ at which the adjusted data look most like the null, meaning the statistic equals its null expectation. For the rank-sum statistic this is the median of all $N_t\times N_c$ pairwise differences between a treated and a control outcome.
      • The 95% confidence interval is the set of $\tau_0$ values the test does not reject at 5%.

      Example: treated outcomes 5, 9, 12 and control outcomes 2, 4, 7 give nine pairwise differences (-2, 1, 2, 3, 5, 5, 7, 8, 10) with median 5, against a difference in means of 4.33.

      The estimate inherits the rank test's resistance to outliers. In R, wilcox.test(y1, y0, conf.int = TRUE) reports both. The price is the constant-effect assumption: with heterogeneous effects the estimand is the typical pairwise shift, which need not equal the average effect.

    8. What is the statistic called and is there preprogrammed code?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-29): The author asks for the name of the procedure, whether it is Fisher's exact test, and where to find code. The same text can fill the empty 'Randomization inference?' section at the top of the chapter and clarify the aside about 'limitations of the Fisher test' at line 184.

      Suggestion: Randomisation inference: names and code. The procedure is the Fisher randomisation test, also called a permutation test. Under the sharp null every unit's outcome is the same in either arm, so the observed outcomes are fixed and only the assignment is random. Recompute the statistic under every admissible assignment (or a few thousand random draws). The p-value is the share at least as extreme as the observed one.

      The familiar tests are special cases. With a binary outcome and the difference in proportions it is Fisher's exact test. With ranks it is the exact Wilcoxon rank-sum test. With the difference in means on a continuous outcome it is the Fisher-Pitman permutation test.

      Two rules: redraw assignments the way the experiment did (within blocks, by cluster, with the same arm sizes), and choose the statistic in advance. A studentised statistic keeps the test valid in large samples for the weaker null of a zero average effect.

      Code: in R, ri2::conduct_ri() takes a randomizr declaration of the design; coin::oneway_test() and coin::wilcox_test() with distribution = approximate() handle simple designs. In Stata, ritest.

      The choice makes most difference with few clusters, small samples, skewed outcomes or high-leverage covariates. Young (2019, QJE) re-analysed 53 experimental papers and found 13 to 22 percent fewer significant individual effects under randomisation tests.

    9. I am not sure I understand this notation, particularly the

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-28): The author asks what the notation means. The source also has p\: where a colon is meant, and the surrounding text runs together two separate points: the definition of the assignment mechanism and the dimensionality problem without SUTVA.

      Suggestion: Reading the assignment-mechanism notation. The expression should read $p:{0,1}^N\times\mathbb{Y}^{2N}\times\mathbb{X}^N\to[0,1]$ (the source has p\:, which drops the colon). It defines the assignment mechanism as a function $p(W\mid Y(0),Y(1),X)$.

      • ${0,1}^N$ is the set of all possible assignment vectors $W=(W_1,\dots,W_N)$, with one 0 or 1 per unit. For $N=3$ it contains $2^3=8$ vectors such as $(1,0,1)$.
      • $\mathbb{Y}^{2N}$ holds the $2N$ potential outcomes, $Y_i(0)$ and $Y_i(1)$ for each unit.
      • $\mathbb{X}^N$ holds the covariates.
      • The output is the probability that this assignment vector is the one drawn. Summed over all vectors it equals one.

      A completely randomised experiment with $N_t$ treated units puts probability $1/\binom{N}{N_t}$ on each vector with exactly $N_t$ ones, and zero on the rest. A randomised experiment in Athey and Imbens' sense is one where $p$ is known and does not depend on the potential outcomes.

      The dimensionality remark is a separate point. Writing two potential outcomes per unit already assumes no interference between units (SUTVA). Without that assumption, unit $i$'s outcome could depend on the whole vector $W$, which gives $2^N$ potential outcomes per unit.

    10. Could there not ever be a loss from doing interactions dividing up the sample too fine in doing this interactive estimation?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-27): The notes ask the same cluster of questions several times without an answer: whether interactions can cost precision (lines 60 and 430), why regression adjustment is biased in finite samples (392), whether the 1-R² result is for the additive or the interacted model (412), why skewed covariates make it worse (419), and when to demean covariates (53, 73). The key reference, Lin (2013), is not cited.

      Suggestion: Regression adjustment in experiments: bias, interactions, and when it pays. Why it is biased in finite samples. The adjusted estimator is the difference in means minus $\hat\beta'(\bar{X}_t-\bar{X}_c)$. Both $\hat\beta$ and the chance imbalance $\bar{X}_t-\bar{X}_c$ come from the same assignment draw and are correlated, so their product does not average to zero. The bias is of order $1/N$ and applies to both the additive and the interacted model. With skewed covariates a few high-leverage units drive both terms, which is why the bias can be noticeable there. Indicator covariates that partition the sample are the exception: the estimator is then an average of within-cell differences in means.

      Additive or interacted. Lin (2013) shows that interacting treatment with demeaned covariates is asymptotically at least as precise as both the unadjusted and the additive estimator. The additive model can lose precision when arms are unequal and effects vary with $X$. Demeaning makes the coefficient on $W$ the average effect; without it, that coefficient is the effect at $X=0$.

      The tradeoff. The cost is degrees of freedom. $K$ covariates with no predictive value raise the variance by roughly $K/N$ ($2K/N$ when interacted), and adjustment pays when the $R^2$ gained exceeds that. With $N=100$ and 10 covariates the break-even $R^2$ is about 0.1 (0.2 interacted). Keep $K$ small relative to the smaller arm.

    11. Adjustments for exogenous (but non-random) treatment assignment

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-26): Heading with no content. The most common case in field experiments is assignment probabilities that differ across sessions, days or sites, where a pooled comparison is biased and the standard fixed-effects fix does not estimate the ATE. The introduction's commented-out outline already points to this ('your go-to regression specification is biased').

      Suggestion: When assignment probabilities differ across groups. Many field designs randomise within sessions, days, sites or waves, with a different share treated in each. Assignment is then random only conditional on the group, and a pooled difference in means is biased whenever groups differ in baseline outcomes. Example: if 80% are treated on high-donation days and 20% on low-donation days, the pooled comparison credits the treatment with the day effect.

      Three valid estimators, with slightly different targets:

      • Group fixed effects. Unbiased for a weighted average of group-specific effects with weights proportional to $N_g\,p_g(1-p_g)$, where $p_g$ is the treated share. Groups with shares near one half count most. If effects differ across groups, this is not the average treatment effect (Gibbons, Suárez Serrato and Urbancic 2019).
      • Fully interacted regression: treatment interacted with demeaned group indicators (Lin 2013). The coefficient on treatment is the size-weighted average of group effects, which is the ATE.
      • Inverse probability weighting by $1/p_g$ for treated and $1/(1-p_g)$ for control units. Same target as the interacted regression.

      The same logic covers alternation or assignment by arrival order. Treat it as random only if arrival order is plausibly unrelated to outcomes, check balance on pre-treatment covariates, and block on time in the analysis.

    12. Parametric and nonparametric tests of simple hypotheses

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-24): The section and its 'Parametric tests' and 'Non-parametric tests' subsections are empty apart from the Fligner-Policello note. A reader gets no guidance on which test answers which question.

      Suggestion: Choosing a two-sample test: start from the estimand. Each test answers a different question, so pick the question first.

      • Welch t-test (or OLS with robust standard errors): difference in means. Valid in moderate samples without normality; slow to converge when outcomes are very skewed. The mean is the right target when totals drive the decision, as with funds raised.
      • Mann-Whitney-Wilcoxon rank-sum: tests equality of the two distributions, with power against $P(Y_T>Y_C)\ne1/2$. It says nothing direct about means; a treatment can raise the mean and lower the typical rank. Its efficiency relative to the t-test is 0.955 under normality, never below 0.864, and far higher with heavy tails.
      • Brunner-Munzel or Fligner-Policello: test $P(Y_T>Y_C)=1/2$ allowing unequal variances.
      • Randomisation (permutation) test: exact under the sharp null of no effect for any unit, with any statistic. A studentised difference in means makes it valid in large samples for the weaker null of equal means as well (Chung and Romano 2013).
      • Binary outcomes: test of proportions; Fisher's exact test in small samples.

      For outcomes with many zeros and a long right tail, report the difference in means with a robust or randomisation-based p-value as the primary result, and a rank-based test as a check on whether a few large values drive it. Fix the choice in the pre-analysis plan.

    13. Which error structure? Random effects?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-23): Heading with no content. It can also absorb the answer to the '[DR: ??]' at line 344 about why the robust variance estimator 'has no natural degrees-of-freedom adjustment'.

      Suggestion: Which standard errors for an experiment? Three rules cover most cases.

      1. Cluster at the level of assignment. If individuals were randomised and each contributes one observation, heteroskedasticity-robust errors suffice. If sessions, classrooms or villages were randomised, or each person contributes repeated observations, cluster at that level (Abadie, Athey, Imbens and Wooldridge 2023). Fréchette (2012) discusses lab sessions, a borderline case.
      2. Prefer HC2. For a difference in means, the HC2 robust variance equals Neyman's $s_t^2/N_t+s_c^2/N_c$ exactly. HC0, the original Eicker-Huber-White formula, divides each arm's squared residuals by $N_g$ where Neyman divides by $N_g-1$. That is the missing 'degrees-of-freedom adjustment' in the Athey and Imbens quotation later in this chapter, and it understates the variance most when an arm is small. Stata's robust is HC1; estimatr::lm_robust() defaults to HC2 (Samii and Aronow 2012).
      3. With few clusters (fewer than roughly 30 to 50), cluster-robust errors are too small. Use the wild cluster bootstrap (Cameron, Gelbach and Miller 2008) or randomisation inference.

      Random effects are an efficiency device here. Under random assignment the treatment indicator is uncorrelated with unit effects, so the usual objection to random effects does not apply to the treatment coefficient, and modelling unit effects can tighten estimates in repeated-measures designs. Report cluster-robust errors alongside, since the assumed variance structure may be wrong.

    1. after collecting the sample, our estimates of the CI will always have a range equal to the estimated sd

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-21): Three open questions in this section: whether the relative-width target holds in every sample, how to get a stated probability of achieving an absolute width ('Hmm, it’s getting complicated', and the request for 'a simple analytical formula' in the fold), and whether treating a Likert item as normal is a problem.

      Suggestion: Sample size for a confidence interval of a given width. Relative target (B). If the interval is $\bar{y}\pm1.96\,s/\sqrt{n}$, its width is $3.92\,s/\sqrt{n}$, which is always exactly $3.92/\sqrt{n}$ estimated standard deviations. So $n=15.37/B^2$ delivers a width of $B$ estimated SDs in every sample, by construction. (With a $t$ critical value the interval is slightly wider for small $n$.)

      Absolute target (A). Here the width depends on the realised $s$, which is random. Planning with the true $\sigma$ gives the target width on average and misses it about half the time. To achieve width $w$ with 80% probability, use the fact that $(n-1)s^2/\sigma^2\sim\chi^2_{n-1}$ under normality and require $$n\ge\Big(\frac{3.92\,\sigma}{w}\Big)^2\,\frac{\chi^2_{0.80,\,n-1}}{n-1}.$$ Example: $\sigma=1.2$ and $w=0.5$ need $n=89$ on average and about $n=100$ for 80% assurance. Maxwell, Kelley and Rausch (2008) review this 'accuracy in parameter estimation' approach.

      Likert specifics. Normality of the responses is not needed; the sample mean of a five-point item is close to normal once $n$ passes 30 or so. And the SD is bounded: on a 1-5 scale it cannot exceed 2 (half the answers at each end), so $n=62$ guarantees a 95% interval no wider than one scale point whatever the distribution.

    2. Ideally there is an analytical formula for this; worth looking up.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-20): The notes ask for an analytic formula for the null distribution of the top title's share, leave the power of the proposed test uncomputed, and wonder whether 'power in the right direction' is a known idea (line 718). All three can be answered briefly; the sample sizes below come from simulating the test as described.

      Suggestion: The 'most first-place votes' test: formula and sample size. Under the null of random rankings, the first-place counts are multinomial with $N$ trials and probability $1/20$ per title, and the statistic is the largest count. Its exact distribution has no simple closed form. Two routes are easy.

      • Bonferroni bound: $P(\max_k X_k\ge c)\le20\,P(\mathrm{Bin}(N,1/20)\ge c)$. The bound is tight in the tail, so rejecting when the top title's binomial p-value is below $0.05/20$ is close to exact.
      • Simulation: draw multinomial counts many times and take the 95th percentile of the maximum.

      Simulated power, counting only rejections in which the truly favoured title comes out on top:

      | Alternative | First-place shares | $N$ for about 80% power | |---|---|---| | favoured title 1.5 times the others | 7.3% vs 4.9% | about 1,450 | | favoured title 2 times the others | 9.5% vs 4.8% | about 420 |

      At $N=400$ the 1.5-times alternative is detected about 20% of the time.

      On the 'wrinkle': requiring that the right title is selected is the 'probability of correct selection' of the ranking-and-selection literature. In testing language, rejections that favour the wrong title are type III (or type S) errors. Here nearly all rejections pick the right title, so the two definitions of power differ by one or two percentage points.

    3. better to test each title 1x than to test some titles 2x or more

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-18): Under a simple normal model the claim does not hold in general: when individual responses are noisy relative to true differences between titles, concentrating the sample on fewer titles gives a better expected choice. The same model supports the other half of the argument, that testing two titles is a poor design. The debate in these folds has a standard formalisation (ranking and selection) that puts numbers on both positions. Confidence is medium because the numbers depend on the normal model and on a between-subject design with one title per respondent.

      Suggestion: How many titles to test: a worked model. Suppose title values are draws $\theta_k\sim N(0,\tau^2)$, each respondent rates one title with noise variance $\sigma^2$, and we pick the title with the highest sample mean. With $K$ titles and $N/K$ respondents each, the expected value of the chosen title is $$E[\theta_{chosen}]=\frac{m_K\,\tau}{\sqrt{1+(\sigma^2/\tau^2)(K/N)}},$$ where $m_K$ is the expected maximum of $K$ standard normals ($m_2=0.56$, $m_5=1.16$, $m_{10}=1.54$, $m_{20}=1.87$, $m_{100}=2.51$). Adding titles raises $m_K$ and spreads the sample thinner, which enlarges the denominator.

      Take $\sigma/\tau=10$. Expected value of the chosen title, in units of $\tau$:

      | $N$ | 2 titles | 5 | 10 | 20 | |---|---|---|---|---| | 200 | 0.40 | 0.62 | 0.63 | 0.56 | | 1,000 | 0.52 | 0.95 | 1.09 | 1.08 | | 4,000 | 0.55 | 1.10 | 1.38 | 1.53 |

      Two titles is the worst of these designs at every budget. Testing all 20 wins once the sample is large relative to the noise. One rating per title is not optimal in general: with 100 titles and 100 respondents, rating 50 titles twice beats rating each once whenever $\sigma^2$ exceeds about $0.65\,\tau^2$.

      This is the 'ranking and selection' problem (Bechhofer 1954). 'Best-arm identification' is its adaptive version.

    4. We will also consider an unbalanced design, both in this and in other categories, which may achieve greater power

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-15): The text says an unbalanced design may raise power per unit of cost and the code comment at line 450 asks whether the optimal tradeoff is invariant to the budget ('am I right?'). Both have closed-form answers, and with costless controls the answer is a corner solution that the planned grid search would only rediscover.

      Suggestion: Optimal allocation when arms differ in cost. Minimise $\sigma_T^2/n_T+\sigma_C^2/n_C$ subject to a budget $c_Tn_T+c_Cn_C=B$. The solution is $$\frac{n_T}{n_C}=\frac{\sigma_T}{\sigma_C}\sqrt{\frac{c_C}{c_T}}.$$ The ratio depends on relative variances and relative costs only. So the answer to the question in the code comment below is yes: with per-unit costs, the optimal shares are the same for any budget.

      If controls cost nothing, as assumed here, there is no interior optimum. The budget fixes the number treated ($n_T=B/c_T$; with £6000 and £60 per treated unit, $n_T=100$) and every additional control helps. The gain is bounded: the variance falls from $2\sigma^2/100$ with 100 controls to $\sigma^2/100$ with unlimited controls, so the standard error can fall by at most 29%. Most of that arrives early. 300 controls (a treated share of 0.25) give an 18% reduction; 900 controls (a share of 0.1) give 25%.

      The grid over tshare should therefore show power rising steadily as the treated share falls. The practical limit is how many untreated observations are available and any fixed cost of observing them.

    5. Power calculations without real data

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-14): The section is a single link. The chapter never states the standard analytic formula, and clustering, covariate adjustment and non-compliance, the three things that most change required sample sizes in practice, appear nowhere in it.

      Suggestion: The analytic formula, and what moves it. For a two-arm comparison of means with total sample $N$, a share $P$ treated and outcome standard deviation $\sigma$, the minimum detectable effect at 80% power in a 5% two-sided test is $$MDE=2.8\,\sigma\sqrt{\frac{1}{P(1-P)N}}.$$ The 2.8 is $z_{0.975}+z_{0.80}=1.96+0.84$. With equal arms this gives $n\approx16/d^2$ per arm for a standardised effect $d$: 393 per arm for $d=0.2$, 63 for $d=0.5$.

      Three multipliers on the MDE cover most designs.

      • Covariates or blocking that explain a share $R^2$ of the outcome: multiply by $\sqrt{1-R^2}$. A baseline measure correlated 0.7 with the outcome halves the required sample.
      • Cluster randomisation with $m$ units per cluster and intra-cluster correlation $\rho$: multiply by $\sqrt{1+(m-1)\rho}$. With $m=20$ and $\rho=0.05$ the factor is 1.40, so the sample has to roughly double.
      • Imperfect compliance. If assignment raises take-up by a share $c$, the effect on those who take up is the intention-to-treat effect divided by $c$, and the sample needed to detect it scales with $1/c^2$.

      Simulation gives the same answers and extends to skewed outcomes, rank tests and multi-arm designs: simulate the data-generating process, run the planned test, record the share of p-values below $\alpha$. DeclareDesign (Blair, Cooper, Coppock and Humphreys 2019) is built for this.

    6. this could lead a large rate of type-1 error in our body of scientific knowledge

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-13): The type-I error rate is fixed at alpha by the test and does not change with power. What low power raises is the share of significant results that are false positives (the false discovery rate, one minus the positive predictive value). The paragraph and the Ferraro note below it also describe exaggerated effect sizes without giving magnitudes.

      Suggestion: Reword the sentence: "In combination with publication bias, this could lead to a large share of false positives among the significant results that make up our body of scientific knowledge (cases where the true effect was null and the authors had a very 'lucky' draw)."

      Box:

      Low power, false discoveries and exaggeration: the numbers. If a fraction $\pi$ of tested hypotheses are true effects, the share of significant results that are true (the positive predictive value) is $$PPV=\frac{(1-\beta)\,\pi}{(1-\beta)\,\pi+\alpha(1-\pi)}.$$ With $\pi=0.2$ and $\alpha=0.05$: power of 80% gives $PPV=0.80$, power of 50% gives 0.71, power of 20% gives 0.50. P-hacking, which raises the effective $\alpha$, lowers these further.

      Conditioning on significance also inflates estimates (the 'Type M' error of Gelman and Carlin 2014). For a true effect equal to one standard error (power 17%), significant estimates average 2.5 times the true effect and about 1% have the wrong sign. At 50% power the exaggeration factor is 1.4. At 80% power it is 1.13.

      On the margin note: a correction for this inflation exists when the selection rule is known or can be estimated (Andrews and Kasy 2019). The corrected intervals for marginally significant results are wide, so a significant estimate from a 20%-power study remains weak evidence about magnitude.

    7. a mathematical equivalency between the confidence interval and the standard

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-12): Three open questions sit close together: whether a precision target and a power target are equivalent ('often? always?'), what power for an equivalence test would be ('I need to learn more about this'), and whether power makes null results more credible (line 73, 'this needs to be stated more carefully'). One box answers all three.

      Suggestion: Precision targets, power targets and equivalence tests. With a known standard error $SE$, the three criteria are rescalings of one another.

      • A 95% confidence interval has half-width $1.96\,SE$.
      • The effect detectable with 80% power in a 5% two-sided test is $(1.96+0.84)\,SE=2.8\,SE$. So 'power to detect $\delta$' is the same requirement as 'expected half-width of $\delta/1.43=0.7\,\delta$'.
      • An equivalence test (two one-sided tests at 5%) concludes the effect lies within $\pm\Delta$ when the 90% interval falls inside those bounds. If the true effect is zero, 80% power needs $SE\le\Delta/2.93$, slightly stricter than detecting $\Delta$.

      The equivalence is exact only when $SE$ is known. With an estimated $SE$ the interval width is random, and 'probability that the width is below $w$' is a separate criterion (see the Likert example at the end of this chapter).

      On null results: an ex-ante power calculation tells you whether a null will be informative, because it fixes how narrow the interval will be. After the data are in, report the interval or the equivalence test. 'Observed power' computed from the estimated effect is a one-to-one function of the p-value and adds nothing (Hoenig and Heisey 2001). For replications, Simonsohn's (2015) 'small telescopes' test asks whether the replication rejects effects the original study had 33% power to detect.

    8. Todo: an aside here about power calculations in a Bayesian context.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-11): The author's own to-do. The chapter later argues for precision-based and decision-based design criteria, which are the Bayesian counterparts of power, without naming them.

      Suggestion: Design calculations in a Bayesian setting. 'Power' conditions on one fixed true effect, which a Bayesian analysis does not have. Three design criteria do the same job.

      1. Assurance (O'Hagan, Stevens and Campbell 2005): average the classical power curve over a prior for the effect size. If the prior puts real weight on small effects, assurance is well below the power computed at a single optimistic effect.
      2. Precision or decision goals (Kruschke 2015, ch. 13): choose $n$ so that, with a stated probability, the posterior interval is narrower than a target width, or lies entirely outside (or inside) a region of practical equivalence.
      3. Expected value of sample information: choose $n$ to maximise the expected gain from the better decision the data allow, minus the cost of collecting them. This is the natural criterion for the 'lift' problem later in this chapter.

      All three are computed by simulation: draw a parameter from the prior, simulate a data set of size $n$, fit the model, record whether the goal was met, and repeat. The frequentist calculation is the special case where the prior is a point mass at the assumed effect.

    1. efficient assignment of treatments

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-08): The section named in the chapter title contains only a link back to the power chapter. Allocation, blocking and re-randomisation are not explained anywhere in the book outside the Athey and Imbens reading notes.

      Suggestion: What makes an assignment efficient? The variance of a difference in means is $\sigma_T^2/n_T+\sigma_C^2/n_C$. Design can lower it in three ways.

      Allocation. With equal variances and equal costs a 50/50 split minimises it. If variances or per-unit costs differ, the optimum is $n_T/n_C=(\sigma_T/\sigma_C)\sqrt{c_C/c_T}$. The optimum is flat: a 60/40 split costs about 4% in variance.

      Blocking (stratification). Randomising within groups of similar units removes the between-group part of outcome variance. If block indicators explain a share $R^2$ of the outcome, the variance falls by roughly that share. Matched pairs are the limiting case. Analyse as you randomised: include block indicators or use a blocked estimator, otherwise the standard error ignores the gain (Bruhn and McKenzie 2009).

      Re-randomisation. Redrawing until a pre-specified balance criterion is met works like approximate blocking on continuous covariates (Morgan and Rubin 2012). Inference then has to use the same acceptance rule.

      On whether to randomise at all: Kasy (2016) argues that a deterministic, optimised assignment beats randomisation for a Bayesian decision-maker; Banerjee, Chassang, Montero and Snowberg (2020) show randomisation is preferred when the audience may be sceptical; Bai (2022) shows that matching pairs on an index of predicted outcomes is optimal among stratified designs.

    2. The NHST frequentist framework can not adjust ex-post to consider the

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-07): The section is a pasted spreadsheet row plus an excerpt from a response to referees. It never says how large the inflation from peeking is or what the standard fixes are, and the remark that Bayesian approaches address the problem needs a caveat.

      Suggestion: How much does peeking cost, and what fixes it? Test at the nominal 5% level after each of $K$ equally spaced looks and stop at the first $p<0.05$. With no true effect, the chance of a false positive is 8.3% for $K=2$, 10.7% for 3, 14.2% for 5, 19.3% for 10 and 24.8% for 20 (Armitage, McPherson and Rowe 1969).

      Three standard remedies:

      • Group-sequential boundaries. Fix the number of looks in advance and test each at a stricter level. Pocock's constant boundary uses nominal $p<0.0294$ for 2 looks and $p<0.0158$ for 5. O'Brien-Fleming boundaries are very strict early and close to 0.05 at the final look. Alpha-spending functions (Lan and DeMets 1983) allow unplanned timing.
      • Always-valid inference. Mixture sequential probability ratio tests and e-values give p-values and confidence sequences that hold at every stopping time (Johari, Koomen, Pekelis and Walsh 2017), at some cost in power for a given sample.
      • Adjusting after the fact. $p_{augmented}$ (Sagarin, Ambler and Lee 2014) bounds the error rate when data were added after a first look.

      A Bayesian posterior does not depend on the stopping rule. A rule such as 'stop when the 95% credible interval excludes zero' still has the same inflated false-positive rate under a flat prior, and estimates from studies stopped early are biased away from zero.

    3. The hazards of specification-searching

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-05): Heading with no content. The preceding discussion assumes the reader already accepts that specification search is a serious problem; the size of the problem is easy to show.

      Suggestion: Why specification search inflates false positives. A researcher who can choose among outcomes, control sets, subsamples and exclusion rules runs many tests and reports one. If $k$ candidate specifications were independent, the chance that at least one gives $p<0.05$ when there is no effect is $1-0.95^k$: 23% for $k=5$, 40% for $k=10$, 64% for $k=20$. Real specifications are correlated, so each adds less, but the menu is usually large. Simmons, Nelson and Simonsohn (2011) showed by simulation that combining four common choices (two outcome measures, optional extra data collection, an optional covariate, dropping a condition) raised the false-positive rate to 61%.

      The search need not be deliberate. Gelman and Loken's 'garden of forking paths' is the case where the analyst makes one reasonable choice after seeing the data, and would have made a different reasonable choice had the data looked different.

      Remedies, roughly in order of strength:

      • a pre-analysis plan that fixes the primary outcome and specification;
      • reporting every defensible specification, as a specification curve (Simonsohn, Simmons and Nelson 2020) or multiverse analysis (Steegen et al. 2016);
      • holding out part of the sample for confirmation;
      • multiple-testing corrections when several outcomes are of real interest (see the MHT section).
    4. I think it could solve some of the p-hacking problems but not much else.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-04): The exchange (from around 2020) debates whether pre-registration helps beyond p-hacking and what it costs. There is now direct evidence on both sides that the section could cite.

      Suggestion: Evidence since this exchange bears on both positions. Brodeur, Cook, Hartley and Heyes (2024, JPE Microeconomics) examine about 16,000 test statistics from RCTs in economics: pre-registration by itself shows no reduction in p-hacking or publication bias, while studies with a full pre-analysis plan show less of both. Ofosu and Posner (2023, Perspectives on Politics) audit pre-analysis plans in economics and political science and find many too vague to bind, with deviations often unreported. On the costs BB raises, Olken (2015) and Coffman and Niederle (2015), both in the Journal of Economic Perspectives, set out the case that plans constrain useful exploratory work and add little where replication is cheap. Registered reports (acceptance in principle before data collection, e.g. the Journal of Development Economics track) address the file-drawer point that pre-registration alone leaves open, which is BB's last concern in this fold.

    1. Causal channels and identification

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-02): Three headings in this chapter have no content yet: 'Causal channels and identification' (one bullet), 'Types of experiments, demand effects and more artifacts of artificial setups', and 'Generalizability' (which holds only the 'all the other papers do it' note).

      Suggestion: Suggested fillers for the three empty headings, two or three sentences each plus references.

      • Causal channels and identification. The design question is which arms separate the candidate mechanisms: one arm per channel, or a 2x2 that switches each channel on and off. Ludwig, Kling and Mullainathan (2011, 'Mechanism experiments and policy evaluations', JEP) argue for experiments that test one link of a causal chain. Imai, Tingley and Yamamoto (2013, JRSS-A) give designs that identify mediation by manipulating the mediator directly. Link to the mediation chapter.
      • Types of experiments and demand effects. Harrison and List's (2004) taxonomy (conventional lab, artefactual field, framed field, natural field) organises the artificiality concerns. On demand effects, Zizzo (2010) sets out the problem. De Quidt, Haushofer and Roth (2018, AER) bound it by adding arms that tell subjects what the experimenter hopes to see, and find modest effects in standard tasks. Mummolo and Peterson (2019, APSR) reach a similar conclusion for survey experiments.
      • Generalizability. List (2020, 'Non est disputandum de generalizability?') proposes reporting on selection, attrition, naturalness and scaling. Vivalt (2020, JEEA) measures how poorly impact-evaluation results transfer across settings. This connects to the Athey and Imbens point quoted in the experimetrics chapter, that external validity is mostly a question of treatment effect heterogeneity.
    2. Within vs between-subject designs

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (C-01): The section is a heading with no content. The tradeoff has a simple quantitative core (the correlation between a subject's outcomes under the two conditions) that a reader designing an experiment needs.

      Suggestion: Within- versus between-subject designs: the tradeoff in numbers. In a between-subject design each person sees one condition. In a within-subject design each person sees both and serves as their own control.

      Precision. Let the outcome have variance $\sigma^2$ and let $\rho$ be the correlation between a person's outcomes under the two conditions. The variance of the estimated effect is $2\sigma^2/n$ with $n$ people per arm, and $2\sigma^2(1-\rho)/n$ with $n$ people each observed twice. For an effect of half a standard deviation and 80% power, a between design needs about 64 per arm (128 people). With $\rho=0.5$ a within design needs about 34 people.

      Validity. The within design buys that precision with assumptions: no carry-over from the first condition to the second, no order or fatigue effects, and no change in behaviour once seeing both conditions reveals what the study is about. Counterbalancing the order lets you estimate order effects; carry-over remains.

      Estimand. The two designs can answer different questions. Judgements made side by side differ from judgements made in isolation (Hsee 1996), so choose the design that matches how the decision is taken outside the lab.

      A common compromise: randomise the order, treat the first block as a clean between-subject comparison, and use later blocks for added precision and to test for order effects. See Charness, Gneezy and Kuhn (2012).

    1. CI for the former will contain the latter with even greater probability.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-33): Correct as stated; the reason and the Imbens–Manski construction are not given, and the next line has "TA" for "TE".

      Suggestion: Claude explains: two kinds of confidence interval for bounds

      A 95% interval for the identified set $[\theta_L,\theta_U]$ has to cover both endpoints at once: $[\hat\theta_L-1.96\,se_L,\ \hat\theta_U+1.96\,se_U]$.

      The true effect is a single point inside the set. When the set is wide relative to sampling error, the point can be close to at most one endpoint, so only one tail is at risk and a one-sided critical value is enough. Imbens and Manski (2004) use $[\hat\theta_L-c\,se_L,\ \hat\theta_U+c\,se_U]$ with $c$ solving $$\Phi\Big(c+\frac{\hat\theta_U-\hat\theta_L}{\max(se_L,se_U)}\Big)-\Phi(-c)=0.95 .$$ $c$ is 1.645 when the estimated bounds are far apart and rises to 1.96 as they coincide.

      Example: bounds $[-0.02,\,0.09]$ with standard errors of 0.02 give $c\approx1.645$ and an interval of $[-0.053,\,0.123]$, against $[-0.059,\,0.129]$ for the identified set.

      In Stata's leebounds (Tauchmann 2014) this is the cieffect option. Stoye (2009) discusses cases where the Imbens–Manski interval needs modification.

    2. I suspect this assumption could be weakened and you would still get some similar bounds

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-31): The conjecture is correct and the results exist. Two nearby asides have answers too: whether a known upper bound on the outcome helps (line 63), and whether trimming "throws out data" (line 206).

      Suggestion: It can be weakened. Without monotonicity the always-observed share is no longer pinned down: with observation rates $q_1$ and $q_0$ it lies between $\max(0,\,q_1+q_0-1)$ and $\min(q_1,q_0)$. Zhang and Rubin (2003, JEBS) and Imai (2008, Statistics & Probability Letters) derive the resulting bounds on the always-observed effect, which trim both arms. They are wider, and very wide when $q_1+q_0$ is near or below 1.

      A sensitivity version of the idea in this note: posit that a share $\pi$ of subjects is induced out by treatment, compute the bounds for each $\pi$ in a plausible range, and report how large $\pi$ must be before the conclusion changes. Semenova's "Generalized Lee Bounds" (2020 working paper) is a middle route: monotonicity holds conditional on covariates, with its direction allowed to differ across covariate values.

      On the two side questions. A known upper limit on the outcome does not tighten Lee bounds: the trimmed means already lie inside the observed range and the bounds are sharp under his assumptions. It does make Horowitz–Manski bounds for the whole population feasible. And trimming is not an inefficient use of data: the width of the bounds is what the assumptions leave unidentified. Narrower bounds need covariates or further assumptions.

    3. this share is certainly no larger than the increased probability of observation in the treatment group

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-30): Two slips in the trimming explanation. Under monotonicity the marginal share among observed treated units equals $p=(q_1-q_0)/q_1$ exactly; "no larger than" has the inequality backwards (without monotonicity the share induced in is at least $p$). And the paragraph on why this improves on Horowitz–Manski says the upper bound assumes the marginal units "came from the highest distribution"; for the upper bound they are assumed to be the lowest $p$ share, as the preceding paragraphs say. A numerical example would replace several paragraphs of verbal description.

      Suggestion: Claude explains: Lee bounds in numbers (hypothetical)

      Control: 50% employed, mean log wage among the employed 2.00. Treatment: 60% employed.

      • Under monotonicity everyone employed in control would also be employed if treated. Among the treated employed, 50/60 are "always-employed" and 10/60 are employed only because of treatment: $p=(0.60-0.50)/0.60=1/6$, exactly.
      • Which treated workers form the marginal sixth is unknown. The extreme cases are that they are the lowest-paid sixth or the highest-paid sixth.
      • Upper bound: drop the lowest sixth of treated wages and take the mean of the rest (say 2.15). Subtract 2.00: $+0.15$.
      • Lower bound: drop the highest sixth (mean of the rest, say 1.93): $-0.07$.

      The wage effect for the always-employed lies in $[-0.07,\,0.15]$.

      Why this is narrower than Horowitz–Manski bounds: those fill in every missing wage (50% of controls, 40% of the treated) with the minimum or maximum of the support. Lee's bounds adjust only for the 10-point excess and use the observed wage distribution. The price is the monotonicity assumption and a narrower target: the effect for people employed under either assignment.

    4. sample selection bias can be seen as specification error in the conditional expectation

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-29): The paragraph that follows describes the Heckman selection equation in words and is garbled by dictation ("his status is equal to the true effect of the treatment an adjustment for..."). No equation is given.

      Suggestion: Claude explains: the selection model in one equation

      Latent wage $Y^*=\beta D+X\pi+U$. A person is employed if $\gamma D+X\delta+V>0$, and the wage is observed only then. So $$E[Y\mid D,X,\text{employed}]=\beta D+X\pi+E\big[U\mid V>-(\gamma D+X\delta)\big].$$ The last term is the selection bias. It is nonzero when $U$ and $V$ are correlated, and it varies with $D$ whenever treatment affects employment ($\gamma\neq0$). It therefore contaminates $\hat\beta$ under random assignment too.

      If $(U,V)$ are jointly normal the term equals $\rho\sigma_U\,\lambda(\gamma D+X\delta)$, where $\lambda(c)=\phi(c)/\Phi(c)$ is the inverse Mills ratio. Heckman's two-step estimates a probit for employment and adds $\hat\lambda$ as a regressor. With positive selection ($\rho>0$) and $\gamma>0$, treatment draws in people with lower $U$, and the naive comparison of observed wages understates $\beta$.

      Without a variable that shifts employment and is excluded from the wage equation, $\beta$ is separated from the $\lambda$ term only by the nonlinearity of $\lambda$, that is, by the normality assumption. That fragility is Lee's motivation for bounds.

    5. check whether any papers cite Lee using an IV approach, extending the technique and the estimation of variance

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-27): Open to-do with known answers. Related: the later idea of narrowing bounds with a ridge-predicted index has a published treatment, and the covariate weights are misdescribed (line 251 says "in the control group"; it is the covariate distribution among always-observed units, i.e. control units with observed outcomes when treatment raises selection).

      Suggestion: Papers that do this:

      • Chen and Flores (2015, JBES), "Bounds on treatment effects in the presence of sample selection and noncompliance": Lee-type trimming combined with the LATE framework, applied to Job Corps. The target is the wage effect for compliers who would be employed whether or not they enrol.
      • Blanco, Flores and Flores-Lagunes (2013, Journal of Human Resources): tighter Job Corps bounds under stochastic-dominance assumptions, and bounds on quantile effects.
      • Semenova, "Generalized Lee Bounds" (working paper, 2020): many covariates chosen by machine learning, with the direction of the selection effect allowed to differ across covariate values. This is the formal version of the "ridge-predicted wage index" idea in the notes on Section 5.2. If the index is built by hand, fit it on baseline covariates with cross-fitting; an index fit on the same outcomes it is used to stratify can make the bounds look narrower than they are.
      • For separating margins when one lottery shifts several unordered choices (the NL question): Kirkeboen, Leuven and Mogstad (2016, QJE).
    6. what meaningful restriction does this impose?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-26): Open author question. The answer (the latent-index form is equivalent to monotonicity) is the assumption the rest of the notes rely on.

      Suggestion: Claude explains: what the latent-variable selection equation assumes

      It imposes monotonicity. Write selection as $S=1[\gamma D+V>0]$, with one unobservable $V$ and a common coefficient $\gamma$. If $\gamma>0$, treatment raises the index for everyone. Anyone observed when untreated is also observed when treated; some people are induced into the sample and nobody is pushed out.

      Vytlacil (2002) shows the equivalence runs both ways: an additively separable latent-index selection model holds if and only if the independence and monotonicity assumptions of Imbens and Angrist (1994) hold.

      What it rules out is two-way flows. Example: training makes some people employable who otherwise would not work, while leading others to stay in education or raise their reservation wage, so that they are not employed at the survey date.

      Lee's bounds lean on this. Monotonicity implies that every observed control-group member is an "always-observed" type, so only the treatment group needs trimming. The restriction concerns the direction of the effect on selection. It places no restriction on how $V$ relates to wages, which is why the method handles selection on unobservables.

    1. economically justified counterfactual relocation choices and estimate the causal effect of neighborhood relocation conditioned on these partition sets

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-22): The notes ask "[what does this mean?]", and SARP is used without definition. The count of seven admissible types in the suggested text is from memory of Pinto's paper and should be verified against it.

      Suggestion: Claude explains: response types in Pinto's MTO analysis

      A family's response type is the list of what it would choose under each of the three assignments, $S_\omega=[T_\omega(z_1),T_\omega(z_2),T_\omega(z_3)]$. With three choices there are $3^3=27$ conceivable types. They are unobserved, since each family is seen under one assignment, and they partition the sample the way compliers, always-takers and never-takers do in the binary case.

      Pinto uses revealed preference (SARP, the strong axiom) to rule out types no utility-maximising family would display, given what each voucher subsidises. Example: the experimental voucher subsidises only low-poverty moves, so a family that moves to a low-poverty area with no voucher will not switch to a high-poverty area when offered it. This reduces the 27 types to seven.

      Each comparison of voucher arms then mixes a known subset of the remaining types, and neighbourhood effects (low-poverty versus no move, say) are identified, or bounded, for specific types. "Conditioned on these partition sets" means that effects are defined and estimated within response types, like a LATE for compliers. They do not average to a population effect without further assumptions. Heckman and Pinto (2018) generalise the idea as "unordered monotonicity".

    2. F is presumably the distribution over the observables; where did the unobservables go? They are in the expectations, I guess.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-21): Open author question about the mediation formulas; the guess is right and the reason it is allowed is the content of the assumption.

      Suggestion: Claude explains: where the unobservables went

      The guess is right. $F_{\theta^p|D=d,X}$ is the distribution of the measured inputs in arm $d$, which the data reveal. The unmeasured inputs are averaged out inside $E(Y\mid\theta^p=t,D=d,X)$.

      Sequential ignorability is what allows that conditional mean to be read causally. Given $D$ and $X$, people with different values of $\theta^p$ are assumed to have the same distribution of unmeasured inputs, so $E(Y\mid\theta^p=t,D=d,X)=E(Y_{d,t}\mid X)$: the mean outcome if measured inputs were set to $t$. The formula takes this response function for arm $d$ and averages it over the two mediator distributions.

      If the assumption fails (say, students who choose a specialisation also gained more unmeasured human capital), the conditional mean mixes the effect of $\theta^p$ with the effect of the unmeasured inputs that travel with it, and the estimated indirect effect absorbs part of the direct one.

      This is Pearl's (2001) mediation formula. Imai, Keele and Yamamoto (2010) give the identification result and a sensitivity analysis indexed by the correlation between the mediator and outcome errors (R package mediation).

    3. Antonakis, coming from the Psychology and Leadership disciplines, considers the mediation question in a much simpler set of models.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-17): The paper is not cited, and the "Antonakis approaches" section at the end of the chapter contains only "Insert notes here".

      Suggestion: Claude explains: the Antonakis et al. argument

      Antonakis, Bendahan, Jacquart and Lalive (2010, "On making causal claims: A review and recommendations", The Leadership Quarterly) treat mediation as an endogeneity problem in the linear model $M=aT+e_M$, $Y=bM+c'T+e_Y$.

      1. Even with $T$ randomised, $M$ is an endogenous regressor in the $Y$ equation whenever $e_M$ and $e_Y$ are correlated. The Baron–Kenny steps, the Sobel test and a bootstrapped $ab$ are then inconsistent.
      2. Their remedy is to estimate the $M\to Y$ path by 2SLS with $T$ as the instrument for $M$, and to compare OLS with 2SLS using a Hausman test.
      3. This identifies $b$ only under an exclusion restriction: $T$ affects $Y$ solely through $M$ (full mediation, $c'=0$). One instrument cannot deliver both $b$ and a direct effect $c'$; that needs a second source of exogenous variation that shifts $M$.

      So the approach trades "no confounding of $M$" for "no direct effect of $T$". It is the single-instrument limitation noted above for the NL lottery, stated in psychology's notation.

    4. may arise through a process involving selection on unobserved variables

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-16): The literature review stops at 2015. Several later papers address exactly the stated problem (an instrument for $T$ only, an endogenous mediator, unordered choices).

      Suggestion: Later work worth adding here:

      • Frölich and Huber (2017, JRSS-B): direct and indirect effects identified with separate instruments for treatment and mediator.
      • Dippel, Ferrara and Heblich (2020, Stata Journal, command ivmediate): a single instrument for $T$ can suffice under the added assumption, roughly, that the unobserved confounders of $T$ affect $Y$ only through $M$. Worth checking whether that is defensible for the NL lottery.
      • Imai, Tingley and Yamamoto (2013, JRSS-A): experimental designs that manipulate or encourage the mediator.
      • Acharya, Blackwell and Sen (2016, APSR): controlled direct effects, which need weaker assumptions than the natural direct/indirect decomposition.
      • Bullock, Green and Ha (2010, JPSP): the general case that experiments alone rarely identify mechanisms.
      • For unordered multi-valued choices with a lottery instrument: Kirkeboen, Leuven and Mogstad (2016, QJE), who show IV with several fields of study is interpretable only with information on next-best alternatives, and Heckman and Pinto (2018, Econometrica, "Unordered Monotonicity"), which generalises Pinto's MTO approach summarised below.
    1. this seems similar to my idea of regularising on a subset

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-11): The cited 2016 working paper is now the standard double/debiased ML reference, and the notes do not say why two prediction problems are needed. Penalising only the controls in a single outcome regression does not give valid inference on the treatment coefficient. The Athey–Imbens item just below has also been superseded.

      Suggestion: Claude explains: double/debiased machine learning in brief

      The paper is now Chernozhukov, Chetverikov, Demirer, Duflo, Hansen, Newey and Robins (2018, Econometrics Journal). For $Y=\theta D+g(X)+\varepsilon$ and $D=m(X)+v$:

      1. Predict $Y$ from $X$, and $D$ from $X$, with any ML method.
      2. Regress the outcome residual on the treatment residual. The slope is $\hat\theta$.
      3. Cross-fit: form each observation's residuals from models trained on the other folds.

      If the "subset" idea is to penalise the controls while leaving $D$ unpenalised in one outcome regression, $\hat\theta$ is biased: a control that is dropped or shrunk and is correlated with $D$ leaves omitted-variable bias that does not vanish at the $\sqrt n$ rate. Residualising both equations makes the estimate depend on the product of the two prediction errors, so each prediction can converge slowly (faster than $n^{-1/4}$) and $\hat\theta$ is still $\sqrt n$-consistent with ordinary standard errors. Cross-fitting removes the bias from fitting and residualising on the same data. Post-double-selection (Belloni, Chernozhukov and Hansen 2014) is the lasso special case. Software: DoubleML (R, Python); ddml, pdslasso (Stata).

      For heterogeneous effects, Athey and Imbens (2016) has been extended to causal forests (Wager and Athey 2018) and generalized random forests (Athey, Tibshirani and Wager 2019; R package grf).

    2. is this equally a problem for non-sparsity-based procedures like ridge?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-10): Open author question in the notes on Mullainathan and Spiess (2017).

      Suggestion: Claude explains: does ridge share the lasso's coefficient problems?

      Partly. Ridge keeps every variable, so the instability in which variables get selected does not arise. The coefficient problem remains. Ridge coefficients are biased toward zero, and among correlated predictors the weight is spread across them: if rooms and square footage are highly correlated, ridge gives them similar coefficients whatever the true split between them. A ridge coefficient on one variable therefore absorbs part of the effect of its correlates. That is the "cousin of omitted variable bias" the authors describe, in a smoother form.

      At a penalty chosen for prediction, neither estimator's coefficients estimate partial effects. To estimate one coefficient well, use a method built for that purpose (post-double-selection or double machine learning), which treats the remaining variables as nuisance.

    3. it might boost efficiency to allow inference about coefficients that should be exactly zero

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-09): The aside asks whether ridge or lasso is better for choosing covariates to reduce noise in treatment-effect estimation and leaves it open. There are now direct results for randomised experiments.

      Suggestion: Claude explains: ridge or lasso for covariate adjustment in an experiment?

      In a randomised experiment covariates are there only to absorb outcome variance, so the criterion is out-of-sample prediction of $Y$. Use whichever of ridge, lasso, elastic net or a forest predicts best under cross-validation. Lasso tends to win when a few covariates carry the signal, ridge when it is spread over many.

      Two results make this safe. Bloniarz et al. (2016) show that lasso-adjusted ATE estimates in experiments are consistent and asymptotically normal, with variance no larger than the unadjusted difference in means. Wager et al. (2016) show the same for any prediction method when predictions are cross-fitted (each unit's prediction comes from a model fit without that unit's fold); the precision gain is governed by predictive accuracy.

      Recipe: predict $Y$ from baseline covariates with cross-fitting, then estimate the treatment effect on $Y-\hat Y$, or add $\hat Y$ as a covariate. Leave the treatment coefficient unpenalised.

      In observational data the criterion changes: covariates that predict treatment also have to be kept, which is what post-double-selection (Belloni, Chernozhukov and Hansen 2014) and double machine learning (Chernozhukov et al. 2018) are for.

    4. DR: When is this likely to help/hurt relative to pure lasso?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-08): Open author question, with an answer available from later work.

      Suggestion: Claude explains: when refitting after the lasso helps

      Refitting by OLS on the lasso-selected variables removes the shrinkage on the retained coefficients.

      It helps when the signal is strong and sparse. The lasso then needs a large $\lambda$ to screen out noise variables, and the same $\lambda$ over-shrinks the real coefficients; the refit undoes that.

      It hurts when the signal-to-noise ratio is low or many small effects are present. Shrinkage of the retained coefficients is then useful variance reduction, and the selected set is itself unstable.

      Meinshausen's (2007) relaxed lasso has a second tuning parameter that moves between the lasso fit and the OLS refit and is chosen by cross-validation (relax = TRUE in glmnet), so the data choose the amount of un-shrinking. Belloni and Chernozhukov (2013) show OLS-after-lasso converges at least as fast as the lasso and can do strictly better when selection is good. In the simulations of Hastie, Tibshirani and Tibshirani (2020) the relaxed lasso does well at both low and high signal-to-noise ratios, where the plain lasso is best only at low and best-subset only at high.

      Standard errors from the refitted OLS ignore the selection step and are too small.

    5. No analytical statistical inference after lasso (some being developed?), bootstrap is common

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-06): Outdated. Inference after lasso is now well developed, and the naive bootstrap is known to be unreliable for lasso coefficients. The same applies to point 4 of the EA Forum quote earlier in the chapter ("new techniques being developed").

      Suggestion: Claude explains: inference after the lasso (state of play)

      Which method applies depends on the target.

      1. Effect of one pre-specified regressor (a treatment) with many candidate controls. Post-double-selection (Belloni, Chernozhukov and Hansen 2014) and double/debiased machine learning (Chernozhukov et al. 2018) give standard errors that remain valid when the lasso makes selection mistakes among the controls.
      2. Confidence intervals for individual coefficients in a high-dimensional regression. The debiased lasso (Zhang and Zhang 2014; van de Geer et al. 2014; Javanmard and Montanari 2014).
      3. Inference on the coefficients of the model the lasso selected, conditional on that selection. Exact post-selection inference (Lee, Sun, Sun and Taylor 2016), implemented in the R package selectiveInference.

      The naive bootstrap is unreliable here. The lasso estimator has a point mass at zero, and the residual bootstrap is inconsistent when some true coefficients are zero (Chatterjee and Lahiri 2010; their 2011 paper gives a modified version that works). Sample splitting, selecting on one half and estimating by OLS on the other, is a simple valid alternative at the cost of power.

    6. Not clear here whether standardisation is necessary for the procedure to be valid or just convenient for explaining and deriving its properties.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-05): Open author question. Standardisation changes the lasso solution, so it is a substantive choice; the notes leave this unresolved.

      Suggestion: Claude explains: why predictors are standardised before the lasso

      The lasso penalty treats all coefficients alike, and the size of a coefficient depends on the units of its regressor. Measure income in thousands of dollars in place of dollars and its coefficient becomes 1,000 times larger, so the same $\lambda$ penalises it 1,000 times more and a different model is selected. OLS has no such problem: rescaling a regressor leaves the fitted values unchanged. Standardising each column to mean zero and unit variance makes the penalty apply equally to a one-standard-deviation change in each predictor.

      So the optimisation is well defined either way, and the answer depends on the scaling you choose. Standardising is the default because it removes dependence on arbitrary units.

      • Centring $y$ and $X$ lets the (unpenalised) intercept drop out. Rescaling $y$ only rescales $\lambda$.
      • glmnet standardises internally by default and reports coefficients on the original scale.
      • For dummies, standardising means a rare category is penalised less, per unit of its coefficient, than a common one. Some analysts leave dummies unscaled.
      • Variables that must stay in the model (the treatment indicator, stratification dummies) should get a penalty factor of zero.
    7. All of the controls must still be exogenous, otherwise this itself can lead to a bias.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (B-01): The definition asks for controls on determinants of "the independent variable" and requires controls to be "exogenous". The identifying condition is conditional independence of treatment given controls; a small residual does not deliver it, and Oster's test is cited without saying what it does.

      Suggestion: Claude explains: what a control strategy needs, and what Oster's test does

      A control strategy identifies the effect of $D$ on $Y$ if, among units with the same controls $X$, $D$ is as good as randomly assigned: $Y(d) \perp D \mid X$ ("selection on observables"). In practice:

      • Control for common causes of $D$ and $Y$. Variables that predict only $Y$ add precision. Variables that predict only $D$ cost precision and can amplify whatever bias remains.
      • Controls should be fixed before treatment. Their own coefficients need no causal interpretation. A control that is itself affected by $D$ (a mediator, or a collider such as occupation in a wage-on-schooling regression) biases the coefficient on $D$.
      • A small residual is not sufficient. With $R^2 = 0.9$ the estimate is still biased if the remaining 10% is correlated with $D$.

      Oster (2019) formalises a common robustness argument. If adding observed controls barely moves $\hat\beta$ while raising $R^2$ a lot, unobservables would have to matter far more than the observables to explain the estimate away. Her $\delta$ is the degree of selection on unobservables, relative to observables, needed to drive $\beta$ to zero, given an assumed maximum $R^2$ (she suggests $R_{max} = 1.3\,\tilde R^2$, with $\tilde R^2$ from the regression with controls). $|\delta| > 1$ is the usual benchmark for "robust".

    1. Common methods bias

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-49): A term in quotation marks with no content. It is directly relevant to the survey-based outcomes used throughout the book.

      Suggestion: Claude explains: common method bias

      When two variables are measured the same way (same survey, same respondent, same response scale, same sitting), part of their correlation comes from the shared method: mood on the day, acquiescence, social desirability, a habit of using one end of the scale, or a wish to appear consistent. In measurement-error terms the errors in $X$ and $Y$ are positively correlated, so the usual result that noise attenuates relationships is reversed and associations can be inflated or created.

      Typical case: a survey asks about attitudes toward charity and about donations last year. Respondents who present themselves favourably overstate both, producing a correlation with no behavioural content.

      Remedies, strongest first (Podsakoff, MacKenzie, Lee and Podsakoff 2003): take the outcome from a different source (administrative records, an incentivised choice, a real donation); separate the measurements in time or in position within the survey; vary scale formats and reverse-key some items; include a 'marker' variable that should be unrelated to both and see how strongly it correlates with them. Harman's single-factor test, still widely reported, has little power to detect the problem and is not evidence of its absence.

      For experiments, the same concern is one reason to prefer behavioural outcomes over self-reports collected in the same session as the treatment.

    2. Factor analysis and principal-component analysis

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-48): Empty section, though the chapter title promises dimension reduction and factor analysis.

      Suggestion: Claude explains: PCA or factor analysis?

      Both reduce many correlated variables to a few, with different aims.

      Principal components are weighted sums of the observed variables chosen to capture as much total variance as possible. PCA compresses data and has no model of where the data came from. Measurement error counts as variance to be captured, and the components depend on which items happen to be included.

      Factor analysis is a model: each observed item is caused by a small number of unobserved factors plus its own unique noise, $X_i = \alpha_i + \beta_i \xi + E_i$ as above. It explains only the shared variance (the correlations) and sets item-specific noise aside. This is the tool when the goal is to measure a construct, to test whether a scale has one dimension or several, or to estimate reliability.

      Rules of thumb. For an index to use as a control variable, or to cut the number of outcomes, PCA or a simple average of standardised items is fine; the two are typically very highly correlated. For claims about latent traits use factor analysis: exploratory to find the structure, confirmatory on fresh data to test it. Choose the number of factors by parallel analysis; the 'eigenvalue above 1' rule tends to keep too many. With many reliable items PCA and factor analysis give similar loadings. With few or noisy items they diverge, and PCA loadings are the inflated ones.

    3. we consider a measuring instrument consisting of a prespecified set of

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-47): 'Congeneric' is glossed with '[related?]'; it has a specific meaning. The bullet 'analysis of composite reliability' further down is likewise undefined, and the relation to Cronbach's alpha, the statistic most readers will have met, is absent.

      Suggestion: Claude explains: 'congeneric', and which reliability coefficient to report

      Congeneric means every item measures the same single latent variable $\xi$, while items may differ in how strongly they load on it ($\beta_i$), in their intercepts ($\alpha_i$) and in their error variances. It is the weakest of three nested measurement models:

      • Parallel: equal loadings and equal error variances.
      • Tau-equivalent: equal loadings; error variances free.
      • Congeneric: loadings and error variances both free.

      For the sum score $Z = X_1 + \dots + X_p$, with $\text{Var}(\xi) = 1$, reliability is

      $$\rho_Z = \frac{\left(\sum_i \beta_i\right)^2}{\left(\sum_i \beta_i\right)^2 + \sum_i \text{Var}(E_i)},$$

      usually called composite reliability or McDonald's $\omega$. Cronbach's $\alpha$ equals this only under tau-equivalence with uncorrelated errors. With unequal loadings $\alpha$ understates reliability, and with correlated errors (similarly worded items) it can overstate it.

      Example with three standardised items and loadings 0.9, 0.6, 0.3, hence error variances 0.19, 0.64, 0.91: $\omega = 1.8^2 / (1.8^2 + 1.74) = 0.65$, while $\alpha = 0.60$.

      This is the setting of the paper cited here: reliability of a sum score under the congeneric model, without assuming equal loadings.

    1. John List talks a lot about ‘randomizing across context’ maybe there’s an experimental econ literature on this too?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-44): The section quotes the paper's abstract and asks whether economics has an equivalent, without saying what the problem is.

      Suggestion: The point of Judd, Westfall and Kenny (2012) in economists' terms: if an experiment uses a handful of stimuli (three charity appeals, four vignettes, two price levels) to stand for a category such as 'emotional appeals', the stimuli are a second sample. Treating them as fixed gives standard errors for 'these particular appeals' only. Generalising to the category needs a stimulus-level variance component, and power is then capped by the number of stimuli however many participants there are (Westfall, Kenny and Judd 2014). It is the logic of clustering at the level at which treatment varies: three appeals per arm means, in effect, three clusters per arm. Yarkoni (2022, 'The generalizability crisis') makes the broader argument. In economics the nearest discussions I know concern external validity and site selection (Allcott 2015 on site selection bias; List 2020, 'Non est Disputandum de Generalizability?'); stimulus sampling as such is rarely modelled.

    2. conventional answers ask for 25; this only pertains to frequentist work, not Bayesian

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-43): Half right. Bayesian estimation avoids large-sample approximations, but with few groups the between-group variance is weakly identified whatever the method, and the Bayesian answer then depends on the prior for that variance. The follow-up question about simulation in frequentist models also has a definite answer (yes).

      Suggestion: Claude explains: few groups, frequentist and Bayesian

      With few higher-level units the hard quantity is the between-group variance $\sigma_v^2$, which is estimated from only $J$ group effects. Maximum likelihood then underestimates it, sometimes at exactly zero, and standard errors for group-level coefficients come out too small. REML with Kenward–Roger or Satterthwaite degrees of freedom repairs much of this, and a parametric bootstrap is available (lme4::bootMer, pbkrtest), so simulation-based frequentist inference is an option, as the question below suggests.

      Bayesian estimation does not rely on large-$J$ approximations and carries the uncertainty about $\sigma_v^2$ through to everything else. The small-$J$ problem moves into the prior: with 5 or 10 groups the data say little about $\sigma_v^2$, and the posterior depends visibly on the prior chosen for it. Gelman (2006) recommends weakly informative half-$t$ or half-Cauchy priors on the group-level standard deviation and warns against the once-standard inverse-gamma$(\epsilon, \epsilon)$ prior.

      So the 25-group rule of thumb concerns asymptotic approximations, which Bayesian estimation avoids. The scarcity of information about $\sigma_v^2$ remains, and with small $J$ the sensitivity of results to the variance prior should be reported.

    3. schools with few obs will have an estimated RE very close to the mean

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-42): Shrinkage (partial pooling), the main reason to use these models, appears only as a garbled half-sentence with no formula.

      Suggestion: Claude explains: partial pooling

      The multilevel estimate of a school's intercept is a compromise between the school's own mean and the overall mean:

      $$\hat\alpha_j = w_j\, \bar{y}j + (1 - w_j)\, \bar{y}, \qquad w_j = \frac{\sigma_v^2}{\sigma_v^2 + \sigma\epsilon^2 / n_j}.$$

      The weight on the school's own data rises with its number of students $n_j$ and with how much schools truly differ ($\sigma_v^2$). Take $\sigma_v^2 = 1$ and $\sigma_\epsilon^2 = 4$. A school with 2 students gets $w = 1/(1 + 2) = 0.33$, so its estimate is pulled two-thirds of the way to the overall mean. A school with 40 students gets $w = 1/(1 + 0.1) = 0.91$ and barely moves.

      'One regression per school' is the no-pooling extreme ($w_j = 1$): noisy for small schools, whose extreme means are mostly sampling error. A single pooled regression is the other extreme ($w_j = 0$). The model estimates $\sigma_v^2$ from the data and so chooses the degree of pooling. The shrunken estimates are biased toward the mean for any one school and have lower mean-squared error across schools taken together, the logic shared by James–Stein and empirical Bayes estimators, ridge penalties and random-effects meta-analysis.

    1. this holds whether or not we restrict the age, period, or cohort effects to being linear in a time variable

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-37): The '(I believe)' can be resolved, and doing so shows what is and is not identified, which the section does not say. It also qualifies the two devices described next (the cohort-characteristic model and the residual check). (An off-by-one in the quoted count of cohort effects and the undefined index $k$ are in the format entry.)

      Suggestion: Claude explains: what is and is not identified in APC models

      The belief is right, and the linear case is the whole of the problem. Since cohort = period − age, linear trends satisfy

      $$a \cdot \text{age} + p \cdot \text{period} + c \cdot \text{cohort} = (a - c) \cdot \text{age} + (p + c) \cdot \text{period}.$$

      Only $a - c$ and $p + c$ can be learned. Adding any $\delta$ to the age and cohort slopes and subtracting it from the period slope fits the data identically. 'Incomes rise with age' and 'each cohort earns less than the last while every year is better than the one before' cannot be told apart from the data alone.

      What is identified: all the curvature. Deviations of the age, period and cohort effects from straight lines (second differences, turning points, a one-off period shock) are estimable without extra assumptions. The apc package linked above is built on this (Kuang, Nielsen and Nielsen 2008).

      Consequences for the two devices described next. The cohort-characteristic (APCC) model breaks the collinearity by assuming cohort affects the outcome only through the chosen characteristic; the linear trends are then identified by that exclusion restriction and are as credible as it is. And residuals from an age–period model can reveal non-linear cohort patterns, but a linear cohort trend has already been absorbed into the age and period effects, so flat residuals do not show that cohorts are alike.

    2. Nickell bias and Arellano-Bond and related procedures

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-36): Named in a bullet and again as an empty sub-heading (misspelled 'Nickel'), and listed among the common mistakes in the regression chapter, but never explained.

      Suggestion: Claude explains: Nickell bias

      Model: $y_{it} = \rho\, y_{i,t-1} + \alpha_i + \epsilon_{it}$. The within transformation subtracts each unit's time average. The demeaned lag $y_{i,t-1} - \bar{y}i$ then contains every period's shock through $\bar{y}_i$, including $\epsilon{it}$, so it is correlated with the demeaned error. The bias does not shrink as $N$ grows; it shrinks with $T$. For $\rho > 0$ it is negative and roughly $-(1 + \rho)/(T - 1)$ (Nickell 1981): with $\rho = 0.5$ and $T = 10$ the within estimate centres near 0.34. Coefficients on other regressors are biased too when they are correlated with the lag.

      Remedies: Anderson–Hsiao and Arellano–Bond (1991) first-difference the equation and instrument $\Delta y_{i,t-1}$ with $y_{i,t-2}$ and earlier lags. These instruments are weak when $\rho$ is near 1. 'System GMM' (Blundell and Bond 1998) adds moment conditions at the price of a stationarity assumption on initial conditions. With many periods the instrument count grows quickly and overfits the endogenous variable, so cap or collapse the instruments and report their number (Roodman 2009). Results are sensitive to these choices; show several.

      A shortcut from Mostly Harmless Econometrics (section 5.3): if you are unsure whether selection into treatment is on a fixed unit effect or on the lagged outcome, the fixed-effects estimate and the lagged-dependent-variable estimate (without fixed effects) bracket the true effect.

    3. Does CiC suffer from the same issue?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-34): DR's question is unanswered, and BB's summary of changes-in-changes ('assumptions pretty similar to DiD', 'heterogeneous treatment effects in a better way') is looser than the method warrants.

      Suggestion: Yes. Changes-in-changes (Athey and Imbens 2006) replaces additive parallel trends with two other untestable conditions: each group's distribution of unobservables is stable over time, and the outcome is a monotone function of a scalar unobservable, with that function changing over time in the same way for both groups. What it buys: it does not depend on the scale of the outcome (parallel trends in levels and in logs cannot both hold, while CiC is invariant to monotone transformations), and it delivers the whole counterfactual distribution for the treated group, hence quantile effects on the treated. Two qualifications to the summary above. The assumptions are not nested with DiD's, so 'pretty similar' undersells the difference. And quantile effects describe changes in the distribution of outcomes; they equal effects on individuals only if treatment preserves ranks. Pre-period placebo versions of CiC exist, with the same accept-the-null weakness discussed in the diagnostics chapter. CiC also needs the treated group's outcomes to lie within the support of the control group's.

    4. Fixed effects and differencing

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-32): Empty section.

      Suggestion: Claude explains: fixed effects vs first differences

      Both remove any unit-specific factor that is constant over time. Neither removes unobservables that change over time and move with the treatment.

      • With two periods the two estimators are numerically identical.
      • With more periods they differ in efficiency. Fixed effects (the within estimator) is efficient when the idiosyncratic errors are serially uncorrelated; first differences is efficient when they follow a random walk. Real data usually sit in between, so use standard errors clustered by unit with either.
      • Both need strict exogeneity: the regressor in every period is unrelated to the error in every period. Feedback from past outcomes to current treatment (people enrol after a bad year) violates it, as does a lagged dependent variable (see Nickell bias below). The two estimators then have different biases, so a large gap between them is a warning sign (Wooldridge, Econometric Analysis of Cross Section and Panel Data, ch. 10).
      • Measurement error in the regressor is amplified by both transformations, more so by first differences when the true regressor is persistent, which pulls estimates toward zero (Griliches and Hausman 1986).
      • With heterogeneous effects, fixed effects weights units by their within-unit variance in treatment, the variance weighting described for OLS in the regression chapter. Units whose treatment never changes contribute nothing.
    1. which i think suggests that IV is not (generally) dealing with the problem of OVB that it claims to

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-26): The inference does not follow from Young's result. Also the citation key renders as '(ConsistencyInferenceInstrumental?)' in the built page because the bib entry is a saved Google search with no author, and the link is a Google Scholar redirect.

      Suggestion: Another reading of Young's finding: in his sample of published IV papers, 2SLS confidence intervals are wide enough that they usually contain the OLS point estimate, and tests of OLS against IV rarely reject once inference accounts for non-iid errors and high-leverage observations. That reflects how imprecise IV is: the data usually cannot tell whether there was omitted-variable bias to remove. Whether IV removes it is a separate question that these comparisons cannot settle. The practical message is closer to 'IV rarely improves on OLS in mean-squared-error terms unless the first stage is strong'. The paper is now published: Alwyn Young (2022), 'Consistency without Inference: Instrumental Variables in Practical Application', European Economic Review. Suggest replacing the bib entry with that reference and the redirect link with the journal page.

    1. Sensitivity analysis: Interactive presentation

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-24): Empty section.

      Suggestion: Claude explains: tools for showing sensitivity

      Specification curve / multiverse. List the defensible analysis choices (controls, sample restrictions, outcome definition, functional form), estimate every combination, and plot all estimates sorted by size above a panel showing which choices produced each one (Simonsohn, Simmons and Nelson 2020; Steegen et al. 2016). The reader sees whether the headline estimate is typical or an extreme draw, and which choice drives the variation. R: specr, multiverse.

      How strong would a confounder need to be? Oster (2019) uses the movement in the coefficient and in $R^2$ when observed controls are added to bound the bias from unobservables, and reports how strong selection on unobservables would have to be, relative to selection on observables, to drive the effect to zero. Cinelli and Hazlett (2020) report a 'robustness value': the share of residual variance in both treatment and outcome that a confounder must explain to overturn the result, benchmarked against observed covariates (R: sensemakr).

      Design-specific versions. For IV, Conley, Hansen and Rossi (2012) allow a small direct effect of the instrument on the outcome. For DiD, the Rambachan–Roth bounds described above. For attrition, Lee bounds.

      An interactive version of any of these (a Shiny app or a slider over the sensitivity parameter) lets readers apply their own beliefs about the assumption.

    2. Estimating standard errors

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-23): Empty section.

      Suggestion: Claude explains: choosing standard errors

      Heteroskedasticity-robust standard errors are the default for cross-sections. In small samples or with high-leverage observations use the HC2 or HC3 versions; HC1 (Stata's robust) can be too small.

      Clustered: Abadie, Athey, Imbens and Wooldridge (2023) frame the choice by design. Cluster at the level at which treatment was assigned (villages, classrooms, the individual in a panel), and when clusters were themselves sampled from a larger population of clusters. Correlated residuals within a group are not by themselves a reason to cluster on that group.

      Few clusters (roughly under 40, very unequal sizes, or few treated clusters): cluster-robust standard errors are biased downward and tests over-reject. Use the wild cluster bootstrap (Cameron, Gelbach and Miller 2008) or randomization inference.

      Serial correlation in panels and DiD: Bertrand, Duflo and Mullainathan (2004) found placebo laws 'significant' up to 45% of the time when state-year outcomes were treated as independent. Clustering by state repairs this.

      Size of the stakes, from the Moulton factor: with 50 observations per cluster and an intra-cluster correlation of 0.05, a regressor that varies only by cluster has true sampling variance $1 + (50 - 1)(0.05) = 3.45$ times the naive one, so naive standard errors are too small by a factor of 1.86.

    1. The names of the regions are lost; how do I know which is which?

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-19): The aside ends with unanswered questions about contr.sum (which coefficient is which, why the third is missing) and adopts a de-meaning workaround whose standard errors are wrong and which does not generalise.

      Suggestion: Claude explains: reading contr.sum output

      contr.sum with $k$ levels estimates $k - 1$ deviations and numbers them in the order of levels(region). After relevel(ref = "s") the levels are s, c, n, so region1 is South ($-30.7$) and region2 is Central ($-10.1$). The last level is always the one omitted, and its deviation is minus the sum of the others: North $= 30.7 + 10.1 = +40.8$. The intercept (90.3) is the unweighted mean of the three adjusted group means.

      To keep the names, label the contrast columns:

      contrasts(i_df$region) <- contr.sum(3); colnames(contrasts(i_df$region)) <- levels(i_df$region)[1:2]

      The 'subtract the mean, drop the intercept' regression works because with 0 + R gives the first factor a full set of dummies whatever contrast is set. Three caveats. Its coefficients are deviations from the pooled sample mean, which equals the mean of group means only when groups are the same size. Its standard errors treat the grand mean as known; the correct SE for 'group minus the average of $k$ equal-sized groups' is smaller by a factor $\sqrt{(k-1)/k}$, 18% here. And only the first factor gets the full set, so a second categorical variable falls back to the contrast setting: the 'multiple dimensions' problem noted below. To report every level's deviation with correct SEs, use emmeans::emmeans(model, ~ region) followed by contrast(., "eff").

    2. it is hard to disentangle a heterogeneous response to the treatment from

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-18): The claim is stated in one sentence without an example, and without the practical consequence (interactions are scale-dependent).

      Suggestion: Claude explains: an interaction that is only curvature

      Suppose giving depends on a latent willingness $w$ through a concave function, $y = 10\sqrt{w}$, and treatment adds 5 to $w$ for everyone. Men start at $w = 4$, women at $w = 25$. Treatment moves men from 20 to 30 (+10) and women from 50 to 54.8 (+4.8). A regression of $y$ on treatment, gender and their product reports a real interaction: the effect in dollars is twice as large for men. Yet treatment did the same thing to both groups on the scale where it acts.

      Both descriptions are correct, and which one counts as moderation depends on the scale. An interaction can appear, vanish or change sign under a monotone transformation of the outcome (levels vs logs, probabilities vs log-odds) unless the group lines actually cross; Loftus (1978) called these 'removable' interactions.

      In practice: state the scale on which the claim is made. If the claim is about dollar effects, the interaction in levels is the answer. If the claim is that gender changes responsiveness, check whether it survives flexible control for the baseline level, or compare the groups at similar baselines. Floors and ceilings (many zeros, a capped scale) produce the same pattern mechanically.

    3. Modeling heterogeneity: the limits of Quantile regression

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-17): A bullet promising 'the limits of quantile regression' with nothing under it.

      Suggestion: Claude explains: what quantile regression does and does not show

      A quantile treatment effect compares the same quantile of two distributions, for example the median outcome under treatment minus the median under control. It describes how the distribution shifts. It is the effect on 'the person at the median' only if treatment leaves everyone's rank unchanged, which is rarely defensible.

      Example: outcomes are uniform on 0–100. Treatment raises everyone in the bottom half by 50 and lowers everyone in the top half by 50. The two halves trade places, the treated distribution is identical to the control distribution, and every quantile effect is zero, while every individual effect is $\pm 50$. In the other direction, quantile effects that differ across quantiles show that some heterogeneity exists without saying who gains.

      Two further cautions. With covariates, standard (conditional) quantile regression describes quantiles within covariate cells: a coefficient at the 0.9 quantile concerns people who are high given their covariates, who need not be at the top of the overall distribution (Firpo, Fortin and Lemieux 2009 give the unconditional version). And with a mass at zero, as in donations, the lower quantiles are zero in both arms and carry no information.

    4. Confidence intervals and Bayesian credible intervals

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-16): Empty sub-heading, directly after a paragraph that asks readers to distinguish informative from uninformative nulls and quotes the TOST abstract without showing how the procedure works.

      Suggestion: Claude explains: making a null result informative

      Three results that all read 'not significant' ($p > 0.05$), for an effect in SD units where anything under 0.1 is too small to care about:

      | Estimate | 95% CI | Reading | |---|---|---| | 0.02 | [−0.04, 0.08] | informative null: effects of 0.1 or more are ruled out | | 0.02 | [−0.30, 0.34] | uninformative: large effects in either direction remain possible | | 0.15 | [−0.01, 0.31] | no evidence of absence: the data lean toward a meaningful effect |

      The equivalence test (TOST) formalises the first row. Choose the smallest effect size of interest $\Delta$ before seeing the data, then test $H_0: |\beta| \ge \Delta$ with two one-sided tests. At the 5% level this is the same as checking that the 90% confidence interval lies inside $(-\Delta, \Delta)$. With estimate 0.02 and SE 0.03 the 90% CI is $[-0.03, 0.07]$, inside $\pm 0.1$, so effects as large as 0.1 are rejected.

      A Bayesian 95% credible interval answers a different question: given the prior and the data, the parameter lies in the interval with probability 0.95. With a flat prior and a normal likelihood the two intervals coincide numerically, which is why the informal reading of a confidence interval usually does little damage. They diverge with informative priors, small samples, or parameters near a boundary.

    5. Quadratic regressions are not diagnostic regarding u-shapedness

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-15): One-line pointer to Simonsohn (2018) with no statement of why the quadratic test fails or what replaces it.

      Suggestion: Claude explains: why a significant squared term does not show a U

      A quadratic forces a symmetric parabola on the data, so it always has a turning point somewhere. Take $y = \log x$ for $x$ from 1 to 100. $y$ rises everywhere, yet a regression of $y$ on $x$ and $x^2$ gives a positive coefficient on $x$, a strongly significant negative coefficient on $x^2$, and a fitted peak at about $x = 83$, inside the data. The squared term is picking up concavity; the downturn is produced by the functional form.

      Simonsohn's (2018) 'two-lines' test asks the question directly. Fit one slope below a breakpoint and another above it, and call the relationship U-shaped only if the two slopes have opposite signs and each is individually significant. His 'Robin Hood' procedure chooses the breakpoint to give the test good power. An older alternative in economics, Lind and Mehlum (2010), tests the sign of the slope at both ends of the data range within the quadratic model, and so inherits the quadratic's dependence on functional form.

      Before either test, plot a flexible fit (binned means or a spline).

    6. Are the control variables you use endogenous? (E.g., because FDI may itself affect GDP per capita)

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-14): The heading equates 'bad control' with 'colliders' and the body with 'endogenous controls'. These overlap but are distinct mechanisms, and the Australia example in the fold above is an instance of one of them without being named as such. Also, the fold's claim that controlling for more does not help applies to post-treatment variables; controlling for pre-treatment common causes does reduce confounding.

      Suggestion: Claude explains: three kinds of bad control

      'Bad control' and 'collider' overlap but are different labels. Write $D$ for treatment, $Y$ for outcome and $C$ for the candidate control.

      1. Mediator ($D \to C \to Y$). Controlling for $C$ removes the part of the effect that runs through it. College raises wages partly through occupation; holding occupation fixed deletes that channel.
      2. Collider ($D \to C \leftarrow U \to Y$). $C$ is caused by treatment and by an unobserved factor $U$ that also drives $Y$. Within a level of $C$, $D$ and $U$ become correlated, so the comparison is confounded even if $D$ was randomized. This is the Mostly Harmless point that a post-treatment control undoes random assignment, and it is the mechanism in the Australia example above: among people without a degree, Australians are selected on whatever made them resist a strong push toward university.
      3. Pre-treatment collider ($U_1 \to C \leftarrow U_2$, with $U_1 \to D$ and $U_2 \to Y$). Rare, and a reminder that being measured before treatment does not by itself make a control safe.

      Most post-treatment variables are cases 1 and 2 at once. A control helps when it blocks a path from a common cause of $D$ and $Y$, or absorbs outcome variance without being affected by $D$. Cinelli, Forney and Pearl ('A Crash Course in Good and Bad Controls', 2022) work through the cases one diagram at a time.

    7. this one seems to be conservative in the sense that it implicitly assumes independent hypotheses in making the correction

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-12): Muddled: assuming independence does not make a procedure conservative. Benjamini–Hochberg is guaranteed to control FDR under independence or positive dependence; under arbitrary dependence it can be mildly anti-conservative, and the Benjamini–Yekutieli variant is the conservative fix. The procedure itself is never stated.

      Suggestion: Claude explains: Benjamini–Hochberg and dependence

      BH controls the false discovery rate, the expected share of rejections that are false. With $m$ tests and target $q$: sort the p-values, find the largest $k$ with $p_{(k)} \le \tfrac{k}{m}\, q$, and reject hypotheses $1, \dots, k$.

      Example with $m = 5$, $q = 0.05$ and p-values 0.001, 0.012, 0.03, 0.04, 0.20. The BH thresholds are 0.01, 0.02, 0.03, 0.04, 0.05, so the largest $k$ that passes is 4 and BH rejects four hypotheses. Holm rejects two (0.03 fails its threshold of 0.0167). Bonferroni rejects one (threshold 0.01).

      On dependence: BH is proven to hold FDR at $q$ when the tests are independent or positively dependent in a specific sense (Benjamini and Yekutieli 2001), which covers many practical cases such as positively correlated outcomes. Under arbitrary dependence the FDR can exceed $q$, by at most a factor $\sum_{i=1}^m 1/i$. The Benjamini–Yekutieli variant divides $q$ by that sum and is valid under any dependence, at a cost in power. Independence is thus a condition for BH's guarantee. Its conservatism has a different source: the FDR it actually achieves is $q$ times the share of nulls that are true.

    1. Nonparametric

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (A-04): 'Frequentist', 'Parametric' and 'Nonparametric' are empty headings. The most useful single thing to put here is what the standard rank tests test, since they are routinely misread as tests of means or medians.

      Suggestion: Claude explains: what the common rank tests test

      A two-sample $t$-test (Welch's version by default) tests equality of means. It is reliable in moderate samples even with non-normal data because of the central limit theorem, and struggles with very heavy tails or tiny samples.

      The Mann–Whitney (Wilcoxon rank-sum) test is often described as a test of medians. What it tests is whether a random draw from group A is as likely to be above as below a random draw from group B: $P(A > B) + \tfrac12 P(A = B) = \tfrac12$. Two distributions with the same mean and the same median can be rejected (different spread or skew), and two with different means can fail to be rejected. It is a test of means or medians only under the extra assumption that the distributions differ by a pure shift.

      Practical reading: if the estimand is an average (average donation, average treatment effect), use a mean-based test, with a permutation or bootstrap p-value when the sample is small or skewed. If the question is whether treatment tends to produce higher outcomes, a rank test fits. With many zeros, as in donation data, ranks carry no information about how large the big gifts are, so a rank test can miss a treatment that works through a few large donations.

    1. McElreath’s critique

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (K-09): Empty section; the critique is named and never stated.

      Suggestion: Claude explains: the argument (as I read it)

      This summarizes Chapter 1 of McElreath's Statistical Rethinking; please check it against what you meant to draw from the book.

      • Standard tests are 'golems': procedures that do exactly what they were built for and nothing else. Picking a test from a flowchart hides the model behind it.
      • Rejecting a null hypothesis is a weak form of falsification. Popper asked scientists to try to falsify their own substantive hypothesis; significance testing falsifies a null that nobody holds.
      • Hypotheses are not models. One verbal hypothesis is compatible with several process models, and different process models can imply the same statistical model, so rejecting or retaining a statistical model seldom settles the substantive question.
      • Measurement and observation error mean a single disconfirming result rarely falsifies anything.

      His proposal: write down more than one explicit generative model, including substantively motivated non-null ones, estimate them (he uses a Bayesian framework), and compare their predictions.

    2. Theory, restrictions, and ‘structural vs reduced form’

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (K-08): Empty section.

      Suggestion: Claude explains: 'structural' and 'reduced form'

      'Reduced form' has two meanings. In simultaneous-equations econometrics it is the system solved so that each endogenous variable depends only on exogenous variables and shocks. In current applied usage it means estimating the effect of some variation (a policy, an experiment, an instrument) with a research design and few assumptions about behavior.

      'Structural' estimation recovers parameters of an economic model (preferences, costs, beliefs) that are assumed to stay fixed when policy changes. That permits predictions for policies never observed, and welfare calculations. The price is reliance on functional-form and behavioral assumptions.

      Example: Karlan and List (2007) found that a 1:1 match raised revenue per solicitation by about 19%, and that 2:1 and 3:1 matches did no better. The first result is a credible reduced-form effect for that population. Predicting the response to a different match rate, or to a tax deduction of equal value, needs a model of why donors responded (price, a signal of quality, warm glow), and a simple price-elasticity model would have predicted the higher ratios wrongly.

      Intermediate approaches: 'sufficient statistics' (Chetty 2009), which express welfare effects through a few reduced-form elasticities, and experiments designed to estimate structural parameters (DellaVigna 2018).

    3. The fact that 95% of all (correct) CIs contain the true value does not mean that 95% of those that exclude zero do so correctly.

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (K-05): The tweet is quoted with no commentary; the arithmetic and the reason it happens are left to the reader.

      Suggestion: Claude explains: Senn's example

      The arithmetic: $0.10 \times 0.59 + 0.90 \times 0.99 = 0.059 + 0.891 = 0.95$. Overall coverage is 95%, yet among the intervals that exclude zero only 59% contain the true value.

      Coverage is a property of the procedure, averaged over all samples. It makes no promise about a subset of intervals picked out by a feature of the result. An extreme case: if every true effect is exactly zero, 95% of intervals include zero (all correct) and 5% exclude it (all wrong), so coverage among the 'significant' intervals is 0%. More generally, when true effects are small relative to the standard error, the intervals that exclude zero are disproportionately those where sampling error pushed the estimate away from zero.

      The same mechanism produces the 'winner's curse' and exaggeration (Type M) errors in significant results (Gelman and Carlin 2014), and it is one reason a literature filtered on significance overstates effect sizes (see Section \@ref(pubbias)).

    4. These ‘decision optimization’ cases are referred to as ‘reinforcement learning’ (I think).

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (K-02): 'Reinforcement learning' is too broad a label for this, and the '(I think)' can be resolved.

      Suggestion: Claude explains: what this setting is called

      Choosing an action to maximize expected payoff given data is the subject of statistical decision theory. When data arrive over time and each choice both earns a payoff and yields information, the problem is a multi-armed bandit (the explore/exploit trade-off). Bandits are the simplest case of reinforcement learning, which also covers settings where today's action changes tomorrow's situation. If the aim is only to pick the best option at the end of a test period, the usual terms are best-arm identification or ranking and selection.

      The design implication is the one in the text: sample size should be set by the expected loss from choosing a worse option, and a test can be 'underpowered' for significance while being the payoff-maximizing design. With 10 candidate titles and 1,000 impressions, 100 impressions each gives little chance of a significant pairwise difference, yet choosing the title with the highest observed click rate does better on average than choosing at random, and the expected shortfall relative to the true best shrinks as the sample grows.

      References: Manski (2004) on statistical treatment rules; Feit and Berman (2019), 'Test & Roll: Profit-Maximizing A/B Tests'; Kasy and Sautmann (2021) on adaptive assignment for policy choice.

    1. Tibshirani, Robert. n.d. “Statistical Learning with Sparsity the Lasso and Generalizations.”

      Claude: AI-drafted suggestion from a review of these notes (Nov 2026), posted from David's account. Not yet checked by David.

      Issue (I-04): Several entries in the key-resources list are incomplete or misattributed.

      Suggestion: Suggested full entries:

      • Hastie, Tibshirani and Wainwright (2015), Statistical Learning with Sparsity: The Lasso and Generalizations (currently credited to Tibshirani alone, 'n.d.')
      • Christensen, Freese and Miguel (2019), Transparent and Reproducible Social Science Research: How to Do Open Science
      • Gentzkow and Shapiro, 'Code and Data for the Social Sciences: A Practitioner's Guide' (2014; the list says 2013, please check which you meant)
      • James, Witten, Hastie and Tibshirani, An Introduction to Statistical Learning with Applications in R (2nd ed. 2021)
      • Wickham, Çetinkaya-Rundel and Grolemund, R for Data Science (2nd ed. 2023)
      • McElreath, Statistical Rethinking (2nd ed. 2020)
      • Cunningham (2021), Causal Inference: The Mixtape
      • Imbens (2020), 'Potential Outcome and Directed Acyclic Graph Approaches to Causality: Relevance for Empirical Practice in Economics', Journal of Economic Literature
      • Pearl (2009), Causality (2nd ed.)

      Candidates to add, given the book's focus: Gerber and Green (2012), Field Experiments; Huntington-Klein (2021), The Effect; Roth, Sant'Anna, Bilinski and Poe (2023), 'What's Trending in Difference-in-Differences?', Journal of Econometrics.

    1. 이 구분이 이 절의 네 번째와 다섯 번째 항목이 필요한 이유다.

      '네 번째와 다섯 번째 항목'이 아래 표의 프롬프트와 분석 결정을 가리키는 것 같은데, 표가 나오기 전이라 무엇을 말하는지 바로 알기 어려웠습니다. '뒤에서 볼 프롬프트와 분석 결정'처럼 이름으로 적어 주시면 좋겠습니다.

    2. 데이터를 외부 서비스에 올리는 문제는 이 절의 범위를 넘는다.

      범위를 넘는다는 말만 있고 어디서 다루는지가 없습니다. TOPICS.md 기준으로 9.5절(데이터·저작권·라이선스)이 '민감 정보를 외부 모델에 보내는 문제'를 다루니, 4.4절처럼 "9.5절에서 다룬다"를 붙이면 독자가 이어 읽을 수 있을 것 같습니다.

    3. 이 결과를 다른 사람이 접속해서 보는 화면으로 옮기면 검수해야 할 대상에 데이터 접근 권한과 장애 대응이 더해진다

      4.3의 장애 대응은 "변경을 되돌릴 방법도 준비해야 한다" 한 문장뿐이라, 배포 뒤 오류를 어떻게 알아차리고(로그, 알림), 누가 어떻게 대응하는지 내용을 4.3절과 같이 연결 되도록 업데이트하면 좋을 것 같습니다.

    4. “반품된 상품이 몇 건인가”라는 질문에 대해, 반품 기록의 행 수를 센 결과와 상품 종류의 개수를 센 결과와 반품 수량을 합한 결과는 모두 하나의 숫자로 나온다.

      반품 건수를 행 수, 상품 종류 수, 수량 합 가운데 무엇으로 셌는지 모르는 문제를 도입에서 제기했는데, 뒤에서 이 예시로 돌아와 어떻게 확인하는지를 보여 주면 더 좋을 것 같습니다.

    1. 2.4절은 생성된 코드를 읽지 않고 실행 결과만 보며 요청을 반복하는 작업 방식을 좁은 뜻의 바이브 코딩이라고 불렀다. 이 절에서도 바이브 코딩을 그 뜻으로 쓴다.

      해당 문장 위치가 글의 흐름을 방해하는 것 같습니다. 가장 마지막 문장인 '이 반복을 줄이려는 방식이 스펙 주도 개발(spec-driven development, SDD)이다'와 문장 위치를 바꾸면 SDD에 대해 설명을 마무리하고, 다음 내용부터 이어지는 서술에서 사용할 '바이브 코딩'이라는 단어에 대한 정의를 설명하는 방식으로 글이 더 깔끔히 읽힐 것 같습니다.

    2. Spec을 따로 남기지 않는다는 점에서 SDD보다 가볍고, 사람이 코드보다 먼저 문서를 확인한다는 점은 같다.

      이 섹션(Spec과 계획을 먼저 쓰는 방식의 등장)의 어디까지가 SDD이고 어디가 SDD가 아닌 계획 우선 작업인지 모호한 것 같습니다.

    3. 이 절에서 SDD는 코드를 생성하기 전에 무엇을 만들지를 문서로 먼저 쓰고, 사람이 그 문서를 검토해 합의한 뒤, AI가 그 문서를 기준으로 구현하게 하는 방식을 가리킨다.

      뒤에서 SDD의 정의가 아직 하나로 정해지지 않았다고 설명합니다. 따라서 이 정의가 통용되는 유일한 뜻이 아니라 이 절에서 사용할 범위라는 점을 더 일찍 밝혀 주면 조금 더 명확하게 읽히고, 뒤에 나올 SDD의 정의가 고정된 표준처럼 읽히는 것을 막을 수 있을 것 같습니다.

    1. 즉, 같은 수정 요청이라도 관련 코드를 빼트리거나 이전에 확인한 오류를 전달하지 않으면 적절한 작업이 이루어지지 않는다는 것이다.

      사람과 자료를 공유하는 비유는 좋은 것 같습니다. 하지만 바로 뒤에 “관련 코드를 빼먹거나 이전 오류를 전달하지 않으면…”이라고만 되어 있어 어떤 자료가 왜 필요한지 조금 추상적입니다. 예를 들어 “로그인 오류를 고치려면 오류가 난 코드와 오류 메시지, 기대한 동작을 함께 줘야 한다” 같은 짧은 사례를 넣으면 개념이 쉽게 와닿을 것 같습니다.

    1. 시험을 만든 쪽이 스스로 신뢰성을 의심할 만큼, 점수가 높다는 사실만으로는 실력을 판단하기 어려워진 것이다.

      앞부분에서 예시를 잘 들어주셨지만 문장이 좀 어려운 것 같아 "시험을 만든 쪽이 스스로 신뢰성에 의문을 제기할 만큼, 이제는 높은 점수만으로 모델의 실제 실력을 판단하기 어려워진 것이다." 이런식으로 추가하면 어떨지 어떨지 건의 드립니다.

    2. 도구 호출이 내부에서 어떻게 작동하는지는 §8.3에서 다룬다.

      8.3의 원고가 어떤식으로 다뤄질지는 아직 모르지만, 현재 ai 자체가 다른 프로그램을 조작하는 수준까지 업그레이드가 된걸로 알고있어 이러한 부분을 간단하게 소개해줘도 좋을 것 같습니다.

    3. 도구 사용 전후

      1.31%와 12.47%가 각각 어떤 방식의 결과인지 설명을 덧붙이면 좋을 것 같습니다. 해당 논문에서 RAG는 관련 코드를 검색해 제공받은 뒤 수정안을 만드는 방식이고, SWE-agent는 직접 파일을 찾아 수정하고 실행 결과를 보면서 다시 고치는 방식입니다 검색 또한 하나의 도구로 볼 수 있을 것 같은데, ‘도구 사용 전후’라고만 하면 같은 작업 방식에 도구만 추가한 것으로 이해될 것 같습니다. ‘검색된 코드를 보고 수정안을 생성하는 방식과, 직접 실행하고 확인하며 반복 수정하는 방식을 비교했다’정도로 각 방식을 말해주면 차이를 이해하기 쉬울 것 같고, 뒤에 나온 '같은 모델이라도 어떤 도구를 쓰느냐에 따라 결과가 열 배 가까이 달라진 것이다.'라는 문장도 더 자연스럽게 읽히지 않을까 싶습니다.

    4. 2025년의 AI는 목표만 주어지면 코드의 실행과 수정까지 스스로 수행한다.

      목표만 주면 사람의 개입 없이 끝까지 해내는 듯한 인상을 줍니다. 본문 뒤에서는 사람이 결과를 확인하고, Anthropic 내부에서도 완전히 맡길 수 있는 일은 제한적이라고 설명하니, 도입부부터 “도구를 사용해 실행과 수정을 이어 갈 수 있게 됐다” 정도로 표현하면 추후 나올 내용과 조금 더 연결있게 읽힐 것 같습니다.

    5. 2022년의 AI는 코드를 작성할 수는 있었지만 실행할 수는 없었다.

      AI 코딩 도구 전체가 실행 기능이 없었던 것처럼 읽힙니다. 여기서 말하는 건 채팅창에서 코드를 주고받던 방식인지, 당시 일부 도구까지 포함한 말인지 범위를 좁히면 역사적 주장이 더 정확해질 것 같아요. 뒤의 도구 호출 기능 설명과도 연결해 “대화형 AI가 스스로 실행 환경을 조작하기 어려웠다”처럼 쓰면 조금 더 명확하게 읽힐 것 같습니다.

    1. 이 명령은 저장소 문서에 실린 것을 옮긴 것이고, 이 절에서 실행해 확인한 결과가 아니다.

      세 사례 모두 직접 실행해 본 결과는 아니라고 되어 있는데, hwpx-skill의 네 단계 정도는 간단한 양식으로 돌려 본 결과가 있으면 훨씬 설득력이 있을 것 같습니다.

    2. 기계가 확인해 줄 수 있는 범위는 형식에서 가장 넓고 독자 쪽으로 갈수록 좁아진다.

      '기계가 확인하는 것'에 파일 형식 검사와 GPT-4o 채점 같은 모델의 평가가 함께 묶여 있는데, 둘은 믿을 수 있는 정도가 다르지 않을까요? 뒤의 표에서 둘을 나눠 보여 주시면 어디까지 기계에 맡겨도 되는지 더 분명해질 것 같습니다.

    3. 같은 종류의 문서를 반복해서 만든다면 규칙을 매번 다시 적는 대신, 다시 불러 쓸 수 있는 파일로 옮길 수 있다.

      3.4절의 Spec도 대화에만 남는 내용을 문서로 옮기는 방식이라, 읽으면서 스킬이나 템플릿과 무엇이 다른지 궁금했습니다. Spec은 이번에 무엇을 만들지, 스킬은 매번 어떻게 만들지를 적는다는 식으로 한 문장만 구분해 주시면 3장과 자연스럽게 이어질 것 같습니다.

    4. 이 장의 사례는 어떤 작업에 어떤 모델을 쓸지를 다루지 않았다. 5장은 작업에 맞는 모델을 고르고 비용과 응답 속도를 관리하는 방법을 다룬다.

      5장으로 넘어가는 연결 문장을 넣어 주셔서 감사합니다(5조). 다만 4장 안에도 5장과 이어지는 지점이 이미 있습니다. 4.2절은 모델 이름과 버전을 기록하라고 했고, 4.1절의 재시도와 중복 반영 문제는 5.5절의 재시도 규칙과 맞닿습니다. "모델을 다루지 않았다"보다 "4장에서 기록하라고 한 모델과 재시도는 5장에서 고르고 관리하는 대상이 된다"처럼 구체적으로 이어 주면 두 장의 경계가 더 분명해질 것 같습니다.

    1. 인접한 용어들의 계보는 3장과 개념 사전의 해당 항목에서 다룬다.

      3장 담당인데, 지금 3장에는 바이브 엔지니어링이나 에이전틱 엔지니어링을 다루는 절이 없습니다. 대신 '사전 계획'은 3.4절, 에이전틱 코딩은 3.2절에서 다루니 그쪽으로 연결해 주시면 좋을 것 같습니다.

    2. 바이브 코딩의 경계는 이 연속선 위에서 사람이 코드를 확인하는 정도가 낮은 쪽을 가리킨다.

      첫 문단에서는 좁은 뜻을 '코드를 읽지 않는 것'으로 정의했는데 여기서는 '확인하는 정도가 낮은 쪽'이라고 해서, 코드를 빠르게 훑어보는 경우는 어느 쪽인지 헷갈렸습니다. 제가 쓴 3.4절도 이 절의 좁은 뜻을 가져다 쓰고 있어서, 첫 문단에서 기준을 한 번 정리해 주시면 좋겠습니다.

    3. 가상의 예로, 자신의 지출 내역을 그래프로 그려 보는 스크립트는 세 질문 모두에서 위험이 낮다

      가상의 예시를 위 세 판단질문상황에 맞추어 어떤 고민이 있을 수 있고, 문제가 있을 수 있는지 구체적으로 작성하면 더 좋을 것 같습니다.

    4. 같은 사람이 같은 도구 계열을 두고 1년 사이에 적용 범위를 다르게 말한 것이다.

      바이브 코딩이 LLM의 발전에 따라 지칭하는바가 달라지는데, 2장을 마무리하면서 이 책에서 바이브코딩을 어떻게 정의하는지 정리하는 장이 있어도 좋을 것 같습니다.

    5. LLM(대규모 언어 모델)

      2.4절에서 LLM이라는 용어가 처음 나오는 것 같은데, 괄호 안의 “대규모 언어 모델”이라는 설명만을는 베이스가 없는 독자들에겐 바로 와닿지 않을 것 같습니다. 표에 앞서 축약된 단어들의 설명을 추가해주시면 표의 내용을 이해하는 데 더 도움이 될 것 같습니다.

    6. 결과물을 누가 쓰는가. 만든 사람만 쓰는 도구와 다른 사람이 쓰는 서비스는 오류의 영향 범위가 다르다. 틀렸을 때 무엇을 잃는가. 돈이나 개인정보가 걸려 있으면 실행 결과만 보는 확인으로는 부족하다. 계속 고쳐야 하는가. 한 번 쓰고 버릴 프로그램과 달리, 오래 유지할 프로그램은 누군가 코드를 이해하고 있어야 수정할 수 있다.

      개인정보를 다루는 작은 도구처럼 질문별 답이 서로 다를 수 있는 사례를 하나 적용해보면 독자가 이 기준을 자기 상황에 활용하는 방법까지 알 수 있을 것 같아요

    1. WALT의 과제 성공률은 바뀐 환경에서 별도 방해를 더하지 않았을 때 41.2%였고

      바뀐 환경(41.2%)과 팝업 삽입(19.1%)의 수치만 있고, 원래 환경에서의 성공률이 없어서 환경 변화로 얼마나 떨어졌는지 판단하기 조금 어려웠습니다. 바로 앞 문단의 61.5%는 다른 벤치마크(VisualWebArena) 수치라 직접 비교하기도 좀 그랬는데요, SkillShift-Bench가 보고한 원래 환경 기준의 수치를 함께 적으면 "저장한 절차는 화면이 바뀌면 약해진다"는 주장이 더 분명해질 것 같습니다.

    2. 같은 40개 가운데 34개는 실제 일상 작업에 해당했고, 앞서 참가자 스스로 자동화 후보로 꼽은 패턴은 3개였다.

      이 문단의 요지가 '사람이 스스로 떠올린 후보는 적고, 기록에서 찾으면 짧은 반복이 더 많이 나온다'라면, "검토한 40개 중 참가자가 미리 꼽았던 것은 3개였다"처럼 문장마다 분모를 밝히거나, 단계별 숫자를 간단하게 나마 표로 보여줘도 좋을 것 같습니다.

    3. 그만큼 다시 쓸 일이 있거나 한 번에 처리할 입력이 많을수록, 만들고 검증하는 데 드는 시간을 감수할 이유가 생긴다.

      소제목이 묻는 "언제"의 답이 뒷부분까지 읽어도 명확하게 해소되지는 않는 느낌인것같습니다. "그만큼"이라는 표현도 조금 더 정량화?? 해주거나 조금 더 구체적으로 표현해주는 게 좋을것같습니다.

    1. GPT-3 이후에는 같은 모델이라도 입력 문장을 바꾸면 다른 일을 하게 되었다.

      이 문장은 입력을 바꾸어 같은 모델에 다른 과제를 시키는 방식이 GPT-3에서 처음 가능해졌다는 뜻으로 보일 것 같습니다.GPT-2 에서도 과제별 추가 학습 없이 질문 응답이나 번역 등을 수행하는 방식을 다뤘습니다(https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf) ‘GPT-3는 입력의 지시와 예시만으로 여러 과제를 수행하는 방식의 가능성을 더 큰 규모에서 보여 주었다’처럼 표현하면 말하고 자 하는 바를 먼달하면서도 정보의 오류를 없앨 수 있을것 같습니다.

    2. 프로그램의 동작을 코드로 바꾸듯, 모델의 동작을 입력 문장으로 바꿀 수 있게 된 것이다.

      프로그램 코드와 프롬프트를 비유한 문장은 명확하게 읽힙니다. 하지만 프롬프트가 프로그램처럼 항상 같은 결과를 내는 것으로 오해될 수 있을 것 같습니다. 뒤에서 결과의 변동성을 설명하므로, 여기서도 “입력에 따라 수행할 과제를 지정할 수 있게 됐다” 정도로 한계를 살짝 드러내면 논리 흐름이 더 정확하게 보일 것 같습니다.

    1. Collins

      이 부분은 이름과 출처 번호만으로는 인물이나 기관의 배경을 파악하기 어려워, 독자가 출처를 따로 확인해야 하는 점이 조금 아쉽습니다. (+지금 출저도 빠져 있는 것 같으니 확인 부탁드립니다) 예를 들어 Collins는 문맥상 Collins Dictionary(콜린스 영어사전)를 가리키는 것으로 보이는데, 본문에서 다른 이름들도 처음 등장할 때 어떤 분야와 관련된 무엇인지를 한마디씩 소개해주시면 사례의 맥락을 따라가기 쉬울 것 같습니다.

    1. 요청에는 목표인 월별 매출 그래프, 입력과 출력인 CSV 파일과 막대그래프, 세부 조건인 열 이름과 제목의 언어가 들어 있다. 사용할 언어와 라이브러리, 구현 순서는 AI가 정하도록 맡긴다. 사람은 실행된 화면과 출력이 기대와 같은지를 보고 다음 요청을 정한다.

      예시의 어느 표현이 각각에 해당하는지 한눈에 연결하기는 어렵습니다. 요청문에 표시를 붙이거나 표로 대응시키면 독자가 좋은 요청의 구성 요소를 더 쉽게 익힐 수 있을 것 같습니다.

    1. 음성 입력으로 요구를 전달하고, 생성된 변경사항은 ’Accept All’로 받아들였다.

      ‘음성 입력’, ‘Accept All’이 각각 어떤 행동인지 익숙하지 않은 독자에게는 장면이 잘 그려지지 않을 수 있을 것 같아요. 짧은 실제 작업 예시나 게시물의 해당 표현을 곁들여, 사용자가 무엇을 말하고 AI가 무엇을 만들었는지 보여주면 좋을 듯 합니다.

    1. 일반 chat은 웹이나 앱의 대화창에서 AI와 문답을 주고받는 형태다.

      바로 뒤에 파일 업로드와 코드 실행 기능을 예외로 소개해서, 독자는 일반 채팅이 어디까지 할 수 있는지 혼란스러울 수 있습니다. “사용자 컴퓨터의 프로젝트를 직접 읽고 고치는 기능은 없지만, 서비스 안에 파일 분석·실행 기능이 있을 수 있다”처럼 경계를 분명히 써주면 읽는데 도움이 될 것 같습니다.

    2. 두 형태를 가르는 것은 능력보다 검토가 일어나는 자리다. AI IDE에서는 편집기 화면의 diff가 검토의 중심이 된다.

      “두 형태를 가르는 것은 능력보다 검토가 일어나는 자리”라고 했지만, 뒤에서는 데스크톱 앱이나 편집기에서 실행해도 컴퓨터 파일과 명령을 다루면 terminal agent로 본다고 쓰여있습니다. 독자는 편집기 안에서 실행되는 에이전트를 어느 쪽으로 분류해야 할지 헷갈릴 수 있을 것 같습니다. 도구의 화면보다 검토가 파일별 변경 내역 중심인지, 실행 기록 중심인지를 기준으로 삼는다는 예를 덧붙이면 구분이 조금 더 쉬워질 것 같습니다.

    1. 박현우 교수님의 실습 영상에서는

      앞 문장에 이어서 citation을 함에 있어, "박현우 교수님은"으로 시작한다든가 등의 수정이 좋을 것 같다. 실습 영상이라는 용어 자체가 바로 나오는 점이 뭔가 위화감이 든다.

    1. Reviewer #1 (Public review):

      The authors have provided responses and additional data, but these revisions have not adequately resolved the major concerns raised in my previous review. In particular, the evidence supporting the central premise of the study-the structural and functional relationship between polyQ assemblies and the Golgi apparatus-remains insufficient. Much of the cell biological evidence is descriptive, and the observations are not integrated into a convincing mechanistic model. Most importantly, the proposed polyQ HTT-induced Golgi dysfunction (Golgipathy) has not been convincingly established. Several findings could be alternatively explained by the association of polyQ HTT with the Golgi and the Golgi's known sensitivity to cellular perturbations. Significant concerns also remain regarding the interpretation and quantification of microscopy images, as well as the clarity of several figures. Consequently, my overall assessment remains unchanged.

      Comments on the Authors' Responses

      (1) Golgi localization of polyQ HTT

      This is a central claim of the study and therefore requires particularly rigorous and convincing evidence. Although the authors have performed additional immunostaining using different HTT antibodies, the EGFP-tagged HTT exon 1 fragments do not appear to localize to the Golgi. Why did the authors not examine the localization of EGFP-tagged full-length HTT containing an expanded polyQ tract? Such an experiment would provide an important independent validation of their immunostaining results.

      (2) 3D rendering

      This concern has not been adequately addressed. Since the authors acknowledge that the vasculature-like features are artifacts, these features should be removed to avoid misleading readers. Furthermore, it remains difficult to correlate the rendered structures with the corresponding boxed regions in the original fluorescence images.

      (3) Quantification of area and volume

      This concern remains unresolved. If polyQ assemblies consist of fine meshworks with features below the optical resolution, these structures would appear as continuous fluorescent regions rather than resolvable networks. Consequently, the measured fluorescent area or volume would not accurately represent the physical space occupied by the assemblies.

      (4) Interpretation of structural features

      This concern has not been adequately addressed. The proposed spindle-like and ring-like structures remain difficult to distinguish convincingly in the presented images.

      (5) Mitotic fragmentation

      The authors appear to have misunderstood my concern. The critical question is whether the polyQ assemblies in the same cells were intact before entering mitosis and subsequently underwent fragmentation. Comparing different interphase and mitotic cells cannot establish this sequence of events. Furthermore, Golgi fragmentation during mitosis is a well-established phenomenon. Therefore, the observed fragmentation of Golgi-associated polyQ assemblies may simply accompany normal mitotic Golgi disassembly rather than represent a distinct property of polyQ assemblies.

      (6) Nuclear localization claims

      The presented images suggest, at most, partial nuclear localization of polyQ assemblies. Nuclear accumulation appears evident in some cells but absent or much less pronounced in others.

      (7) Drug treatment and data interpretation

      My previous concerns remain unresolved. Figure 3E is still inappropriately plotted and may mislead readers. Furthermore, the rationale for selecting Onjisaponin F remains insufficiently justified.

      Additional Concern: Insufficient Description of SIM Microscopy

      In their response to Reviewer #1, Comment 3, the authors explicitly state that "Our SIM resolution reaches approximately 64 nm." However, this specification is not reported or substantiated in the manuscript. Neither the main manuscript nor the supplementary methods provide essential technical information about the SIM imaging system, including the microscope manufacturer and model, objective lens and numerical aperture, acquisition parameters, and controlling software. This is a substantial methodological omission.

    2. Reviewer #2 (Public review):

      Summary:

      In this study, the authors report the hitherto unobserved types of HTT assemblies observed in human fibroblasts and iPCS-derived neurons in 2D and 3D culture, applying a state-of-the-art confocal microscopy imaging with near 64 nm resolution to decode their structures. They further demonstrate that these assemblies closely contact with various types of Golgi ribbons, stacks, vesicles, and Golgi-derived clathrin-coated vesicles but not mitochondria. They also used single-cell RNAseq to show some interesting findings that supported the suggested defects in Golgi-related function, specifically by downregulation of various cellular processes related to Golgi and vesicle transport functions. They also replicate mHTT nuclear accumulations in striatal neurons, which is considered to be a hallmark of HD pathology, by using long-term neuronal culture. Furthermore, the assemblies showed differential responses to glucose starvation and to autophagy enhancer treatment by onjisaponin F for mutant HTT assemblies, but not for the healthy siblings, in fibroblasts and neurons. Onjisaponin F treatment did not reverse nuclear deposition. They also showed that ASO shortens these polyQ assemblies but does not change neuronal firings that are detected by HD-MEA. Notably, they also used human brain samples to show the existence of polyQ assemblies in fetal and child brain samples. This part is impressive.

      Overall, this work reports a novel polyQ assembly, which was previously reported as a pathogenic factor, has not been reported before for HTT, is related to Golgi activities and vesicular transport, and is dismantled in HD patient cells. The intensive immunostaining and super-resolution scanning are impressive and definitely strengthened by the impact of the findings. The scRNAseq data adds another layer to the observed Golgi impairments and their suggested relationship to Golgi function. The drug testing for polyQ assemblies, especially polyQ assemblies in HD cells, is preliminary. However, the data in this study are enough to support the existence of polyQ assemblies in human cells and their specific relationships with the Golgi apparatus.

      Strengths:

      In this study, the authors used the cells from a large HD family and fetal/child brain samples to decode the structure of endogenous polyQ assemblies. This part is impressive. The intensive staining and super-resolution scanning are amazing. The spatial relationships of polyQ assemblies with the Golgi apparatus and mitochondria are well illustrated.

      Comments on revised version.

      In this revision, the authors have addressed all the comments and the manuscript has been better improved.

    1. Reviewer #1 (Public review):

      Summary:

      This manuscript uses a valuable dataset of simultaneous LC single-unit recordings and pupillometry in awake monkeys to examine one aspect of the relationship between LC activity and pupil diameter: whether baseline LC activity predicts evoked pupil and whether baseline pupil predicts evoked LC. These relationships are largely absent in the present dataset, and the authors conclude that this type of prediction is not reliable.

      Strengths:

      This is a valuable dataset of simultaneous LC single-unit recordings and pupillometry in awake monkeys, the within-modal and within-epoch analyses are sound. The new results further caution the use of pupil diameter to infer LC activity.

      Comment on revised version.

      The revised manuscript has addressed previously raised concerns. This is a valuable contribution to the field.

    2. Reviewer #2 (Public review):

      The manuscript by Thompson and Gold reported that, although baseline and evoked LC activity were positively correlated with baseline pupil size and evoked pupil dilation, respectively, there were no reliable cross-epoch relationships between LC activity and pupil size - that is, between baseline LC activity and evoked pupil dilation or between baseline pupil size and evoked LC activity. A major strength of the study is its large dataset, comprising recordings from more than 100 LC single units collected across 83 recording sessions in two monkeys. The authors further strengthened their conclusions by performing several control analyses to rule out potential confounds, including whether the findings were influenced by 1) the use of residuals in the main analyses, 2) the possibility that the auditory stimulus failed to evoke the full dynamic range of LC activity and pupil responses, and 3) nonlinear cross-epoch relationships between LC activity and pupil size. In addition, by demonstrating that the results remain robust in the subset of neurons exhibiting significant baseline LC-pupil relationships, the authors further strengthen their conclusions.

      As pupil size is increasingly used as an index of arousal, these findings are particularly important because they remind researchers to exercise caution when assuming that non-illuminance-mediated fluctuations in pupil size can reliably serve as a proxy for LC activity under all experimental conditions

      Comments on revised version.

      The authors have thoroughly addressed my previous comments, and I appreciate their efforts in revising the manuscript.

    1. Reviewer #1 (Public review):

      Summary:

      The manuscript by Hernandez-Nunez et al. provides a comprehensive characterization of how heart-brain circuits develop in a vertebrate brain namely the zebrafish. The characterization is performed using a combination of modern and sophisticated imaging and neural manipulation techniques and achieves unprecedented clarity and detail to how the heart-brain communication develops early in life. The paper describes a three staged program, where first an efferent-circuit from the motor vagus to the heart develops, followed by sympathetic innervation and lastly sensory neurons innervate the heart.

      Strengths:

      The paper is very clearly and nicely written. The findings are novel and of high quality and relevance. The presentations are very clear and nicely interpreted. The analyses are well presented and applied.

    2. Reviewer #2 (Public review):

      Hernandez-Nunez et al. investigate the development and function of neural circuits involved in the regulation of heart rate in larval zebrafish. Using conserved genetic markers, they identify neural pathways involved in the bidirectional control of heart rate and in providing sensory feedback, potentially enabling more precise tuning. The main observation is that the different elements of this circuit are laid down in a developmentally staggered manner.

      At 4 days old, the heart rate is invariant to a range of sensory stimuli, and the vagal motor or sympathetic pathways could not be seen to innervate the heart. Progressively through development, the heart is first innervated by the vagal motor pathway, whose axons are cholinergic, before the formation of phox2bb+ intracardiac neurons (ICNs). At this stage, before the first ICNs are observed, activation of the vagal motor pathway by optogenetic activation of a localized population of cholinergic hindbrain neurons leads to bradycardia. After the vagal motor innervation begins, the sympathetic pathway innervates the heart, which could be visualized in the form of TH+ fibers from the anterior paravertebral ganglia (APG). The activity of the TH+ APG neurons was diverse and showed proportional, integral and derivative like relationships to the heart rate, suggesting a role in more precise tuning of the rate than what could be achieved through the vagal pathway alone. The sensory vagus innervation of the heart was identified to be the last stage to develop, however, neurons in the nodose ganglion exhibited diverse responses tuned to the heart rate well before the innervation reached the heart. The authors attribute this to the fact that other indirect sensory cues from the gills or vasculature could be used to sense heart rate prior to innervation.

      This study identifies key components of the control loop required for the regulation of heart rate in zebrafish. The control mechanism appears to be independent of the cues that trigger heart rate changes, indicating that the circuit is indeed part of an interoceptive pathway for heart rate control. Evidence for the staggered development of the vagal-motor, sympathetic and sensory pathways is conclusive, and as the authors discuss, this phenomenon progressively allows for finer grained control of the heart rate. This could be achieved through proportional-integral-derivative like control properties emerging in a diverse set of neurons in the APG and sensory feedback of the state of the heart. In line with these findings, the baseline variability of heart rate prior to innervation at 4 days old appears to be comparatively lower than the later stages (Fig 1C, D, supp. Fig 1C-F) and increases over development. This has been quantified in supp. Fig 2.

      Based on this observation and the time courses of the kernels identified by the GLMs, I would expect heart rate fluctuations of a finer time scale, ultimately limited by the time course of GCaMP6s, to be captured by the models in Figs 3, 5 and 7, in addition to the stimulus locked changes that are highlighted. While the models yield valuable insight in the form of the activation kernels and their potential roles, in one instance, it captures the potential contribution of either the motor vagus or the APG to the change in heart rate. This makes it challenging to identify where it falls short and the potential functions of pathways that have not been probed. Some other known modulatory influences on the cardiac rhythm are mentioned in the text, however exploring these pathways would be outside the scope of this study.

      Lastly, the proposed anatomical connectivity of the heart-brain circuit is based on tracts observed in this study as well as those inferred from function and from previous studies. The authors have included a section on the limitations of the model, where they importantly clarify that the proposed mechanisms, although likely, do not establish direct synaptic connectivity, for example whether the brainstem neurons identified for their functional roles are the ones that give rise to efferent projections via the motor vagus nerve. The addition of clear labels in Fig 9 also helps the reader interpret relationships between model components more clearly.

      To conclude, this study establishes the larval zebrafish as a tractable in vivo model to study heart-brain interoceptive and regulatory circuits through development and describes a detailed mechanistic framework to take forward.

    1. Reviewer #1 (Public review):<br /> <br /> The authors have included a number of written edits to their manuscript that improves the readability of the text and also provides clarity on their experiments and findings. Together these changes better highlight the role of E-selectin as an upstream driver of innate immune inflammation in vincristine-induced neuropathy.

      A comment I made in the first review round (previous comment #3) was that NLRP3-inhibitors were only used in vitro and not used in vivo to confirm that it is this specific innate immune complex that contributes to the pathway. Instead, the downstream inflammatory mediator IL-1b was inhibited in vivo using anakinra (and not tested in vitro). The authors have referred to their previous work on NLRP3 inhibitors in their vincristine model and modified some text to delineate that in vivo, only a role for IL-1b was investigated in the E-selectin experiments in the current paper. It would be useful to clearly distinguish throughout the text, that the role of NLRP3 was only confirmed in macrophages in vitro. E.g. lines 44, 87, 740 and 773 discuss their findings on NLRP3 in macrophages, but do not specify that this is in vitro data.

      MCC950 is also known as CP-456773 and CRID3, which would be helpful to mention the first time the inhibitor is introduced as all versions of the name are used in current publications.

    2. Reviewer #2 (Public review):

      Summary:

      This is an interesting mechanistic study on the topic of Vincristine-induced peripheral neuropathy (VIPN). It defines E-selectin as critical molecule of promoting VIPN, acting via immune cell recruitment and inflammasome-mediated signalling.

      Using antibody treatments, genetic models and in vitro studies, the authors convincingly show that E-Selectin is a driver of VIPN.

      Strengths:

      In vivo studies are robust and useful. Antibody studies as well as the inflammasome-related work are very well done.

    1. Reviewer #1 (Public review):

      Summary:

      The authors describe clone-level dynamics of a SAR11 genomospecies in the Mediterranean, based on a dataset of LR-OBCs they previously generated. They distinguish 'consortia' of LR-OBC clones that co-vary/fluctuate together, primarily across depth. The authors find these consortia to be independent of phylogenetic origin within the genomospecies, concluding that their decoupling is evidence of a shift away from the current ecotype conceptual framework.

      This study provides valuable, detailed information about natural variation in SAR11 LR-OBCs within populations, but the conclusions reached are not supported by the data.

      Strengths:

      This is an exceptional dataset for studying this problem because of the sequencing depth and use of long-read technology.

      Weaknesses:

      The disconnect of LR-OBC phylogeny from species' phylogeny makes sense, for well-known reasons, but is not supported by statistical evidence for incongruent phylogenetic topologies. Also, this hypervariable genome region was described early, and evidence suggests it is transferred between strains by recombination. This work is not cited, and without this important background, it will be challenging for naïve readers to interpret this manuscript. It seems likely that the genome content and LR-OBCs are evolving independently because the latter are transferred by homologous recombination and are under selection related to viral predation.

      I also struggle with the authors' definitions of clones (at 97% sequence similarity). I would expect clones to be near-100% identical. The differing 'ranks' across the subspecies level are not defined in the manuscript, so the discussion lacks clarity on what the novel discoveries really are.

    2. Reviewer #2 (Public review):

      Summary:

      Martin Cuadrado and coauthors use O-chain biosynthesis gene clusters (OBCs) within metagenomes and SAGs to determine clone-level differences in distribution in the Mediterranean Sea. They observe two distinct consortia: one specific to surface samples (C1) and another to deep/winter samples (C2). In the discussion, the authors suggest that differences in carbon utilization capabilities in the ocean may drive this partitioning.

      Strengths:

      One of the main strengths of this paper is its use of specific clonal barcodes to analyze strain-level population structure, which allows researchers to discern distribution patterns through a different lens, with higher resolution than 16S genes. The work is important and could be a more widely used tool for examining SAR11 distributions in the ocean.

      Weaknesses:

      I feel the authors fall short in showing whether partitioning across consortia could be generalized beyond the Mediterranean Sea. If so, the work would be more impactful with additional data beyond the Mediterranean. Furthermore, the authors could have contextualized OCB sequence variability with other SAR11 clade genomes, such as those reported by Freel et al., 2025 (doi:10.1038/s41467-025-67043-6), to identify additional patterns that could explain differences between consortia; could these differences be functional? The authors invoke possible differences in the flexome of genomes within the identified consortia to explain this partitioning, but the hypothesis remains largely unexplored. For instance, the authors discuss differences in environmental context across consortia (nutrient availability, light intensity, etc.), which may in turn be associated with different functional capabilities. Is the incidence of genes related to efficient nutrient uptake systems or proteorhodopsin phototrophy increased in the surface consortium? The authors do not examine any specific functions in SAGs or whole genomes available in databases that may share the OCBs studied here. If those functions don't explain the changes, would viral specificity be the reason? I feel this discussion is needed, at least in the last section.

    1. Reviewer #1 (Public review):

      Summary:

      The authors further develop in this article an approach to quantify the release of EV cargo by fusing the HiBiT fragment of nanoluciferase to the cytosolic end of various proteins, via knock-in (rather than overexpression) in HEK293 cells. They have previously published this approach for several EV-associated proteins (Maeda 2024: tetraspanins, flotillin1, syndecan), or the autophagosome-associated protein LC3, or the mitochondrial protein Tom20 (Saito 2026). They now expand it to p62, another protein involved in the autophagy pathway. Their results convincingly show that p62 is indeed released extracellularly, at low levels spontaneously and mainly associated with larger/denser EVs (10k pellet), and much more after blocking lysosomal activity by BafA1 and mainly in small EVs (100K pellet), as well as in a free form.

      Strengths:

      The authors produce a lot of interesting experiments using knock-in or expression under the control of a mutated CMV promoter to avoid high overexpression of the studied proteins. They nicely decipher the molecular machinery involved in this secretion.

      Weaknesses:

      I am a bit unsatisfied with the way all experiments are presented, as bar graphs show individual dots of technical replicates, rather than individual dots of independent experiments (the authors specify that each experiment was performed at least twice). This representation minimizes the potential inter-experiment variability: for instance, when comparing Figure 3B where relative secretion (in BafA1) is around 25 for 10K vs 140 for 100K, and fig 4A where it is 50 for 10K vs 30 for 100K, there is a 5 fold difference of the rate of secretion in 100K, and the ratio 10K/100K is inversed between the experiments of Figure 3 and Figure 4. It would therefore be highly recommended to show all the figures of secretion rate with individual symbols for each individual experiment (calculating the mean of technical replicates for each experiment).

      It is also unclear if the truncated CMV promoters that induce a not-too-high overexpression of the p62 mutants in Figure 5 are also used for Figure 6 (KEAP and mutants) and in Figure 7 (Rab27 and mutants). If not, can the authors justify that, for these molecules, high overexpression does not preclude interpretation of the results?

      An important technical detail is missing in the WB of Figure 4B, where the authors quantify p62-HiBiT in extracellular vesicle pellets: quantification is done in pellets as compared to the cell lysate, but I did not find how the gels were loaded: equal amounts of protein from cells and pellets, or pellets coming from the same number of producing cells loaded in the gel, or other? Also, this experiment seems to have been performed and quantified only once.

    2. Reviewer #2 (Public review):

      Summary

      In this work by Saito et al., the fate of p62 is studied. Under normal cellular conditions, p62 acts as a cargo receptor, binds cargo, and is recruited to the growing autophagosomal membrane via its interaction with LC3. When lysosomal function is inhibited, these structures can also be secreted in a process called secretory autophagy. This valuable paper tries to address the fate of p62. By fusing a HiBiT peptide at the C-terminus of endogenously expressed p62, extremely low amounts of p62 can be detected in the media surrounding HEK293 cells. Most of the secreted p62 was found in membrane-enclosed structures that are continuously secreted from the cells, a process that is dramatically increased after lysosomal inhibition via BafA1. This process is ATG5- and FIP200-dependent. Interestingly, this process depends on p62's ability to oligomerize, but does not depend on its ability to bind LC3, KEAP1, or poly-ubiquitin. KEAP1 was also detected in these membrane-enclosed vesicles, and its secretion did not depend on p62 interaction, but was also increased upon lysosomal inhibition. The exact secretion mechanism was not fully elucidated in this manuscript, but it was found to be RAB27-dependent. Future studies will be needed to fully map the cellular mechanism behind p62 secretion.

      Strengths

      (1) Fusion of the HiBiT peptide to p62 allows for careful quantification of secreted p62 and is of interest to the wider research community as it is an interesting strategy.

      (2) Work on endogenous expression levels of p62 avoids artifacts due to overexpression and adds to the conclusions of the paper.

      (3) Several mutants were analyzed to assess which binding partners of p62 are co-sorted to secreted vesicles.

      Weaknesses

      (1) The exact form of p62 is not clear. The fractions analyzed are pellets that sedimented at two different centrifugation speeds, supernatant, and whether the signal increases upon detergent addition. No effort was made to do further analyses on what these fractions contain or what they look like.

      (2) As pointed out in the discussion, p62 needs to oligomerize to be sorted to these vesicles, and this process is not dependent on LC3 binding. No efforts were made to exclude binding to other cargo receptors via mutation or knockdown, i.e., NBR1 D50R.

      (3) The supernatant was not fully analyzed. It is unclear whether "soluble" p62 secretion is also continuous, whether it depends on ATG5/FIP200, is affected by lysosome inhibition and whether is it potentially decreased upon p62 oligomerization.

      (4) Besides p62 and KEAP1, the contents of the vesicles were not analyzed, and it is unclear whether they contain lipidated LC3 or other autophagy proteins.

      (5) Some details of the experiments are slightly inconsistent. For instance, in Figure 3C, close to zero p62 is detected in the pellet fraction in the absence of detergent. In Figure 4, there is some p62 detected under those same conditions. I believe both of those experiments were done under the same conditions, yet yielded slightly different results. This does not detract from the conclusions of the paper, however.

      Conclusion/discussion

      The work presented is interesting and sheds light on an under-studied cellular function. The method used in this manuscript is very interesting and has the potential to be widely applicable to answer other research questions in other low-protein concentration scenarios. It will be very interesting to see which other autophagy proteins get secreted and what cellular mechanism is used to achieve this.

    1. COBOL

      FORTRAN에서 COBOL·LUNAR·SHRDLU·NaturalJava로 넘어가는 대목 에서 도구가 많이 나오지만, 각 사례가 무엇을 더 쉽게 했는지 독자가 머릿속으로 계속 비교해야 합니다. 사례마다 “사람이 하던 일 / 도구가 맡은 일 / 사람이 여전히 정한 일”을 한 문장으로 정리하거나, 중간에 짧은 요약을 넣으면 흐름을 따라가기 쉬울 것 같습니다.

    2. 문장 구조를 읽는 데 성공하더라도 ’당신의’가 누구의 소유를 뜻하는지 처리할 규칙이 없었고, 자료에는 표본의 무게도 없었다.

      실패 원인이 문장 구조 처리와 데이터 부재, 두 가지로 제시됩니다. 하지만 무게 자료가 없었다면 질문에 답할 수 없었던 가장 직접적인 이유는 데이터 부재로 보입니다. 시스템이 어디까지 문장을 분석했고 어느 단계에서 실패했는지 구분해 설명하면 사례가 더 명확히 읽힐 것 같습니다.

    3. 프로그램과 이를 사용하는 데 필요한 자료 등을 통틀어 소프트웨어라고 부른다.

      앞에서는 프로그램과 코드의 차이를 설명하고, 여기서는 자료도 소프트웨어에 포함한다고 합니다. 독자는 “신청자 명단 같은 데이터도 소프트웨어인가?”라고 헷갈릴 수 있을 것 같습니다. 소프트웨어와 데이터의 관계를 구분하거나, 이 문장을 더 단순하게 다듬으면 좋겠습니다.

    4. 컴퓨터가 직접 실행하는 숫자 형태의 명령을 기계어라고 부른다. 기계어의 숫자 명령에 LOAD나 SUB처럼 사람이 읽을 이름을 붙여 쓴 것이 어셈블리어다.

      이게 틀린 서술은 아니지만, 사실 모르는 사람이 보면 이 정도 설명으로는 "그래서 기계어가 뭔데?", "그래서 어셈블리어가 뭔데?" 눈에 잘 안 들어올 것 같기는 합니다. 저희가 이 책에 시각 자료를 넣을 수 있는지는 모르겠는데, 아마 웹에서 찾아보면 useful한 시각자료들이 많을 것 같아요.

      제 생각에, 그렇게 기계어나 어셈블리어를 좀 시각적으로 이해할 수 있으면 이 아래에 나타나는 기계어와 어셈블리어로 컴퓨터를 다룰 때 발생하는 문제점이 더 와닿을 것 같습니다.

    5. 코드를 적을 때 쓰는 프로그래밍 언어에는 정해진 문법이 있다. 문법은 어떤 낱말과 기호를 어느 자리에 써야 하는지를 정한 규칙이다.

      이 문장이 앞 문단으로 붙는 것이 더 좋지 않을까요? 왜 그렇게 생각하냐면, 프로그램과 프로그래밍 언어에 대한 소개 -> 그것과 대비되는 개념으로서의 '자연어'를 소개 -> 이 둘의 융합적 개념으로서의 '자연어 프로그래밍'을 소개

      의 흐름으로 문단 구성이 되면 의도하는 바가 더 명확히 드러날 것 같습니다.

    6. 1971년에 진행된 초기 시연에서는 질문의 78%를 올바르게 이해하고 답했다. 이 시연에서는 달 암석 자료에 관한 질문만 대상으로 삼았고, 당시 처리하지 못하던 비교 표현은 제외했다. 78%는 이렇게 범위를 정한 질문에 대한 결과다.

      독자가 78%의 무게를 판단하려면 몇 개의 질문 가운데 78%인지(분모)와 무엇을 "올바르게"로 쳤는지가 필요할 것 같습니다. 또한 시연 장소(1971년 1월 휴스턴에서 열린 제2회 Lunar Science Conference로 알려져 있음)와 질문한 사람이 누구였는지(지질학자들이 직접 입력했는지)도 Woods 원문에서 확인해 함께 적어 주시면 좋겠습니다.

      이어지는 “all your samples” 실패 사례는 좋은 것 같습니다. 질문 하나가 문장 구조, 소유 해석, 자료 부재라는 세 단계에서 차례로 막히는 과정을 보여 줘서, "자연어 이해가 왜 어려운가"를 어떤 추상적 설명보다 잘 전달되는 것 같습니다.

    1. 신청 화면, CSV를 읽는 코드

      “신청 화면”, “CSV를 읽는 코드”, “공통 함수”, “이미 저장된 신청 명단”이 짧은 구간에 함께 등장합니다. 개발자가 아닌 독자는 무엇이 각각의 파일이고, 왜 같은 규칙을 두 곳에 적용해야 하는지 놓칠 수 있을 것 같습니다. “웹으로 신청한 사람과 파일에서 가져온 사람을 한 명단에 합친다”는 그림이나 짧은 단계 설명을 먼저 두면 이해하기 더 쉬울 것 같습니다.

    2. 두 경우의 차이는 최종적으로 몇 개의 파일을 고쳤는지보다, 어디를 어떻게 고칠지 알아내는 과정까지 맡겼는지에 있다

      앞서 Composer와 에이전트의 설명이 길게 이어져 독자가 차이를 놓칠 수도 있을 것 같습니다. 개발자가 수정 방법을 지정하는 경우와 도구가 원인을 찾아 수정 방법까지 정하는 경우를 짧게 설명해주면 요점이 잘 드러날 것 같습니다.

    3. 같은 폼을 코드로 직접 만든다면 어떨까? 신청서를 제출할 때마다 입력한 이름과 이메일 주소를 명단에 추가하면 된다. 그런데 한 참가자가 신청이 잘됐는지 몰라 같은 신청서를 두 번 보내면 한 사람이 두 자리를 차지한다. 이름이 같은 신청을 모두 지우는 방법도 곤란하다. 동명이인이 있을 수 있기 때문이다. 이 행사에서는 같은 이메일 주소로 여러 번 신청하면 첫 번째 신청만 남기기로 한다.

      이 부분은 굳이 필요하지 않다고 느껴집니다. 핵심은 개발자가 코드를 적으면서 들이는 공이 줄어든다이지, 개발자가 어떤 프로그램을 만들고 있었는지에 대한 상황 설명이 필요하지는 않은 것 같습니다. 아마 뒷부분에 예시를 들기 위해 있는 것 같은데, 그걸 감안해도, 해당 부분에서만 설명해도 충분한 내용 같아서. 앞부분에서 굳이 이렇게 상황 세팅을 해둘 필요는 없지 않나 싶습니다.

    4. Microsoft는 1997년 2월 3일 Visual Basic 5.0을 발표하면서 IntelliSense를 주요 개발 지원 기능으로 소개했다.

      IntelliCode는 "학습한 패턴으로 추천한다"는 원리를 설명했는데, IntelliSense는 후보를 어떻게 정하는지에 대한 설명이 없어요. "변수의 자료형 정보로 쓸 수 있는 명령을 보여 준다" 등의 설명을 덧붙여서 규칙 기반이라고 보여주면 IntelliCode에서는 어떤 발전 (학습 기반)이 있었는지 더 잘 보일 것 같습니다.

    1. 4.4. 화면 표시와 데이터 접근 권한을 구분해야 한다

      권한 설정과 데이터가 사용자 기기로 전달되는 설명은 중요하지만, 앞의 화면 구성 이야기에서 갑자기 기술적인 보안 세부로 넘어가는 느낌이 듭니다. “명단을 화면에서 감추는 것만으로는 접근을 막을 수 없다”는 쉬운 사례를 먼저 들고, 왜 데이터 접근 권한 설정이 필요한지 연결하면 비개발자도 따라가기 조금 더 쉬울 것 같습니다.

    2. 노코드 툴의 탄생과 변화

      내용상의 지적은 아니고, 가능할지는 모르겠지만 만약에 이미지 첨부가 가능하다고 한다면, 노코드 툴 같은 경우 이미지를 적극적으로 첨부하는 것이 이해하는 데 큰 도움이 될 것 같습니다! 물론 조교님이나 교수님께 확인을 받아야 할 것 같기는 하네요..

    3. Scratch는 프로그램의 명령과 논리를 그래픽 블록의 조합으로 표현하는 프로그래밍 언어다.

      1절에서 노코드 툴을 "프로그램 코드를 직접 작성하는 대신, 화면에서 요소와 기능을 선택하고 설정하여 소프트웨어를 만드는 도구"로 정의했는데, 여기서는 Scratch를 "프로그래밍 언어"라고 소개해서 독자가 “Scratch도 노코드인가?” 하고 헷갈릴 것 같습니다. Scratch를 이 절에 넣은 이유를 한 문장 덧붙이면 좋겠습니다. 예를 들면, “Scratch는 엄밀히 말하면 노코드 도구가 아니라 블록 기반 프로그래밍 언어다. 다만 명령을 미리 만들어진 블록으로 쪼개 조립하게 한 방식은 2.1에서 설명한 '블록'의 발상을 잘 보여 준다.”라고 덧붙일 수 있을 것 같습니다.

    1. 가정과 결과

      앞뒤 내용은 이해가 잘 가는데요, '가정과 결과'...라는 말이 조금 걸려서 코멘트 남깁니다. 일반적으로 자연스럽게 이해되는 의미로 사용하신 것은 아닌 것 같아서요. 이 가정과 결과라는 단어가 핵심적인 개념이 아닌 것 같으니, 조금 더 풀어서 서술해 주시는 것은 어떨까요?

    2. 수식이 잘못된 것이 아니라, 데이터를 가져오고 옮기는 과정에서 생긴 누락이었다.

      "최대 파일 크기"의 실제 원인은 행 수가 65,536개로 제한된 예전 .XLS 형식이었다고 보도됐어요. 이 점을 한 구절 덧붙이면 예시 4(범위 밖 행이 빠지는 오류)와 잘 이어질 것 같습니다.

    3. 명령어를 외워 입력하는 대신 메뉴와 마우스로 표를 다루게 되면서, 스프레드시트를 쓰는 사람의 범위가 넓어졌다.

      VisiCalc와 Lotus 1-2-3에도 “/” 키로 여는 메뉴가 있었어요. 달라진 점은 "키보드 메뉴에서 마우스로 고르는 그래픽 메뉴로"의 변화라고 쓰는 게 정확해 보입니다.

    1. Reviewer #1 (Public review):

      Summary:

      Schneider et al. use a reproducible and inexpensive behavioral paradigm to study prey capture in a cluttered environment. They compare mice hunting cockroaches in a sparse, circular arena with no obstructing objects versus a cluttered arena. The authors set out to define search and pursuit phases in the cluttered environment. They claim to find signatures of short-term memory within the search phase that they propose should not be involved in uncluttered environments. They also create an agent-based framework for prey capture with and without additional objects, and predict that trials should take longer when objects are included. They provide the agent-based model with a component that prevents revisiting the same object and predicts big differences between object order visits during search and pursuit. They also create machine learning classifiers on mouse keypoint data with the goal of measuring interactions with specific objects.

      Strengths:

      The experimental set-up is excellent and broadly useful as it uses inexpensive objects to perform easily repeatable experiments. Further, the model has interesting characteristics and is well constructed.

      Weaknesses:

      The major weakness of this manuscript is the lack of comparisons throughout the text. For example, all of the claims depend on the assumption that mice are searching for roaches when they are not pursuing the roach: these non-pursuit times could be anything, including grooming, sleeping, etc. But without a comparison to animals in the same physical environment who are not searching for roaches, these claims cannot be supported with evidence. Similarly, all of the claims about complexity being required or revealing memory need to be compared to a lack of complexity to support those claims with evidence. The authors note they have both naive mice in the cluttered arena that did not hunt and their baseline data from uncluttered environments also exist, and these comparisons would allow them to address and potentially support their claims.

      Additional context:

      This manuscript lacks sufficient context from a few related areas of the literature: thigmotaxis and novel object recognition, as well as mouse proclivities (e.g. mice prefer to move forward and not backwards (Rosenberg et al. 2021). While thigmotaxis is acknowledged, it is referenced only in passing and not evaluated as a null model for how animals are behaving. Without comparisons to uncluttered or non-hunting mice, thigmotaxis, novel-object recognition, and other mouse proclivities like preferring forward movement could explain all of their behavior without a memory component

    2. Reviewer #2 (Public review):

      Summary:

      Schneider et al. ask whether adding environmental complexity to a simple prey capture task reveals learning that the simple task does not engage. They train six mice to hunt cockroaches in an empty arena for about ten weeks and then test them for eight days in an arena with objects that block movement and vision and give the prey places to hide. In the enriched arena, capture success increases and trial duration decreases across the eight days. The authors divide the behavior into three states: pursuit, search, and abandonment. Search dominates the trials, followed by pursuit. Interestingly, the time spent in search and pursuit does not change with experience. They show that pursuit kinematics are largely stable, whereas search speed and its variability increase. During search, mice prefer sequences of three distinct objects over returning to the object they just visited, and this preference is absent on the first day. Mice also shift their search toward the ping-pong balls, where roaches are most often found, and toward actions that displace the balls and flush hidden prey. A minimal agent-based model with short-term memory of visited objects and object-specific search values reproduces these patterns. The authors conclude that learning in a complex environment is expressed in search rather than pursuit, and that unenriched arenas can support expert performance without engaging memory-guided search.

      Strengths:

      Laboratory versions of ethological tasks often remove the environmental structure that shapes the behavior in nature, and the authors make a good case that this matters. The paradigm is simple, inexpensive, and easy to reproduce in other laboratories. The object-referenced ethogram links each action to the object it is directed at, which is a useful addition to unsupervised approaches. The authors combine several independent analyses (state segmentation, kinematics, object sequences, object occupancy, and classified object interactions), and these point in a consistent direction.

      Weaknesses:

      The most important weakness is a missing control where mice experience the objects without the prey. Mice were tested in the enriched arena with prey from the first day the objects were introduced. Many of the changes described in search, including the increase in speed and variability (Figure S4), the shift in object occupancy (Figure 5), and the change in object interactions (Figure 7), could reflect habituation to the new objects in the enriched arena rather than learning about prey behavior. A group exposed to the objects without prey, or pre-exposed to the objects before prey are introduced, is needed to attribute these changes to prey capture.