CGNX vs TRS: Correlation
Measured on weekly returns over the past three years, Cognex Corporation (CGNX) and TriMas Corporation (TRS) carry a correlation of 0.51, a moderate link.
Data as of 2026-08-27 · refreshed every trading day · weekly returns · methodology
How correlated are CGNX and TRS?
Over the past 3 years, CGNX and TRS moved with a correlation of 0.51, which is moderate. Recent behaviour matches the longer record: 0.44 over 1 year against 0.51 over 3. Over 5 years the correlation is 0.44, and the annualized covariance of weekly returns is 770.7 %².
Within CGNX's tracked universe of 16 assets, TRS comes in at #7 by 3-year correlation. Their recent paths diverged sharply: over the last 12 months CGNX outperformed by 40.4 percentage points (+43.2% for CGNX against +2.8% for TRS).
How is this computed?
Pearson correlation on weekly returns: ρ(A,B) = cov(rA, rB) / (σA · σB), over windows of 52, 156 and 260 weeks. Covariance is annualized (×52) and expressed in %². Full definitions on the methodology page.
CGNX vs TRS: side by side
| CGNX (Cognex Corporation) | TRS (TriMas Corporation) | |
|---|---|---|
| 1-year return | +43.2% | +2.8% |
| 5-year return | -27.4% | +25.8% |
| Volatility (ann.) | 45.5% | 33.3% |
| Beta vs S&P 500 | 1.27 | 0.76 |
| Max drawdown (3Y) | -55.7% | -29.5% |
| Market cap | $10.6B | $1.4B |
| P/E (trailing) | 59.4 | 19.2 |
| Dividend yield | 0.54% | 0.40% |
| Sector / category | US Listed | US Listed |
Year-by-year returns
| Year | CGNX | TRS |
|---|---|---|
| 2022 | -39.1% | -24.6% |
| 2023 | -10.8% | -8.1% |
| 2024 | -13.4% | -2.3% |
| 2025 | +1.2% | +45.0% |
| 2026 | +75.8% | +12.0% |
Calendar-year price returns; the current year is year-to-date as of the data date above.
Are CGNX and TRS good diversifiers for each other?
To a limited degree. At 0.51 the two still catch most of the same waves, so the pair smooths returns a little without insulating either from a shared selloff.
FAQ
What is the correlation between CGNX and TRS?
As of 2026-08-27, the correlation of weekly returns between CGNX and TRS is 0.51 over 3 years, 0.44 over 1 year and 0.44 over 5 years.
Is TRS a good diversifier for CGNX?
To a limited degree. At 0.51 the two still catch most of the same waves, so the pair smooths returns a little without insulating either from a shared selloff.
What does a correlation of 0.51 mean?
A reading of 0.51 sits on a scale from −1 (opposite moves) through 0 (unrelated) to +1 (identical moves). Correlation captures direction, not magnitude or performance.
Use this data
$ curl https://www.pairbook.io/api/v1/pairs/cgnx-vs-trs.json
Markdown for the live badge, attribution link included:
[](https://www.pairbook.io/pair/cgnx-vs-trs/)
No key needed, free to use. Full endpoint list in the API documentation.
Related comparisons
Hubs: CGNX correlations · TRS correlations