{"id":9131,"date":"2024-09-01T16:25:37","date_gmt":"2024-09-01T23:25:37","guid":{"rendered":"https:\/\/jeremywhittaker.com\/?p=9131"},"modified":"2024-09-01T17:06:43","modified_gmt":"2024-09-02T00:06:43","slug":"degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet","status":"publish","type":"post","link":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/","title":{"rendered":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet"},"content":{"rendered":"\n<p>I&#8217;ve spent the last couple of weeks shifting my focus toward finding arbitrage opportunities in the betting markets. Today, I came across an intriguing bet on Polymarket: \u201cWill Apple remain the largest company through September 30th?\u201d. The question got me thinking\u2014is Nvidia (NVDA) really about to overtake Apple (AAPL)? I knew Nvidia\u2019s market cap had surged recently, but an 84% chance that Apple would still be the largest by the end of the month? I had to investigate further.<\/p>\n\n\n\n<center>\n<iframe\n\ttitle=\"polymarket-market-iframe\"\n\tdata-src=\"https:\/\/embed.polymarket.com\/market.html?market=will-apple-remain-largest-company-through-sep-30&#038;features=volume&#038;theme=dark&#038;creator=JeremyRWhittaker\"\n\twidth=\"400\"\n\theight=\"180\"\n\tframeBorder=\"0\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" data-load-mode=\"1\">\n<\/iframe>\n<\/center>\n\n\n\n<p>So, I wrote some code to analyze the odds. I used two methods:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Probability Based on Distribution<\/strong><\/li>\n\n\n\n<li><strong>Probability Based on Exceedance Rate of Returns Over an X-Month Timeframe<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">The Basics of Polymarket Betting<\/h2>\n\n\n\n<p>Polymarket allows users to place bets on the likelihood of various events, ranging from election outcomes to company performance. These bets are binary\u2014either \u201cYes\u201d or \u201cNo.\u201d The value of these bets fluctuates based on market sentiment, much like options in the stock market. The key to making informed decisions on such platforms lies in understanding the underlying data and probabilities. If you\u2019re right, you get $1 per share, and if you\u2019re wrong, you lose your stake.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Betting on Apple: An Investment Analysis<\/h2>\n\n\n\n<p>The current market sentiment suggests an 83% chance that Apple will retain its position as the largest company by September 30th. This probability is derived from the cost of betting \u201cYes\u201d on Polymarket, which is currently priced at 84 cents on the dollar. If you\u2019re right, you stand to make 16 cents per dollar invested.<\/p>\n\n\n\n<p>But is the market sentiment accurate? Let\u2019s delve into the historical data, statistical distributions, and probability models to assess whether this bet offers good value. This process involves analyzing how often other major companies like Microsoft (MSFT) or Nvidia (NVDA) have exceeded Apple\u2019s growth rate in the past and whether such exceedances are likely within the given timeframe.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequency-Based Analysis vs. Distribution-Based Analysis<\/h2>\n\n\n\n<p>We examined two approaches:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Frequency-Based Analysis<\/strong>: This method examines historical data to determine how often, on average, another company has surpassed Apple in growth rate during any given month. By calculating the \u201cexceedance rate,\u201d we can estimate how likely it is that Apple will be dethroned within the specified period. If this probability is high, betting \u201cYes\u201d on Apple may not be favorable.<\/li>\n\n\n\n<li><strong>Distribution-Based Analysis<\/strong>: This approach dives deeper into the statistical distribution of monthly returns, considering variance and volatility. If the data shows that other companies have frequently come close to Apple\u2019s growth rates, the odds of an upset increase.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Determining Probability<\/h2>\n\n\n\n<p>The first step in determining the probability is to get the market cap of the top 10 companies.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import yfinance as yf\nimport pandas as pd\n\n# List of top 10 companies by ticker\ntickers = [\"AAPL\", \"MSFT\", \"NVDA\", \"GOOG\", \"AMZN\", \"2222.SR\", \"META\", \"BRK-B\", \"TSM\", \"LLY\"]\n\n# Manual conversion rates (as of recent rates)\nconversion_rates = {\n    'SAR': 0.27,  # 1 SAR \u2248 0.27 USD\n    'TWD': 0.032  # 1 TWD \u2248 0.032 USD\n}\n\n# Fetch the current market cap for each company\nmarket_caps = {}\nfor ticker in tickers:\n    stock = yf.Ticker(ticker)\n    info = stock.info\n    if 'marketCap' in info:\n        market_cap = info['marketCap']\n        currency = info.get('financialCurrency', 'USD')\n        # Convert market cap to USD if it's not already in USD\n        if currency != 'USD':\n            if currency in conversion_rates:\n                market_cap = market_cap * conversion_rates[currency]\n            else:\n                print(f\"Conversion rate for {currency} not found, skipping conversion.\")\n        market_caps[ticker] = market_cap\n    else:\n        print(f\"Market cap for {ticker} not found.\")\n\n# Create a DataFrame to store the data\ndf = pd.DataFrame(list(market_caps.items()), columns=['Ticker', 'Market Cap'])\ndf.sort_values(by='Market Cap', ascending=False, inplace=True)\ndf.reset_index(drop=True, inplace=True)\n\n# Find the largest company\ntop_company = df.iloc[0]\n\n# Calculate the percentage increase needed for each of the smaller companies to overtake the top one\ndf['Percentage Increase Needed'] = ((top_company['Market Cap'] - df['Market Cap']) \/ df['Market Cap']) * 100\n\n# Output the results\nprint(f\"Top Company: {top_company['Ticker']} with a Market Cap of ${top_company['Market Cap']:,}\")\nprint(df[['Ticker', 'Market Cap', 'Percentage Increase Needed']])\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Market Capitalization and threshold<\/h2>\n\n\n\n<p>Once we have the market cap, we can calculate the percentage increase required for each company to exceed AAPL. Below is the output from the code above.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Top Company: AAPL with a Market Cap of $3,481,738,936,320.0\n    Ticker    Market Cap  Percentage Increase Needed\n0     AAPL  3.481739e+12                    0.000000\n1     MSFT  3.100618e+12                   12.291764\n2     NVDA  2.928146e+12                   18.905915\n3     GOOG  2.020401e+12                   72.329063\n4     AMZN  1.873465e+12                   85.844935\n5  2222.SR  1.818538e+12                   91.458086\n6     META  1.318820e+12                  164.004029\n7    BRK-B  1.026412e+12                  239.214585\n8      LLY  8.644270e+11                  302.779992\n9      TSM  2.849440e+10                12119.030326<\/code><\/pre>\n\n\n\n<p>Now that we know the percentage increases required, we can download all historical returns and see which companies have actually achieved this in a previous month.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import yfinance as yf\nimport pandas as pd\nimport plotly.graph_objects as go\n\n# Assuming 'df' from the previous code cell contains the market cap data\n\n# Download historical monthly data for each ticker\nhistorical_data = {}\nfor ticker in df['Ticker']:\n    stock_data = yf.download(ticker, start=\"1900-01-01\", interval=\"1mo\", auto_adjust=True)\n    stock_data['Date'] = pd.to_datetime(stock_data.index)\n    stock_data.set_index('Date', inplace=True)\n    stock_data['Pct Change'] = stock_data['Close'].pct_change() * 100  # Convert to percentage change\n    historical_data[ticker] = stock_data\n\n# Identify the top company by ticker\ntop_ticker = df.iloc[0]['Ticker']\n\n# Plotting the data with dynamic variables, but skipping the top company\nfor index, row in df.iterrows():\n    ticker = row['Ticker']\n    \n    if ticker == top_ticker:\n        continue  # Skip plotting for the top company\n    \n    threshold = row['Percentage Increase Needed']\n    \n    # Prepare the data for plotting\n    stock_data = historical_data[ticker]\n    \n    # Create a bar chart with conditional coloring\n    colors = ['green' if pct > threshold else 'red' for pct in stock_data['Pct Change']]\n    \n    fig = go.Figure(data=[go.Bar(\n        x=stock_data.index,\n        y=stock_data['Pct Change'],\n        marker_color=colors\n    )])\n    \n    # Add a red horizontal line at the threshold\n    fig.add_hline(y=threshold, line_dash=\"dash\", line_color=\"red\", \n                  annotation_text=f\"Threshold: {threshold:.2f}%\", \n                  annotation_position=\"top right\")\n    \n    # Customize layout\n    fig.update_layout(\n        title=f'Monthly Percentage Change for {ticker} with Threshold',\n        xaxis_title='Date',\n        yaxis_title='Percentage Change (%)',\n        template='plotly_white'\n    )\n    \n    # Show the plot\n    fig.show()\n<\/pre>\n\n\n\n<p>This code outputs multiple graphs. However, only two companies\u2014MSFT and NVDA\u2014realistically have a chance to exceed AAPL\u2019s market cap in the next month.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"341\" data-src=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15-1024x341.png\" alt=\"\" class=\"wp-image-9151 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15-1024x341.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15-300x100.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15-768x256.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15-1536x511.png 1536w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15-500x166.png 500w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-15.png 1577w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/341;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"341\" data-src=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16-1024x341.png\" alt=\"\" class=\"wp-image-9152 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16-1024x341.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16-300x100.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16-768x256.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16-1536x511.png 1536w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16-500x166.png 500w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-16.png 1577w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/341;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Relative Return<\/h2>\n\n\n\n<p>Instead of looking at NVDA\u2019s return individually, I&#8217;ll examine the correlation between NVDA and AAPL by subtracting NVDA\u2019s return from AAPL\u2019s return for every month.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import plotly.graph_objects as go\n\n# Assuming 'df' and 'historical_data' from the previous cells are still available\n\n# Identify the top company by ticker\ntop_ticker = df.iloc[0]['Ticker']\ntop_stock_data = historical_data[top_ticker]\n\n# Plotting the relative returns for each ticker compared to the top ticker, with threshold lines\nfor index, row in df.iterrows():\n    ticker = row['Ticker']\n    \n    if ticker == top_ticker:\n        continue  # Skip plotting for the top company\n    \n    threshold = row['Percentage Increase Needed']\n    \n    # Fetch the stock data for the current ticker\n    stock_data = historical_data[ticker]\n    \n    # Align and truncate data to the earliest common date\n    combined_data = pd.concat([top_stock_data['Pct Change'], stock_data['Pct Change']], axis=1, keys=[top_ticker, ticker]).dropna()\n    \n    # Subtract top stock's performance from the current stock's performance\n    combined_data['Relative Return'] = combined_data[ticker] - combined_data[top_ticker]\n    \n    # Create a bar chart with conditional coloring\n    colors = ['green' if pct > 0 else 'red' for pct in combined_data['Relative Return']]\n    \n    fig = go.Figure(data=[go.Bar(\n        x=combined_data.index,\n        y=combined_data['Relative Return'],\n        marker_color=colors\n    )])\n    \n    # Add a red horizontal line at the required threshold\n    fig.add_hline(y=threshold, line_dash=\"dash\", line_color=\"red\", \n                  annotation_text=f\"Threshold: {threshold:.2f}%\", \n                  annotation_position=\"top right\")\n    \n    # Customize layout\n    fig.update_layout(\n        title=f'Relative Monthly Returns for {ticker} vs {top_ticker} with Threshold',\n        xaxis_title='Date',\n        yaxis_title='Relative Return (%)',\n        template='plotly_white'\n    )\n    \n    # Show the plot\n    fig.show()\n<\/pre>\n\n\n\n<p>Now, we can see the relative returns as well as the threshold of times they exceeded the required amount to surpass AAPL.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"341\" data-src=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17-1024x341.png\" alt=\"\" class=\"wp-image-9153 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17-1024x341.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17-300x100.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17-768x256.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17-1536x511.png 1536w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17-500x166.png 500w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-17.png 1577w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/341;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"341\" data-src=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19-1024x341.png\" alt=\"\" class=\"wp-image-9154 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19-1024x341.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19-300x100.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19-768x256.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19-1536x511.png 1536w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19-500x166.png 500w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-19.png 1577w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/341;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Distribution of Relative Returns<\/h2>\n\n\n\n<p>To view this data differently, we can now look at the distribution of this data. The code will loop through the last 10 years, but here is an example for one year:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>### Analysis for the Last 1 Year(s) ###\nNVDA exceeded the threshold 3 times.\nNVDA Mean Relative Change: 7.4181%\nNVDA Std Dev of Relative Change: 13.8239%\nNVDA Z-score for threshold 18.91%: 0.8310\nProbability of exceeding threshold based on distribution: 20.2984%<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"341\" data-src=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20-1024x341.png\" alt=\"\" class=\"wp-image-9155 lazyload\" data-srcset=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20-1024x341.png 1024w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20-300x100.png 300w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20-768x256.png 768w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20-1536x511.png 1536w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20-500x166.png 500w, https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/newplot-20.png 1577w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/341;\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What is the expected value?<\/h2>\n\n\n\n<p>Now that we know the distribution and odds, we can introduce Polymarket&#8217;s implied odds\u201483% with a cost of 84 cents per share and a payout of 16 cents per share. Based on these inputs, we can convert this to Expected Value (EV).<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Polymarket 'Yes' Probability: 83.00%\nPolymarket 'Yes' Bet Cost: $0.84 per share\nPolymarket 'Yes' Payout: $0.16 per share\n\n### Summary for the Last 1 Year(s) ###\nMonths Analyzed: 12 months\nProbability of Apple remaining the largest (based on exceedance rate): 75.00%\nProbability of Apple remaining the largest (based on distribution): 79.7016%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1200 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.1275 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1200.\nBased on the distribution, for every $1 bet, you should expect to make $0.1275.\n\n\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>import pandas as pd\nfrom datetime import datetime\nfrom scipy.stats import norm\n\n# Given Polymarket values\npolymarket_prob_yes = 0.83  # 83% chance of Apple remaining the largest\npolymarket_price_yes = 0.84  # 84\u00a2 to bet \"Yes\"\npolymarket_payout_yes = 1 - polymarket_price_yes  # Payout for \"Yes\" bet\n\nprint(f\"Polymarket 'Yes' Probability: {polymarket_prob_yes * 100:.2f}%\")\nprint(f\"Polymarket 'Yes' Bet Cost: ${polymarket_price_yes:.2f} per share\")\nprint(f\"Polymarket 'Yes' Payout: ${polymarket_payout_yes:.2f} per share\")\n\n# Assuming 'df', 'historical_data', and the correct top_ticker (Apple in this case) are available from previous code cells\n\n# Loop over 1 to 10 years\nfor year in range(1, 11):\n    print(f\"\\n### Summary for the Last {year} Year(s) ###\")\n    \n    # Calculate the cutoff date for the current loop iteration\n    cutoff_date = datetime.now() - pd.DateOffset(years=year)\n    \n    # Calculate the number of months in the specified period\n    months_in_period = year * 12\n    \n    # Initialize a cumulative counter for exceedances and probabilities\n    cumulative_exceedances = 0\n    cumulative_prob_not_exceeding = 1  # Start with 1 (100% chance of no exceedance)\n    \n    # Iterate through the tickers in the df to calculate exceedances and probabilities\n    for index, row in df.iterrows():\n        ticker = row&#91;'Ticker']\n        if ticker == top_ticker:\n            continue  # Skip the top company itself\n        \n        # Fetch the stock data for the current ticker and truncate to the last N years\n        stock_data = historical_data&#91;ticker]\n        stock_data_truncated = stock_data&#91;stock_data.index &gt;= cutoff_date]\n        \n        # Align and truncate data to the earliest common date\n        combined_data = pd.concat(&#91;historical_data&#91;top_ticker]&#91;'Pct Change'], stock_data_truncated&#91;'Pct Change']], axis=1, keys=&#91;top_ticker, ticker]).dropna()\n        \n        # Subtract top stock's performance from the current stock's performance\n        combined_data&#91;'Relative Change'] = combined_data&#91;ticker] - combined_data&#91;top_ticker]\n        \n        # Calculate how many times this stock exceeded the threshold (Frequency-Based Approach)\n        exceedance_count = (combined_data&#91;'Relative Change'] &gt;= row&#91;'Percentage Increase Needed']).sum()\n        \n        # If no exceedances, skip this ticker\n        if exceedance_count == 0:\n            continue\n        \n        # Add to the cumulative counter\n        cumulative_exceedances += exceedance_count\n        \n        # Distribution and Standard Deviation Approach\n        mean_relative_change = combined_data&#91;'Relative Change'].mean()\n        std_relative_change = combined_data&#91;'Relative Change'].std()\n        \n        # Calculate the Z-score for the threshold\n        z_score = (row&#91;'Percentage Increase Needed'] - mean_relative_change) \/ std_relative_change\n        \n        # Calculate the probability of exceeding the threshold using the CDF of the normal distribution\n        prob_exceeding_threshold = 1 - norm.cdf(z_score)\n        \n        # Multiply with the cumulative probability of not exceeding the threshold (for all stocks)\n        cumulative_prob_not_exceeding *= (1 - prob_exceeding_threshold)\n    \n    # Calculate the rate of exceedances per month (Frequency-Based Approach)\n    exceedance_rate_per_month = cumulative_exceedances \/ months_in_period\n    \n    # Calculate the probability that Apple will remain the largest company based on the exceedance rate\n    months_until_sept_30 = 1  # Assuming 1 month left until September 30\n    prob_remain_largest_based_on_exceedance = 1 - (exceedance_rate_per_month * months_until_sept_30)\n    \n    # Calculate the cumulative probability that Apple will remain the largest based on the distribution\n    prob_remain_largest_based_on_distribution = cumulative_prob_not_exceeding\n\n    # EV calculation for the Polymarket bet (using exceedance rate)\n    ev_polymarket_yes_exceedance_rate = prob_remain_largest_based_on_exceedance * polymarket_payout_yes\n    \n    # EV calculation for the Polymarket bet (using distribution-based probability)\n    ev_polymarket_yes_distribution = prob_remain_largest_based_on_distribution * polymarket_payout_yes\n\n    # Output the results for the current year\n    print(f\"Months Analyzed: {months_in_period} months\")\n    print(f\"Probability of Apple remaining the largest (based on exceedance rate): {prob_remain_largest_based_on_exceedance:.2%}\")\n    print(f\"Probability of Apple remaining the largest (based on distribution): {prob_remain_largest_based_on_distribution:.4%}\")\n    print(f\"Expected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): ${ev_polymarket_yes_exceedance_rate:.4f} per $1 bet\")\n    print(f\"Expected Value (EV) of betting 'Yes' on Polymarket (based on distribution): ${ev_polymarket_yes_distribution:.4f} per $1 bet\")\n\n    # Summary of recommendation\n    if ev_polymarket_yes_exceedance_rate &gt; 0:\n        print(f\"Based on the exceedance rate, for every $1 bet, you should expect to make ${ev_polymarket_yes_exceedance_rate:.4f}.\")\n    else:\n        print(f\"Based on the exceedance rate, this bet may not be favorable, as you would expect to lose ${abs(ev_polymarket_yes_exceedance_rate):.4f} per $1 bet.\")\n    \n    if ev_polymarket_yes_distribution &gt; 0:\n        print(f\"Based on the distribution, for every $1 bet, you should expect to make ${ev_polymarket_yes_distribution:.4f}.\")\n    else:\n        print(f\"Based on the distribution, this bet may not be favorable, as you would expect to lose ${abs(ev_polymarket_yes_distribution):.4f} per $1 bet.\")\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Should You Bet &#8220;Yes&#8221;?<\/h2>\n\n\n\n<p>Essentially, we can analyze various years of data to determine how likely it is that NVDA will dethrone AAPL. Based on the output below, which analyzes data from 1 to 10 years, it turns out that betting \u201cYes\u201d on AAPL retaining the largest market cap into October 2024 could be favorable. However, the EV isn&#8217;t significant, so I wouldn\u2019t wager a large sum of money on this bet.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Polymarket 'Yes' Probability: 83.00%\nPolymarket 'Yes' Bet Cost: $0.84 per share\nPolymarket 'Yes' Payout: $0.16 per share\n\n### Summary for the Last 1 Year(s) ###\nMonths Analyzed: 12 months\nExceedance Rate: 0.25 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 75.00%\nProbability of at least one stock exceeding the threshold (distribution-based): 20.2984%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1200 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0325 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1200.\nBased on the distribution, for every $1 bet, you should expect to make $0.0325.\n\n### Summary for the Last 2 Year(s) ###\nMonths Analyzed: 24 months\nExceedance Rate: 0.29 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 70.83%\nProbability of at least one stock exceeding the threshold (distribution-based): 24.5599%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1133 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0393 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1133.\nBased on the distribution, for every $1 bet, you should expect to make $0.0393.\n\n### Summary for the Last 3 Year(s) ###\nMonths Analyzed: 36 months\nExceedance Rate: 0.19 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 80.56%\nProbability of at least one stock exceeding the threshold (distribution-based): 18.1044%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1289 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0290 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1289.\nBased on the distribution, for every $1 bet, you should expect to make $0.0290.\n\n### Summary for the Last 4 Year(s) ###\nMonths Analyzed: 48 months\nExceedance Rate: 0.15 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 85.42%\nProbability of at least one stock exceeding the threshold (distribution-based): 14.3875%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1367 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0230 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1367.\nBased on the distribution, for every $1 bet, you should expect to make $0.0230.\n\n### Summary for the Last 5 Year(s) ###\nMonths Analyzed: 60 months\nExceedance Rate: 0.13 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 86.67%\nProbability of at least one stock exceeding the threshold (distribution-based): 12.8382%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1387 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0205 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1387.\nBased on the distribution, for every $1 bet, you should expect to make $0.0205.\n\n### Summary for the Last 6 Year(s) ###\nMonths Analyzed: 72 months\nExceedance Rate: 0.12 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 87.50%\nProbability of at least one stock exceeding the threshold (distribution-based): 11.3315%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1400 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0181 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1400.\nBased on the distribution, for every $1 bet, you should expect to make $0.0181.\n\n### Summary for the Last 7 Year(s) ###\nMonths Analyzed: 84 months\nExceedance Rate: 0.12 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 88.10%\nProbability of at least one stock exceeding the threshold (distribution-based): 10.4131%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1410 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0167 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1410.\nBased on the distribution, for every $1 bet, you should expect to make $0.0167.\n\n### Summary for the Last 8 Year(s) ###\nMonths Analyzed: 96 months\nExceedance Rate: 0.12 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 87.50%\nProbability of at least one stock exceeding the threshold (distribution-based): 11.5422%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1400 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0185 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1400.\nBased on the distribution, for every $1 bet, you should expect to make $0.0185.\n\n### Summary for the Last 9 Year(s) ###\nMonths Analyzed: 108 months\nExceedance Rate: 0.13 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 87.04%\nProbability of at least one stock exceeding the threshold (distribution-based): 12.1167%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1393 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0194 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1393.\nBased on the distribution, for every $1 bet, you should expect to make $0.0194.\n\n### Summary for the Last 10 Year(s) ###\nMonths Analyzed: 120 months\nExceedance Rate: 0.13 exceedances per month\nProbability of Apple remaining the largest (based on exceedance rate): 86.67%\nProbability of at least one stock exceeding the threshold (distribution-based): 11.7986%\nExpected Value (EV) of betting 'Yes' on Polymarket (based on exceedance rate): $0.1387 per $1 bet\nExpected Value (EV) of betting 'Yes' on Polymarket (based on distribution): $0.0189 per $1 bet\nBased on the exceedance rate, for every $1 bet, you should expect to make $0.1387.\nBased on the distribution, for every $1 bet, you should expect to make $0.0189.<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Source Code<\/h2>\n\n\n\n<p>The source code can be found here to run your own analysis. <\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/JeremyWhittaker\/c7d1bc543e5f9d2852054739386b893a.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve spent the last couple of weeks shifting my focus toward finding arbitrage opportunities in the betting markets. Today, I came across an intriguing bet on Polymarket: \u201cWill&#8230;<\/p>\n","protected":false},"author":1,"featured_media":9135,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet - Jeremy Whittaker<\/title>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet\" \/>\n<meta property=\"og:description\" content=\"I\u2019ve spent the last couple of weeks shifting my focus toward finding arbitrage opportunities in the betting markets. Today, I came across an intriguing bet on Polymarket: \u201cWill Apple remain the largest company through September 30th?\u201d. The question got me thinking\u2014is Nvidia (NVDA) really about to overtake Apple (AAPL)? I knew Nvidia\u2019s market cap had surged recently, but an 84% chance that Apple would still be the largest by the end of the month? I had to investigate further.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/\" \/>\n<meta property=\"og:site_name\" content=\"Jeremy Whittaker\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/WhittakerJeremy\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/WhittakerJeremy\" \/>\n<meta property=\"article:published_time\" content=\"2024-09-01T23:25:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-02T00:06:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/file-ccgisfGZLdFXNAeoaXn5IIZc-4.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1792\" \/>\n\t<meta property=\"og:image:height\" content=\"1024\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"JeremyWhittaker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet\" \/>\n<meta name=\"twitter:description\" content=\"I\u2019ve spent the last couple of weeks shifting my focus toward finding arbitrage opportunities in the betting markets. Today, I came across an intriguing bet on Polymarket: \u201cWill Apple remain the largest company through September 30th?\u201d. The question got me thinking\u2014is Nvidia (NVDA) really about to overtake Apple (AAPL)? I knew Nvidia\u2019s market cap had surged recently, but an 84% chance that Apple would still be the largest by the end of the month? I had to investigate further.\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"JeremyWhittaker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/\"},\"author\":{\"name\":\"JeremyWhittaker\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\"},\"headline\":\"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet\",\"datePublished\":\"2024-09-01T23:25:37+00:00\",\"dateModified\":\"2024-09-02T00:06:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/\"},\"wordCount\":753,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\"},\"image\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/\",\"url\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/\",\"name\":\"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet - Jeremy Whittaker\",\"isPartOf\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp\",\"datePublished\":\"2024-09-01T23:25:37+00:00\",\"dateModified\":\"2024-09-02T00:06:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage\",\"url\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp\",\"contentUrl\":\"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp\",\"width\":1792,\"height\":1024},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/new.jeremywhittaker.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/new.jeremywhittaker.com\/#website\",\"url\":\"https:\/\/new.jeremywhittaker.com\/\",\"name\":\"Jeremy Whittaker\",\"description\":\"Research, software, markets, housing, and energy\",\"publisher\":{\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/new.jeremywhittaker.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c\",\"name\":\"JeremyWhittaker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\",\"caption\":\"JeremyWhittaker\"},\"logo\":{\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g\"},\"sameAs\":[\"http:\/\/www.jeremywhittaker.com\",\"https:\/\/www.facebook.com\/WhittakerJeremy\",\"https:\/\/www.linkedin.com\/in\/jeremywhittaker\/\"],\"url\":\"https:\/\/new.jeremywhittaker.com\/index.php\/author\/jeremywhittaker\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet - Jeremy Whittaker","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet","og_description":"I\u2019ve spent the last couple of weeks shifting my focus toward finding arbitrage opportunities in the betting markets. Today, I came across an intriguing bet on Polymarket: \u201cWill Apple remain the largest company through September 30th?\u201d. The question got me thinking\u2014is Nvidia (NVDA) really about to overtake Apple (AAPL)? I knew Nvidia\u2019s market cap had surged recently, but an 84% chance that Apple would still be the largest by the end of the month? I had to investigate further.","og_url":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/","og_site_name":"Jeremy Whittaker","article_publisher":"https:\/\/www.facebook.com\/WhittakerJeremy","article_author":"https:\/\/www.facebook.com\/WhittakerJeremy","article_published_time":"2024-09-01T23:25:37+00:00","article_modified_time":"2024-09-02T00:06:43+00:00","og_image":[{"width":1792,"height":1024,"url":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/file-ccgisfGZLdFXNAeoaXn5IIZc-4.webp","type":"image\/webp"}],"author":"JeremyWhittaker","twitter_card":"summary_large_image","twitter_title":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet","twitter_description":"I\u2019ve spent the last couple of weeks shifting my focus toward finding arbitrage opportunities in the betting markets. Today, I came across an intriguing bet on Polymarket: \u201cWill Apple remain the largest company through September 30th?\u201d. The question got me thinking\u2014is Nvidia (NVDA) really about to overtake Apple (AAPL)? I knew Nvidia\u2019s market cap had surged recently, but an 84% chance that Apple would still be the largest by the end of the month? I had to investigate further.","twitter_image":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp","twitter_misc":{"Written by":"JeremyWhittaker","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#article","isPartOf":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/"},"author":{"name":"JeremyWhittaker","@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c"},"headline":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet","datePublished":"2024-09-01T23:25:37+00:00","dateModified":"2024-09-02T00:06:43+00:00","mainEntityOfPage":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/"},"wordCount":753,"commentCount":0,"publisher":{"@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c"},"image":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage"},"thumbnailUrl":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/","url":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/","name":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet - Jeremy Whittaker","isPartOf":{"@id":"https:\/\/new.jeremywhittaker.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage"},"image":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage"},"thumbnailUrl":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp","datePublished":"2024-09-01T23:25:37+00:00","dateModified":"2024-09-02T00:06:43+00:00","breadcrumb":{"@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#primaryimage","url":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp","contentUrl":"https:\/\/new.jeremywhittaker.com\/wp-content\/uploads\/2024\/09\/DALL\u00b7E-2024-09-01-15.30.05-A-powerful-robot-resembling-a-futuristic-humanoid-with-glowing-green-eyes-and-a-sleek-metallic-body-is-depicted-in-an-intense-scene-where-it-is-dest.webp","width":1792,"height":1024},{"@type":"BreadcrumbList","@id":"https:\/\/new.jeremywhittaker.com\/index.php\/2024\/09\/01\/degenerate-gambler-or-investor-analyzing-polymarkets-will-apple-remain-the-largest-company-bet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/new.jeremywhittaker.com\/"},{"@type":"ListItem","position":2,"name":"Degenerate Gambler or Investor? Analyzing Polymarket\u2019s \u201cWill Apple Remain the Largest Company\u201d Bet"}]},{"@type":"WebSite","@id":"https:\/\/new.jeremywhittaker.com\/#website","url":"https:\/\/new.jeremywhittaker.com\/","name":"Jeremy Whittaker","description":"Research, software, markets, housing, and energy","publisher":{"@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/new.jeremywhittaker.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/new.jeremywhittaker.com\/#\/schema\/person\/ed0edfdefb3e180693efef453372980c","name":"JeremyWhittaker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g","caption":"JeremyWhittaker"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/c8ac20e6dfa86b5f27ce9bffee4851099770cbea5ae7338a274865bfbc8c0218?s=96&d=retro&r=g"},"sameAs":["http:\/\/www.jeremywhittaker.com","https:\/\/www.facebook.com\/WhittakerJeremy","https:\/\/www.linkedin.com\/in\/jeremywhittaker\/"],"url":"https:\/\/new.jeremywhittaker.com\/index.php\/author\/jeremywhittaker\/"}]}},"_links":{"self":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts\/9131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/comments?post=9131"}],"version-history":[{"count":22,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts\/9131\/revisions"}],"predecessor-version":[{"id":9162,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/posts\/9131\/revisions\/9162"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/media\/9135"}],"wp:attachment":[{"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/media?parent=9131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/categories?post=9131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/new.jeremywhittaker.com\/index.php\/wp-json\/wp\/v2\/tags?post=9131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}