Figure 2 shows the distribution of the gene count score in people who developed type 2 diabetes and those who remained free of diabetes; the web figure shows the equivalent data for genetic risk function. Fourteen per cent of people with type 2 diabetes were in the top fifth of the gene count score compared with 13.9% of those without type 2 diabetes (web table K). The odds ratio for type 2 diabetes for participants in the top fifth of the score was 1.6 (0.9 to 2.5) compared with those in the bottom fifth. Twenty-five per cent of people with type 2 diabetes were in the top fifth of the genetic risk function, compared with 20% of those without diabetes, giving an odds ratio for type 2 diabetes of 2.3 (1.5 to 3.8) (web table K). The mean gene count score was 21.1 (SD 2.6) in people with type 2 diabetes and 20.5 (2.7) in those without type 2 diabetes (web table K). The simple gene count and the genetic risk function gave very similar discrimination, with areas under the