SlideShare uma empresa Scribd logo
1 de 14
SET RELATIONSHIP, SET
OPERATION AND SIGMOID
ABDUL SABOOR(2101-2019)
KANZA BATOOL(2096-2019)
SET RELATIONSHIP
• It is defined as the relation between two sets.
• Terminology used to describe sets Relationship
• Membership (∈)
• Subsets (⊆)/ Supersets (⊇)
• Disjoint Sets
• NULL Set ( ∅ )
• Family Sets
• Power Sets ( P(set Name) )
1. Membership (∈): Membership happens when one element or a
set is found inside another set. This symbol is normally used in
describing a set.
For example:
{1, 2, 3} ∈ {6, 7, 8, 1, 2, 3}
2. Subsets (⊆)/ Supersets (⊇):If every member of set A is found
inside set B, then A is a subset of B (A ⊆ B). If set B has every
member of A and more then B is a super set of A (B ⊇ A).
For example:
A = {1, 2, 3}, B = {1, 2, 3, 4}, then A ⊆ B and also B ⊇ A
3. Disjoint Sets: If every member of set A has no relation with set B and
vice versa then we say that A disjoint B.
There is no special symbol to show this relationship.
4. NULL Set ( ∅ ): Every universe or set or subset contains a NULL set. A
null set is an empty set ({ }) that carries no elements. We can say
that the NULL set is a subset for every set.
5. Family Sets: There are times when a set does not contain individual
elements but it contains many subsets. Conveniently this is call a
family set and is it describes using the curly bracket within a curly
bracket.
For example:
A = { {1, 2, 3, 4, 5} , {6, 7, 8, 9, 10} , {11, 12, 13, 14, 15} }
6. Power Sets ( P(set Name) ): Remember that a set is a group that
may contain none or one (1) or more elements. A power set means
to show how many possible different ways to group all the
elements in a set. In other words power set is the set of all subsets
of a given set.
For example:
A = {1, 2, 3} , A has 3 elements, there is 8 possible ways to arrange this
(2)3 = 8.
P(A) = { ∅ , {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1, 2, 3} }
SET OPERATIONS
Terminology used to describe sets Operation
• Union (∪): Add in all elements that are found in both sets.
{a,e,i} ∪ {o, u} = {a, e, i, o, u}
• Intersect (∩): Show only elements that is found only in both sets.
{red, blue} ∩ {blue, yellow} = {blue}
• Difference (-): Also known as subtract, this show only elements that is
found in this set but NOT found in another sets.
{1, 2, 3, 4, 5}  {1, 2, 3} = {4, 5}
• Complement (‘): Show only elements that is found in universal set but
NOT found in another sets.
U = {1, 2, 3, 4, 5, 6} and A = {1, 3, 5}. Then A' = {2, 4, 6}.
• Equality: Both sets must have exactly the same number of elements
with exactly the same value.
A={1, 2, 3} , B={2, 3, 1} therefore A = B
• Compatible: Two sets are compatible if all element in one of the set can
fit nicely inside another set.
A = {x, b} Z = {x, b, c} therefore A is compatible to Z
Use of set operation
• In formal language theory, a language is a set of strings and the study
of operations on languages is central. Some of these are the usual set
operations of intersection, union and complement.
• Databases are at the root of most applications. Databases are built to
process data in Sets, and the applications that use them negotiates
with the database in sets.
Set operation in RDBMS
• One of the primary applications is database query design and processing. All
queries onto RDBMS are in set notation and returned as sets.
• UNION operator in SQL Server acts as like as the union operation in
the Set Theory.
CREATE TABLE TABLE_A (FruitName VARCHAR(100))
INSERT INTO TABLE_A VALUES ('Apple'),('Orange'),('Strawberry'),('Lemon'),('Avocado')
CREATE TABLE TABLE_B (FruitName VARCHAR(100))
INSERT INTO TABLE_B VALUES ('Lemon'),('Avocado'),('Grapefruit'),('Apricot')
SELECT * FROM TABLE_A
UNION
SELECT * FROM TABLE_B
A = {Apple, Orange, Strawberry, Lemon, Avocado}
B = {Lemon, Avocado, Grapefruit, Apricot}
The union of the A and B sets will look as follow and it is denoted by A U B:
A U B = {Apple, Orange, Strawberry, Lemon, Avocado, Grapefruit, Apricot}
1
2
3
SELECT * FROM TABLE_A
INTERSECT
SELECT * FROM TABLE_B
The INTERSECT operator implements the intersection logic of the Set
Theory to tables. Now, we will find the intersection of
the TABLE_A and TABLE_B with help of the following query:
A = {Apple, Orange, Strawberry, Lemon, Avocado}
B = {Lemon, Avocado, Grapefruit, Apricot}
A ∩ B = {Lemon, Avocado}
• In SQL Server, with the help of the EXCEPT operator, we can obtain
the difference between the two tables:
1
2
3
SELECT * FROM TABLE_A
EXCEPT
SELECT * FROM TABLE_B
A = {Apple, Orange, Strawberry, Lemon, Avocado}
B = {Lemon, Avocado, Grapefruit, Apricot}
A  B = {Apple, Orange, Strawberry}
SIGMOID
• The Sigmoid Function curve looks like a S-shape.
• The main reason why we use sigmoid function is because it exists
between (0 to 1).
• it is especially used for models where we have to predict the
probability as an output.
• Since probability of anything exists only between the range of 0 and
1, sigmoid is the right choice.
USE OF SIGMOID
• A key area of machine learning where the sigmoid function is
essential is a logistic regression model. A logistic regression model is
used to estimate the probability of a binary event
• In logistic regression, a logistic sigmoid function is fit to a set of data
where the independent variable(s) can take any real value, and the
dependent variable is either 0 or 1.
THANK YOU

