   <div>p-value: <span class="stat-value">${adjustedADF.pValue.toFixed(4)}</span></div>
                <div>The centered adjusted spread is <span class="stat-value">${adjustedADF.pValue < 0.05 ? 'cointegrated' : 'not cointegrated'}</span>.</div>
                <br>
    <div class="stat-label">Calculated Hedge Ratio: <span class="stat-value">${calculatedHedgeRatio.toFixed(4)}</span></div>
            `;

            // Update hedge ratio in the form
            document.getElementById('hedgeRatio').value =