<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Manasa Vadlamani on Medium]]></title>
        <description><![CDATA[Stories by Manasa Vadlamani on Medium]]></description>
        <link>https://medium.com/@vmanasa2003?source=rss-f676ea96406f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*DQ59f1YvKf9FckM_</url>
            <title>Stories by Manasa Vadlamani on Medium</title>
            <link>https://medium.com/@vmanasa2003?source=rss-f676ea96406f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 15:25:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vmanasa2003/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[FDR Correction: Why Running Many Tests Inflates Your False Positives]]></title>
            <link>https://medium.com/@vmanasa2003/fdr-correction-why-running-many-tests-inflates-your-false-positives-62cceac01269?source=rss-f676ea96406f------2</link>
            <guid isPermaLink="false">https://medium.com/p/62cceac01269</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[research]]></category>
            <dc:creator><![CDATA[Manasa Vadlamani]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 15:01:02 GMT</pubDate>
            <atom:updated>2026-07-14T15:01:02.200Z</atom:updated>
            <content:encoded><![CDATA[<h3>The problem</h3><p>Say you’re comparing patients on 11 clinical scales, across 3 severity groups, each against a normative reference. That’s 33 separate hypothesis tests run on the same dataset. Each one uses the usual α = 0.05 cutoff, the threshold everyone learns in their first stats class as “5% chance of a false positive.”</p><p>Here’s the catch: that 5% applies <strong>per test</strong>, not to the whole batch. If you run 33 independent tests where nothing is actually going on, you don’t have a 5% chance of a false alarm — you have roughly an 82% chance of seeing at least one “significant” result purely by chance. Run enough tests on pure noise, and something will eventually cross the line. That’s not a finding. That’s arithmetic.</p><p>This is the multiple comparisons problem, and it shows up the moment your analysis touches more than one test — multiple scales, multiple groups, multiple subscales, multiple timepoints. Three corrections handle it very differently, and the difference matters a lot in practice.</p><h3><strong>The Solution</strong></h3><p><strong>Raw p-values .</strong> Treat every test as if it were the only one you ran. Maximizes your chance of catching real effects, but also maximizes your chance of false alarms as the number of tests grows.</p><p><strong>Bonferroni correction.</strong> Divide your threshold by the number of tests (α / m). This controls the <strong>family-wise error rate</strong> — the probability of <em>even one</em> false positive across the entire batch. It’s a hard guarantee, but it’s a blunt instrument: with enough tests, the threshold gets so strict that real effects get buried along with the noise.</p><p><strong>Benjamini-Hochberg (FDR) correction.</strong> Instead of controlling the chance of <em>any</em> false positive, it controls the <strong>proportion of false positives among your “significant” results</strong> — the false discovery rate. If you flag 10 findings and FDR is controlled at 5%, you’re saying “no more than about 5% of these 10 are expected to be noise,” not “there’s only a 5% chance of any noise at all.” This is a meaningfully looser, more forgiving standard — and it’s exactly why FDR has more statistical power than Bonferroni while still protecting you from a flood of false positives.</p><h3>Example</h3><p>Here’s a synthetic version of exactly this scenario: 20 scales × 3 groups = 60 one-sample tests against a normative mean of 50, where I control the ground truth — 10 of the 60 comparisons have a real, planted effect (true mean shifted by 4.5 points), and the other 50 are pure noise (true mean is exactly 50).</p><p>Because this is synthetic data with a known answer key, we can score each correction method honestly: how many real effects did it catch, and how many false alarms did it let through?</p><pre>import numpy as np<br>from scipy import stats<br>from statsmodels.stats.multitest import multipletests<br><br>np.random.seed(11)<br>scales = [f&quot;Scale_{i+1}&quot; for i in range(20)]<br>groups = [&quot;Mild&quot;, &quot;Mod/Severe&quot;, &quot;Other_ABI&quot;]<br>all_cells = [(s, g) for s in scales for g in groups]<br><br># Plant 10 true effects among the 60 comparisons; the rest are pure null<br>true_effect_cells = set(<br>    [all_cells[i] for i in np.random.choice(len(all_cells), size=10, replace=False)]<br>)<br><br>np.random.seed(99)<br>pvals, truth = [], []<br>for scale, group in all_cells:<br>    true_mean = 50 + (4.5 if (scale, group) in true_effect_cells else 0)<br>    sample = np.random.normal(true_mean, 10, 60)<br>    _, p = stats.ttest_1samp(sample, 50)<br>    pvals.append(p)<br>    truth.append((scale, group) in true_effect_cells)<br><br>pvals, truth = np.array(pvals), np.array(truth)<br>m = len(pvals)<br><br>raw_sig   = pvals &lt; 0.05<br>bonf_sig  = pvals &lt; 0.05 / m<br>_, p_fdr, _, _ = multipletests(pvals, alpha=0.05, method=&quot;fdr_bh&quot;)<br>fdr_sig   = p_fdr &lt; 0.05</pre><p>Scoring each method against the planted ground truth:</p><p>Visually, the following is driving the results every test’s p-value, ranked from smallest to largest, against all three thresholds:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LPtNuv2JxkIP-bI5NhnVlA.png" /></figure><p>The flat blue line is the raw α = 0.05 cutoff. The flat green line is Bonferroni’s much stricter α/m. The orange line is Benjamini-Hochberg’s threshold — and notice it’s not flat. It <strong>rises</strong> as you move right, which is precisely why it can recover real effects (red dots) sitting further down the ranked list that Bonferroni’s flat line would have excluded, while still cutting off the noise (grey dots) that raw p-values would have let through.</p><p>This is the whole story in one table:</p><ul><li><strong>Raw</strong> caught every real effect — but more than a fifth of what it flagged (3 of 13) was pure noise wearing a “significant” costume.</li><li><strong>Bonferroni</strong> let through zero false positives — at the cost of missing <strong>half</strong> of the genuine effects in the data. A real finding sitting right there in the data simply didn’t survive the correction.</li><li><strong>FDR</strong> caught every real effect, same as raw, while cutting the false-positive count from 3 down to 1.</li></ul><h3>The takeaway</h3><blockquote><em>Raw p-values control nothing once you run more than one test. Bonferroni controls the chance of </em>any<em> false positive, at the cost of power. Benjamini-Hochberg controls the </em>proportion<em> of false positives among your discoveries, which is usually the more useful guarantee — and in this example, it recovered every real effect that Bonferroni missed, while still cutting the noise that raw p-values let through.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=62cceac01269" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why You Can’t Just Cluster Your Raw Data]]></title>
            <link>https://medium.com/@vmanasa2003/why-you-cant-just-cluster-your-raw-data-fd0b45bd16c7?source=rss-f676ea96406f------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd0b45bd16c7</guid>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[confounding-variable]]></category>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[research-methods]]></category>
            <dc:creator><![CDATA[Manasa Vadlamani]]></dc:creator>
            <pubDate>Wed, 24 Jun 2026 18:06:40 GMT</pubDate>
            <atom:updated>2026-06-24T18:06:40.265Z</atom:updated>
            <content:encoded><![CDATA[<h3>The problem</h3><p>Say you have a dataset of patients, each described by a set of symptom scores, and you want to group them into “types”- clusters of people who look similar. The obvious move is to throw the scores into a clustering algorithm (k-means, hierarchical, whatever) and read off the groups.</p><p>I tried exactly this early in a research project. The clusters came out clean and confident. There was just one problem: they were clustering the wrong thing.</p><p>When I looked closer, the groups weren’t separating by <em>symptom profile</em> at all. They were separating by <strong>how long ago each person had been assessed</strong>. Patients measured recently landed in one cluster; patients measured years earlier landed in another. The algorithm had found structure - it just wasn’t the structure I cared about.</p><p>This is the trap: a clustering algorithm clusters whatever variation is loudest in your data. And time was loud, because the groups I cared about were measured at different times. So the algorithm latched onto <em>when</em> people were assessed instead of <em>how</em> they presented.</p><h3>An example</h3><p>We want to cluster patients into certain Phenotypes. Here, the severity groups were measured at different times, each severity group having certain healing trend.</p><p>The milder patients happened to be assessed <strong>early</strong> (about a year after injury), while the more severe patients were assessed <strong>late</strong> (years later). And symptoms tend to ease over time, so early scores run higher and late scores run lower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*S367uzRX81SbIpcDK8pdGw.png" /></figure><p>So every score is a mix of:</p><p>real symptoms (what you want) and a time effect (when they happened to be measured)</p><p>A difference you see between mild and severe might not be about injury severity at all. It might just be that one group was measured earlier than the other.</p><p>Clustering groups people who look similar. If time pushes everyone’s scores up/down and that shift is bigger than the real symptom differences, the algorithm groups by WHEN people were measured instead of by their actual symptom pattern.</p><h3>The fix : Remove confounding</h3><p>Remove the time effect from each score first. Once you do, the early/late gap disappears and the patients look like this:</p><p>The culprit here is a <em>confound</em> — a variable that’s mixed into your measurements and isn’t the thing you’re studying.</p><p>In my case, symptom scores naturally changed with time since assessment. So “time” was baked into every score. Two people with identical underlying symptom <em>profiles</em> could have different raw scores purely because one was measured earlier than the other. Cluster on the raw scores, and time leaks in.</p><p>The same thing happens with age, sex, or any background variable that influences your measurements. A useful way to think about it: <em>confounding is defined relative to your question.</em> Time-since-assessment is a confound <strong>for the symptom-profile comparison</strong>, even though it’s a perfectly real and interesting effect on its own.</p><h3>Removing the confound</h3><p>The standard tool is regression. You model each score as a function of the confound, then subtract off the confound’s estimated contribution — leaving an “adjusted” score that no longer carries that variation.</p><p>Here’s the idea:</p><pre>import numpy as np<br>import pandas as pd<br>import statsmodels.api as sm</pre><pre>np.random.seed(0)<br>n = 300</pre><pre># a confound: time since assessment, unrelated to type<br>time = np.random.exponential(3, n)</pre><pre># observed score = true-type effect + a TIME effect (the confound) + noise<br>score = (<br>    np.array([50, 60, 55])[true_type]   # real signal<br>    + 4 * np.log1p(time)                 # confound leaking in<br>    + np.random.normal(0, 3, n)<br>)</pre><pre>df = pd.DataFrame<br>({<br>&quot;score&quot;: score, <br>&quot;time&quot;: time, <br>})</pre><p>If you cluster on score directly, the time term contaminates everything. So first, regress it out:</p><pre># fit one model: score ~ log(time), across EVERYONE<br>X = sm.add_constant(np.log1p(df[&quot;time&quot;]))<br>model = sm.OLS(df[&quot;score&quot;], X).fit()</pre><pre># subtract the time effect → adjusted score<br>df[&quot;score_adj&quot;] = df[&quot;score&quot;] - model.params.iloc[1] * np.log1p(df[&quot;time&quot;])</pre><p>Now score_adj reflects the true-type signal with the time contamination removed — and clustering on it recovers the real groups instead of the confound.</p><h3>The takeaway</h3><blockquote><strong><em>An important part of clustering is — making sure your data is clusterable — that the variation driving your groups is signal, not a confound.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd0b45bd16c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Screen-Induced Amnesia: The Silent Spread of Digital Dementia]]></title>
            <link>https://medium.com/@vmanasa2003/screen-induced-amnesia-the-silent-spread-of-digital-dementia-8cd4705a3dd7?source=rss-f676ea96406f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cd4705a3dd7</guid>
            <category><![CDATA[scrolling]]></category>
            <category><![CDATA[excessive-screen-time]]></category>
            <category><![CDATA[digital-dementia]]></category>
            <dc:creator><![CDATA[Manasa Vadlamani]]></dc:creator>
            <pubDate>Sun, 07 Dec 2025 08:53:42 GMT</pubDate>
            <atom:updated>2025-12-07T08:53:42.557Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever found yourself feeling irritated or losing focus during a 30-minute class? Or noticed your attention suddenly shift to other tasks? Many of us have experienced moments where our attention drifts, whether during a class, or a work task. This drastically impacts our productivity and makes us feel distressed.</p><p><strong>What does scrolling do to our brain?</strong></p><p>Our brain contains a reward system. Whenever we happen to see a post that seems interesting to us, the happy hormone is released- called the dopamine. This activates the reward system, and makes us feel to scroll more.</p><p>Frequent scrolling makes us expose to variety of information, hence processing increases, However, affects our attention span and decreases our deep thinking. Hence, we feel it hard to focus on a particular task for longer hours and end up being distracted.</p><p>Frequent scrolling weakens our prefrontal cortex, which manages the shifts our focus. This gets strained, making it harder for us to focus on a particular thing</p><p>“Working memory” or temporary memory of our brain is like RAM (Random access memory). It is limited in size and gets overloaded when too much of different pieces of information is tried to store. Shifting between various tasks can significantly lower its performance.</p><p><strong>How does it worsen conditions of dementia?</strong></p><p>Brain’s cognitive resources grow thin due to rapidly changing information, due to ineffectualness of prefrontal cortex. This decline worsens conditions of dementia.</p><p>Neuroplasticity — a brain’s function which enables it to change and form new connections when exposed to new information, gets affected due to shallow exposure of contents.</p><p>Lack of deeper analysis of contents leads to shallow memory formation about things in permanent memory, which makes information retrieval hard.</p><p>Exposure to negative contents while scrolling increases the levels of cortisol. These levels can damage hippocampus, which is essential for memory formation.</p><p>Sitting alone and excessive usage of digital devices make a person isolated among a group of people. Where making connections and talking to people is necessary for people with dementia, isolating oneself does the opposite.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cd4705a3dd7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Momentum and Energy Conservation]]></title>
            <link>https://www.cantorsparadise.com/momentum-and-energy-conservation-ca239eedc568?source=rss-f676ea96406f------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca239eedc568</guid>
            <category><![CDATA[spring-block-system]]></category>
            <category><![CDATA[momentum-conservation]]></category>
            <category><![CDATA[classical-mechanics]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[energy-conservation]]></category>
            <dc:creator><![CDATA[Manasa Vadlamani]]></dc:creator>
            <pubDate>Sat, 31 Aug 2024 19:26:31 GMT</pubDate>
            <atom:updated>2026-06-28T17:30:47.844Z</atom:updated>
            <content:encoded><![CDATA[<p>Considering bullet + block as a system — when is momentum conserved? When is energy?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGa2lzeSnik9BeNmuCql1A.png" /></figure><p>Consider the following scenario: a bullet fired into a wooden block that’s attached to a spring.</p><p>Taking <strong>bullet + block</strong> as our system, two questions arise:</p><ul><li>When is <strong>momentum</strong> conserved?</li><li>When is <strong>energy</strong> conserved?</li></ul><p>Options:</p><ol><li>At the time of collision</li><li>A time <em>t</em> after the collision</li><li>Never</li></ol><p><strong>Momentum conservation:</strong></p><h3>Momentum Conservation</h3><p><strong>The answer is (1) — momentum is conserved at the time of collision.</strong></p><p>But why, given that there’s a spring attached to the block — an external force acting on the system?</p><p>The key lies in Newton’s second law, written in impulse form:</p><blockquote><em>∫ F dt = m · dv</em></blockquote><p>Here, <strong>F</strong> is the impulsive force acting on the system.</p><p>Forces typically fall into two categories based on how “impulsive” they are:</p><ul><li><strong>High-magnitude (impulsive) forces</strong> — e.g. normal reaction, tension</li><li><strong>Low-magnitude (non-impulsive) forces</strong> — e.g. spring force, gravity</li></ul><p><strong>For small values of t</strong> (i.e., right at the moment of collision):</p><blockquote><em>∫ F dt → 0 ⟹ m · dv = 0</em></blockquote><p>This gives us:</p><blockquote><em>m₁v₁ = m₂v₂</em></blockquote><p>So momentum <strong>is</strong> conserved for the system <em>at the instant of collision</em>, because the spring force — being non-impulsive — has negligible effect over that vanishingly small time interval.</p><p><strong>For large values of t</strong> (i.e., as the block continues moving and compresses the spring):</p><blockquote><em>∫ F dt &gt; 0</em></blockquote><p>Now the impulsive contribution from the spring becomes significant, and it <strong>does</strong> affect the momentum of the system. Hence momentum is <em>not</em> conserved over an extended time interval — only at the instant of collision.</p><h3>Energy Conservation</h3><p>A quick refresher on the two energy terms involved:</p><ul><li><strong>Kinetic energy</strong> of the system: ½ m v²</li><li><strong>Potential energy</strong> stored in the spring (compression/elongation <em>x</em> from mean position): ½ k x²</li></ul><p><strong>The answer here is (3) — energy is <em>not</em> conserved</strong>, as long as the spring is treated as external to the system.</p><h3>Step 1: At the moment of collision</h3><p>Taking <strong>bullet + block</strong> as the system, the collision itself dissipates energy as heat:</p><blockquote><em>½ M(bullet) · V(bullet)² − ½ M(bullet+block) · V(bullet+block)² = Heat</em></blockquote><h3>Step 2: After the collision (block compresses the spring)</h3><p>Once the heat has been dissipated, the system’s kinetic energy converts into the spring’s potential energy. Since no further dissipative forces act during this stage:</p><blockquote><em>½ M(bullet+block) · V(bullet+block)² − 0 = ½ k x²</em></blockquote><p><em>(the final velocity is zero at maximum compression)</em></p><h3>If the spring is included in the system</h3><p>If we redefine the system as <strong>bullet + block + spring</strong>, then the <em>total</em> energy of this larger system <strong>is</strong> conserved:</p><blockquote><em>½ M(bullet+block) · V(bullet+block)² + 0 [initial spring energy] = ½ k x² [final spring energy] + 0 [ final kinetic energy ]</em></blockquote><p>Interestingly, the equation comes out the same either way.</p><h3><strong>Key TakeAway</strong></h3><p><strong>. During the collision ((t -&gt; 0))</strong></p><ul><li><strong>Momentum:</strong> Conserved</li><li><strong>Mechanical Energy:</strong> Not conserved (some kinetic energy is converted to heat, sound, or deformation in an inelastic collision)</li></ul><p><strong>2. After the collision — till maximum compression(spring excluded from the system)</strong></p><ul><li><strong>Momentum:</strong> Not conserved</li><li><strong>Mechanical Energy:</strong> Not conserved</li></ul><p><strong>3. After the collision (spring included in the system)</strong></p><ul><li><strong>Mechanical Energy:</strong> Conserved (energy is stored as elastic potential energy in the spring)</li></ul><p>Conservation laws are only as good as the <strong>system you define</strong> and the <strong>time window you consider</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca239eedc568" width="1" height="1" alt=""><hr><p><a href="https://www.cantorsparadise.com/momentum-and-energy-conservation-ca239eedc568">Momentum and Energy Conservation</a> was originally published in <a href="https://www.cantorsparadise.com/">Cantor’s Paradise</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>