Are AI Company Valuations Growing Faster Than Financial Performance?
library(tidyverse)
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.2.1 ✔ readr 2.1.6
✔ forcats 1.0.1 ✔ stringr 1.6.0
✔ ggplot2 4.0.3 ✔ tibble 3.3.1
✔ lubridate 1.9.4 ✔ tidyr 1.3.2
✔ purrr 1.2.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(tidyquant)
Registered S3 method overwritten by 'quantmod':
method from
as.zoo.data.frame zoo
── Attaching core tidyquant packages ─────────────────────── tidyquant 1.0.12 ──
✔ PerformanceAnalytics 2.1.0 ✔ TTR 0.24.4
✔ quantmod 0.4.28 ✔ xts 0.14.1── Conflicts ────────────────────────────────────────── tidyquant_conflicts() ──
✖ zoo::as.Date() masks base::as.Date()
✖ zoo::as.Date.numeric() masks base::as.Date.numeric()
✖ dplyr::filter() masks stats::filter()
✖ xts::first() masks dplyr::first()
✖ dplyr::lag() masks stats::lag()
✖ xts::last() masks dplyr::last()
✖ PerformanceAnalytics::legend() masks graphics::legend()
✖ quantmod::summary() masks base::summary()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(lubridate)library(scales)
Attaching package: 'scales'
The following object is masked from 'package:purrr':
discard
The following object is masked from 'package:readr':
col_factor
library(gt)library(broom)
Project Overview
This project examines whether stock market valuations of major AI-focused technology companies have grown faster than their underlying financial performance. With increased investor excitement around artificial intelligence, companies such as NVIDIA, Microsoft, Alphabet, Amazon, and Meta have experienced major market growth. This analysis compares stock price growth against business fundamentals such as revenue and net income to evaluate whether market performance appears aligned with financial performance.
The project follows the OSEMN data science workflow:
Obtain financial market and company fundamentals data
Scrub and clean the data into comparable formats
Explore trends in stock prices, revenue, and net income
Model the relationship between financial performance and stock growth
Interpret whether valuation growth appears supported by fundamentals
First let’s define the AI-related companies for this project
Now that we have our dataset, let’s visualize the stock growth vs revenue growth.
ggplot(analysis_data, aes(x = revenue_growth_pct, y = stock_growth_pct, label = symbol)) +geom_point(size =3) +geom_text(nudge_y =5, check_overlap =TRUE) +geom_smooth(method ="lm", se =FALSE) +labs(title ="Stock Growth vs. Revenue Growth",subtitle ="Comparing annual stock returns against annual revenue growth for major AI-related companies",x ="Revenue Growth (%)",y ="Stock Growth (%)" ) +theme_minimal()
`geom_smooth()` using formula = 'y ~ x'
Warning: The following aesthetics were dropped during statistical transformation: label.
ℹ This can happen when ggplot fails to infer the correct grouping structure in
the data.
ℹ Did you forget to specify a `group` aesthetic or to convert a numerical
variable into a factor?
The scatterplot indicates a moderate positive relationship between revenue growth and stock performance, suggesting that stronger financial performance is often associated with stock appreciation. However, the variability in outcomes and presence of significant outliers imply that market valuations may also be influenced by investor sentiment and AI-related growth expectations beyond reported financial fundamentals.
Let’s further examine this with statistical analysis.
Call:
lm(formula = stock_growth_pct ~ revenue_growth_pct + net_income_growth_pct,
data = analysis_data)
Residuals:
Min 1Q Median 3Q Max
-109.21 -42.25 -12.04 25.56 212.84
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 33.229755 21.211578 1.567 0.131
revenue_growth_pct 0.397526 0.531842 0.747 0.462
net_income_growth_pct 0.001077 0.061296 0.018 0.986
Residual standard error: 76.15 on 23 degrees of freedom
Multiple R-squared: 0.02989, Adjusted R-squared: -0.05447
F-statistic: 0.3543 on 2 and 23 DF, p-value: 0.7054
The regression analysis found no statistically significant relationship between annual stock growth and the financial performance metrics included in the model, specifically revenue growth and net income growth (p > 0.05). With an R-squared of approximately 3%, the model explains very little of the variation in stock returns, suggesting that stock market performance for major AI-focused companies may be driven by factors beyond traditional financial fundamentals, such as investor sentiment, future growth expectations, or broader market trends.
Next, I want to compare stock growth vs revenue growth by company over time.
Across all five AI-focused companies analyzed, average annual stock growth exceeded average annual revenue growth, with the largest gap observed in NVIDIA. This suggests that investor valuation growth has outpaced underlying business expansion, supporting the hypothesis that market expectations around AI may be contributing to elevated stock performance beyond traditional financial fundamentals.
I am going to run one more statistical test that directly supports the conclusion, because the regression showed “not significant.
Let’s do a simpler comparison:
Is average stock growth statistically higher than average revenue growth?
Paired t-test
data: analysis_data$stock_growth_pct and analysis_data$revenue_growth_pct
t = 1.0811, df = 25, p-value = 0.29
alternative hypothesis: true mean difference is not equal to 0
95 percent confidence interval:
-14.48624 46.49699
sample estimates:
mean difference
16.00538
While the visual analysis suggests that stock market growth generally exceeds revenue growth among the AI-focused companies examined, the statistical tests did not find this difference to be significant at conventional thresholds (p > 0.05). This indicates a directional pattern in the data, but the relatively small sample size and variability across companies limit the strength of the conclusion. As a result, the findings suggest that investor valuations may be influenced by factors beyond traditional financial performance, though stronger evidence would require a larger dataset or broader company sample.
Let’s do the stock price over time:
ggplot(stock_prices, aes(x = date, y = adjusted, color = symbol)) +geom_line(size =1) +labs(title ="Stock Price Trends for Major AI-Focused Companies",subtitle ="Adjusted closing prices from 2020 to present",x ="Date",y ="Adjusted Stock Price ($)",color ="Company" ) +theme_minimal()
Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
ℹ Please use `linewidth` instead.
The stock price trend visualization illustrates the market performance trajectories of major AI-focused technology companies from 2020 onward. While all companies experienced growth over the study period, the magnitude and volatility of performance varied substantially, with NVIDIA showing particularly sharp acceleration in recent years. This visualization provides descriptive context for the broader analysis by demonstrating how investor valuations evolved over time prior to comparison with underlying financial fundamentals.
# A tibble: 5 × 5
symbol company avg_stock_growth avg_revenue_growth stock_minus_revenue
<chr> <chr> <dbl> <dbl> <dbl>
1 AMZN Amazon 16.4 13.3 3.16
2 GOOGL Alphabet 37.8 17.7 20.0
3 META Meta 44.9 19.2 25.7
4 MSFT Microsoft 23.5 14.6 8.87
5 NVDA NVIDIA 91.1 70.0 21.2
Across all five AI-focused companies analyzed, average annual stock growth exceeded average annual revenue growth. The largest gaps were observed for Meta, NVIDIA, and Alphabet, where market appreciation substantially outpaced business growth. While earlier statistical tests did not find this relationship to be statistically significant, the directional consistency across all companies suggests that investor expectations surrounding AI may be contributing to elevated stock valuations beyond traditional financial fundamentals.