The comparative advantage of a location shapes its industrial structure. Current theoretical models based on this principle do not take a stance on how comparative advantages in different industries or locations are related with each other, or what such patterns of relatedness might imply about the underlying process that governs the evolution of comparative advantage. We build a simple Ricardian-inspired model and show this hidden information on inter-industry and inter-location relatedness can be captured by simple correlations between the observed patterns of industries across locations or locations across industries. Using the information from related industries or related locations, we calculate the implied comparative advantage and show that this measure explains much of the location’s current industrial structure. We give evidence that these patterns are present in a wide variety of contexts, namely the export of goods (internationally) and the employment, payroll and number of establishments across the industries of subnational regions (in the US, Chile and India). The deviations between the observed and implied comparative advantage measures tend to be highly predictive of future industry growth, especially at horizons of a decade or more; this explanatory power holds at both the intensive as well as the extensive margin. These results suggest that a component of the long-term evolution of comparative advantage is already implied in today’s patterns of production.