PortfoliosLab logoPortfoliosLab logo
CGNX vs. DHI
Performance
Return for Risk
Drawdowns
Volatility
Dividends
Financials

Performance

CGNX vs. DHI - Performance Comparison

The chart below illustrates the hypothetical performance of a $10,000 investment in Cognex Corporation (CGNX) and D.R. Horton, Inc. (DHI). The values are adjusted to include any dividend payments, if applicable.

Loading charts...

Returns By Period

In the year-to-date period, CGNX achieves a 84.18% return, which is significantly higher than DHI's 3.30% return. Over the past 10 years, CGNX has underperformed DHI with an annualized return of 12.44%, while DHI has yielded a comparatively higher 18.23% annualized return.


CGNX

1D
2.23%
1M
18.29%
YTD
84.18%
6M
73.52%
1Y
124.18%
3Y*
5.93%
5Y*
-2.62%
10Y*
12.44%

DHI

1D
0.63%
1M
-1.08%
YTD
3.30%
6M
-6.11%
1Y
28.01%
3Y*
10.82%
5Y*
11.26%
10Y*
18.23%
*Multi-year figures are annualized to reflect compound growth (CAGR)

CGNX vs. DHI - Yearly Performance Comparison


2026 (YTD)202520242023202220212020201920182017
CGNX
Cognex Corporation
84.18%1.24%-13.45%-10.84%-39.11%-2.85%47.69%45.54%-36.53%92.91%
DHI
D.R. Horton, Inc.
3.30%4.24%-7.24%72.07%-16.83%58.73%32.23%54.29%-31.26%89.06%

Correlation

The correlation between CGNX and DHI is 0.32, which is low. Their price movements are largely independent, making them effective diversification partners.


Correlation
Correlation (1Y)
Calculated over the trailing 1-year period

0.32

Correlation (3Y)
Calculated over the trailing 3-year period

0.36

Correlation (5Y)
Calculated over the trailing 5-year period

0.42

Correlation (10Y)
Calculated over the trailing 10-year period

0.37

Correlation (All Time)
Calculated using the full available price history since Jun 8, 1992

0.30

The correlation between CGNX and DHI shifts across timeframes, from 0.30 (all time) to 0.42 (5 years), reflecting how their relationship changes across market environments.

Fundamentals

Market Cap

CGNX:

$11.13B

DHI:

$43.07B

EPS

CGNX:

$0.84

DHI:

$10.76

PE Ratio

CGNX:

78.25

DHI:

13.75

PS Ratio

CGNX:

10.66

DHI:

1.31

PB Ratio

CGNX:

7.52

DHI:

1.78

Total Revenue (TTM)

CGNX:

$1.05B

DHI:

$33.35B

Gross Profit (TTM)

CGNX:

$712.01M

DHI:

$4.31B

EBITDA (TTM)

CGNX:

$224.08M

DHI:

$4.29B

Compare stocks, funds, or ETFs

Search for stocks, ETFs, and funds for a quick comparison or use the comparison tool for more options.


Return for Risk

CGNX vs. DHI — Risk / Return Rank

Compare risk-adjusted metric ranks to identify better-performing investments over the past 12 months.

CGNX
CGNX Risk / Return Rank: 8989
Overall Rank
CGNX Sharpe Ratio Rank: 8989
Sharpe Ratio Rank
CGNX Sortino Ratio Rank: 9292
Sortino Ratio Rank
CGNX Omega Ratio Rank: 9191
Omega Ratio Rank
CGNX Calmar Ratio Rank: 8989
Calmar Ratio Rank
CGNX Martin Ratio Rank: 8787
Martin Ratio Rank

