            const adf = beta.get([1]) / se;

            // Compute p-value (one-sided test)
            const pValue = studentTCDF(adf, df);

            return { adf, pValue };
        }

        async function updateGraphs() {
            const apiKey = document.getElementById('apiKey').value;
            const slug1 = document.getElementById('slug1').value;
            const slug2 = document.getElementById('slug2').value;

            const data1 = await fetchMarketData(slug1);
            const data2 =