Venn Diagram (Source :wikipedia.org)

SETS AND VENN DIAGRAM

Ali Şamil Küçük
3 min readDec 8, 2020

--

Hi there! I just starting Coursera Data Science Learning Path and i decided to share of my learned. Today’s topic is sets. Generally means set is collection of things. Your backpack, playlist, shopping malls can create a set.

Sets shows in curly braces in mathematic. Also every sets should has a equal to something because it is so necessary for in a operation process.

If we revisited to first paragraph i told to you sets can contain everything. So sets can includes numbers, letters, paragraphs…

DEFINE A SET

First thing is you should find be a variable. Also you must have a some values and then you should write your variable and put the equal mark then you must draw curly braces and you shoul put your values in between of curly braces. Finally you have a set!

Example 1

A={1,3,5,7,9}

Example 2

B={Mark,Jhon,Elissa}

ELEMENTS OF SETS

Sets has elements as i told you and we can want to see a element whether it is or not. ∈ is indicates set membership and ∉ is non indicates set membership.

Example

A={1,2,3,-5,6}

2 ∈ A

9 ∉ A

Cardinality

Cardinality is size of set. It shows like this:

|A|= 5

Example

C={3,7,45}

|C|= 3

INTERSECT

Intersect sets equal to elements that are common to both the sets. Intersect sets shows with symbol.

A ⋂ B = {x: x ∈ A and x ∈ B} — -> Formula

Example 1

A={1,2,5,-9} B={4,8,5,2}

A⋂B={2,5}

Example 2

D={Jhon,Zayn,Eric} E={Ali,Russel,Jhon}

D E = {Jhon}

UNION

Union is equal to the set of things which are in in set1 or in set2 or in both. Union shows with symbol.

A ⋃ B ={x: x ∈ A or x ∈ B} — ->Formula

Example

A={1,2,-3,7} B={2,8,-3,10}

A B={1,2,-3,7,8,10}

VENN DIAGRAM

Venn diagrams use for show to sets in a circle.

Example

A={1,8,4,3} show with venn diagram.

Answer

VENN DIAGRAM WITH INTERSECT

We can use venn diagrams for sets intersect.

Example

A={1,10,5,2} B={5,-7,10,3}

AB={5,10}

VENN DIAGRAM WITH UNION

Example

A={1,10,5,2} B={5,-7,10,3}

AB={1,10,5,2,-7,3}

--

--