Mais conteúdo relacionado

Mais procurados (19)

Python set
Python setPython set
Python set
 
Section3 1
Section3 1Section3 1
Section3 1
 
Set theory
Set theorySet theory
Set theory
 
maths set
maths setmaths set
maths set
 
Maths Project 11 class(SETS)
Maths Project 11 class(SETS)Maths Project 11 class(SETS)
Maths Project 11 class(SETS)
 
Disjoint sets union, find
Disjoint sets  union, findDisjoint sets  union, find
Disjoint sets union, find
 
Set theory-complete-1211828121770367-8
Set theory-complete-1211828121770367-8Set theory-complete-1211828121770367-8
Set theory-complete-1211828121770367-8
 
Arithmetic Order Of Operations
Arithmetic Order Of OperationsArithmetic Order Of Operations
Arithmetic Order Of Operations
 
Computer programming 2 Lesson 13
Computer programming 2  Lesson 13Computer programming 2  Lesson 13
Computer programming 2 Lesson 13
 
Sets
SetsSets
Sets
 
Sets
SetsSets
Sets
 
Sets and its types-
 Sets and its types- Sets and its types-
Sets and its types-
 
Use of the Tree.
Use of the Tree.Use of the Tree.
Use of the Tree.
 
Arrays in python
Arrays in pythonArrays in python
Arrays in python
 
Discreet_Set Theory
Discreet_Set TheoryDiscreet_Set Theory
Discreet_Set Theory
 
019# mean, median, mode
019# mean, median, mode019# mean, median, mode
019# mean, median, mode
 
SETS AND TYPES OF SET
SETS AND TYPES OF SETSETS AND TYPES OF SET
SETS AND TYPES OF SET
 
Sets and Subsets
Sets and SubsetsSets and Subsets
Sets and Subsets
 
Dxc
DxcDxc
Dxc
 

Semelhante a Set relationship, set operation and sigmoid

Explore the foundational concepts of sets in discrete mathematics
Explore the foundational concepts of sets in discrete mathematicsExplore the foundational concepts of sets in discrete mathematics
Explore the foundational concepts of sets in discrete mathematicsDr Chetan Bawankar
 
TOUSIF AZIM_BDS 101[1].pptx
TOUSIF AZIM_BDS 101[1].pptxTOUSIF AZIM_BDS 101[1].pptx
TOUSIF AZIM_BDS 101[1].pptxTousifAzim
 
Discrete Maths Notes by Ur Engineering Friend
Discrete Maths Notes by Ur Engineering FriendDiscrete Maths Notes by Ur Engineering Friend
Discrete Maths Notes by Ur Engineering Friendprinceraj217657
 
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...Amr Rashed
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercisesRoshayu Mohamad
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematicNaralaswapna
 
Set theory- Introduction, symbols with its meaning
Set theory- Introduction, symbols with its meaningSet theory- Introduction, symbols with its meaning
Set theory- Introduction, symbols with its meaningDipakMahurkar1
 
1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptx1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptxmxian444
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfMaryAnnBatac1
 
Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Amr Rashed
 
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptxQ1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptxNovyFacun1
 
#17 Boba PPT Template (1).pptx
#17 Boba PPT Template (1).pptx#17 Boba PPT Template (1).pptx
#17 Boba PPT Template (1).pptxKimSeungyoon2
 
Lecture 1- DM Intro.pptx
Lecture 1- DM Intro.pptxLecture 1- DM Intro.pptx
Lecture 1- DM Intro.pptxRydaS1
 

Semelhante a Set relationship, set operation and sigmoid (20)

Explore the foundational concepts of sets in discrete mathematics
Explore the foundational concepts of sets in discrete mathematicsExplore the foundational concepts of sets in discrete mathematics
Explore the foundational concepts of sets in discrete mathematics
 