DHI
DHI Risk / Return Rank: 6161
Overall Rank
DHI Sharpe Ratio Rank: 6464
Sharpe Ratio Rank
DHI Sortino Ratio Rank: 6363
Sortino Ratio Rank
DHI Omega Ratio Rank: 5858
Omega Ratio Rank
DHI Calmar Ratio Rank: 6161
Calmar Ratio Rank
DHI Martin Ratio Rank: 5858
Martin Ratio Rank
The rank (0–100) shows how this investment's returns compare to the risk taken. Higher = better. Based on the past 12 months of data, combining Sharpe, Sortino, and other metrics used by quantitative funds and institutional investors.

CGNX vs. DHI - Risk-Adjusted Trends Comparison

This table presents a comparison of risk-adjusted performance metrics for Cognex Corporation (CGNX) and D.R. Horton, Inc. (DHI). Risk-adjusted metrics are performance indicators that assess an investment's returns in relation to its risk, enabling a more accurate comparison of different investment options.


CGNXDHIDifference

Sharpe ratio

Return per unit of total volatility

2.17

0.73

+1.44

Sortino ratio

Return per unit of downside risk

3.49

1.43

+2.06

Omega ratio

Gain probability vs. loss probability

1.47

1.16

+0.31

Calmar ratio

Return relative to maximum drawdown

4.38

0.97

+3.41

Martin ratio

Return relative to average drawdown

9.94

1.74

+8.20

CGNX vs. DHI - Sharpe Ratio Comparison

The current CGNX Sharpe Ratio is 2.17, which is higher than the DHI Sharpe Ratio of 0.73. The chart below compares the historical Sharpe Ratios of CGNX and DHI, calculated using daily returns over the previous 12 months. A higher Sharpe Ratio indicates better risk-adjusted performance relative to the risk-free rate.


Loading charts...

Sharpe Ratios by Period


CGNXDHIDifference

Sharpe Ratio (1Y)

Calculated over the trailing 1-year period

2.17

0.73

+1.44

Sharpe Ratio (5Y)

Calculated over the trailing 5-year period

-0.06

0.32

-0.38

Sharpe Ratio (10Y)

Calculated over the trailing 10-year period

0.30

0.51

-0.21

Sharpe Ratio (All Time)

Calculated using the full available price history

0.28

0.31

-0.02

Drawdowns

CGNX vs. DHI - Drawdown Comparison

The maximum CGNX drawdown since its inception was -83.71%, smaller than the maximum DHI drawdown of -88.84%. Use the drawdown chart below to compare losses from any high point for CGNX and DHI.


Loading charts...

Drawdown Indicators


CGNXDHIDifference

Max Drawdown

Largest peak-to-trough decline

-83.71%

-88.84%

+5.13%

Max Drawdown (1Y)

Largest decline over 1 year

-27.86%

-27.56%

-0.30%

Max Drawdown (3Y)

Largest decline over 3 years

-59.98%

-41.28%

-18.70%

Max Drawdown (5Y)

Largest decline over 5 years

-74.07%

-44.45%

-29.62%

Max Drawdown (10Y)

Largest decline over 10 years

-74.63%

-53.62%

-21.01%

Current Drawdown

Current decline from peak

-27.29%

-23.42%

-3.87%

Average Drawdown

Average peak-to-trough decline

-37.52%

-27.92%

-9.60%

Ulcer Index

Depth and duration of drawdowns from previous peaks

12.27%

15.35%

-3.08%

Volatility

CGNX vs. DHI - Volatility Comparison

Cognex Corporation (CGNX) has a higher volatility of 14.08% compared to D.R. Horton, Inc. (DHI) at 9.65%. This indicates that CGNX's price experiences larger fluctuations and is considered to be riskier than DHI based on this measure. The chart below showcases a comparison of their rolling one-month volatility.


Loading charts...

Volatility by Period


CGNXDHIDifference

Volatility (1M)

Calculated over the trailing 1-month period

14.08%

9.65%

+4.43%

Volatility (6M)

Calculated over the trailing 6-month period

41.55%

24.80%

+16.75%

Volatility (1Y)

