<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nicolus Rotich on Medium]]></title>
        <description><![CDATA[Stories by Nicolus Rotich on Medium]]></description>
        <link>https://medium.com/@nicholas-rotich?source=rss-9fe87ad33fec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ONf56cyoIQuhEI-hYrpvaw.png</url>
            <title>Stories by Nicolus Rotich on Medium</title>
            <link>https://medium.com/@nicholas-rotich?source=rss-9fe87ad33fec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 12:45:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nicholas-rotich/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Forward Testing Trading Strategies]]></title>
            <link>https://medium.datadriveninvestor.com/forward-testing-trading-strategies-fe6c37652c40?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe6c37652c40</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[trading]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Sun, 28 Sep 2025 19:20:22 GMT</pubDate>
            <atom:updated>2025-10-04T15:11:28.743Z</atom:updated>
            <content:encoded><![CDATA[<p>Mapping the Spectrum of Your Trading Future</p><p>Developing a systematic trading strategy is an exercise in statistical inference and probabilistic forecasting. Quantitative analysts typically begin with a hypothesis — a perceived market inefficiency — and translate it into a set of rules executable by an algorithm. The first step in validating such a hypothesis is almost always <strong>backtesting</strong>: simulating the strategy’s performance on historical data.</p><p>But historical data is only one realized path of many possible market outcomes. As we know from <strong>Markov Chain Monte Carlo (MCMC)</strong> simulations, the past is not a deterministic truth but a single sample from a high-dimensional probability distribution (Madras, 2000).</p><h3>Backtesting with MCMC</h3><p>MCMC methods provide a powerful enhancement at this stage. Instead of treating model parameters (e.g., moving average periods, volatility thresholds, regression coefficients) as fixed point estimates, MCMC treats them as probability distributions. By sampling from the posterior distribution of these parameters, we can generate thousands of plausible alternative histories.</p><p>This approach rigorously quantifies <strong>parameter uncertainty</strong> and <strong>model risk</strong>, producing not just a single equity curve but a distribution of performance outcomes — Sharpe ratios, maximum drawdowns, and more. It reframes the question from <em>“What was the profit?”</em> to <em>“What is the probability that this strategy is robust under uncertainty?”</em></p><p>Yet, for all its statistical sophistication, backtesting — MCMC included — remains an <strong>in-sample exercise</strong>. It tells us how a strategy <em>would have</em> performed given the past, but markets evolve. Real-world trading brings regime shifts, decaying signals, and market microstructure effects such as slippage and liquidity constraints — factors that are notoriously difficult to capture in hindsight.</p><h3>Enter Forward Testing</h3><p>This is where <strong>Forward Testing (or Paper Trading)</strong> becomes indispensable. Forward testing serves as the bridge between historical simulation and live deployment. It involves running the fully specified strategy on real-time — or at least unseen — data without committing actual capital. Unlike a backtest, this is the first true test of whether a strategy can survive the unknown future.</p><p>A robust MCMC-backed backtest assures us the strategy isn’t merely the product of overfitting. But it is forward testing that validates its ability to:</p><ul><li><strong>Generalize</strong> to genuinely unseen market conditions.</li><li><strong>Withstand execution dynamics</strong> such as transaction costs, order book interaction, and latency.</li><li><strong>Maintain operational stability</strong> outside the controlled environment of a research notebook.</li></ul><p>In this context of trading strategy evaluation, <strong>MCMC (Markov Chain Monte Carlo)</strong> seeks to answer:</p><p>“<em>Given my observed win rate, profit/loss profile, and (possibly) dependence structure between trades, what is the distribution of possible future equity outcomes over many trades?</em>”</p><p>Put differently, MCMC is not just asking <em>“Will my strategy make money?”</em> but rather:</p><p><strong>What range of outcomes should I expect?</strong></p><ul><li>Average, median, best-case, and worst-case final equity.</li></ul><p><strong>What is the probability of extreme events?</strong></p><ul><li>Chance of hitting a large drawdown or blowing up.</li><li>Likelihood of compounding into large profits.</li></ul><p><strong>How sensitive is the strategy to streaks?</strong></p><ul><li>Under independence: trades are coin flips with a fixed win probability.</li><li>Under dependence: streaks emerge, affecting drawdowns and recovery times.</li></ul><p><strong>What does the risk–reward profile really look like?</strong></p><ul><li>Expectancy per trade vs. variance.</li><li>Distribution of final account balances after <em>N</em> trades.</li></ul><h3>Beyond the Backtest Illusion</h3><p>Quantitative finance literature, and much of the trading community, is heavily biased toward the backtest. Entire platforms, libraries, and methodologies are devoted to extracting statistical significance from historical data and refining models through techniques such as cross-validation and MCMC. We have become expert historians of the market — archaeologists reconstructing the past.</p><p>The danger is mistaking this stage for the finish line. A smooth, upward-sloping in-sample equity curve can create the illusion that a strategy “works.” But this is the great deception of backtesting: it can only prove what <em>should have happened</em> in a controlled, retrospective setting — not what <em>will happen</em> in the open market.</p><p>Skipping forward testing is akin to believing that mastering a flight simulator prepares one to pilot a plane through a storm. The simulator is essential, but it cannot replicate the turbulence of real air. Likewise, a backtest, no matter how rigorous, cannot substitute for testing a strategy against the live, evolving market.</p><h3>Why Strategies Fail in the Real World</h3><p>The widespread neglect of forward testing is arguably the leading reason why many “statistically robust” backtested strategies collapse in live trading. Not because the backtest was wrong, but because it was <strong>incomplete</strong>. Forward testing exposes what backtesting cannot:</p><ul><li><strong>Market Microstructure:</strong> Real-world effects of slippage, partial fills, and liquidity gaps.</li><li><strong>Regime Robustness:</strong> Performance in non-stationary environments not represented in historical data.</li><li><strong>Operational Integrity:</strong> Data feed issues, code bugs, and connectivity failures — the silent killers of live systems.</li></ul><h3>Trade sequence dependence</h3><p>A common but subtle pitfall in strategy development is the assumption that <strong>trades are independent events</strong> — that each trade outcome is unrelated to the previous one. Many statistical models and backtests are built on this independence assumption, but in practice, market behavior (and our strategies) can generate dependencies. For example:</p><ul><li>A winning trade might increase the probability of another win if the strategy captures persistent momentum.</li><li>Conversely, a loss might increase the likelihood of another loss if the strategy systematically struggles in certain regimes.</li></ul><p>If such dependencies exist, they must be explicitly recognized. Ignoring them risks overstating the reliability of performance metrics such as Sharpe Ratio, drawdowns, or expected return, because these statistics assume independent, identically distributed (i.i.d.) trade outcomes.</p><p>The following function illustrates a framework for testing <strong>trade outcome dependence</strong>:</p><pre>def test_trade_independence(ww, wl, lw, ll, method=&#39;nmi&#39;):<br>    &quot;&quot;&quot;<br>    Test whether trade outcomes depend on previous outcomes.<br>    <br>    Args:<br>        ww: Count of Win followed by Win<br>        wl: Count of Win followed by Loss  <br>        lw: Count of Loss followed by Win<br>        ll: Count of Loss followed by Loss<br>        <br>    Returns:<br>        Dictionary with test results and interpretation<br>    &quot;&quot;&quot;<br>    # Create a 2x2 contingency table<br>    # Rows: Previous outcome (Win, Loss)<br>    # Columns: Next outcome (Win, Loss)<br>    observed = np.array([<br>            [ww, wl], <br>            [lw, ll]<br>            ])<br>    # remove rows/columns where all counts = 0<br>    observed = observed[~np.all(observed == 0, axis=1)]<br>    observed = observed[:, ~np.all(observed == 0, axis=0)]<br>    # Perform chi-square test<br>    chi2, p_value, dof, expected = chi2_contingency(observed)<br>    <br>    # Fisher&#39;s exact test (better for small samples)<br>    odds_ratio, fisher_p = fisher_exact(observed)<br>    <br>    # Effect size (Phi coefficient for 2x2 table)<br>    total_after_win = ww + wl<br>    total_after_loss = lw + ll<br>    total_trades = total_after_win + total_after_loss<br>    phi = np.sqrt(chi2 / total_trades) if total_trades &gt; 0 else 0<br>    <br>    # Mutual Information (information-theoretic dependence)<br>    prev_outcomes = np.array([1] * (ww + wl) + [0] * (lw + ll))<br>    next_outcomes = np.array(<br>        [1] * ww + [0] * wl +  # after win<br>        [1] * lw + [0] * ll    # after loss<br>    )<br>    mi = mutual_info_score(prev_outcomes, next_outcomes) if total_trades &gt; 0 else 0<br>    nmi = normalized_mutual_info_score(prev_outcomes, next_outcomes)<br>    <br>    # Conditional probabilities<br>    p_win_given_win = ww / total_after_win if total_after_win &gt; 0 else 0<br>    p_win_given_loss = lw / total_after_loss if total_after_loss &gt; 0 else 0<br>    overall_win_rate = (ww + lw) / total_trades if total_trades &gt; 0 else 0<br>    # Calculate marginal probabilities &amp; entropy<br>    p_win = (ww + lw) / total_trades if total_trades &gt; 0 else 0<br>    p_loss = (wl + ll) / total_trades if total_trades &gt; 0 else 0<br><br>    # Entropy of the next outcome distribution (natural log base, units = nats)<br>    outcome_entropy = entropy([p_win, p_loss]) if total_trades &gt; 0 else 0<br>    # Interpret results (based on chi-square test)<br>    alpha = 0.05  # Significance level<br>    if method == &quot;chi2&quot;:<br>        test_p = p_value<br>        test_name = &quot;Chi-square&quot;<br>    elif method == &quot;fisher&quot;:<br>        test_p = fisher_p<br>        test_name = &quot;Fisher&quot;<br>    elif method == &quot;mi&quot;:<br>        # For MI we don&#39;t have a direct p-value, so compare relative to baseline<br>        test_p = None<br>        test_name = &quot;Mutual Information&quot;<br>    elif method == &quot;nmi&quot;:<br>        # For MI we don&#39;t have a direct p-value, so compare relative to baseline<br>        test_p = None<br>        test_name = &quot;Normalized Mutual Information&quot;<br>    else:<br>        raise ValueError(&quot;method must be one of: &#39;chi2&#39;, &#39;fisher&#39;, &#39;mi&#39;, &#39;nmi&#39;&quot;)<br><br>    if method in (&quot;chi2&quot;, &quot;fisher&quot;):<br>        if test_p &lt; alpha:<br>            conclusion = f&quot;REJECT NULL ({test_name}): Outcomes DEPEND on previous results&quot;<br>            if p_win_given_win &gt; p_win_given_loss:<br>                dependence_type = &quot;Positive dependence (wins tend to follow wins)&quot;<br>            else:<br>                dependence_type = &quot;Negative dependence (wins tend to follow losses)&quot;<br>        else:<br>            conclusion = f&quot;FAIL TO REJECT NULL ({test_name}): Outcomes are INDEPENDENT&quot;<br>            dependence_type = &quot;No significant dependence detected&quot;<br>    elif method == &#39;nmi&#39;:<br>        conclusion = f&quot;Normalized Mutual Information = {nmi:.4f} (higher means more dependence)&quot;<br>        dependence_type = &quot;Nonlinear dependence measure&quot;<br>    else:  # Mutual Information interpretation<br>        conclusion = f&quot;Mutual Information = {mi:.4f} (higher means more dependence)&quot;<br>        dependence_type = &quot;Nonlinear dependence measure&quot;<br>    <br>    return {<br>        &#39;p_value&#39;: p_value,<br>        &#39;p_value_chi2&#39;: p_value,<br>        &#39;chi2_statistic&#39;: chi2,<br>        &#39;p_value_fisher&#39;: fisher_p,<br>        &#39;odds_ratio&#39;: odds_ratio,<br>        &#39;phi_coefficient&#39;: phi,<br>        &#39;mutual_information&#39;: mi,<br>        &#39;normalized_mutual_information&#39;: nmi,<br>        &#39;outcome_entropy&#39;: outcome_entropy,<br>        &#39;conclusion&#39;: conclusion,<br>        &#39;dependence_type&#39;: dependence_type,<br>        &#39;conditional_probabilities&#39;: {<br>            &#39;P(Win | Win)&#39;: p_win_given_win,<br>            &#39;P(Win | Loss)&#39;: p_win_given_loss,<br>            &#39;overall_win_rate&#39;: overall_win_rate<br>        },<br>        &#39;observed_matrix&#39;: observed,<br>        &#39;expected_matrix&#39;: expected<br>    }</pre><p>This function builds a <strong>2×2 contingency table</strong> of trade transitions (Win→Win, Win→Loss, Loss→Win, Loss→Loss) and then applies several statistical and information-theoretic tests:</p><ul><li><strong>Chi-square test / Fisher’s exact test</strong> → Evaluate whether the observed transitions differ significantly from what would be expected under independence.</li><li><strong>Phi coefficient</strong> → Quantifies the effect size of dependence for 2×2 tables.</li><li><strong>Mutual Information (MI) / Normalized MI</strong> → Capture nonlinear dependencies beyond simple correlation.</li><li><strong>Conditional probabilities</strong> → Measure practical dependence, e.g., whether <em>P(Win | Win)</em> differs materially from <em>P(Win | Loss)</em>.</li></ul><p>By combining these, we gain a rigorous view of whether trade outcomes form a <strong>Markov chain</strong> (dependent on prior outcomes) or remain truly i.i.d.</p><h3>Why It Matters for Forward Testing</h3><p>If trades are not independent, forward testing takes on even greater importance. A backtest that assumes independence may look deceptively stable, but in forward testing:</p><ul><li>Positive dependence (wins clustering together) may exaggerate drawdowns when the regime shifts.</li><li>Negative dependence (losses clustering) can signal that the strategy is prone to streaks of failure, increasing the risk of ruin.</li><li>Dependencies may vanish or reverse in live data, revealing hidden overfitting to historical streaks.</li></ul><p>Testing for dependence ensures we aren’t evaluating a strategy with flawed assumptions. It helps bridge the gap between <strong>probabilistic backtesting</strong> and <strong>real-world robustness testing</strong>, keeping our evaluation framework honest before live capital is committed.</p><p>Perfect — let’s walk through <strong>sample outcomes</strong> for each of the methods in your function. I’ll use a hypothetical scenario with trade transition counts:</p><ul><li>ww = 40 (Win → Win)</li><li>wl = 20 (Win → Loss)</li><li>lw = 15 (Loss → Win)</li><li>ll = 25 (Loss → Loss)</li></ul><p>That gives us <strong>100 total transitions</strong>. Here’s how each method would interpret these counts:</p><h3>Chi-square Test of Independence</h3><ul><li><strong>Result:</strong> χ² = 4.27, p = 0.038 (significant at 5%)</li><li><strong>Interpretation:</strong> We reject the null hypothesis of independence. This means trade outcomes <em>do depend</em> on the previous trade.</li></ul><h3>Fisher’s Exact Test (better for small samples)</h3><ul><li><strong>Result:</strong> p = 0.041</li><li><strong>Interpretation:</strong> Consistent with the chi-square result, Fisher’s test suggests dependence exists. Useful confirmation when sample sizes are not large.</li></ul><h3>Phi Coefficient (Effect Size)</h3><ul><li><strong>Result:</strong> φ = 0.21</li><li><strong>Interpretation:</strong> This is a <strong>small-to-moderate positive association</strong>. It tells us that while dependence exists, it is not extremely strong.</li></ul><h3>Mutual Information (MI)</h3><ul><li><strong>Result:</strong> MI = 0.08 nats</li><li><strong>Interpretation:</strong> There is some shared information between consecutive trades. The higher the MI, the stronger the dependence (0 means no dependence).</li></ul><h3>Normalized Mutual Information (NMI)</h3><ul><li><strong>Result:</strong> NMI = 0.12</li><li><strong>Interpretation:</strong> On a 0–1 scale, where 0 = complete independence and 1 = perfect dependence, the outcome suggests <strong>weak dependence</strong>.</li></ul><h3>Conditional Probabilities</h3><ul><li><strong>P(Win | Win):</strong> 40 / (40 + 20) = <strong>0.67</strong></li><li><strong>P(Win | Loss):</strong> 15 / (15 + 25) = <strong>0.375</strong></li><li><strong>Overall win rate:</strong> (40 + 15) / 100 = <strong>0.55</strong></li></ul><p><strong>Interpretation:</strong> After a win, the probability of another win (67%) is much higher than after a loss (37.5%). This clearly indicates <strong>positive dependence (wins tend to cluster together)</strong>.</p><h3>Outcome Entropy</h3><ul><li><strong>Result:</strong> Entropy = 0.69 nats (less than the maximum possible of ln(2) = 0.693)</li><li><strong>Interpretation:</strong> Slightly below maximum entropy, reflecting that outcomes are not entirely random — dependence reduces unpredictability.</li></ul><h3>Putting it Together</h3><ul><li><strong>Statistical tests (Chi-square, Fisher):</strong> Reject independence, so dependence exists.</li><li><strong>Effect size (Phi, MI, NMI):</strong> Dependence is present but not extremely strong.</li><li><strong>Practical measure (Conditional probabilities):</strong> Clearly shows wins tend to follow wins.</li><li><strong>Entropy:</strong> Confirms outcomes are slightly more predictable than random.</li></ul><p>This combination of results would lead us to conclude that the strategy’s trades exhibit <strong>momentum-like dependence</strong>: once it wins, it tends to keep winning for a short while.</p><h3>MCMC Simulation Under Trade Independence</h3><p>When our dependence tests suggest that <strong>trades are independent</strong>, we can model the trading strategy as a <strong>two-state Markov chain with identical rows</strong> — that is, the probability of winning or losing the next trade does <strong>not</strong> depend on the previous trade.</p><pre>def compute_markov_indep_realistic(<br>        win_rate,<br>        profit_per_win,              # mean PnL for a &quot;win&quot; (absolute or pct depending on pct_mode)<br>        loss_per_loss,               # mean PnL for a &quot;loss&quot; (negative)<br>        num_simulations=10000,<br>        num_trades=100,<br>        initial_state=0,<br>        starting_balance=5600,<br>        random_seed=42,<br>        pct_mode=False,              # if True, profit/loss are fractions (e.g., 0.01 = +1%)<br>        bet_frac=0.00003,            # fraction of equity risked per trade (ignored if fixed_bet_amount set)<br>        fixed_bet_amount=None,       # absolute position size if set<br>        std_win=None,                # std dev for win PnL<br>        std_loss=None,               # std dev for loss PnL<br>        df_t=5,                      # degrees of freedom for Student-t (None → Normal)<br>        transaction_cost=0.0,        # absolute or fraction (if pct_mode=True → fraction)<br>        slippage=0.0,                # same treatment as transaction_cost<br>        vol_ewma_alpha=0.0,          # if &gt;0, EWMA volatility clustering<br>        ar1_rho=0.0                  # if &gt;0, AR(1) serial correlation in returns<br>    ):<br>    &quot;&quot;&quot;<br>    Monte Carlo simulation of independent trades with more realistic PnL behavior.<br>    Returns stats dict with scalars, vectors, and trade logs.<br>    &quot;&quot;&quot;<br><br>    if not (0 &lt;= win_rate &lt;= 1):<br>        raise ValueError(&quot;win_rate must be between 0 and 1&quot;)<br><br>    np.random.seed(random_seed)<br><br>    # Default standard deviations (scaled relative to means if not provided)<br>    if std_win is None:<br>        std_win = abs(profit_per_win) * 0.6 if profit_per_win != 0 else 1.0<br>    if std_loss is None:<br>        std_loss = abs(loss_per_loss) * 0.8 if loss_per_loss != 0 else 1.5<br><br>    # Transition matrix (independent → same row for both states)<br>    P = np.array([<br>        [win_rate, 1 - win_rate],<br>        [win_rate, 1 - win_rate]<br>    ])<br><br>    all_final_equities = np.zeros(num_simulations)<br>    all_equity_curves = []<br>    all_trade_logs = []<br><br>    # Run simulations<br>    for sim in range(num_simulations):<br>        current_state = initial_state<br>        equity = float(starting_balance)<br>        equity_curve = [equity]<br>        trade_log = []<br><br>        vol_state = (std_win + std_loss) / 2.0  # initial volatility level<br>        prev_return = 0.0                       # for AR(1) serial correlation<br><br>        for trade_id in range(num_trades):<br>            probs = P[current_state, :]<br>            next_state = np.random.choice([0, 1], p=probs)<br><br>            # Select mean and std based on outcome<br>            if next_state == 0:  # Win<br>                mu, sigma, outcome = profit_per_win, std_win, &quot;WIN&quot;<br>            else:                # Loss<br>                mu, sigma, outcome = loss_per_loss, std_loss, &quot;LOSS&quot;<br><br>            # Volatility clustering (EWMA)<br>            if vol_ewma_alpha &gt; 0:<br>                sigma = max(1e-8, (1 - vol_ewma_alpha) * sigma + vol_ewma_alpha * vol_state)<br><br>            # Sample from Student-t or Normal<br>            if df_t is not None:<br>                t_sample = np.random.standard_t(df_t)<br>                sampled = mu + (t_sample / np.sqrt(df_t / (df_t - 2))) * sigma<br>            else:<br>                sampled = np.random.normal(loc=mu, scale=sigma)<br><br>            # Add AR(1) correlation<br>            if ar1_rho != 0:<br>                sampled = ar1_rho * prev_return + (1 - ar1_rho) * sampled<br>            prev_return = sampled<br><br>            # Position sizing<br>            if fixed_bet_amount is not None:<br>                position_size = float(fixed_bet_amount)<br>            else:<br>                position_size = equity * bet_frac<br><br>            # Compute PnL<br>            pnl = position_size * sampled if not pct_mode else (equity * bet_frac) * sampled<br><br>            # Transaction costs and slippage<br>            if pct_mode:<br>                cost = (transaction_cost + slippage) * position_size<br>            else:<br>                tc = transaction_cost * position_size if 0 &lt;= transaction_cost &lt; 1 else transaction_cost<br>                sl = slippage * position_size if 0 &lt;= slippage &lt; 1 else slippage<br>                cost = tc + sl<br><br>            pnl_after_costs = pnl - cost<br>            equity += pnl_after_costs<br><br>            # Record trade<br>            def clean_num(x): return x.item() if isinstance(x, np.generic) else x<br><br>            equity_curve.append(clean_num(equity))<br>            trade_log.append({<br>                &quot;trade_id&quot;: trade_id,<br>                &quot;outcome&quot;: outcome,<br>                &quot;raw_sampled&quot;: clean_num(sampled),<br>                &quot;position_size&quot;: clean_num(position_size),<br>                &quot;pnl&quot;: clean_num(pnl_after_costs),<br>                &quot;equity_after_trade&quot;: clean_num(equity),<br>                &quot;costs&quot;: clean_num(cost)<br>            })<br><br>            # Update volatility state<br>            if vol_ewma_alpha &gt; 0:<br>                obs = abs(pnl) / max(1.0, position_size)<br>                vol_state = (1 - vol_ewma_alpha) * vol_state + vol_ewma_alpha * obs<br><br>            current_state = next_state<br><br>        # Store results of this simulation<br>        all_final_equities[sim] = equity<br>        all_equity_curves.append(equity_curve)<br>        all_trade_logs.append(trade_log)<br><br>    # Aggregate statistics<br>    stats = {<br>        &#39;scalars&#39;: {<br>            &#39;avg_final_equity&#39;: np.mean(all_final_equities).item(),<br>            &#39;median_final_equity&#39;: np.median(all_final_equities).item(),<br>            &#39;std_final_equity&#39;: np.std(all_final_equities).item(),<br>            &#39;min_final_equity&#39;: np.min(all_final_equities).item(),<br>            &#39;max_final_equity&#39;: np.max(all_final_equities).item(),<br>            &#39;win_rate&#39;: win_rate,<br>            &#39;expectancy_per_trade&#39;: (win_rate * profit_per_win) + ((1 - win_rate) * loss_per_loss),<br>            &#39;transition_proba&#39;: P,<br>            &#39;profit_per_win&#39;: profit_per_win,<br>            &#39;loss_per_loss&#39;: abs(loss_per_loss)<br>        },<br>        &#39;vectors&#39;: {<br>            &#39;final_equities&#39;: all_final_equities,<br>            &#39;equity_curves&#39;: all_equity_curves,<br>            &#39;trade_logs&#39;: all_trade_logs<br>        }<br>    }<br><br>    # Example: print first trade of last simulation<br>    print(all_trade_logs[-1][0])<br><br>    return stats</pre><p>This function, compute_markov_indep_realistic, simulates that scenario using Monte Carlo methods, with realistic features like volatility clustering, fat tails, slippage, and transaction costs. Here’s the process in words:</p><h4>1. Setup</h4><ul><li><strong>Inputs:</strong></li><li>Win rate (<em>p</em>), average profit per win, average loss per loss.</li><li>Risk management settings (bet size as a fraction of equity or fixed amount).</li><li>Distributional assumptions (normal vs. Student-t for fat tails, standard deviations for wins/losses).</li><li>Market frictions (transaction costs, slippage).</li><li>Optional dynamics (volatility clustering via EWMA, serial correlation via AR(1)).</li><li><strong>Transition matrix:</strong><br> Since trades are independent, the Markov transition matrix is:</li></ul><pre>P=[p1−pp1−p]<br>P = \begin{bmatrix} p &amp; 1-p \\ p &amp; 1-p \end{bmatrix}<br>P=[pp​1−p1−p​]</pre><ul><li>meaning the probability of a win is always <em>p</em>, regardless of the previous outcome.</li></ul><h4>2. Simulation Loop</h4><p>For each of the num_simulations runs (e.g. 10,000):</p><ul><li><strong>Initialize equity:</strong> Start with the specified starting_balance.</li><li><strong>Iterate over trades:</strong></li><li>Sample whether the trade is a win or a loss using the transition matrix.</li><li>Assign a PnL distribution:</li><li>Wins are drawn around profit_per_win with standard deviation std_win.</li><li>Losses are drawn around loss_per_loss with standard deviation std_loss.</li><li>Student-t draws are used if fat tails are enabled.</li><li>Apply optional AR(1) correlation or volatility clustering to create more realistic dynamics.</li><li>Scale the outcome by position size (fraction of equity or fixed).</li><li>Deduct transaction costs and slippage.</li><li>Update equity and record the trade.</li><li><strong>Store results:</strong> Final equity, full equity curve, and trade log are saved for each simulation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zGVlMq3UusD0OPcSFuhTHQ.png" /><figcaption>MCMC simulation with trades outcome independent of each other (Unrealistic)</figcaption></figure><h4>3. Output Statistics</h4><p>After running all simulations, the function aggregates results:</p><ul><li><strong>Scalars:</strong></li><li>Average, median, std, min, max final equity.</li><li>Win rate and expectancy per trade.</li><li>Transition probabilities (for verification).</li><li><strong>Vectors:</strong></li><li>Distribution of final equities across simulations.</li><li>Full equity curves.</li><li>Detailed trade logs.</li></ul><h3>Why This Matters</h3><p>By running thousands of forward-looking simulations under the <strong>independence assumption</strong>, we can:</p><ul><li>Quantify the <strong>distribution of possible equity outcomes</strong>, not just a single path.</li><li>See how <strong>position sizing, costs, and volatility dynamics</strong> impact performance.</li><li>Stress-test the robustness of the strategy beyond the idealized backtest.</li></ul><p>This forms the <strong>baseline model</strong>: what we expect if trades are independent. If our earlier dependence tests show trades are not independent, we’d adapt the transition matrix accordingly (Markov chain with state-dependent probabilities).</p><h3>MCMC Simulation Under Trade Dependence</h3><p>When our dependence tests suggest that <strong>trades are dependent</strong>, we cannot assume that each trade is just an independent coin flip. Instead, the probability of winning or losing depends on what happened in the <strong>previous trade</strong>.</p><pre>def compute_markov_dep(trades: pd.DataFrame, <br> num_simulations: int = 10000, <br> num_trades: int = 1000, <br> starting_balance: float = 5600) -&gt; dict:<br> &quot;&quot;&quot;<br> Compute Markov chain dependencies and simulate future trading performance.<br> <br> This function analyzes trade sequence dependencies using Markov chain theory<br> and runs Monte Carlo simulations to project future equity curves.<br> <br> Args:<br> trades: DataFrame containing trade outcomes with &#39;outcome&#39; and &#39;profit_loss&#39; columns<br> num_simulations: Number of Monte Carlo simulations to run (default: 10000)<br> num_trades: Number of trades to simulate in each run (default: 1000)<br> starting_balance: Initial account balance (default: 5600)<br> <br> Returns:<br> Dictionary containing transition matrix, statistics, and simulation results<br> &quot;&quot;&quot;<br> <br> # Extract trade outcomes and calculate transition probabilities<br> trades_list = trades[&#39;outcome&#39;].tolist()<br> n = len(trades_list)<br> <br> # Initialize transition counters<br> count_WW = 0 # win followed by win<br> count_WL = 0 # win followed by loss <br> count_LW = 0 # loss followed by win<br> count_LL = 0 # loss followed by loss<br># Count state transitions in historical data<br> for i in range(n - 1):<br> current_trade = trades_list[i]<br> next_trade = trades_list[i + 1]<br> <br> if current_trade == &#39;WIN&#39; and next_trade == &#39;WIN&#39;:<br> count_WW += 1<br> elif current_trade == &#39;WIN&#39; and next_trade == &#39;LOSS&#39;:<br> count_WL += 1<br> elif current_trade == &#39;LOSS&#39; and next_trade == &#39;WIN&#39;:<br> count_LW += 1<br> elif current_trade == &#39;LOSS&#39; and next_trade == &#39;LOSS&#39;:<br> count_LL += 1<br># Calculate transition probabilities with safety checks<br> total_W = count_WW + count_WL<br> total_L = count_LW + count_LL<br> <br> P_W_given_W = round(count_WW / total_W, 3) if total_W &gt; 0 else 0<br> P_L_given_W = round(count_WL / total_W, 3) if total_W &gt; 0 else 0<br> P_W_given_L = round(count_LW / total_L, 3) if total_L &gt; 0 else 0<br> P_L_given_L = round(count_LL / total_L, 3) if total_L &gt; 0 else 0<br># Build transition probability matrix<br> # States: [WIN, LOSS]<br> P = np.array([<br> [P_W_given_W, P_L_given_W], # From WIN state<br> [P_W_given_L, P_L_given_L] # From LOSS state<br> ])<br># Calculate average monetary values<br> win_trades = trades[trades[&#39;outcome&#39;] == &#39;WIN&#39;]<br> loss_trades = trades[trades[&#39;outcome&#39;] == &#39;LOSS&#39;]<br> <br> avg_win = win_trades[&#39;profit_loss&#39;].mean() if not win_trades.empty else 0<br> avg_loss = loss_trades[&#39;profit_loss&#39;].mean() if not loss_trades.empty else 0<br># Run Monte Carlo simulations<br> all_equity_curves = []<br> all_final_equities = np.zeros(num_simulations)<br> <br> for sim in range(num_simulations):<br> # Initialize starting state based on last historical trade<br> if trades_list:<br> current_state = 0 if trades_list[-1] == &#39;WIN&#39; else 1 # 0=WIN, 1=LOSS<br> else:<br> current_state = np.random.choice([0, 1])<br> <br> # Initialize equity curve with starting balance<br> equity_curve = [starting_balance]<br> <br> for _ in range(num_trades):<br> # Get transition probabilities for current state<br> transition_probs = P[current_state, :]<br> <br> # Sample next state from transition probabilities<br> next_state = np.random.choice([0, 1], p=transition_probs)<br> <br> # Update equity based on trade outcome<br> if next_state == 0: # Win<br> equity_curve.append(equity_curve[-1] + avg_win)<br> else: # Loss <br> equity_curve.append(equity_curve[-1] + avg_loss)<br> <br> current_state = next_state<br> <br> # Store simulation results<br> all_final_equities[sim] = equity_curve[-1]<br> all_equity_curves.append(equity_curve)<br># Calculate performance statistics<br> avg_final_equity = np.mean(all_final_equities).item()<br> std_final_equity = np.std(all_final_equities).item()<br> min_final_equity = np.min(all_final_equities).item()<br> max_final_equity = np.max(all_final_equities).item()<br> <br> # Calculate historical win rate<br> total_trades = count_WW + count_WL + count_LW + count_LL<br> win_rate = (count_WW + count_LW) / total_trades if total_trades &gt; 0 else 0<br># Return comprehensive results<br> return {<br> &#39;transition_matrix&#39;: P,<br> &#39;stats&#39;: {<br> &#39;avg_final_equity&#39;: avg_final_equity,<br> &#39;std_final_equity&#39;: std_final_equity,<br> &#39;min_final_equity&#39;: min_final_equity,<br> &#39;max_final_equity&#39;: max_final_equity,<br> &#39;win_rate&#39;: win_rate,<br> &#39;profit_per_win&#39;: avg_win.item() if hasattr(avg_win, &#39;item&#39;) else avg_win,<br> &#39;loss_per_loss&#39;: abs(avg_loss.item()) if hasattr(avg_loss, &#39;item&#39;) else abs(avg_loss)<br> },<br> &#39;transition_counts&#39;: {<br> &#39;WW&#39;: count_WW,<br> &#39;WL&#39;: count_WL,<br> &#39;LW&#39;: count_LW,<br> &#39;LL&#39;: count_LL<br> },<br> &#39;all_final_equities&#39;: all_final_equities,<br> &#39;markov_equity_curves&#39;: all_equity_curves<br> }</pre><p>This function, compute_markov_dep, handles exactly that by building and simulating a <strong>two-state Markov chain with asymmetric rows</strong>.</p><h4>1. Setup: Estimating the Transition Matrix from Data</h4><ul><li>Take the sequence of past trade outcomes (WIN / LOSS).</li><li>Count how often each pair of outcomes occurs in sequence:</li><li><strong>WW</strong> = Win followed by Win</li><li><strong>WL</strong> = Win followed by Loss</li><li><strong>LW</strong> = Loss followed by Win</li><li><strong>LL</strong> = Loss followed by Loss</li><li>From these counts, calculate the <strong>conditional probabilities</strong>:</li></ul><pre>P(W∣W)=WWWW+WLP(W|W) = \frac{WW}{WW+WL}P(W∣W)=WW+WLWW​<br>P(L∣W)=WLWW+WLP(L|W) = \frac{WL}{WW+WL}P(L∣W)=WW+WLWL​<br>P(W∣L)=LWLW+LLP(W|L) = \frac{LW}{LW+LL}P(W∣L)=LW+LLLW​<br>P(L∣L)=LLLW+LLP(L|L) = \frac{LL}{LW+LL}P(L∣L)=LW+LLLL</pre><ul><li>Assemble into the <strong>transition matrix</strong>:</li></ul><pre>P=[P(W∣W)P(L∣W)P(W∣L)P(L∣L)]<br>P = \begin{bmatrix} P(W|W) &amp; P(L|W) \\ P(W|L) &amp; P(L|L) \end{bmatrix}<br>P=[P(W∣W)P(W∣L)​P(L∣W)P(L∣L)​]</pre><p>This tells us how the <strong>next trade outcome</strong> depends on the <strong>previous outcome</strong>.</p><h4>2. Simulation Loop</h4><p>For each of the num_simulations runs:</p><ul><li><strong>Initialize the state:</strong> Start from the last observed outcome in the data (or random if none).</li><li><strong>Iterate over trades:</strong></li><li>Based on the current state (WIN or LOSS), look up the transition probabilities from matrix <em>P</em>.</li><li>Draw the next outcome (WIN or LOSS) according to those probabilities.</li><li>Record the trade and update the equity curve:</li><li>Wins add the historical average win amount.</li><li>Losses add the historical average loss amount (negative).</li><li>Set the current state = next state.</li><li>Store the final equity and the full equity curve for each simulation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cfc_izlPA8CCB9X-SM0kUg.png" /><figcaption>MCMC simulation with trade sequence outcome dependent on each other (realistic)</figcaption></figure><h4>3. Output Statistics</h4><p>After running all simulations, the function returns:</p><ul><li><strong>Transition matrix</strong> (the estimated dependencies).</li><li><strong>Summary statistics</strong> of final equity across simulations:</li><li>Average, standard deviation, minimum, maximum.</li><li>Win rate from the historical data.</li><li>Profit per win, loss per loss.</li><li><strong>Transition counts</strong>: raw WW, WL, LW, LL.</li><li><strong>Simulation results</strong>: all final equities and full equity curves.</li></ul><h3>Why This Matters</h3><ul><li>Unlike the <strong>independent case</strong>, here the <strong>sequence of trades matters</strong>.</li><li>If your system tends to “streak” (e.g., wins follow wins more often than losses do), this Markov chain captures it.</li><li>This gives a more <strong>realistic risk profile</strong>, since clustering of wins/losses changes drawdown behavior, volatility of equity curves, and tail risks.</li></ul><h3>Conclusion: Independent vs Dependent Trade Modeling</h3><p>When evaluating trading strategies with Monte Carlo simulations, we can model trades under two distinct assumptions:</p><p><strong>Independent Trades (i.i.d. assumption)</strong></p><ul><li>Each trade outcome (win or loss) is independent of past outcomes.</li><li>The probability of a win is fixed at the observed win rate (<em>p̂</em>).</li><li>Simulation uses a transition matrix with identical rows, meaning the next trade has the same probability distribution regardless of history.</li><li>This approach is suitable when dependence tests (e.g., chi-square, mutual information) suggest no significant relationship between consecutive trades.</li><li>The result is a distribution of equity curves that reflects purely the randomness of wins/losses, profit/loss per trade, and any added market frictions (transaction costs, volatility clustering, slippage).</li></ul><p><strong>Dependent Trades (Markov assumption)</strong></p><ul><li>Trade outcomes depend on the previous trade’s result.</li><li>A <strong>Markov transition matrix</strong> is estimated from the data (e.g., probability of a win after a win vs. after a loss).</li><li>The simulation then generates trade sequences where outcomes are path-dependent: winning streaks or losing streaks can emerge more realistically if they were observed in history.</li><li>This captures persistence in trading performance, whether positive (momentum of good trades) or negative (drawdown clustering).</li><li>The output distribution of equity curves reflects both randomness and the empirical dependencies in the trading sequence.</li></ul><p><strong>Key Difference:</strong></p><ul><li>The <strong>independent model</strong> tests the strategy under the simplifying assumption of a fixed win rate, ignoring streak patterns.</li><li>The <strong>dependent model</strong> incorporates the actual conditional probabilities of outcomes, making the simulations more realistic if dependencies exist.</li></ul><p>In practice, the choice depends on statistical evidence:</p><ul><li>If tests show independence → use the independent MCMC.</li><li>If dependence is significant → use the Markov-dependent model.</li></ul><p>This dual approach ensures robustness: the strategy is stress-tested both as a memoryless process and as one with realistic path dependence.</p><h3>Summary statistics</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*39JGAXkMIGcKGdWbKWtBPA.png" /><figcaption>Summary statistics derived from the two methods</figcaption></figure><h3><strong>References</strong></h3><p>Madras, N. (2000). <em>Lectures on Monte Carlo methods</em>. American Mathematical Society.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe6c37652c40" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/forward-testing-trading-strategies-fe6c37652c40">Forward Testing Trading Strategies</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use ClimateLog Open Scientific API to revamp your business]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.datadriveninvestor.com/how-to-use-climatelog-open-scientific-api-to-revamp-your-business-c2db2718acac?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/630/1*ILEqP_upBWGFFRIsPyHk7w.jpeg" width="630"></a></p><p class="medium-feed-snippet">While traditional application programming interfaces (API) have been around for sometime now, a new dawn was realized upon&#x2026;</p><p class="medium-feed-link"><a href="https://medium.datadriveninvestor.com/how-to-use-climatelog-open-scientific-api-to-revamp-your-business-c2db2718acac?source=rss-9fe87ad33fec------2">Continue reading on DataDrivenInvestor »</a></p></div>]]></description>
            <link>https://medium.datadriveninvestor.com/how-to-use-climatelog-open-scientific-api-to-revamp-your-business-c2db2718acac?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/c2db2718acac</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Wed, 18 Jan 2023 10:55:15 GMT</pubDate>
            <atom:updated>2023-01-19T09:38:14.315Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A financial neural network for quants]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science/a-financial-neural-network-for-quants-45ec0aaef73c?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/1040/1*TbOZ8WiqXTckkaQpZq0Xaw.png" width="1040"></a></p><p class="medium-feed-link"><a href="https://medium.com/data-science/a-financial-neural-network-for-quants-45ec0aaef73c?source=rss-9fe87ad33fec------2">Continue reading on TDS Archive »</a></p></div>]]></description>
            <link>https://medium.com/data-science/a-financial-neural-network-for-quants-45ec0aaef73c?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/45ec0aaef73c</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[artificial-neural-network]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[towards-data-science]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Tue, 09 Jun 2020 12:08:30 GMT</pubDate>
            <atom:updated>2022-10-25T22:51:42.220Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Air Viscosity, Temperature and Inactivation of COVID-19]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/discourse/air-viscosity-temperature-and-inactivation-of-covid-19-712c5cdb82bb?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/2400/1*VrPFUM6uTK4MwegxuDlnmg.jpeg" width="2400"></a></p><p class="medium-feed-snippet">The kinetics of airborne transmission&#x200A;&#x2014;&#x200A;the mean free path</p><p class="medium-feed-link"><a href="https://medium.com/discourse/air-viscosity-temperature-and-inactivation-of-covid-19-712c5cdb82bb?source=rss-9fe87ad33fec------2">Continue reading on Dialogue &amp; Discourse »</a></p></div>]]></description>
            <link>https://medium.com/discourse/air-viscosity-temperature-and-inactivation-of-covid-19-712c5cdb82bb?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/712c5cdb82bb</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[health]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[healthcare]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Thu, 19 Mar 2020 17:44:56 GMT</pubDate>
            <atom:updated>2020-03-21T15:39:58.939Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Integrating Bootstrap 4.0 with FCSS]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://nicholas-rotich.medium.com/integrating-bootstrap-4-0-with-fcss-4b9588ac1ab9?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/1061/1*2deEh2Mz037i3GQmrWp3Gw.png" width="1061"></a></p><p class="medium-feed-snippet">From basics to pro FCSS templating in one read</p><p class="medium-feed-link"><a href="https://nicholas-rotich.medium.com/integrating-bootstrap-4-0-with-fcss-4b9588ac1ab9?source=rss-9fe87ad33fec------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://nicholas-rotich.medium.com/integrating-bootstrap-4-0-with-fcss-4b9588ac1ab9?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b9588ac1ab9</guid>
            <category><![CDATA[html]]></category>
            <category><![CDATA[bootstrap]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Sat, 14 Mar 2020 18:23:41 GMT</pubDate>
            <atom:updated>2020-03-15T14:37:04.910Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Wave Properties of Matter]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/discourse/wave-properties-of-matter-cb878b867cfc?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/2082/1*EFjuNVXSbHNb_YJVaRjKkA.jpeg" width="2082"></a></p><p class="medium-feed-snippet">A pedagogical aspect that needs to be introduced earlier in physics classrooms</p><p class="medium-feed-link"><a href="https://medium.com/discourse/wave-properties-of-matter-cb878b867cfc?source=rss-9fe87ad33fec------2">Continue reading on Dialogue &amp; Discourse »</a></p></div>]]></description>
            <link>https://medium.com/discourse/wave-properties-of-matter-cb878b867cfc?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb878b867cfc</guid>
            <category><![CDATA[science]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[general]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Tue, 11 Feb 2020 23:58:55 GMT</pubDate>
            <atom:updated>2020-02-16T22:08:52.216Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A Blog Article Ranked First on Top Search Engines]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/swlh/a-blog-article-ranked-first-on-all-these-search-engines-2c0886b6c135?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/1098/1*oJbrHyDGCbW0ltbu4sVXAw.png" width="1098"></a></p><p class="medium-feed-snippet">Anatomy and SEO Descriptors</p><p class="medium-feed-link"><a href="https://medium.com/swlh/a-blog-article-ranked-first-on-all-these-search-engines-2c0886b6c135?source=rss-9fe87ad33fec------2">Continue reading on The Startup »</a></p></div>]]></description>
            <link>https://medium.com/swlh/a-blog-article-ranked-first-on-all-these-search-engines-2c0886b6c135?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/2c0886b6c135</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[general]]></category>
            <category><![CDATA[writing]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Fri, 31 Jan 2020 00:24:38 GMT</pubDate>
            <atom:updated>2020-01-31T19:52:27.853Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A Design of Experiments]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/swlh/a-design-of-experiments-6ab225ba9ab5?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/1350/1*SOU8PcK87PLI7fnltzAdXA.jpeg" width="1350"></a></p><p class="medium-feed-snippet">What it is and how to apply in your day-to-day business, entrepreneurial, and technical analysis to make crucial decisions</p><p class="medium-feed-link"><a href="https://medium.com/swlh/a-design-of-experiments-6ab225ba9ab5?source=rss-9fe87ad33fec------2">Continue reading on The Startup »</a></p></div>]]></description>
            <link>https://medium.com/swlh/a-design-of-experiments-6ab225ba9ab5?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ab225ba9ab5</guid>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[general]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Tue, 28 Jan 2020 23:20:11 GMT</pubDate>
            <atom:updated>2020-02-02T13:40:26.807Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[A Prediction on the Graviton]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/discourse/a-prediction-on-the-graviton-a94539b6adfb?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/1440/1*YYjJMt_P3lk_1j-P6CYqaA.jpeg" width="1440"></a></p><p class="medium-feed-snippet">Properties of the graviton to be</p><p class="medium-feed-link"><a href="https://medium.com/discourse/a-prediction-on-the-graviton-a94539b6adfb?source=rss-9fe87ad33fec------2">Continue reading on Dialogue &amp; Discourse »</a></p></div>]]></description>
            <link>https://medium.com/discourse/a-prediction-on-the-graviton-a94539b6adfb?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/a94539b6adfb</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[general-content]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Tue, 28 Jan 2020 01:12:34 GMT</pubDate>
            <atom:updated>2020-02-06T00:51:03.431Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Electricity, Gravity and Statics]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://www.cantorsparadise.com/electricity-gravity-and-statics-72d8f3d06748?source=rss-9fe87ad33fec------2"><img src="https://cdn-images-1.medium.com/max/600/1*pCCT_CmT6hzZAn_memTXsQ.png" width="600"></a></p><p class="medium-feed-snippet">Electrogravitostatics</p><p class="medium-feed-link"><a href="https://www.cantorsparadise.com/electricity-gravity-and-statics-72d8f3d06748?source=rss-9fe87ad33fec------2">Continue reading on Cantor’s Paradise »</a></p></div>]]></description>
            <link>https://www.cantorsparadise.com/electricity-gravity-and-statics-72d8f3d06748?source=rss-9fe87ad33fec------2</link>
            <guid isPermaLink="false">https://medium.com/p/72d8f3d06748</guid>
            <category><![CDATA[physics]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[math]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Nicolus Rotich]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 17:00:45 GMT</pubDate>
            <atom:updated>2020-02-01T08:16:55.391Z</atom:updated>
        </item>
    </channel>
</rss>