They are used to teach elementary set theory , as well as illustrate simple set relationships in probability , logic , statistics , linguistics and computer science .
They are used to teach elementary set theory , and to illustrate simple set relationships in probability , logic , statistics , linguistics and computer science .