StockComparison Logo
vs

CGNX vs AFG

Comparison between Cognex Corp (CGNX, Company) and American Financial Group Inc (AFG, Company).

CGNX is from the Technology sector, while AFG is from the Financial Services sector.

5-Year PerformanceAFG has outperformed CGNX, delivering a return of +11.3% compared to -2.5%

CGNX vs AFG - Performance Comparison

Key Characteristics

Financial metrics and valuation ratios

Market Cap
Winner
CGNX
$11B
AFG
$11B
Max Drawdown
CGNX
85.19%
Winner
AFG
64.27%
Sharpe Ratio
Winner
CGNX
1.62
AFG
0.68
5Y Beta
CGNX
1.40
Winner
AFG
0.47
Industry
CGNX
Scientific & Technical Instruments
AFG
Insurance - Property & Casualty
P/E Ratio
CGNX
78.21
Winner
AFG
12.67
Forward P/E
CGNX
33.90
Winner
AFG
11.53
PEG Ratio
CGNX
3.33
Winner
AFG
1.18
Dividend Yield
CGNX
0.50%
Winner
AFG
2.52%
5Y Dividends CAGR
CGNX
-31.58%
Winner
AFG
14.40%
5Y EPS CAGR
Winner
CGNX
-7.89%
AFG
-8.90%
Debt to Equity
Winner
CGNX
0.00%
AFG
38.91%
Free Cash Flow Yield
CGNX
2.17%
Winner
AFG
15.00%

CGNX vs AFG - Historical Returns

Returns include dividend reinvestment.

1M
Winner
CGNX
+21.23%
AFG
+3.13%
3M
Winner
CGNX
+22.77%
AFG
+1.15%
6M
Winner
CGNX
+75.06%
AFG
-0.20%
1Y
Winner
CGNX
+118.64%
AFG
+14.02%
5Y(CAGR)
CGNX
-2.50%
Winner
AFG
+11.31%
10Y(CAGR)
CGNX
+12.88%
Winner
AFG
+14.40%
Max(CAGR)
CGNX
+9.59%
Winner
AFG
+12.30%

CGNX vs AFG - Annual Returns (1999 - 2026)

Returns include dividend reinvestment.

YearCGNXAFG
2026+81.13%+1.63%
2025+1.71%+6.63%
2024-10.44%+23.21%
2023-12.34%-7.29%
2022-38.45%+12.38%
2021-2.77%+100.41%
2020+46.09%-17.32%
2019+45.84%+28.58%
2018-36.76%-11.62%
2017+93.98%+29.61%
2016+92.37%+28.46%
2015-16.87%+23.23%
2014+9.22%+11.05%
2013+98.75%+49.47%
2012+4.12%+8.30%
2011+19.53%+14.20%
2010+64.06%+29.55%
2009+19.35%+9.06%
2008-23.48%-18.23%
2007-15.44%-19.89%
2006-18.91%+42.58%
2005+12.82%+25.44%
2004-0.78%+20.43%
2003+47.96%+16.50%
2002-27.56%-1.88%
2001+33.87%-3.80%
2000-40.24%+9.32%
1999+29.44%-8.43%

CGNX vs AFG Drawdown Comparison

The maximum drawdown for CGNX was -83.73%, occurring on Mar 9, 2009. Recovery took 3348 trading sessions.

The maximum drawdown for AFG was -62.93%, occurring on Mar 9, 2009. Recovery took 999 trading sessions.

The current CGNX drawdown is -26.59%. The current AFG drawdown is -5.96%.

RankCGNXAFG
#1-83.73%
Apr 7, 2000 - Aug 1, 2013
-62.93%
Feb 21, 2007 - Feb 7, 2011
#2-74.63%
Feb 12, 2021 - Apr 8, 2025
-58.98%
Feb 11, 2020 - Feb 22, 2021
#3-51.57%
Nov 21, 2017 - Nov 4, 2020
-38.10%
Apr 19, 2002 - Feb 2, 2004
#4-44.58%
Apr 13, 2015 - Sep 21, 2016
-38.06%
Jul 13, 2001 - Apr 17, 2002
#5-20.02%
Feb 13, 2014 - Jul 3, 2014
-37.71%
Nov 5, 1999 - Feb 5, 2001
#6-19.62%
Aug 22, 2014 - Feb 26, 2015
-26.46%
Feb 1, 2018 - Nov 27, 2019
#7-14.73%
Mar 9, 2000 - Mar 23, 2000
-23.79%
Nov 10, 2022 - Mar 25, 2024
#8-11.49%
Jun 8, 2017 - Aug 1, 2017
-22.41%
Feb 5, 2001 - Jun 11, 2001
#9-9.92%
Dec 31, 1999 - Jan 14, 2000
-19.87%
Nov 25, 2024 - Sep 24, 2025
#10-9.83%
Oct 29, 2013 - Nov 27, 2013
-16.15%
Jun 7, 2022 - Oct 28, 2022
#11-8.95%
Oct 24, 2016 - Nov 7, 2016
-16.07%
Jul 7, 2011 - Oct 24, 2011
#12-8.81%
Nov 22, 1999 - Dec 21, 1999
-13.18%
Oct 3, 2025 - Mar 20, 2026
#13-8.46%
Sep 10, 2013 - Oct 29, 2013
-12.24%
Nov 16, 2004 - May 4, 2005
#14-6.60%
Jan 21, 2000 - Feb 2, 2000
-12.05%
Mar 27, 2024 - Sep 9, 2024
#15-6.42%
Jan 14, 2021 - Feb 5, 2021
-11.76%
Dec 4, 2015 - Jun 23, 2016

Correlation

Correlation between CGNX and AFG is 0.77 which considered as a strong positive correlation - the stocks tend to move together.

0.77
-101

Dividend Comparison (2000 - 2026)

CGNX vs AFG dividend yield comparison.

YearCGNXAFG
20260.25%2.44%
20250.90%5.33%
20240.85%6.89%
20230.68%6.81%
20220.56%10.42%
20210.32%20.43%
20202.77%4.39%
20190.37%4.51%
20180.48%4.92%
20170.27%4.41%
20160.46%2.44%
20150.62%2.82%
20140.00%3.15%
20130.00%3.13%
20123.89%2.45%
20111.01%1.80%
20100.85%1.78%
20091.69%2.08%
20083.18%2.19%
20071.69%1.39%
20061.39%1.02%
20051.06%1.30%
20041.00%1.60%
20030.42%1.89%
20020.00%2.17%
20010.00%4.07%
20000.00%3.77%

Select Stocks to Compare