Concept of set.
Concept of set.Concept of set.
Concept of set.
 
TOUSIF AZIM_BDS 101[1].pptx
TOUSIF AZIM_BDS 101[1].pptxTOUSIF AZIM_BDS 101[1].pptx
TOUSIF AZIM_BDS 101[1].pptx
 
G-1-SETS.pdf
G-1-SETS.pdfG-1-SETS.pdf
G-1-SETS.pdf
 
Set theory
Set theorySet theory
Set theory
 
Discrete Maths Notes by Ur Engineering Friend
Discrete Maths Notes by Ur Engineering FriendDiscrete Maths Notes by Ur Engineering Friend
Discrete Maths Notes by Ur Engineering Friend
 
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
Discrete Math Chapter 2: Basic Structures: Sets, Functions, Sequences, Sums, ...
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
Discrete mathematic
Discrete mathematicDiscrete mathematic
Discrete mathematic
 
SETS PPT-XI.pptx
SETS PPT-XI.pptxSETS PPT-XI.pptx
SETS PPT-XI.pptx
 
Set theory- Introduction, symbols with its meaning
Set theory- Introduction, symbols with its meaningSet theory- Introduction, symbols with its meaning
Set theory- Introduction, symbols with its meaning
 
1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptx1. Real Numbers and Integer Exponent.pptx
1. Real Numbers and Integer Exponent.pptx
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
Blackbox task 2
Blackbox task 2Blackbox task 2
Blackbox task 2
 
Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1Discrete Structure Mathematics lecture 1
Discrete Structure Mathematics lecture 1
 
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptxQ1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
Q1 Week 1 Lesson -Concepts of Sets and Operation on Sets.pptx
 
SETS-LESSON-1.pptx
SETS-LESSON-1.pptxSETS-LESSON-1.pptx
SETS-LESSON-1.pptx
 
#17 Boba PPT Template (1).pptx
#17 Boba PPT Template (1).pptx#17 Boba PPT Template (1).pptx
#17 Boba PPT Template (1).pptx
 
Set methods in python
Set methods in pythonSet methods in python
Set methods in python
 
Lecture 1- DM Intro.pptx
Lecture 1- DM Intro.pptxLecture 1- DM Intro.pptx
Lecture 1- DM Intro.pptx
 

Mais de Kanza batool

Professional practice presentation.pptx
Professional practice presentation.pptxProfessional practice presentation.pptx
Professional practice presentation.pptxKanza batool
 
Concept of thread, multi thread, tcb
Concept of thread, multi thread, tcbConcept of thread, multi thread, tcb
Concept of thread, multi thread, tcbKanza batool
 
