<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nylah Reynard</title>
    <description>The latest articles on DEV Community by Nylah Reynard (@yotta-fish).</description>
    <link>https://dev.to/yotta-fish</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4076513%2Ff5ee4b8a-2fc7-4e4f-b702-a6439dfb4949.png</url>
      <title>DEV Community: Nylah Reynard</title>
      <link>https://dev.to/yotta-fish</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yotta-fish"/>
    <language>en</language>
    <item>
      <title>Why SciPy Silently Switches Mann-Whitney U From 'exact' to 'asymptotic'</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:32:24 +0000</pubDate>
      <link>https://dev.to/yotta-fish/why-scipy-silently-switches-mann-whitney-u-from-exact-to-asymptotic-19do</link>
      <guid>https://dev.to/yotta-fish/why-scipy-silently-switches-mann-whitney-u-from-exact-to-asymptotic-19do</guid>
      <description>&lt;p&gt;A few days back, I hit a strange testing anomaly while validating an automated reporting pipeline for customer feedback. We collect user ratings on a five-point scale before and after deploying an onboarding update. Because our pilot cohort was intentionally small—seven accounts per treatment arm—I assumed SciPy would evaluate the statistical difference between the two cohorts using an exact permutation routine. After all, the official docstring for the Mann-Whitney rank test explains that setting the method parameter to auto will trigger the exact solver whenever the smaller group contains eight or fewer data points.&lt;/p&gt;

&lt;p&gt;Here, both cohorts had exactly seven scores. That easily satisfied the documented sample size threshold.&lt;/p&gt;

