Assuming a multiplicative model of disease risk, we denote the genotype of the ith individual at the kth SNP by Gik, coded as 0, 1, or 2, according to the number of minor alleles they carry. We calculate the identity by state (IBS) between each pair of samples, from the original GWA study and all external cohorts, over the whole genome, given by