Demography can also be applied to entires groups defined by nationality , religion and ethnicity .
Demographic analysis can be applied to whole societies or to groups defined by criteria such as education , nationality , religion and ethnicity . Institutionally , demography is usually considered a field of sociology , though there are a number of independent demography departments .