Calculated over the trailing 1-year period

57.58%

38.78%

+18.80%

Volatility (5Y)

Calculated over the trailing 5-year period, annualized

43.44%

35.33%

+8.11%

Volatility (10Y)

Calculated over the trailing 10-year period, annualized

41.80%

35.73%

+6.07%

Dividends

CGNX vs. DHI - Dividend Comparison

CGNX's dividend yield for the trailing twelve months is around 0.51%, less than DHI's 1.18% yield.


PositionTTM20252024202320222021202020192018201720162015
CGNX
Cognex Corporation
0.51%0.90%0.85%0.68%0.56%0.32%2.77%0.37%0.48%0.27%0.46%0.62%
DHI
D.R. Horton, Inc.
1.18%1.15%0.93%0.69%1.04%0.76%1.05%1.18%1.51%0.83%1.24%0.84%

Financials

CGNX vs. DHI - Financials Comparison

This section allows you to compare key financial metrics between Cognex Corporation and D.R. Horton, Inc.. You can select fields from income statements, balance sheets, and cash flow statements to easily visualize and compare the financial health of both companies.


Quarterly
Annual

Total Revenue: Total amount of money received from sales and other business activities


0.002.00B4.00B6.00B8.00B10.00B20222023202420252026
268.44M
7.56B
(CGNX) Total Revenue
(DHI) Total Revenue
Values in USD except per share items

CGNX vs. DHI - Profitability Comparison

The chart below illustrates the profitability comparison between Cognex Corporation and D.R. Horton, Inc. over time, highlighting three key metrics: Gross Profit Margin, Operating Margin, and Net Profit Margin.

Gross Margin
Operating Margin
Net Margin
Quarterly
Annual

-20.0%0.0%20.0%40.0%60.0%80.0%20222023202420252026
71.1%
-21.1%
Portfolio components
CGNX - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, Cognex Corporation reported a gross profit of 190.94M and revenue of 268.44M. Therefore, the gross margin over that period was 71.1%.

DHI - Gross Margin

Gross margin is calculated as gross profit divided by revenue. For the three months ending on Jun 2026, D.R. Horton, Inc. reported a gross profit of -1.59B and revenue of 7.56B. Therefore, the gross margin over that period was -21.1%.

CGNX - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, Cognex Corporation reported an operating income of 59.87M and revenue of 268.44M, resulting in an operating margin of 22.3%.

DHI - Operating Margin

Operating margin is calculated as operating income divided by revenue. For the three months ending on Jun 2026, D.R. Horton, Inc. reported an operating income of -729.60M and revenue of 7.56B, resulting in an operating margin of -9.7%.

CGNX - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, Cognex Corporation reported a net income of 51.70M and revenue of 268.44M, resulting in a net margin of 19.3%.

DHI - Net Margin

Net margin is calculated as net income divided by revenue. For the three months ending on Jun 2026, D.R. Horton, Inc. reported a net income of 647.90M and revenue of 7.56B, resulting in a net margin of 8.6%.


Frequently Asked Questions


CGNX and DHI have a correlation of 0.32, meaning they provide meaningful diversification benefit when combined. Depending on your allocation goals, holding both could reduce overall portfolio risk.

CGNX has higher volatility (14.08%) compared to DHI (9.65%). In terms of maximum drawdown, CGNX dropped -83.71% vs DHI's -88.84%.

CGNX currently has the higher Sharpe Ratio (2.17 vs 0.73), meaning it's delivered slightly more return per unit of risk over the trailing 12 months. However, this ranking shifts over time - use the Risk/Return Score above for a more comprehensive view that combines Sharpe, Sortino, and other measures used by quantitative funds.

Portfolio Optimizer

Find the right allocation for CGNX and DHI

Add both to a portfolio and optimize allocations for your target — whether that's maximizing returns, minimizing drawdowns, or balancing risk across holdings.

Open Portfolio Optimizer