Scheduling (sjf, fcfs and round robin
Scheduling (sjf, fcfs and round robinScheduling (sjf, fcfs and round robin
Scheduling (sjf, fcfs and round robinKanza batool
 

Mais de Kanza batool (6)

ecommerce-ppt.pdf
ecommerce-ppt.pdfecommerce-ppt.pdf
ecommerce-ppt.pdf
 
agile.pptx
agile.pptxagile.pptx
agile.pptx
 
Professional practice presentation.pptx
Professional practice presentation.pptxProfessional practice presentation.pptx
Professional practice presentation.pptx
 
Concept of thread, multi thread, tcb
Concept of thread, multi thread, tcbConcept of thread, multi thread, tcb
Concept of thread, multi thread, tcb
 
Agile
AgileAgile
Agile
 
Scheduling (sjf, fcfs and round robin
Scheduling (sjf, fcfs and round robinScheduling (sjf, fcfs and round robin
Scheduling (sjf, fcfs and round robin
 

Último

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Último (20)

A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Set relationship, set operation and sigmoid

  • 1. SET RELATIONSHIP, SET OPERATION AND SIGMOID ABDUL SABOOR(2101-2019) KANZA BATOOL(2096-2019)
  • 2. SET RELATIONSHIP • It is defined as the relation between two sets. • Terminology used to describe sets Relationship • Membership (∈) • Subsets (⊆)/ Supersets (⊇) • Disjoint Sets • NULL Set ( ∅ ) • Family Sets • Power Sets ( P(set Name) )
  • 3. 1. Membership (∈): Membership happens when one element or a set is found inside another set. This symbol is normally used in describing a set. For example: {1, 2, 3} ∈ {6, 7, 8, 1, 2, 3} 2. Subsets (⊆)/ Supersets (⊇):If every member of set A is found inside set B, then A is a subset of B (A ⊆ B). If set B has every member of A and more then B is a super set of A (B ⊇ A). For example: A = {1, 2, 3}, B = {1, 2, 3, 4}, then A ⊆ B and also B ⊇ A
  • 4. 3. Disjoint Sets: If every member of set A has no relation with set B and vice versa then we say that A disjoint B. There is no special symbol to show this relationship. 4. NULL Set ( ∅ ): Every universe or set or subset contains a NULL set. A null set is an empty set ({ }) that carries no elements. We can say that the NULL set is a subset for every set. 5. Family Sets: There are times when a set does not contain individual elements but it contains many subsets. Conveniently this is call a family set and is it describes using the curly bracket within a curly bracket. For example: A = { {1, 2, 3, 4, 5} , {6, 7, 8, 9, 10} , {11, 12, 13, 14, 15} }
  • 5. 6. Power Sets ( P(set Name) ): Remember that a set is a group that may contain none or one (1) or more elements. A power set means to show how many possible different ways to group all the elements in a set. In other words power set is the set of all subsets of a given set. For example: A = {1, 2, 3} , A has 3 elements, there is 8 possible ways to arrange this (2)3 = 8. P(A) = { ∅ , {1}, {2}, {3}, {1,2}, {1,3}, {2,3}, {1, 2, 3} }
  • 6. SET OPERATIONS Terminology used to describe sets Operation • Union (∪): Add in all elements that are found in both sets. {a,e,i} ∪ {o, u} = {a, e, i, o, u} • Intersect (∩): Show only elements that is found only in both sets. {red, blue} ∩ {blue, yellow} = {blue} • Difference (-): Also known as subtract, this show only elements that is found in this set but NOT found in another sets. {1, 2, 3, 4, 5} {1, 2, 3} = {4, 5}
  • 7. • Complement (‘): Show only elements that is found in universal set but NOT found in another sets. U = {1, 2, 3, 4, 5, 6} and A = {1, 3, 5}. Then A' = {2, 4, 6}. • Equality: Both sets must have exactly the same number of elements with exactly the same value. A={1, 2, 3} , B={2, 3, 1} therefore A = B • Compatible: Two sets are compatible if all element in one of the set can fit nicely inside another set. A = {x, b} Z = {x, b, c} therefore A is compatible to Z
  • 8. Use of set operation • In formal language theory, a language is a set of strings and the study of operations on languages is central. Some of these are the usual set operations of intersection, union and complement. • Databases are at the root of most applications. Databases are built to process data in Sets, and the applications that use them negotiates with the database in sets.
  • 9. Set operation in RDBMS • One of the primary applications is database query design and processing. All queries onto RDBMS are in set notation and returned as sets. • UNION operator in SQL Server acts as like as the union operation in the Set Theory. CREATE TABLE TABLE_A (FruitName VARCHAR(100)) INSERT INTO TABLE_A VALUES ('Apple'),('Orange'),('Strawberry'),('Lemon'),('Avocado') CREATE TABLE TABLE_B (FruitName VARCHAR(100)) INSERT INTO TABLE_B VALUES ('Lemon'),('Avocado'),('Grapefruit'),('Apricot') SELECT * FROM TABLE_A UNION SELECT * FROM TABLE_B A = {Apple, Orange, Strawberry, Lemon, Avocado} B = {Lemon, Avocado, Grapefruit, Apricot} The union of the A and B sets will look as follow and it is denoted by A U B: A U B = {Apple, Orange, Strawberry, Lemon, Avocado, Grapefruit, Apricot}
  • 10. 1 2 3 SELECT * FROM TABLE_A INTERSECT SELECT * FROM TABLE_B The INTERSECT operator implements the intersection logic of the Set Theory to tables. Now, we will find the intersection of the TABLE_A and TABLE_B with help of the following query: A = {Apple, Orange, Strawberry, Lemon, Avocado} B = {Lemon, Avocado, Grapefruit, Apricot} A ∩ B = {Lemon, Avocado}
  • 11. • In SQL Server, with the help of the EXCEPT operator, we can obtain the difference between the two tables: 1 2 3 SELECT * FROM TABLE_A EXCEPT SELECT * FROM TABLE_B A = {Apple, Orange, Strawberry, Lemon, Avocado} B = {Lemon, Avocado, Grapefruit, Apricot} A B = {Apple, Orange, Strawberry}
  • 12. SIGMOID • The Sigmoid Function curve looks like a S-shape. • The main reason why we use sigmoid function is because it exists between (0 to 1). • it is especially used for models where we have to predict the probability as an output. • Since probability of anything exists only between the range of 0 and 1, sigmoid is the right choice.
  • 13. USE OF SIGMOID • A key area of machine learning where the sigmoid function is essential is a logistic regression model. A logistic regression model is used to estimate the probability of a binary event • In logistic regression, a logistic sigmoid function is fit to a set of data where the independent variable(s) can take any real value, and the dependent variable is either 0 or 1.