&lt;p&gt;Yet when our automated pipeline printed the final report, the reported significance level caught my eye. The p-value looked suspiciously identical to an asymptotic z-score rather than the discrete probabilities expected from a small-sample permutation distribution. To understand why, I extracted the raw arrays into a standalone Python REPL and compared the function calls side by side.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;scipy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stats&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;mannwhitneyu&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;PermutationMethod&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="c1"&gt;# Survey feedback scores (1-5) from two independent user cohorts&lt;/span&gt;
&lt;span class="n"&gt;g1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;g2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Compare how different calculation modes evaluate identical inputs&lt;/span&gt;
&lt;span class="n"&gt;res_auto&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;mannwhitneyu&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'auto'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;res_asymp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;mannwhitneyu&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'asymptotic'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;res_exact&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;mannwhitneyu&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'exact'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"auto:       U = {res_auto.statistic:.2f}, p = {res_auto.pvalue:.5f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"asymptotic: U = {res_asymp.statistic:.2f}, p = {res_asymp.pvalue:.5f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"exact:      U = {res_exact.statistic:.2f}, p = {res_exact.pvalue:.5f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;auto:       U = 7.50, p = 0.02454
asymptotic: U = 7.50, p = 0.02454
exact:      U = 7.50, p = 0.03788
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The numbers revealed the discrepancy immediately. The auto branch did not compute an exact permutation p-value at all. It yielded 0.02454, matching the asymptotic normal approximation down to its final decimal digit. Meanwhile, forcing the exact flag produced an entirely different figure of 0.03788.&lt;/p&gt;

&lt;p&gt;Digging into the SciPy implementation clarifies why this happens. The automatic selector inspects two distinct prerequisites rather than just sample size. First, the size of the smaller cohort cannot exceed eight. Second, and crucially, the combined dataset cannot contain any tied values. If even a single tie appears anywhere across the pooled observations, the auto branch immediately discards the exact solver and routes your calculation through the asymptotic normal approximation. Because discrete Likert responses inevitably contain repeated ratings, every small survey dataset silently triggers this fallback.&lt;/p&gt;

&lt;p&gt;Why does the library abandon the exact routine the moment duplicates appear? The reason comes down to algorithmic assumptions. SciPy's underlying combinatorial engine relies on a closed-form recursion designed strictly for continuous variables where the theoretical probability of identical measurements is zero. That algorithm does not know how to partition tied mid-ranks across discrete permutations.&lt;/p&gt;

&lt;p&gt;If you attempt to override this behavior by hardcoding the exact flag on tied inputs, the function executes the continuous recursion anyway. It computes permutations as if every observation held a unique rank, ignoring tie corrections altogether. That is why our manual exact run returned 0.03788 instead of the true probability. In short, forcing the exact method on tied arrays does not provide an exact test for ties; it simply provides an uncorrected test.&lt;/p&gt;

&lt;p&gt;By contrast, the asymptotic pathway explicitly compensates for duplicated scores. It applies a half-unit continuity adjustment to the numerator and reduces the denominator variance according to the standard tie-sum formula:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Var(U) = (n1 * n2 / 12) * ( (n1 + n2 + 1) - sum(t_i^3 - t_i) / ((n1 + n2) * (n1 + n2 - 1)) )&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here, each &lt;code&gt;t_i&lt;/code&gt; represents the size of a tied cluster. In our Likert example, the repeated occurrences of twos and fives compress the ranking variance, yielding &lt;code&gt;U = 7.50&lt;/code&gt; and an asymptotic p-value of 0.02454.&lt;/p&gt;

&lt;p&gt;What should you do if your project demands an authentic permutation p-value on small tied data? In current versions of SciPy, you do not need to settle for an unadjusted formula or a continuous approximation. You can supply an explicit permutation object that resamples the observed data while preserving its tie structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Construct an exact or Monte Carlo permutation test that respects ties&lt;/span&gt;
&lt;span class="n"&gt;perm_cfg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;PermutationMethod&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_resamples&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;9999&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;random_state&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;20261123&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;res_perm&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;mannwhitneyu&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;g2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;perm_cfg&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"permutation: U = {res_perm.statistic:.2f}, p = {res_perm.pvalue:.5f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;permutation: U = 7.50, p = 0.02564
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This conditional permutation routine evaluates the rank sums across label shuffles while keeping the tied rank structure intact, delivering a reliable empirical p-value.&lt;/p&gt;

&lt;p&gt;Beyond p-values, engineers building automated pipelines should also avoid reporting raw statistics in isolation. In our toy benchmark, knowing that &lt;code&gt;U = 7.50&lt;/code&gt; tells stakeholders very little about the magnitude of difference between the cohorts. A standard way to convey practical significance is the rank-biserial correlation, which corresponds directly to Cliff's delta.&lt;/p&gt;

&lt;p&gt;The metric represents the share of pairwise wins minus the share of pairwise losses across both groups. You can compute it directly from the smaller group's rank sum:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;r_rb = (2.0 * U1) / (n1 * n2) - 1.0&lt;/code&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;calc_rank_biserial&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;u_val&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;count1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;count2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;max_u&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;count1&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;count2&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;2.0&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;u_val&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;max_u&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;1.0&lt;/span&gt;

&lt;span class="n"&gt;effect&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;calc_rank_biserial&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;res_auto&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;statistic&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g1&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;g2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Rank-biserial effect size: {effect:.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Rank-biserial effect size: -0.6939
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because the null expectation for &lt;code&gt;U&lt;/code&gt; under equal sample sizes is &lt;code&gt;n1 * n2 / 2 = 24.5&lt;/code&gt;, obtaining &lt;code&gt;7.50&lt;/code&gt; produces an effect size of -0.6939. The negative sign confirms that users in our first cohort consistently assigned lower ratings than users in the second cohort.&lt;/p&gt;

&lt;p&gt;A final conceptual trap worth noting is the common belief that the Mann-Whitney test functions as a universal comparison of sample medians. In our toy fixture, the first group has a median of 2.0 while the second has a median of 5.0. However, the underlying mathematics tests stochastic dominance—whether values in one group systematically exceed those in the other—not median equality. The test only reflects pure median shifts if both underlying populations possess identical shapes and spreads. When variances or skews diverge, two groups can share the same numerical median while producing a statistically significant rank difference.&lt;/p&gt;

&lt;p&gt;When writing data processing pipelines in Python, keep four practical rules in mind. First, remember that auto selects an asymptotic test the moment repeated values appear. Second, never force the exact parameter on discrete or ordinal metrics, as doing so drops tie correction. Third, use PermutationMethod when dealing with small, heavily tied samples that require non-asymptotic evaluation. Finally, always pair the test statistic with an effect size such as the rank-biserial correlation so your reports convey magnitude alongside statistical significance.&lt;/p&gt;

</description>
      <category>python</category>
      <category>statistics</category>
      <category>datascience</category>
      <category>scipy</category>
    </item>
    <item>
      <title>Why SciPy's chi2_contingency Default Surprised Me on a 2x2 Table</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Mon, 23 Nov 2026 14:31:58 +0000</pubDate>
      <link>https://dev.to/yotta-fish/why-scipys-chi2contingency-default-surprised-me-on-a-2x2-table-13n4</link>
      <guid>https://dev.to/yotta-fish/why-scipys-chi2contingency-default-surprised-me-on-a-2x2-table-13n4</guid>
      <description>&lt;p&gt;Last week, a pull request discussion derailed our sprint review. An engineer and an analyst were evaluating conversion counts between two onboarding flows on a small cohort. The engineer ran a script calling &lt;code&gt;scipy.stats.chi2_contingency&lt;/code&gt;, getting chi2 = 5.8741 and p = 0.01536. The analyst calculated uncorrected Pearson chi-square, getting chi2 = 8.0607 and p = 0.00452. Their Cramér's V metrics clashed too: 0.4947 versus 0.5795.&lt;/p&gt;

&lt;p&gt;Both colleagues were looking at the exact same four counts in a 2x2 grid. Neither had made an arithmetic blunder. The discrepancy came down to a quiet behavioral default in SciPy that catches Python developers every single day: Frank Yates's continuity correction.&lt;/p&gt;

&lt;p&gt;To see why the two scripts diverged, consider the contingency matrix from our test case. The table summarized twenty-four observations across two treatment groups:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;scipy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stats&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;chi2_contingency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fisher_exact&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;scipy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;contingency&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;association&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="n"&gt;tbl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
                &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;11&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;chi2_y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p_y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;chi2_contingency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;chi2_p&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p_p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;chi2_contingency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;correction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;v_y&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;association&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'cramer'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;correction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;v_p&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;association&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tbl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'cramer'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;correction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Yates   (correction=True):  chi2 = {chi2_y:.4f}, p = {p_y:.5f}, Cramer's V = {v_y:.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Pearson (correction=False): chi2 = {chi2_p:.4f}, p = {p_p:.5f}, Cramer's V = {v_p:.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Yates   (correction=True):  chi2 = 5.8741, p = 0.01536, Cramer's V = 0.4947
Pearson (correction=False): chi2 = 8.0607, p = 0.00452, Cramer's V = 0.5795
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When you call &lt;code&gt;scipy.stats.chi2_contingency(tbl)&lt;/code&gt; without extra keywords, Python sets &lt;code&gt;correction=True&lt;/code&gt; automatically. For any table where degrees of freedom equal one—meaning any 2x2 layout—SciPy applies Yates's continuity correction. Rather than computing standard Pearson squared deviations between observed and expected frequencies, the algorithm subtracts 0.5 from the absolute deviation before squaring: &lt;code&gt;(|O - E| - 0.5)**2 / E&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Yates introduced this deduction in 1934 to adjust for approximating discrete binomial probabilities with a continuous curve. With small counts, discrete probability steps can cause continuous curves to underestimate tail probabilities. Subtracting half a unit pulls the statistic toward zero, reducing test magnitude and inflating the p-value.&lt;/p&gt;

&lt;p&gt;In our 24-subject table, row totals are 10 and 14, while column totals are 11 and 13. Multiplying the smallest row and column totals and dividing by 24 gives a minimum expected cell frequency of 4.583. Because this frequency dips just below 5, the table sits right on classic rule-of-thumb boundaries. The 0.5 deduction shrinks the test statistic from 8.0607 to 5.8741, a 27 percent drop.&lt;/p&gt;

&lt;p&gt;The second trap is that &lt;code&gt;scipy.stats.contingency.association&lt;/code&gt; defaults to &lt;code&gt;correction=False&lt;/code&gt;. Running default &lt;code&gt;chi2_contingency(tbl)&lt;/code&gt; alongside default &lt;code&gt;association(tbl, method='cramer')&lt;/code&gt; reports a Yates-corrected p-value next to an uncorrected Pearson effect size. The hypothesis test and effect size in the same dashboard come from conflicting assumptions.&lt;/p&gt;

&lt;p&gt;When expected cell counts drop under five, developers often switch to Fisher's exact test. Evaluating our sample table with &lt;code&gt;fisher_exact(tbl, alternative='two-sided')&lt;/code&gt; returns an unconditional sample odds ratio of 14.6667 and a two-sided p-value of 0.01109. That exact p-value sits directly between the uncorrected Pearson result (0.00452) and the Yates result (0.01536).&lt;/p&gt;

&lt;p&gt;Seeing three distinct p-values (0.00452, 0.01109, and 0.01536) for a single twenty-four-row experiment raises a practical question: which test statistic actually protects nominal error rates without destroying statistical power?&lt;/p&gt;

&lt;p&gt;To evaluate test calibration under the null hypothesis, I simulated 10,000 independent trials in Python 3.14.3 and SciPy 1.17.1 with seed &lt;code&gt;20261123&lt;/code&gt;. Each trial drew two cohorts (&lt;code&gt;n1 = 15, n2 = 15&lt;/code&gt;) with baseline conversion &lt;code&gt;p0 = 0.30&lt;/code&gt;, skipping degenerate all-zero or all-full tables. At nominal alpha = 0.05, a calibrated test should reject in 5.0 percent of trials.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;scipy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stats&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;chi2_contingency&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fisher_exact&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;

&lt;span class="n"&gt;rng&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;default_rng&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20261123&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;a1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;binomial&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;a2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;binomial&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;0.30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;p_yates&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p_pearson&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p_fisher&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;zip&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;a2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;p_yates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;p_pearson&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="n"&gt;p_fisher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;continue&lt;/span&gt;
    &lt;span class="n"&gt;tb&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="n"&gt;y&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;p_yates&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;chi2_contingency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;correction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;p_pearson&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;chi2_contingency&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tb&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;correction&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;p_fisher&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;fisher_exact&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tb&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"yates  : {np.mean(np.array(p_yates) &amp;lt; 0.05):.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"pearson: {np.mean(np.array(p_pearson) &amp;lt; 0.05):.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"fisher : {np.mean(np.array(p_fisher) &amp;lt; 0.05):.4f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;yates  : 0.0157
pearson: 0.0549
fisher : 0.0175
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The simulation highlights why Yates's correction is controversial. At nominal alpha = 0.05, the Yates-corrected test rejected in only 1.57 percent of trials, over-correcting by more than a factor of three. Fisher's exact test was similarly conservative at 1.75 percent due to discrete hypergeometric support. In contrast, uncorrected Pearson chi-square registered a 5.49 percent rejection rate, tracking the 5.0 percent threshold closely.&lt;/p&gt;

&lt;p&gt;This conservatism has real consequences: running &lt;code&gt;correction=True&lt;/code&gt; cuts your effective significance level below 0.02, discarding real feature wins. Methodologists have documented this for decades. A comparative evaluation by Lydersen, Fagerland, and Laake (2009, &lt;em&gt;Statistics in Medicine&lt;/em&gt;) showed that Yates's continuity correction and standard two-sided Fisher's exact test are overly conservative compared with mid-p or &lt;code&gt;N - 1&lt;/code&gt; chi-square alternatives. Ian Campbell similarly showed that Pearson's chi-square with an N - 1 divisor preserves nominal Type I error far better than Yates.&lt;/p&gt;

&lt;p&gt;We adopted three concrete rules for Python analytics:&lt;/p&gt;

&lt;p&gt;First, make parameters explicit. Never call &lt;code&gt;scipy.stats.chi2_contingency&lt;/code&gt; with bare arguments on 2x2 tables. Pass &lt;code&gt;correction=False&lt;/code&gt; to retain Pearson's nominal power, or &lt;code&gt;correction=True&lt;/code&gt; if your protocol mandates Yates.&lt;/p&gt;

&lt;p&gt;Second, harmonize effect sizes. If you compute Cramér's V via &lt;code&gt;scipy.stats.contingency.association&lt;/code&gt;, pass the exact same &lt;code&gt;correction&lt;/code&gt; flag used in your chi-square call to prevent reporting an uncorrected effect size next to a corrected p-value.&lt;/p&gt;

&lt;p&gt;Third, check theoretical expected cell counts directly. Compute &lt;code&gt;E = np.outer(row_sums, col_sums) / N&lt;/code&gt;. If expected counts are healthy, uncorrected Pearson chi-square controls false positives accurately; if expected counts drop near zero, transition deliberately to Fisher's exact test rather than relying on a silent continuity deduction.&lt;/p&gt;

</description>
      <category>python</category>
      <category>scipy</category>
      <category>statistics</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Why Your Python t-Test Disagrees With R (And Why Levene Pre-Testing Fails)</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:31:42 +0000</pubDate>
      <link>https://dev.to/yotta-fish/why-your-python-t-test-disagrees-with-r-and-why-levene-pre-testing-fails-13cd</link>
      <guid>https://dev.to/yotta-fish/why-your-python-t-test-disagrees-with-r-and-why-levene-pre-testing-fails-13cd</guid>
      <description>&lt;p&gt;I spent three hours last week debugging what looked like impossible math in our experiment pipeline. An R analysis flagged a two-sample feature rollout as inconclusive with p = 0.0866. My Python reimplementation, running against the exact same database extract, declared a statistically significant victory with p = 0.00102.&lt;/p&gt;

&lt;p&gt;The observations were identical and group means matched to four decimals, yet R's &lt;code&gt;t.test&lt;/code&gt; and Python's &lt;code&gt;scipy.stats.ttest_ind&lt;/code&gt; gave opposite verdicts. This discrepancy comes from a thirty-year divergence in library defaults, combined with textbook statistical advice that collapses on real data.&lt;/p&gt;




&lt;p&gt;The bug was not in the database query. It was in how each environment handles group variance.&lt;/p&gt;

&lt;p&gt;When you call &lt;code&gt;t.test(a, b)&lt;/code&gt; in R, &lt;code&gt;stats&lt;/code&gt; defaults to &lt;code&gt;var.equal = FALSE&lt;/code&gt;. R runs Welch's t-test, using the Welch–Satterthwaite equation to adjust degrees of freedom downward for unequal variance.&lt;/p&gt;

&lt;p&gt;Passing two arrays straight to &lt;code&gt;ttest_ind&lt;/code&gt; in &lt;code&gt;scipy.stats&lt;/code&gt; leaves &lt;code&gt;equal_var=True&lt;/code&gt; active by default. It runs Student's pooled-variance t-test, pooling sample variances and fixing degrees of freedom at &lt;code&gt;n1 + n2 - 2&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here is the minimal reproduction, verified locally on Python 3.14.3 with NumPy 2.4.4 and SciPy 1.17.1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;scipy&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;

&lt;span class="n"&gt;a&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mf"&gt;14.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;8.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;19.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;6.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;15.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;21.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;9.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;17.6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;5.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;18.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;22.1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;b&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="mf"&gt;10.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mf"&gt;10.7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mf"&gt;10.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.6&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="mf"&gt;10.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.7&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.9&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.3&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.4&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;10.8&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;11.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;student&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ttest_ind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;welch&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ttest_ind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;b&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;equal_var&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Student: t = {student.statistic:.4f}, df = {student.df:.2f}, p = {student.pvalue:.5f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"Welch:   t = {welch.statistic:.4f}, df = {welch.df:.2f}, p = {welch.pvalue:.5f}"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running this script outputs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Student: t = 3.4892, df = 50.00, p = 0.00102
Welch:   t = 1.8812, df = 11.03, p = 0.08658
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Group &lt;code&gt;a&lt;/code&gt; has &lt;code&gt;n = 12&lt;/code&gt;, mean 14.125, and standard deviation 5.787. Group &lt;code&gt;b&lt;/code&gt; has &lt;code&gt;n = 40&lt;/code&gt;, mean 10.980, and standard deviation 0.411. Group &lt;code&gt;a&lt;/code&gt; is small and noisy; group &lt;code&gt;b&lt;/code&gt; is large and tight.&lt;/p&gt;

&lt;p&gt;Student's pooled test weights variances by sample size. Because group &lt;code&gt;b&lt;/code&gt; has 40 observations with tiny variance, the pooled variance collapses. Student's test assigns 50 degrees of freedom, producing an inflated &lt;code&gt;t = 3.4892&lt;/code&gt; with &lt;code&gt;p = 0.00102&lt;/code&gt;—fabricating significance from sample size imbalance.&lt;/p&gt;

&lt;p&gt;Welch's t-test never pools variances. It divides each sample variance by its own sample size. Because the noisy group has only 12 points, the Welch–Satterthwaite formula cuts degrees of freedom from 50 to 11.03, yielding &lt;code&gt;t = 1.8812&lt;/code&gt; with &lt;code&gt;p = 0.08658&lt;/code&gt;. The effect was never significant.&lt;/p&gt;




&lt;p&gt;Engineers often ask: why not run Levene's test first? If Levene's test rejects equal variances at p &amp;lt; 0.05, switch to Welch; otherwise stick with Student. This two-stage workflow is taught in almost every undergraduate stats class. It is also mathematically broken.&lt;/p&gt;

&lt;p&gt;Marie Delacre, Daniël Lakens, and Christophe Leys demonstrated why in a 2017 paper in the International Review of Social Psychology (volume 30, issue 1, pages 92-101). When sample sizes and variances are both unequal, Student's t-test severely inflates Type I error. Yet in small or moderate samples, Levene's pre-test lacks statistical power to detect the disparity. The pre-test fails to sound the alarm precisely when Student's test is most dangerous.&lt;/p&gt;

&lt;p&gt;To verify this, I ran a 20,000-trial simulation under the null hypothesis (mean 0.0 for both groups, nominal alpha = 0.05) using &lt;code&gt;rng = np.random.default_rng(20261123)&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;numpy&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;scipy&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;

&lt;span class="n"&gt;n_trials&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20000&lt;/span&gt;

&lt;span class="c1"&gt;# Condition 1: n1=20, sd1=3.0 vs n2=80, sd2=1.0&lt;/span&gt;
&lt;span class="n"&gt;rng&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;default_rng&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20261123&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;x1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;3.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_trials&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;x2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_trials&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;p_student_1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ttest_ind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;equal_var&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;
&lt;span class="n"&gt;p_welch_1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ttest_ind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;equal_var&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;

&lt;span class="n"&gt;fp_s1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p_student_1&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;fp_w1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p_welch_1&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Condition 1 (n1=20, sd1=3.0 vs n2=80, sd2=1.0):"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"  Student (equal_var=True):  {fp_s1:.4f} ({fp_s1 * 100:.2f}% false positive rate)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"  Welch (equal_var=False):   {fp_w1:.4f} ({fp_w1 * 100:.2f}% false positive rate)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;# Condition 2: n1=12, sd1=2.0 vs n2=36, sd2=1.0 with Levene pre-test&lt;/span&gt;
&lt;span class="n"&gt;rng&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;random&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;default_rng&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20261123&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;x1&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;2.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_trials&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;12&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;x2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rng&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;normal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;size&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_trials&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;36&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;p_student_2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ttest_ind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;equal_var&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;
&lt;span class="n"&gt;p_welch_2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ttest_ind&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;axis&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;equal_var&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;False&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt;

&lt;span class="n"&gt;lev&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;array&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;stats&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;levene&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;x1&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;x2&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;center&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"median"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;pvalue&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n_trials&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;p_2stage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;where&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lev&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p_welch_2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p_student_2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;fp_s2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p_student_2&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;fp_2stage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p_2stage&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;lev_power&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;lev&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;fp_w2&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;np&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;mean&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p_welch_2&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mf"&gt;0.05&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"Condition 2 (n1=12, sd1=2.0 vs n2=36, sd2=1.0):"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"  Student (equal_var=True):  {fp_s2:.4f} ({fp_s2 * 100:.2f}% false positive rate)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"  Two-stage Levene screen:   {fp_2stage:.4f} ({fp_2stage * 100:.2f}% false positive rate)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"  Levene detection power:    {lev_power:.4f} ({lev_power * 100:.2f}%)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"  Welch (equal_var=False):   {fp_w2:.4f} ({fp_w2 * 100:.2f}% false positive rate)"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The empirical results reveal why conditional pre-testing leaks false positives:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Condition 1 (n1=20, sd1=3.0 vs n2=80, sd2=1.0):
  Student (equal_var=True):  0.2498 (24.98% false positive rate)
  Welch (equal_var=False):   0.0497 (4.97% false positive rate)

Condition 2 (n1=12, sd1=2.0 vs n2=36, sd2=1.0):
  Student (equal_var=True):  0.1525 (15.25% false positive rate)
  Two-stage Levene screen:   0.0771 (7.71% false positive rate)
  Levene detection power:    0.6933 (69.33%)
  Welch (equal_var=False):   0.0495 (4.95% false positive rate)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Condition 1, where the smaller cohort has threefold larger variance, Student's default t-test rejects the null in 24.98% of neutral experiments instead of 5%. One in four neutral rollouts is flagged as a false win. Welch's t-test maintains nominal error control at 4.97%.&lt;/p&gt;

&lt;p&gt;In Condition 2, Levene's median-centered test detects the imbalance only 69.33% of the time. The remaining 30.67% falls back to Student's test, leaking a 7.71% false-positive rate. Unconditional Welch holds at 4.95%.&lt;/p&gt;




&lt;p&gt;There is a critical boundary condition here, highlighted in the authors' 2022 Corrigendum (International Review of Social Psychology, volume 35, issue 1, page 21, DOI 10.5334/irsp.661).&lt;/p&gt;

&lt;p&gt;In their 2017 paper, the authors noted that Welch and Student t-tests yield identical test statistics when sample variances are equal. The 2022 Corrigendum clarifies that Student and Welch t-statistics match only when both sample sizes and sample standard deviations are simultaneously equal (&lt;code&gt;n1 == n2&lt;/code&gt; and &lt;code&gt;s1 == s2&lt;/code&gt;). Under unequal group sizes, the degrees of freedom calculation diverges even if sample standard deviations match.&lt;/p&gt;

&lt;p&gt;The Corrigendum also clarifies that while Welch's t-test protects Type I error across unequal variances without power loss under equal variances, it does not resolve severe skewness or extreme outliers. For heavily skewed distributions, trimmed-mean methods like Yuen's test remain necessary.&lt;/p&gt;




&lt;p&gt;If you maintain experimentation pipelines in Python, take three concrete steps:&lt;/p&gt;

&lt;p&gt;First, audit all &lt;code&gt;scipy.stats.ttest_ind&lt;/code&gt; calls. If &lt;code&gt;equal_var=False&lt;/code&gt; is missing, your service defaults to Student's pooled test and will inflate false positives whenever cohort sizes and variances differ.&lt;/p&gt;

&lt;p&gt;Second, retire two-stage Levene pre-tests. Defaulting unconditionally to Welch's t-test costs negligible statistical power under true homoscedasticity while eliminating the Type I error leakage of failed pre-tests.&lt;/p&gt;

&lt;p&gt;Third, log fractional Welch–Satterthwaite degrees of freedom. Seeing &lt;code&gt;df = 11.03&lt;/code&gt; confirms to auditors that the test corrected for unequal group variances.&lt;/p&gt;

&lt;p&gt;Make &lt;code&gt;equal_var=False&lt;/code&gt; your non-negotiable default. Production decisions should never depend on accidental homoscedasticity.&lt;/p&gt;

</description>
      <category>r</category>
    </item>
    <item>
      <title>The shortcut everyone tells you to press is scoped to fields, not citations</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Thu, 03 Sep 2026 12:46:33 +0000</pubDate>
      <link>https://dev.to/yotta-fish/the-shortcut-everyone-tells-you-to-press-is-scoped-to-fields-not-citations-5b9</link>
      <guid>https://dev.to/yotta-fish/the-shortcut-everyone-tells-you-to-press-is-scoped-to-fields-not-citations-5b9</guid>
      <description>&lt;p&gt;Elsevier tells you to select the whole document with &lt;code&gt;Ctrl+A&lt;/code&gt; and press &lt;code&gt;Ctrl+Shift+F9&lt;/code&gt; to strip your reference manager's hidden codes before submitting.&lt;/p&gt;

&lt;p&gt;Microsoft documents that shortcut as: "Unlink a field."&lt;/p&gt;

&lt;p&gt;Not "unlink a citation". A field. And Microsoft's own field-code reference lists TOC, SEQ and REF as fields — your table of contents, your automatic numbering, your cross-references.&lt;/p&gt;

&lt;p&gt;So the published instruction, applied to a whole-document selection, has no citation-only boundary anywhere in it. Nothing in the documentation gives you a reason to expect it to leave those other objects alone.&lt;/p&gt;

&lt;p&gt;I went looking at this because a lot of people run that command in a hurry, near a deadline, on the file they are about to submit — and because the thing everyone thinks they are solving by running it is not actually a problem.&lt;/p&gt;




&lt;p&gt;Let me get that part out of the way first, since it is the usual reason people start down this road.&lt;/p&gt;

&lt;p&gt;A reference list is machine-generated, identically formatted and structurally repetitive, so people assume it is dragging their AI percentage up. It is not, on either side. Turnitin's AI writing report analyses only what it calls qualifying text — prose in standard grammatical sentences — and a release note dated 9 August 2023 separately says bibliographies are excluded when the report is processed.&lt;/p&gt;

&lt;p&gt;If a bibliography is coloured in a report you are holding, the first thing to check is whether you are looking at the Similarity Report rather than the AI writing report. Matching reference entries are what a shared citation style is &lt;em&gt;designed&lt;/em&gt; to produce.&lt;/p&gt;

&lt;p&gt;So the expensive step is not the bibliography. The expensive step is the irreversible command someone told you to run.&lt;/p&gt;




&lt;p&gt;Here is what I found comparing the vendors' own pages. Three reference managers, four add-ins, four different commands — and they do not behave the same way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Zotero&lt;/strong&gt; documents &lt;em&gt;Unlink Citations&lt;/em&gt;, and calls the removal irreversible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EndNote&lt;/strong&gt; documents &lt;em&gt;Convert Citations and Bibliography → Convert to Plain Text&lt;/em&gt;, and explicitly says the command creates a new copy for you. Clarivate's wording on going back is worth quoting, because "irreversible" tends to get read as marketing caution:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Field code removal is a one-way process. Once you've removed EndNote™ field codes, you will need to reinsert the citations or revert to a backup of the document that still has the field codes in it."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Mendeley&lt;/strong&gt; ships two different add-ins, and this is where it gets interesting. The older Citation Plugin used &lt;em&gt;fields&lt;/em&gt; and had an Export command. Mendeley Cite, the newer one, uses different object language entirely: it calls a citation or bibliography a &lt;strong&gt;content control&lt;/strong&gt;, and tells you to right-click the object and choose &lt;em&gt;Remove Content Control&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;That difference matters, because Microsoft's field-shortcut page says nothing about what &lt;code&gt;Ctrl+Shift+F9&lt;/code&gt; does to a content control. If your citations are content controls, the shortcut everyone recommends is documented against a different object type than the one in your document.&lt;/p&gt;

&lt;p&gt;Zotero adds one more axis: its Document Preferences let you store citations as &lt;strong&gt;Fields or Bookmarks&lt;/strong&gt;, advising that unless you need to collaborate with LibreOffice users, "you should always choose Fields". So even within one manager, the object in your file is a setting.&lt;/p&gt;

&lt;p&gt;Fields, bookmarks, or content controls. Three possibilities, three different removal paths, and one keyboard shortcut that people apply to all of them.&lt;/p&gt;




&lt;p&gt;There is a free, instant, completely reversible way to find out what is actually in your file before you run anything irreversible. Same Microsoft page:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Switch between all field codes and their results. Alt+F9"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Press it. Word toggles between field codes and their displayed results. A table of contents exposes a TOC instruction; numbering exposes SEQ; a cross-reference exposes REF. If your citations also show up as field codes, fields are involved. If they don't, that tells you something too — and you should go read your add-in's own page rather than assume.&lt;/p&gt;

&lt;p&gt;It costs one keystroke and it is the only step here you can undo by pressing the same keystroke again.&lt;/p&gt;




&lt;p&gt;One more thing, for anyone whose plan is to reword bibliography entries until they stop matching.&lt;/p&gt;

&lt;p&gt;Set aside whether that is a good idea. Just look at what the software does with the edit. Zotero's page is blunt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Manual edits made to the bibliography in Word will be overwritten the next time Zotero refreshes the document."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And for in-text citations, on the same page: manual modifications prevent Zotero from automatically updating that citation.&lt;/p&gt;

&lt;p&gt;So in a document with live fields there are exactly two outcomes, and neither is the one you wanted. Either the next refresh silently reverts your edit, or the edit sticks and that one citation is now disconnected from the library — meaning the next style change updates every entry except that one.&lt;/p&gt;




&lt;p&gt;The order of operations that keeps this cheap:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Keep a working master.&lt;/strong&gt; Name the delivery copy separately before removing anything. EndNote makes a copy for you; the others do not say they do.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finish all citation work first&lt;/strong&gt; — style changes, added sources, page numbers, prefixes. After flattening, none of it can be done by the manager any more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Refresh once before flattening&lt;/strong&gt;, so what gets frozen is current output rather than something stale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Identify the object, then follow that product's own path.&lt;/strong&gt; Zotero: Unlink Citations. EndNote: Convert to Plain Text. Mendeley Cite: Remove Content Control. Not one generic shortcut for all three.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Press &lt;code&gt;Alt+F9&lt;/code&gt; first&lt;/strong&gt;, and again on anything that comes back to you from any other tool, to confirm your fields are still fields.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And the honest boundary on all of the above: I read the vendors' documentation, I did not run a Word-version test matrix. What I can say is what the pages say — and what they say is that the command is scoped to fields, that at least one major add-in does not use fields, and that going back is not offered.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D214" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/zotero-endnote-citations-and-ai-flags?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D214" rel="noopener noreferrer"&gt;https://humanpen.net/blog/zotero-endnote-citations-and-ai-flags?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D214&lt;/a&gt;&lt;/p&gt;

</description>
      <category>writing</category>
      <category>productivity</category>
      <category>documentation</category>
    </item>
    <item>
      <title>I compiled one .tex file and three PDF extractors gave me three different papers</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Thu, 03 Sep 2026 09:25:05 +0000</pubDate>
      <link>https://dev.to/yotta-fish/i-compiled-one-tex-file-and-three-pdf-extractors-gave-me-three-different-papers-1fpl</link>
      <guid>https://dev.to/yotta-fish/i-compiled-one-tex-file-and-three-pdf-extractors-gave-me-three-different-papers-1fpl</guid>
      <description>&lt;p&gt;I compiled one &lt;code&gt;.tex&lt;/code&gt; file, read the resulting PDF with three different extractors, and got three different papers back.&lt;/p&gt;

&lt;p&gt;Not wildly different. mutool 1.25.6 and PyMuPDF 1.26.0 each returned 694 whitespace-delimited words. pypdf 6.4.0 returned 692. Same file, same machine, same moment.&lt;/p&gt;

&lt;p&gt;A two-word gap sounds like nothing. It is enough to kill the assumption most of us are quietly running on: that the text layer in a PDF is a fixed object, and that whatever reads it sees what you wrote.&lt;/p&gt;

&lt;p&gt;The fixture, so you can argue with it: standard &lt;code&gt;article&lt;/code&gt; class, &lt;code&gt;twocolumn&lt;/code&gt;, 10pt. Abstract, four numbered sections, inline and display maths, an &lt;code&gt;itemize&lt;/code&gt; list, an &lt;code&gt;algorithm&lt;/code&gt; environment with numbered pseudocode, a &lt;code&gt;table&lt;/code&gt; float, a &lt;code&gt;figure&lt;/code&gt; float whose caption is a full sentence, and one footnote long enough to wrap. Compiled with pdfTeX 3.141592653-2.6-1.40.26, TeX Live 2024.&lt;/p&gt;




&lt;p&gt;First surprise: the thing everyone warns you about did not happen.&lt;/p&gt;

&lt;p&gt;The standard advice about two-column PDFs is that extractors read straight across both columns and turn your paper into interleaved nonsense. It didn't. The last sentence of the abstract, at the foot of column one, arrived immediately before the first sentence of the Introduction, at the head of column two. Broad section order held in all three streams.&lt;/p&gt;

&lt;p&gt;One layout, one class, three extractors, one machine — that is the size of that claim. But it held.&lt;/p&gt;

&lt;p&gt;Something else broke instead, and I have seen almost nobody mention it.&lt;/p&gt;

&lt;p&gt;Here is a verbatim run from the PyMuPDF stream, whitespace normalised, nothing removed between the endpoints:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"…justification for treating a visually correct page as a reliable 1This footnote is deliberately long enough to wrap onto a second line so that its position in the extracted stream can be observed and compared with nearby prose. 1 Table 1: Primary o…"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In the source, &lt;code&gt;reliable text stream&lt;/code&gt; is one phrase. In the extraction, a footnote, a bare page number, a table caption and its cells all land &lt;strong&gt;between the two words&lt;/strong&gt;. The bare &lt;code&gt;1&lt;/code&gt; is the page number — nobody reading the PDF sees it as part of either passage.&lt;/p&gt;

&lt;p&gt;Nothing is visibly wrong with that page. It renders perfectly. But "the sentence before" and "the sentence after" are not stable concepts until you know which extractor is reading.&lt;/p&gt;




&lt;p&gt;Then the layout switch, which is the result I found most useful.&lt;/p&gt;

&lt;p&gt;LaTeX hyphenates at line breaks, and a narrow column creates more chances to do it. In the two-column build, PyMuPDF found &lt;strong&gt;22&lt;/strong&gt; split tokens. Six of them:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ex- poses&lt;/code&gt; · &lt;code&gt;differ- ences&lt;/code&gt; · &lt;code&gt;specifica- tions&lt;/code&gt; · &lt;code&gt;observa- tions&lt;/code&gt; · &lt;code&gt;justifica- tion&lt;/code&gt; · &lt;code&gt;partici- pants&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I then compiled the identical source as a single column, changing only the class option. PyMuPDF returned 678 words and &lt;strong&gt;five&lt;/strong&gt; splits: &lt;code&gt;or- dinary&lt;/code&gt;, &lt;code&gt;extrac- tion&lt;/code&gt;, &lt;code&gt;jus- tification&lt;/code&gt;, &lt;code&gt;partici- pants&lt;/code&gt;, &lt;code&gt;par- ticular&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Same source. One option. A different set of words has stopped being words.&lt;/p&gt;

&lt;p&gt;And then the compiler itself. I compiled the same source a third time with XeLaTeX — same two-column layout, same words on the page.&lt;/p&gt;

&lt;p&gt;In the pdfLaTeX build, all three tools exposed zero ligature codepoints. In the XeLaTeX build, PyMuPDF and pypdf each exposed six — &lt;code&gt;aﬀiliated&lt;/code&gt;, &lt;code&gt;aﬀiliation&lt;/code&gt;, &lt;code&gt;diﬀicult&lt;/code&gt;, &lt;code&gt;eﬀiciency&lt;/code&gt;, &lt;code&gt;insuﬀicient&lt;/code&gt;, &lt;code&gt;oﬀice&lt;/code&gt; — while mutool exposed zero, because it normalised those glyphs back to ordinary letters.&lt;/p&gt;

&lt;p&gt;The maths went the other way. In the pdfTeX file, mutool returned a Unicode replacement character for the summation sign; PyMuPDF and pypdf returned a capital &lt;code&gt;X&lt;/code&gt;. In the XeLaTeX file, all three returned an actual &lt;code&gt;∑&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So: the compiler shapes the characters, and then the extractor shapes them again.&lt;/p&gt;




&lt;p&gt;One more, and this one has practical consequences beyond curiosity.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;\cite{smith2019,jones2020}&lt;/code&gt; arrived in the extraction as four characters: &lt;code&gt;[1, 2]&lt;/code&gt;. &lt;code&gt;\ref{sec:method}&lt;/code&gt; arrived as &lt;code&gt;2&lt;/code&gt;. &lt;code&gt;\label&lt;/code&gt; left nothing at all. Section headings arrived as number and title separated, so &lt;code&gt;2 Method&lt;/code&gt; sits in the stream directly after the previous sentence.&lt;/p&gt;

&lt;p&gt;Which means any plan you have that depends on citation &lt;em&gt;formatting&lt;/em&gt; is acting on something that isn't there. There is no citation object in the extracted text. There are brackets and digits.&lt;/p&gt;




&lt;p&gt;You do not need any of the tools I used to check your own paper. Open your compiled PDF in whatever viewer you have, select all, paste into a plain text editor. That is one more extraction path, not a proxy for anything official — but it shows you problems in the text layer you are actually shipping.&lt;/p&gt;

&lt;p&gt;Read it for these four, in this order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Split words.&lt;/strong&gt; Search for a hyphen followed by a line break. Every hit is a word that has stopped being one word.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where your floats landed.&lt;/strong&gt; Find a table caption and read the two sentences around it. If the caption and cells have landed inside a paragraph, that is the reading order for that paragraph.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your captions.&lt;/strong&gt; If a caption is a full grammatical sentence, it reads as prose, because it is prose.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The maths.&lt;/strong&gt; Read one display equation in the pasted text. Whatever you see is what an extractor got. Missing or wrong characters are a fact about your font embedding.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your &lt;code&gt;.tex&lt;/code&gt; lives in Git or Overleaf, do this once per major revision rather than once at the end.&lt;/p&gt;

&lt;p&gt;The boundary on all of the above, stated plainly: this is one fixture, one class file, one machine, three named local extractors with pinned versions. It says nothing about what any particular service's private extraction chain sees, and I am not claiming it moves any number anywhere. The narrow, checkable claim is the one worth carrying: &lt;strong&gt;the text layer is a product of the compile, and different extractors expose different characters from the same PDF.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And if sentences have to change, the answer for a LaTeX paper is boring and correct — change the source, recompile, never edit the PDF. The sentence lives in the &lt;code&gt;.tex&lt;/code&gt;. Everything else is a rendering of it.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D211" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/overleaf-latex-turnitin-ai-detection?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D211" rel="noopener noreferrer"&gt;https://humanpen.net/blog/overleaf-latex-turnitin-ai-detection?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D211&lt;/a&gt;&lt;/p&gt;

</description>
      <category>pdf</category>
      <category>writing</category>
      <category>ai</category>
    </item>
    <item>
      <title>Google has never used the word "paste" on any page about Docs version history</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Thu, 03 Sep 2026 08:22:09 +0000</pubDate>
      <link>https://dev.to/yotta-fish/google-has-never-used-the-word-paste-on-any-page-about-docs-version-history-13p2</link>
      <guid>https://dev.to/yotta-fish/google-has-never-used-the-word-paste-on-any-page-about-docs-version-history-13p2</guid>
      <description>&lt;p&gt;I went looking for whether a large paste shows up in Google Docs version history. It turns out Google has never once used the word.&lt;/p&gt;

&lt;p&gt;Not "paste". Not "clipboard". Not "keystroke". Zero hits across the four help pages that describe the record — version history, Drive file versions and activity, Office editing, and the page on creating, viewing and downloading a file — expanded so every collapsed section was open.&lt;/p&gt;

&lt;p&gt;Before that reads as a broken search: the instrument works. Run the same counter over Google's own page about copying and pasting text and images and &lt;code&gt;paste&lt;/code&gt; comes back 46 times. Run it over the Gemini in Docs page and &lt;code&gt;Gemini&lt;/code&gt; comes back 24. The zeros are real absences.&lt;/p&gt;

&lt;p&gt;This matters because of a conversation that happens a lot right now. Somebody points at a version history timeline and says either "you can see this was written" or "you can see this was pasted in", and both of them are assuming the tool has an opinion about it.&lt;/p&gt;

&lt;p&gt;It doesn't. Or rather: Google has never published one.&lt;/p&gt;




&lt;p&gt;And here is the part I did not expect, which is why I am writing this down.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The absence runs in both directions.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to argue "look, no paste event, I typed this" — that is a claim about a feature Google does not describe, made to somebody who can open the same panel and check. It does not hold.&lt;/p&gt;

&lt;p&gt;But if someone looks at your history and says a particular jump proves text was pasted in, that reading has exactly the same problem. It is an interpretation of a panel whose segmentation rules the vendor has never published. Nobody gets to read it confidently in either direction.&lt;/p&gt;

&lt;p&gt;That symmetry is the useful thing to carry into a meeting, and it is the opposite of what most advice on this topic tells you.&lt;/p&gt;

&lt;p&gt;It gets worse for the "you can see I typed it" argument, because Google documents that the record is lossy on purpose:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"The revisions for your file may occasionally be merged."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That sentence lives under a heading called "Unable to see a previous version of your file?", which tells you exactly what it is there to explain. Entries you expected to find are sometimes not separate entries.&lt;/p&gt;

&lt;p&gt;Google's own remedy is naming, and it says so in the same breath: "You can create a named version to track your version history and make sure your versions aren't merged." Up to 40 named versions per document.&lt;/p&gt;




&lt;p&gt;Three more things I found while counting, each of which will catch somebody.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Per-paragraph attribution is a paid feature.&lt;/strong&gt; There is a right-click &lt;em&gt;Show editors&lt;/em&gt; that answers the question a group project actually asks — not "when did this change" but "who wrote this paragraph". Read the line above it first:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Important: This feature is available to only Google Workspace Business Standard, Business Plus, Enterprise Standard, Enterprise Plus, and Education Plus customers."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Education Plus is the only education entry on that list. If your institution is on a different edition, or you are in a personal account, that menu item does not exist for you. The version list still works; the per-passage attribution does not. Check the right-click menu on your own account today rather than the night before you need it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;There are two different records, and which one you are in depends on the file.&lt;/strong&gt; Google flags this itself, in bold: "Version history for Google Docs, Sheets, and Slides is different than history for .pdf files, images, and other files stored in Drive."&lt;/p&gt;

&lt;p&gt;The Drive one — the one for files you uploaded — has published limits, and they are exactly the numbers people wrongly attach to native Docs:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"A version might be permanently deleted after 30 days or if there are 100 newer versions."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So if your process was "write in Word, drop the .docx into Drive every few days as a backup", what you built is a Drive file-version stack with a rolling deletion rule on it, not a Google Docs history. There is a &lt;em&gt;Keep forever&lt;/em&gt; in the Manage versions menu. Pin the earliest two or three now — it takes a minute per file, and it is the only thing in this whole area with a published expiry.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In Office editing mode, one route is closed.&lt;/strong&gt; If you never converted, and you are editing the .docx directly in Docs, version history still exists — but Google lists this among the features that are not available:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Under "Version History," make a copy of an old version of the document&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Making a copy of an old version is the standard way to get one dated state out of the panel and into an email attachment. On a .docx in Office editing mode, that is gone.&lt;/p&gt;




&lt;p&gt;So, the four things actually worth doing, none of which take long:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Open the panel and scroll to the bottom.&lt;/strong&gt; The date on the oldest entry that is actually there — not the date you started — is what your history covers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Name a version at the end of each real work session.&lt;/strong&gt; Date plus two words. It stops merging, and per Google's own description of the delete commands, a named version also survives &lt;em&gt;Delete all versions&lt;/em&gt;, which "can remove all versions of your document that have not been explicitly named".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check whether Show editors exists on your account.&lt;/strong&gt; Select a paragraph, right-click, look.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If your drafts are uploaded files rather than native Docs, pin the early ones.&lt;/strong&gt; Manage versions → Keep forever.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One last thing on offline work, because it produces the pattern people misread. Google says offline changes "will save to your device as you enter text, and will save to Drive once reconnected". What it does not document is what timestamp those versions end up carrying. So a long gap followed by a large arrival has at least one entirely ordinary explanation — and, like the paste question, it is not a pattern anyone can read confidently in either direction.&lt;/p&gt;

&lt;p&gt;Everything above is either already true of your document or already false of it. There is nothing here you can switch on retroactively, which is the only real reason to read it before you need it.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D209" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/google-docs-version-history-ai-flag?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D209" rel="noopener noreferrer"&gt;https://humanpen.net/blog/google-docs-version-history-ai-flag?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D209&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>productivity</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Turnitin's policy on code is one sentence, filed under a question about handwriting</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Thu, 03 Sep 2026 06:44:54 +0000</pubDate>
      <link>https://dev.to/yotta-fish/turnitins-policy-on-code-is-one-sentence-filed-under-a-question-about-handwriting-261g</link>
      <guid>https://dev.to/yotta-fish/turnitins-policy-on-code-is-one-sentence-filed-under-a-question-about-handwriting-261g</guid>
      <description>&lt;p&gt;I went looking for what Turnitin says about code, expecting to find nothing. What I found was one sentence, and it is filed in a place you would never look for it.&lt;/p&gt;

&lt;p&gt;The sentence is: "we are not pursuing ChatGPT code detection at this time."&lt;/p&gt;

&lt;p&gt;It is not in the code section, because there isn't one. It is the last line of the answer to a completely different question — "Why is AI detection not being added to Gradescope?" The rest of that answer is about handwriting. Someone appended the code policy to it and moved on.&lt;/p&gt;

&lt;p&gt;That is a strange place for it, and worth knowing, because Gradescope is where a lot of programming coursework gets handed in. If your implementation goes to an autograder and your written report goes to a Turnitin assignment, those are two pipelines doing two jobs, and the AI writing percentage you eventually see was computed on the second one only.&lt;/p&gt;

&lt;p&gt;The other sentence, the one in the FAQ where you would expect it, says the model "does not reliably detect AI-generated text in the form of non-prose, or code, nor does it detect short-form/unconventional writing such as bullet points (short non-sentence structures)."&lt;/p&gt;

&lt;p&gt;Read one line further, though. That is where it stops being trivia:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"This means that a document containing several different writing types would result in a disparity between the percentage and the highlights."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;A coursework report is a document containing several different writing types by construction. So that disparity is not a bug you have hit. It is the normal state for this genre.&lt;/p&gt;




&lt;p&gt;Here is what that means in practice, and it took me a while to see it properly.&lt;/p&gt;

&lt;p&gt;Your report is two documents stapled together. One of them is listings, pseudocode, terminal transcripts, config, tables. The other is the prose between them: the design rationale, the algorithm walk-through, the complexity analysis, the evaluation discussion.&lt;/p&gt;

&lt;p&gt;Only the second one is being measured. Turnitin defines it as "individual sentences contained in paragraphs that make up a longer piece of written work, such as an essay, a dissertation, or an article, etc." Your listings are not in the denominator. The FAQ says so directly: "This percentage is not necessarily the percentage of the entire submission."&lt;/p&gt;

&lt;p&gt;So the number is a statement about a slice of your file, not your file. If your report is listing-heavy, that slice can be small. There is even a floor — a submission needs at least 300 words of prose in long-form format before a report is generated at all, which a page-heavy but prose-light report can sit under while looking perfectly substantial.&lt;/p&gt;

&lt;p&gt;And now the part that actually bothered me.&lt;/p&gt;

&lt;p&gt;The prose that &lt;em&gt;is&lt;/em&gt; measured is the most uniform prose in the document. Turnitin publishes what its false positives tend to have in common: "content without a lot of structural variation, text that literally repeats itself, or text that has been paraphrased without developing new ideas."&lt;/p&gt;

&lt;p&gt;Read that against a well-written technical document. Structural variation is the thing a reference section deliberately removes. Every function gets the same frame — name, parameters, return value, failure modes — so a reader who learns the frame once can skim the rest. Saying it the same way twice is how you tell a reader that two components behave the same way. A style guide telling you to vary the shape of each entry would be a bad style guide.&lt;/p&gt;

&lt;p&gt;The algorithm walk-through has the same shape for a different reason: it restates in English what the listing above it already says, and restating something has nowhere to go stylistically. Every step opens with the step. Every sentence has the same subject. The paragraph is a transcript of control flow.&lt;/p&gt;

&lt;p&gt;Two honest limits on that. Turnitin gives no frequency for those properties — only a list of what false positives "can include" — so nobody can tell you how much of the effect this accounts for. And you cannot reason backwards from the model, because the FAQ also says it "is not explicitly programmed to evaluate specific signals such as 'burstiness,' 'perplexity,' or other individual metrics sometimes referenced in public discussions."&lt;/p&gt;




&lt;p&gt;But the reason I am writing this is the asymmetry, which gets much less attention than the percentage does.&lt;/p&gt;

&lt;p&gt;The half of your report that is &lt;em&gt;excluded&lt;/em&gt; from the measurement is not inert background. It is the half where one changed character makes the document wrong. And a revision pass — yours, a co-author's, a tool's — reads it whether or not anyone is scoring it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;getUser&lt;/code&gt; quietly becoming &lt;code&gt;get_user&lt;/code&gt; means your prose now names a function your code does not define. A command with a flag reworded is a command that no longer runs. A log line inside quotation marks is a quotation, and rewording it makes it a fabrication. None of this is visible on a read-through, because it all reads perfectly well.&lt;/p&gt;

&lt;p&gt;There is a subtler one. A technical document gives one concept one name. If a pass leaves &lt;code&gt;hash map&lt;/code&gt; in section 3 and &lt;code&gt;dictionary&lt;/code&gt; in section 4 for the same object, or alternates &lt;code&gt;worker&lt;/code&gt; and &lt;code&gt;thread&lt;/code&gt;, the document has stopped telling the reader whether those are one thing or two — and a marker cannot resolve it without reading your code. No score enters into that in either direction. It is just damage.&lt;/p&gt;

&lt;p&gt;It cuts against a habit that serves you everywhere else. In most writing a defined term is a word choice. In this genre it is closer to an identifier.&lt;/p&gt;

&lt;p&gt;So the checking pass I would actually run, in this order:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Copy every command out of the document and run it in a scratch directory. Setup instructions rot first and get reread last.&lt;/li&gt;
&lt;li&gt;List the identifiers your code defines and grep the document for each one. Anything in the code and missing from the prose is a rename that happened without you.&lt;/li&gt;
&lt;li&gt;Pick your five load-bearing concept terms and search each. One name per concept, everywhere.&lt;/li&gt;
&lt;li&gt;Read every complexity claim against the function it describes. &lt;code&gt;O(n log n)&lt;/code&gt; and "efficient" are not interchangeable, and only one of them is markable.&lt;/li&gt;
&lt;li&gt;Diff anything inside quotation marks against a real run. Log lines and error messages are quotations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One last thing, and it is Turnitin's sentence rather than mine: the model "may not always be accurate (it may misidentify human-written, AI-generated, and AI-paraphrased text), so it should not be used as the sole basis for adverse actions against a student."&lt;/p&gt;

&lt;p&gt;And separately from all of the above: what your department permits you to generate is set by its academic integrity policy, not by what a detector measures. Those are two different documents, and answering one does not answer the other.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D206" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/computer-science-report-ai-detection?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D206" rel="noopener noreferrer"&gt;https://humanpen.net/blog/computer-science-report-ai-detection?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D206&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>documentation</category>
      <category>career</category>
    </item>
    <item>
      <title>Does editGPT Preserve Citations and Track Changes? A DOCX Test You Can Run</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Sun, 30 Aug 2026 17:42:22 +0000</pubDate>
      <link>https://dev.to/yotta-fish/does-editgpt-preserve-citations-and-track-changes-a-docx-test-you-can-run-2ko6</link>
      <guid>https://dev.to/yotta-fish/does-editgpt-preserve-citations-and-track-changes-a-docx-test-you-can-run-2ko6</guid>
      <description>&lt;h1&gt;
  
  
  Does editGPT Preserve Citations and Track Changes? A DOCX Test You Can Run
&lt;/h1&gt;

&lt;p&gt;Does editGPT preserve citations? Its &lt;a href="https://editgpt.app/" rel="noopener noreferrer"&gt;public Word workflow&lt;/a&gt; says you can import a Word document, edit it with AI, and export a DOCX with Track Changes. That means the output can show a trail of edits. It does not, by itself, prove that citations, numbers, tables, formatting, or revisions already present in the file were preserved. Those need a before-and-after DOCX test.&lt;/p&gt;

&lt;p&gt;That distinction matters most for academic writing. Track Changes can tell you that a sentence was replaced. It cannot tell you that a citation still supports the same claim, that &lt;code&gt;0.48&lt;/code&gt; kept its role as a coefficient rather than becoming a sample proportion, or that an old supervisor deletion remained separate from a new AI edit.&lt;/p&gt;

&lt;p&gt;The same page names bold and italics as examples of formatting support. It does not turn the phrase that follows, &lt;code&gt;and more&lt;/code&gt;, into a specification for every Word object. A returned &lt;code&gt;.docx&lt;/code&gt; and an intact academic document are two different acceptance gates.&lt;/p&gt;

&lt;p&gt;I would test them separately.&lt;/p&gt;




&lt;p&gt;Start with a disposable copy of a real document that you are authorized to upload. Do not use a clean paragraph. Give the file the same kinds of fragile objects that your actual submission contains.&lt;/p&gt;

&lt;p&gt;Put these six things in the sample:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;One real citation attached to one specific claim, plus its reference-list entry.&lt;/li&gt;
&lt;li&gt;Two numbers with different jobs, such as a sample size and a measured result with a sign, decimal, unit, and date.&lt;/li&gt;
&lt;li&gt;A small table with a known row and column count and two cells you can identify by coordinates.&lt;/li&gt;
&lt;li&gt;One pending Word insertion and one pending deletion created before the import.&lt;/li&gt;
&lt;li&gt;One bold span and one italic span, each applied to a distinctive phrase.&lt;/li&gt;
&lt;li&gt;A plain sentence outside the intended edit area, so you can tell whether the request changed more than expected.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keep the original untouched. Record the filename, file size, Word version, and whether the document opens without a repair warning. Open the Reviewing pane and take a screenshot of the two existing revisions. This is your baseline, not busywork. Without it, a returned file can look fine while quietly changing the history underneath.&lt;/p&gt;

&lt;p&gt;The citation needs more than a string check. Record the final six words of the claim it supports and the citation immediately following that claim. After the round trip, verify the author, year, locator, punctuation, and reference entry. Then check the attachment: does the citation still follow the same claim?&lt;/p&gt;

&lt;p&gt;A citation can survive character for character and still fail if it moves to the next sentence.&lt;/p&gt;

&lt;p&gt;Do the same for numbers. Write down each value, its unit, and its sentence role. &lt;code&gt;128 participants&lt;/code&gt; and &lt;code&gt;12.8 percent&lt;/code&gt; share digits but make different claims. A fluent rewrite that swaps their roles is not preserved just because both numbers remain somewhere in the file.&lt;/p&gt;

&lt;p&gt;For the table, record its dimensions and two sentinel cells, for example row 2, column 1 and row 3, column 3. After export, count the rows and columns again. Check the two cells by position, not by searching for their text elsewhere in the document. If the table contains a subtotal, recalculate it from the returned cells.&lt;/p&gt;




&lt;p&gt;Use one bounded edit request. Do not change the mode, prompt, and file at the same time. If the interface offers settings, record them before you start. Export the result as DOCX, then inspect the file in Word rather than relying on a browser preview.&lt;/p&gt;

&lt;p&gt;Here is the ledger I would use:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Baseline to record&lt;/th&gt;
&lt;th&gt;Pass condition in the returned DOCX&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Citation attachment&lt;/td&gt;
&lt;td&gt;Exact citation, supported claim ending, and reference entry&lt;/td&gt;
&lt;td&gt;Citation is unchanged and still belongs to the same claim&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Numeric roles&lt;/td&gt;
&lt;td&gt;Value, sign, decimal, unit, date, and sentence role&lt;/td&gt;
&lt;td&gt;Every token and its meaning remain attached&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Table geometry&lt;/td&gt;
&lt;td&gt;Row count, column count, two coordinate-addressed cells, and any subtotal&lt;/td&gt;
&lt;td&gt;Shape and cell positions match; subtotal still recalculates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bold and italics&lt;/td&gt;
&lt;td&gt;Exact styled phrases&lt;/td&gt;
&lt;td&gt;Each style remains on the same words&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Existing Track Changes&lt;/td&gt;
&lt;td&gt;One old insertion and one old deletion, with anchor text and author label&lt;/td&gt;
&lt;td&gt;Both remain pending and distinguishable from new edits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Returned file state&lt;/td&gt;
&lt;td&gt;DOCX suffix, clean open, editable state, and original file size&lt;/td&gt;
&lt;td&gt;File opens without repair and can still be edited, saved, closed, and reopened&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope sentinel&lt;/td&gt;
&lt;td&gt;Exact sentence outside the requested edit&lt;/td&gt;
&lt;td&gt;Sentence remains unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The revision-history row deserves its own pass. In Word's Reviewing pane, separate edits that existed before upload from edits introduced during the editGPT round trip. Confirm that the old insertion and deletion are still pending, still attached to the same text, and still usable. Then accept or reject one new edit, save the document under a new name, close Word, and reopen it.&lt;/p&gt;

&lt;p&gt;That last reopen catches a different failure class. A file may display correctly once but lose editability or ask Word to repair its contents after saving. The deliverable is not finished until it survives that cycle.&lt;/p&gt;

&lt;p&gt;Do not collapse the ledger into one score. Six clean rows do not cancel a moved citation. The failed object is the result. It tells you whether this workflow fits the document you actually need to submit.&lt;/p&gt;




&lt;p&gt;This test also has limits. One passing DOCX supports one file shape, one request, one set of options, and one product state. It does not prove that every reference manager, field, footnote, equation, comment, or complex table will behave the same way. Add those objects when they matter to your own document.&lt;/p&gt;

&lt;p&gt;Use non-sensitive material unless your rules allow the upload. editGPT's &lt;a href="https://editgpt.app/legal/privacy" rel="noopener noreferrer"&gt;Privacy Policy&lt;/a&gt; says submitted text and files are used to provide the service. It separately says documents, files, and submitted text are not used for training. Its deletion statement is narrower: when a user deletes a document or file, that document or file is permanently removed from the servers. Those are the vendor's policy statements, not an independent security or deletion audit. Your course, client, publisher, or institution may impose a stricter rule.&lt;/p&gt;

&lt;p&gt;I did not upload a file to editGPT, run its editor, or test an export for this article. There is no preservation result or detector result to report. The public claim is specific enough to design a fair test. Only the returned file can answer whether your citation, table, revisions, and editable document state survived it.&lt;/p&gt;

&lt;p&gt;Track Changes helps you review what changed. The ledger tells you whether the document still means and behaves the way it did before.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d166" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/editgpt-ai-rewriter-review?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d166" rel="noopener noreferrer"&gt;https://humanpen.net/blog/editgpt-ai-rewriter-review?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d166&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>testing</category>
      <category>productivity</category>
    </item>
    <item>
      <title>GPTHuman's Own Scores Cannot Verify Facts or Citations. Here's a Deterministic Test</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Sun, 30 Aug 2026 09:37:12 +0000</pubDate>
      <link>https://dev.to/yotta-fish/gpthumans-own-scores-cannot-verify-facts-or-citations-heres-a-deterministic-test-kkh</link>
      <guid>https://dev.to/yotta-fish/gpthumans-own-scores-cannot-verify-facts-or-citations-heres-a-deterministic-test-kkh</guid>
      <description>&lt;h1&gt;
  
  
  GPTHuman's Own Scores Cannot Verify Facts or Citations. Here's a Deterministic Test
&lt;/h1&gt;

&lt;p&gt;This week I opened GPTHuman's output-quality page to find out what its three scores were supposed to settle. I copied &lt;code&gt;Human Score&lt;/code&gt;, &lt;code&gt;Similarity Score&lt;/code&gt;, and &lt;code&gt;Readability Score&lt;/code&gt; into my notes, then tried to add a fourth column: did the evidence survive?&lt;/p&gt;

&lt;p&gt;That column stayed blank.&lt;/p&gt;

&lt;p&gt;GPTHuman's own &lt;a href="https://help.gpthuman.ai/understand-ai-humanizers/how-does-gpt-human-evaluate-output-quality" rel="noopener noreferrer"&gt;output-quality guide&lt;/a&gt; says the three numbers describe different features of the result and that none is a complete quality measure. It also says they do not independently verify factual accuracy, quotations, citations, plagiarism, policy compliance, authorship, or the verdict of an outside detector.&lt;/p&gt;

&lt;p&gt;That is a useful limitation, not a footnote to skip. It tells you what kind of test to build.&lt;/p&gt;

&lt;p&gt;The Human Score concerns patterns that GPTHuman's system associates with human-like writing. Similarity concerns how closely the result resembles the source. Readability uses the Flesch-Kincaid method to estimate how easy the text is to read. A result can look strong on all three and still change &lt;code&gt;not&lt;/code&gt; to nothing, move a citation to the wrong claim, or reverse a threshold.&lt;/p&gt;

&lt;p&gt;So I would not use any of those scores as the acceptance criterion. I would give the tool a source with facts that have only one correct answer, then mark each answer pass or fail.&lt;/p&gt;




&lt;p&gt;Here is the source. It is 83 whitespace-delimited tokens. The name, event, and figures are invented, so no real paper or private data needs to enter the test.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Rivera (2025, p. 12) wrote, "Batch A stayed below 4.75 ms." The audit covered 128 records on 12 March 2025. Batch A contained 64 records and 9 exceptions; Batch B contained 64 records and 8 exceptions. The combined exception rate was 13.28% (17/128). The rate applies only when room temperature is at or below 21.5 C. Because the sensor failed after record 96, records 97-128 were excluded from the latency average but remained in the exception count. The conclusion is preliminary, not final.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Put this table directly under it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Cohort&lt;/th&gt;
&lt;th&gt;Records&lt;/th&gt;
&lt;th&gt;Exceptions&lt;/th&gt;
&lt;th&gt;Rate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Batch A&lt;/td&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;td&gt;14.06%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Batch B&lt;/td&gt;
&lt;td&gt;64&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;12.50%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All&lt;/td&gt;
&lt;td&gt;128&lt;/td&gt;
&lt;td&gt;17&lt;/td&gt;
&lt;td&gt;13.28%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The paragraph is short on purpose. GPTHuman's &lt;a href="https://help.gpthuman.ai/understand-ai-humanizers/does-gpt-human-preserve-the-original-meaning" rel="noopener noreferrer"&gt;meaning-preservation guide&lt;/a&gt; warns that exact preservation cannot be assumed in every passage. It specifically tells users to check names, dates, numbers, units, quotations, citations, conditions, exceptions, and qualifications. This fixture puts most of those failure points into a space you can inspect in a few minutes.&lt;/p&gt;

&lt;p&gt;Here is the ledger I would use:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;Fixed baseline&lt;/th&gt;
&lt;th&gt;Pass condition&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Citation&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Rivera (2025, p. 12)&lt;/code&gt; belongs to the sentence that follows&lt;/td&gt;
&lt;td&gt;Author, year, locator, and attachment stay unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quotation&lt;/td&gt;
&lt;td&gt;&lt;code&gt;"Batch A stayed below 4.75 ms."&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Quotation marks and every word inside them stay unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dates&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;2025&lt;/code&gt; and &lt;code&gt;12 March 2025&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Both dates keep their value and role&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Units&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;4.75 ms&lt;/code&gt; and &lt;code&gt;21.5 C&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Values remain attached to the same units&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arithmetic&lt;/td&gt;
&lt;td&gt;9/64 = 14.06%, 8/64 = 12.50%, 17/128 = 13.28%&lt;/td&gt;
&lt;td&gt;All three rates still recalculate after rounding to two decimals&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Condition&lt;/td&gt;
&lt;td&gt;The rate applies only at or below 21.5 C&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;only&lt;/code&gt;, the downward direction, and the inclusive 21.5 C boundary all remain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Exclusion&lt;/td&gt;
&lt;td&gt;Records 97-128 leave the latency average but stay in the exception count&lt;/td&gt;
&lt;td&gt;The two populations are not merged, swapped, or shortened&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qualification&lt;/td&gt;
&lt;td&gt;The conclusion is preliminary, not final&lt;/td&gt;
&lt;td&gt;Uncertainty is not promoted into certainty&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Table&lt;/td&gt;
&lt;td&gt;Four headers, three rows, twelve body cells, fixed row order&lt;/td&gt;
&lt;td&gt;Every label, value, and position survives&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is intentionally unforgiving. If the output changes &lt;code&gt;13.28%&lt;/code&gt; to &lt;code&gt;13.3%&lt;/code&gt;, that may be acceptable for some jobs, but it fails this fixture because the baseline asked for two decimal places. If &lt;code&gt;at or below&lt;/code&gt; becomes &lt;code&gt;below&lt;/code&gt;, the new sentence excludes exactly 21.5 C. That fails too. Fluent prose does not get to overrule the source.&lt;/p&gt;

&lt;p&gt;Do not merge the nine rows into a single percentage. A pass rate of eight out of nine hides whether the failed row was a table label or the word &lt;code&gt;not&lt;/code&gt;. Keep the failure attached to the thing that changed.&lt;/p&gt;




&lt;p&gt;The setup around the run matters as much as the text. Save an untouched copy first. Record the language, mode, plan, date, and whether the source was pasted or imported. Change one setting at a time. Save each result under a new filename.&lt;/p&gt;

&lt;p&gt;Then compare exact tokens before judging style. Recalculate the three rates. Read the condition, exclusion, and qualification as logic, not as approximate meaning. Count the table cells after copying the result out of the browser.&lt;/p&gt;

&lt;p&gt;GPTHuman's &lt;a href="https://help.gpthuman.ai/understand-ai-humanizers/gpt-human-testing-limitations-and-evidence" rel="noopener noreferrer"&gt;testing guidance&lt;/a&gt; makes the same separation at a broader level. It says meaning preservation, factual consistency, readability, language quality, originality, and named-detector results answer different questions. The page does not publish a universal independently verified bypass rate, and it says a defensible detector report needs a defined sample set, settings, detector versions, date, threshold, and complete outcomes.&lt;/p&gt;

&lt;p&gt;I did not run GPTHuman or a detector for this article. There is no pass rate to report. The point is to define the test before seeing the output, so a pleasant result cannot quietly move the goalposts.&lt;/p&gt;

&lt;p&gt;One successful run would still support only a narrow claim: this fixture passed under this language, mode, input route, plan, and date. It would not establish that every citation survives, every subject behaves the same way, or a future detector will agree.&lt;/p&gt;

&lt;p&gt;GPTHuman's &lt;a href="https://gpthuman.ai/academic-integrity-responsible-use/" rel="noopener noreferrer"&gt;responsible-use page&lt;/a&gt; also tells users to verify facts, calculations, quotations, and citations and to follow the rules that apply to the work. That last part stays outside the ledger. A technically preserved result can still be disallowed by a course, employer, publisher, or client.&lt;/p&gt;

&lt;p&gt;The three scores can help you inspect an output. They cannot approve it. For evidence-heavy writing, the boring little ledger is the more useful result.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d163" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/gpthuman-ai-humanizer-review?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d163" rel="noopener noreferrer"&gt;https://humanpen.net/blog/gpthuman-ai-humanizer-review?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d163&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>testing</category>
      <category>productivity</category>
    </item>
    <item>
      <title>I put three Turnitin update pages side by side. They were tracking different things</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Sun, 30 Aug 2026 07:27:41 +0000</pubDate>
      <link>https://dev.to/yotta-fish/i-put-three-turnitin-update-pages-side-by-side-they-were-tracking-different-things-2h45</link>
      <guid>https://dev.to/yotta-fish/i-put-three-turnitin-update-pages-side-by-side-they-were-tracking-different-things-2h45</guid>
      <description>&lt;h1&gt;
  
  
  I put three Turnitin update pages side by side. They were tracking different things
&lt;/h1&gt;

&lt;p&gt;I put Turnitin's three update pages side by side and searched each one for the same 2026 dates.&lt;/p&gt;

&lt;p&gt;The page titled &lt;code&gt;AI writing detection model&lt;/code&gt; had February 12 and May 5. It had no July architecture statement, no August 4 category merge, and no August 18 Arabic launch. Those two August entries were in &lt;code&gt;Turnitin release notes&lt;/code&gt;. The &lt;code&gt;Turnitin product updates&lt;/code&gt; page carried them too, with rollout details that the shorter release entries did not include.&lt;/p&gt;

&lt;p&gt;That was the point where "the release notes say" stopped being a usable source label.&lt;/p&gt;

&lt;p&gt;The phrase sounds precise, but it can point to three pages doing three different jobs. The model log records dated changes to detection behavior. The general release page mixes AI Writing Report changes with releases for other Turnitin products. The product updates page adds scope and the vendor's reason for a change, but it is not a complete model history.&lt;/p&gt;

&lt;p&gt;A fourth tab supplied the entry none of those three pages carried. Turnitin's &lt;code&gt;AI writing detection capabilities FAQ&lt;/code&gt; contains a July 2026 architecture statement. It says Turnitin replaced an ensemble of multiple models with one model. There is no day attached to it, and the statement does not appear in the model log.&lt;/p&gt;

&lt;p&gt;One supposed changelog had become a reconstruction from four pages.&lt;/p&gt;




&lt;p&gt;Once the sources were separated, the 2026 sequence made more sense.&lt;/p&gt;

&lt;p&gt;On February 12, Turnitin said it updated the AI writing detection model to improve recall while keeping its false-positive rate low. The settings and report highlighting did not change. Previously generated reports were not recalculated, so an existing file had to be resubmitted to use the updated model.&lt;/p&gt;

&lt;p&gt;On May 5, the Spanish-language model was updated to detect content from newer GPT and Gemini model families. This was limited to Spanish submissions. Again, the report interface stayed the same and old reports did not change unless the file was resubmitted.&lt;/p&gt;

&lt;p&gt;The July FAQ entry concerns architecture. It does not provide a version number or a before-and-after score table. It also does not turn the separate English, Spanish, Japanese, and Arabic detectors into one multilingual model. The August Arabic release still describes those language models as separate.&lt;/p&gt;

&lt;p&gt;Then the visible report changed. On August 4, the English AI Writing Report combined its blue and purple categories into one blue category. Turnitin said detection of text that may have been AI-generated and then processed by a paraphraser or bypasser remained in place. The display changed. The documented capability did not disappear. Older reports keep the old colors until the file is resubmitted.&lt;/p&gt;

&lt;p&gt;On August 18, Modern Standard Arabic joined English, Spanish, and Japanese as a supported language. Turnitin described the Arabic detector as a separate model. The institution still needs the AI writing detection feature licensed and enabled, and the rollout also covers enabled iThenticate 2.0 customers.&lt;/p&gt;

&lt;p&gt;These entries cannot be compressed into "Turnitin released a new model." February and May concern existing detection behavior. July concerns architecture. August 4 changes how an English report is read. August 18 changes which languages can be processed.&lt;/p&gt;

&lt;p&gt;That distinction matters when two reports show different numbers. A later score does not identify its cause. The file may have changed. The same file may have been resubmitted after a model update. The submission may have gone through a different language detector. More than one of those things may be true.&lt;/p&gt;

&lt;p&gt;The generation date on the report is more useful than the date someone downloaded it. The exact report name matters too. An AI Writing Report and a Clarity Writing Report are not interchangeable just because both appear under the Turnitin name.&lt;/p&gt;




&lt;p&gt;The older entries had the same source-reading trap.&lt;/p&gt;

&lt;p&gt;Turnitin's December 15, 2023 model-log entry mentions scores for submissions under 300 words. Read alone, that sentence can sound like a current warning about short papers. The heading and preceding paragraphs give it a much narrower meaning: a bug introduced on December 6 had allowed files below the minimum requirement to be processed, reports from December 6 through 15 were affected, and the issue was resolved.&lt;/p&gt;

&lt;p&gt;Today, Turnitin only generates the report when a file contains 300 or more words that qualify as long-form prose. The old sentence describes a closed bug window. It gives us no basis for judging a paper submitted today at either 300 or 500 words.&lt;/p&gt;

&lt;p&gt;The general release page creates another easy mistake because several products share one long screen. The product label beside each entry is part of the claim. The August 4 category merge belongs to the English AI Writing Report under named Originality configurations. A nearby Clarity release cannot expand that scope.&lt;/p&gt;

&lt;p&gt;I did not run a document through the detector for this check. This was a documentation audit. The pages establish what Turnitin says changed and when. They do not show whether one paper's score would rise or fall, and they do not support an accuracy comparison.&lt;/p&gt;

&lt;p&gt;The audit notes now keep the exact page title, the date as published, the product and language scope, and whether an old report needs resubmission. If a day is missing, it stays missing. If the source only describes a display change, the note does not call it a model change.&lt;/p&gt;

&lt;p&gt;A date without its page and scope is only half a changelog entry. Keep those pieces attached and the record becomes useful. Collapse everything into "Turnitin's release notes," and the citation has already lost the fact it was supposed to prove.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d147" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/turnitin-detection-model-changelog?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d147" rel="noopener noreferrer"&gt;https://humanpen.net/blog/turnitin-detection-model-changelog?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d147&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>education</category>
      <category>research</category>
    </item>
    <item>
      <title>I finished the paper. Then the AI score gave me another assignment</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Fri, 28 Aug 2026 15:21:21 +0000</pubDate>
      <link>https://dev.to/yotta-fish/i-finished-the-paper-then-the-ai-score-gave-me-another-assignment-2b39</link>
      <guid>https://dev.to/yotta-fish/i-finished-the-paper-then-the-ai-score-gave-me-another-assignment-2b39</guid>
      <description>&lt;p&gt;The paper was finished until the AI score arrived.&lt;/p&gt;

&lt;p&gt;I had done the work and could explain every section. The citations were checked. The weak parts had already been revised. Then the number turned a finished paper into work I was expected to do again.&lt;/p&gt;

&lt;p&gt;The new task had nothing to do with finding a better source or fixing a bad argument. It was a loop built around the report. Locate a highlighted passage. Change words that already say what I mean. Make sure the edit did not disturb a quotation or citation. Hand the revision back for another check.&lt;/p&gt;

&lt;p&gt;There is no credit for this task. There is no marking rubric either. I am trying to satisfy a classifier without being told what finish line would count.&lt;/p&gt;

&lt;p&gt;That extra work is a detector time tax. It is paid in the part of the deadline that could have gone toward reading, checking evidence, asking for feedback, or getting some sleep. The paper does not become more thoughtful because its sentences have been moved around for a number.&lt;/p&gt;

&lt;p&gt;The score also collapses questions that should stay separate. Authorship is about who did the intellectual work. Course policy decides which kinds of assistance were allowed. The detector supplies a signal about the text. One answer cannot stand in for the other two.&lt;/p&gt;

&lt;p&gt;A student can write the paper and still violate a rule about editing tools. A student can also follow the tool policy and receive an AI flag. Treating the score as a verdict skips both of those facts.&lt;/p&gt;

&lt;p&gt;Turnitin's own &lt;a href="https://guides.turnitin.com/hc/en-us/articles/22774058814093-Using-the-AI-Writing-Report" rel="noopener noreferrer"&gt;report guidance&lt;/a&gt; says its model may misidentify human-written, AI-generated, and AI-paraphrased text. It says adverse action needs further scrutiny, institutional policy, and human judgment. The company's &lt;a href="https://guides.turnitin.com/hc/en-us/articles/28477544839821-Turnitin-s-AI-writing-detection-capabilities-FAQs" rel="noopener noreferrer"&gt;FAQ&lt;/a&gt; says instructors should not use the percentage as a definitive grading measure.&lt;/p&gt;

&lt;p&gt;That is the vendor drawing a boundary around its own output. The report can start a closer look. It cannot reconstruct who chose the argument, found the sources, or made the decisions inside the paper.&lt;/p&gt;

&lt;p&gt;Still, telling a student to ignore the number is easy advice from the side that does not carry the grade. If an instructor or submission process wants the score lowered, a refusal can be principled and expensive at the same time. Students comply because the risk belongs to them.&lt;/p&gt;




&lt;p&gt;An authorship concern should lead to a human conversation. Ask me to explain the thesis. Ask why I used a source or how a section changed between drafts. Apply the course policy to evidence from the writing process.&lt;/p&gt;

&lt;p&gt;If the paper has already been submitted and an investigation has begun, preserve the original file. Rewriting an existing submission would change the evidence when the dispute is about how that evidence was produced.&lt;/p&gt;

&lt;p&gt;Before final submission, or during a revision the student has been explicitly allowed to make, the situation is different. The work still has to be mine. The course or assignment rules must expressly permit this kind of AI-assisted or third-party rewriting at that stage. Any disclosure, approval, and submission requirements still apply.&lt;/p&gt;

&lt;p&gt;To save my valuable time, I used &lt;a href="https://humanpen.net/humanize/turnitin-report?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=d155" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt; for this part.&lt;/p&gt;

&lt;p&gt;For an English DOCX, PPTX, or TXT file, the tool can use a Turnitin or iThenticate report to locate the flagged passages inside the document. That removes the manual search and the trip through a paste box for every passage. Eligible results can continue lowering AI for free.&lt;/p&gt;

&lt;p&gt;It cannot decide whether the use was allowed. It cannot prove authorship, cancel a disclosure duty, or promise a score. Every changed paragraph still needs to be read. The meaning and citations still need to be checked. I keep the original and remain responsible for the file I submit.&lt;/p&gt;

&lt;p&gt;That division of labor makes sense to me. I do the thinking. A tool can take some of the mechanical work out of a loop I did not ask for. The final review remains mine.&lt;/p&gt;




&lt;p&gt;The score should be a reason for a person to examine the evidence, not a hidden style guide that students must reverse-engineer. The first approach asks whether the work is honest. The second teaches students that pleasing a classifier matters more than writing well.&lt;/p&gt;

&lt;p&gt;I wrote the paper. I should not also have to write a second version for the machine.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>ethics</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Build a six-slide failure file before you trust a PowerPoint humanizer</title>
      <dc:creator>Nylah Reynard</dc:creator>
      <pubDate>Wed, 26 Aug 2026 07:33:42 +0000</pubDate>
      <link>https://dev.to/yotta-fish/build-a-six-slide-failure-file-before-you-trust-a-powerpoint-humanizer-3ace</link>
      <guid>https://dev.to/yotta-fish/build-a-six-slide-failure-file-before-you-trust-a-powerpoint-humanizer-3ace</guid>
      <description>&lt;p&gt;Do not judge a PowerPoint humanizer from its feature page alone. Build a failure file first.&lt;/p&gt;

&lt;p&gt;The pages I reviewed this week kept describing inputs. One had a paste box. Another listed &lt;code&gt;.pptx&lt;/code&gt; in an upload control. A third talked about presentations without saying what the download would be.&lt;/p&gt;

&lt;p&gt;None of that tells you whether a returned deck will still work.&lt;/p&gt;

&lt;p&gt;An upload control can show that a page offers a file type. It does not prove that the backend accepts and processes the upload. Even a successful upload answers only half the question. You still need to know whether the result is an editable PowerPoint file and whether the objects inside it survived.&lt;/p&gt;

&lt;p&gt;Build a six-slide acceptance fixture with invented text and deliberately awkward objects. Make it safe to throw away, and give every slide one job.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Slide one tests inheritance.&lt;/strong&gt; Use a custom master, two associated layouts, a footer and a small logo placeholder. After the round trip, open Slide Master view and check the counts, layout assignments, footer and placeholder position.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Slide two tests overflow.&lt;/strong&gt; Keep the title short, but make the body placeholder almost full. A rewrite can keep the box in the same position and still make the slide unusable by clipping a line, covering another object or shrinking the font too far.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Slide three tests non-obvious text surfaces.&lt;/strong&gt; Add a table and a SmartArt graphic, each with a distinctive phrase. The result has to put the phrases in the right cell and shape, and both objects need to remain editable.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Slide four tests the chart.&lt;/strong&gt; Give it a title, data labels and simple values that are easy to remember. A chart screenshot can look perfect after the underlying object has been flattened. Open the chart data and change a value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Slide five tests time.&lt;/strong&gt; Set three objects to enter in a known order. A still image cannot tell you whether that order survived, so inspect the Animation Pane and play the slide.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Slide six tests the notes boundary.&lt;/strong&gt; Put &lt;code&gt;PPTX-NOTE-CHECK-47&lt;/code&gt; and one sentence of disposable copy in the Notes pane. The token should stay attached to slide six. The sentence should change only if speaker notes were part of the selected scope.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The point of the fixture is not realism. A real thesis defense deck may have dozens of layouts, linked charts and years of inherited formatting. That makes it a bad first test because a failure is hard to isolate. Six controlled slides show you where to look.&lt;/p&gt;

&lt;p&gt;Before upload, record the baseline: slide count, master and layout count, chart type, animation order, notes token, and the exact text selected for rewriting. A screenshot or PDF catches visual drift. The original &lt;code&gt;.pptx&lt;/code&gt; catches behavior a flat baseline cannot show.&lt;/p&gt;

&lt;p&gt;Run the same readback sequence for every service.&lt;/p&gt;

&lt;p&gt;First, duplicate the fixture. Keep the clean original untouched.&lt;/p&gt;

&lt;p&gt;Second, choose the smallest rewrite scope the service offers. One or two text objects are enough. Record what you approved because "the deck changed" is useless unless you know what was allowed to change.&lt;/p&gt;

&lt;p&gt;Third, upload the copy and download whatever the service returns. Write down every limit shown during the run and the unit attached to it. A file cap and a character cap describe different bottlenecks.&lt;/p&gt;

&lt;p&gt;Fourth, open the result in desktop PowerPoint and make three small edits: one in ordinary slide copy, one inside SmartArt, and one in the chart's data sheet. Then save, close and reopen the file. This catches the friendly-looking output that falls apart at the next ordinary edit.&lt;/p&gt;

&lt;p&gt;Fifth, leave Normal view. Inspect layout inheritance under View &amp;gt; Slide Master, open slide six's notes, and check motion order with the animation controls. Play the animated slide instead of assuming the sequence is intact.&lt;/p&gt;

&lt;p&gt;Last, compare every untouched object. Check text, labels, numbers, notes and unselected slides one by one. Any difference needs an explanation tied to the scope you approved.&lt;/p&gt;

&lt;p&gt;Keep the conclusion deliberately narrow. If the service passes the chart test, you can say the chart in this fixture remained editable. You cannot claim that every linked Excel chart in every corporate template will behave the same way. If the fixture did not include speaker notes, notes stay unverified. A simple deck does not certify a complicated one.&lt;/p&gt;

&lt;p&gt;This is the distinction feature pages blur. "Supports PowerPoint" sounds like a product category. In practice, it is a set of observable file behaviors, and each one needs its own failure point.&lt;/p&gt;

&lt;p&gt;A good paragraph can distract you from a broken deck. The fixture reverses that priority. The file has to survive before the prose gets a vote.&lt;/p&gt;

&lt;p&gt;Originally published at &lt;a href="https://humanpen.net?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D91" rel="noopener noreferrer"&gt;HumanPen&lt;/a&gt;: &lt;a href="https://humanpen.net/blog/ai-humanizer-for-powerpoint?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D91" rel="noopener noreferrer"&gt;https://humanpen.net/blog/ai-humanizer-for-powerpoint?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=D91&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>writing</category>
      <category>productivity</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
