SlideShare a Scribd company logo
1 of 21
Download to read offline
1
Numerical Analysis
Lecture 2
Subsets of numbers
2
There are 5 basic subsets of numbers:
• Natural numbers (N)
• Integer numbers (Z)
• Rational numbers (Q)
• Real numbers (R)
• Complex numbers (C)
Subsets of numbers
3
Natural numbers (N)
• Sometimes called counting numbers
• Example: 0, 1, 2, 3, 4, 5, …..
Integers (Z)
• The integer numbers constitute of the natural numbers
and their negative values.
• Example: …., -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, …..
Subsets of numbers
4
Rational numbers (Q)
• Can be expressed as a fraction with an integer numerator and
an integer denominator.
• In rational numbers, the denominator can’t be zero.
• Example:
1
2
,
3
7
,
2
3
Irrational Numbers
• Numbers that cannot be written as a ratio of two integers
• Example: π, 2, 3
Subsets of numbers
5
Real numbers (R)
• Real numbers include all the rational and irrational numbers.
Complex numbers (C)
• The complex numbers consist of all numbers of the form
𝑎 + 𝑖𝑏
where a and b are real numbers, i = −1
Subclasses of the integers
6
Even and odd numbers
• An even number is an integer that is divisible by two without remainder.
• Any even number m has the form 𝑚 = 2𝑘 where k is an integer
• For odd numbers, the remainder is always 1 when dividing by two.
• Any odd number 𝑛 may be constructed by the formula 𝑛 = 2𝑘 + 1
Subclasses of the integers
7
Prime numbers
• A prime number is an integer greater than 1 that is not the product of
two smaller positive integers.
• Every natural number greater than 1 is either a prime itself or can be
factorized as a product of primes that is unique up to their order.
For example: 30 → 5×3×2
100 → 5×5×2×2
Error Analysis
8
Absolute error
Consider two values, as one being the true value (m) and the other is the
computed value (p).
Absolute Error (AE) is the absolute difference between the measured
value and the true value.
𝐴𝐸 = 𝑝 − 𝑚
Relative error
𝑅𝐸 =
𝑝 − 𝑚
𝑚
=
𝐴𝐸
𝑚
Error Analysis
9
Mean absolute error
Mean absolute error (MAE) is a measure of error between multiple
measurements.
𝑀𝐴𝐸 =
1
𝑛
෍
𝑖=1
𝑛
𝑝𝑖 − 𝑚𝑖
Mean relative error
𝑀𝑅𝐸 =
1
𝑛
෍
𝑖=1
𝑛
𝑝𝑖 − 𝑚𝑖
𝑚𝑖
Error Analysis
10
Square error
Square error (SE) between two measurements is the square of the
absolute error between the two measurements.
𝑆𝐸 = 𝑝 − 𝑚 2
Mean square error
𝑀𝑆𝐸 =
1
𝑛
෍
𝑖=1
𝑛
𝑝𝑖 − 𝑚𝑖
2
Error Analysis
11
Root mean square error
Root mean square error (RMSE) is the most popular evaluation metric
used in error analysis.
𝑅𝑀𝑆𝐸 =
1
𝑛
෍
𝑖=1
𝑛
𝑝𝑖 − 𝑚𝑖
2
Error Analysis
12
Example
Suppose that the output of a machine learning model is 23.7. Compute
the absolute and relative error for the model if the target value is 25.
Solution
Predicted value (computed value): p= 23.7
Target value (True value): m= 25
𝐴𝐸 = 𝑝 − 𝑚
𝐴𝐸 = 23.7 − 25 = 1.3
𝑅𝐸 =
𝑝 − 𝑚
𝑚
=
𝐴𝐸
𝑚
𝑅𝐸 =
1.3
25
= 0.052
A student made a new device which
used to measure the heart rate. He
recorded 10 measurements taken
from the new device and the
corresponding values which
measured with a calibrated device.
The measurements of the calibrated
device are taken as reference.
Example
13
Reading New device reading Reference value
1 88 88
2 107 104
3 78 78
4 100 99
5 68 67
6 107 108
7 83 82
8 88 85
9 93 91
10 78 78
Error Analysis
Compute MAE, MRE, and RMSE.
Error Analysis
14
Solution
1) 𝑀𝐴𝐸 =
1
𝑛
σ𝑖=1
𝑛
𝑝𝑖 − 𝑚𝑖
=
1
10
ሾ
ሿ
88 − 88 + 107 − 104 + 78 − 78 + 100 − 99 + 68 − 67
+ 107 − 108 + 83 − 82 + 88 − 85 + 93 − 91 + 78 − 78 = 1.2
2) 𝑀𝑅𝐸 =
1
𝑛
σ𝑖=1
𝑛 𝑝𝑖−𝑚𝑖
𝑚𝑖
=
1
10
ቈ
቉
88 − 88
88
+
107 − 104
104
+
78 − 78
78
+
100 − 99
99
+
68 − 67
67
+
107 − 108
108
+
83 − 82
82
+
88 − 85
85
+
93 − 91
91
+
78 − 78
78
= 0.013
Error Analysis
15
Solution
3)
𝑅𝑀𝑆𝐸 =
1
𝑛
෍
𝑖=1
𝑛
𝑝𝑖 − 𝑚𝑖
2
= ቆ
ቇ
1
10
ൣ
൧
88 − 88 2
+ 107 − 104 2
+ 78 − 78 2
+ 100 − 99 2
+ 68 − 67 2
+ 107 − 108 2
+ 83 − 82 2
+ 88 − 85 2
+ 93 − 91 2
+ 78 − 78 2
0.5
= 1.61
16
Chapter 2
Solutions of Equations in One Variable
Solution of an equation
17
The solution of an equation is the value‐or values‐that a variable can take
on such that they make the equation true.
Example
Given the equation 4x - 8 = 4
The value x = 3 is a solution for this equation.
It is possible for an equation to have more than one solution. This occurs
when the degree of the polynomials used is not 1
Example
Given the equation 𝑥2
+ 6𝑥 = 16.
The solutions for this equation are 𝑥 = −8 and 𝑥 = 2
Solution of linear equations in one variable
18
Linear equations:
Degree (max power of the variable) =1
Solution Steps:
1. Carry out all distributions;
2. Regroup the variables on one side of the equal sign and the numbers
on the other;
3. Divide both sides by the coefficient of the variable.
𝟐𝒙 + 𝟑 = 𝟎 3(𝒙 + 𝟕) = 𝟓 𝟐 𝒙 + 𝟑 − 𝟏 = 𝟒𝒙
Ex.
Solution of linear equations in one variable
19
Example
Solve the equation
Solution
▪ Carry out all the distributions;
▪ Regroup the variables in one side
6𝑥 − 3𝑥 = 7 + 20
3𝑥 = 27
▪ Divide the two sides by the coefficient of the variable
3𝑥
3
=
27
3
𝑥 = 9
Thus, the solution for the equation is 𝑥 = 9
We can validate the solution by substituting 𝑥 = 9
in the equation
Solution of linear equations in one variable
20
Example
Solve the equation 6 2𝑥 + 3 + 𝑥 − 7 = 3 5𝑥 + 7 + 2𝑥
Solution
▪ Carry out all the distributions;
▪ Regroup the variables in one side
−4𝑥 = 10
▪ Divide the two sides by the coefficient of the variable
−4𝑥
−4
=
10
−4
𝑥 = −2.5
Thus, the solution for the equation is 𝑥 = −𝟐. 𝟓
12𝑥 + 18 + 𝑥 − 7 = 15𝑥 + 21 + 2𝑥
13𝑥 + 11 = 17𝑥 + 21
13𝑥 − 17𝑥 = 21 − 11
21

More Related Content

What's hot

Solving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICSSolving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICSCoreAces
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equationsswartzje
 
Introduction To Equations
Introduction To EquationsIntroduction To Equations
Introduction To Equationsgemmabean
 
Solution of linear equation & inequality
Solution of linear equation & inequalitySolution of linear equation & inequality
Solution of linear equation & inequalityflorian Manzanilla
 
Linear Equation in one variables 3
Linear Equation in one variables 3Linear Equation in one variables 3
Linear Equation in one variables 3NG YIT HOE
 
Unlocking the secrets of math (math)
Unlocking the secrets of math (math)Unlocking the secrets of math (math)
Unlocking the secrets of math (math)Christopher Masullo
 
Math-80-module1.1
Math-80-module1.1Math-80-module1.1
Math-80-module1.1warrior28
 
Onestepequations
OnestepequationsOnestepequations
OnestepequationsNora
 
Quadratic Equation solved by Square root property
Quadratic Equation solved by Square root propertyQuadratic Equation solved by Square root property
Quadratic Equation solved by Square root propertyReynz Anario
 
Linear Equations
Linear EquationsLinear Equations
Linear Equationsrfant
 
Linear Equation In one variable class 7
 Linear Equation In one variable class 7 Linear Equation In one variable class 7
Linear Equation In one variable class 7Poulami Choudhury
 
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPTCLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT05092000
 
Chapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variablesChapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variablesmonomath
 
Linear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One VariableLinear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One Variablemisey_margarette
 

What's hot (20)

Solving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICSSolving Linear Equations - GRADE 8 MATHEMATICS
Solving Linear Equations - GRADE 8 MATHEMATICS
 
Linear Equations
Linear Equations Linear Equations
Linear Equations
 
7.7 Solving Radical Equations
7.7 Solving Radical Equations7.7 Solving Radical Equations
7.7 Solving Radical Equations
 
Arithmetic means
Arithmetic meansArithmetic means
Arithmetic means
 
Geometric mean
Geometric meanGeometric mean
Geometric mean
 
Introduction To Equations
Introduction To EquationsIntroduction To Equations
Introduction To Equations
 
Solution of linear equation & inequality
Solution of linear equation & inequalitySolution of linear equation & inequality
Solution of linear equation & inequality
 
Linear Equation in one variables 3
Linear Equation in one variables 3Linear Equation in one variables 3
Linear Equation in one variables 3
 
Unlocking the secrets of math (math)
Unlocking the secrets of math (math)Unlocking the secrets of math (math)
Unlocking the secrets of math (math)
 
Math-80-module1.1
Math-80-module1.1Math-80-module1.1
Math-80-module1.1
 
Onestepequations
OnestepequationsOnestepequations
Onestepequations
 
Arithmetic series
Arithmetic seriesArithmetic series
Arithmetic series
 
Solving equations
Solving equationsSolving equations
Solving equations
 
Quadratic Equation solved by Square root property
Quadratic Equation solved by Square root propertyQuadratic Equation solved by Square root property
Quadratic Equation solved by Square root property
 
Linear Equations
Linear EquationsLinear Equations
Linear Equations
 
Linear Equation In one variable class 7
 Linear Equation In one variable class 7 Linear Equation In one variable class 7
Linear Equation In one variable class 7
 
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPTCLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
CLASS 9 LINEAR EQUATIONS IN TWO VARIABLES PPT
 
Chapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variablesChapter 3. linear equation and linear equalities in one variables
Chapter 3. linear equation and linear equalities in one variables
 
Linear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One VariableLinear Equations and Inequalities in One Variable
Linear Equations and Inequalities in One Variable
 
Hprec2 2
Hprec2 2Hprec2 2
Hprec2 2
 

Similar to Lec

Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical TechniquesYasir Mahdi
 
NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1musadoto
 
C2 st lecture 13 revision for test b handout
C2 st lecture 13   revision for test b handoutC2 st lecture 13   revision for test b handout
C2 st lecture 13 revision for test b handoutfatima d
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxssuser01e301
 
Introduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdfIntroduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdfSTEVEDOMINICSISNO
 
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Vladimir Godovalov
 
18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.pptBAGARAGAZAROMUALD2
 
Edicoes asa 12 ano 2020-21 - 3 teste
Edicoes asa   12 ano 2020-21 - 3 testeEdicoes asa   12 ano 2020-21 - 3 teste
Edicoes asa 12 ano 2020-21 - 3 testeMARIA CRUZ
 
Introduction to Logarithm
Introduction to LogarithmIntroduction to Logarithm
Introduction to LogarithmFellowBuddy.com
 
Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4FellowBuddy.com
 
mathematics o level book
mathematics o level bookmathematics o level book
mathematics o level booksaadanashraf
 
BASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTSBASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTSjainyshah20
 
Opt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptxOpt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptxAbdellaKarime
 
Introduction Combined Number And Dp
Introduction Combined Number And DpIntroduction Combined Number And Dp
Introduction Combined Number And DpAwais Khan
 
Division of Polynomials.pptx
Division of Polynomials.pptxDivision of Polynomials.pptx
Division of Polynomials.pptxpandavlogsbyJM
 
Lesson 7: Graphing Inequalities
Lesson 7: Graphing InequalitiesLesson 7: Graphing Inequalities
Lesson 7: Graphing InequalitiesKevin Johnson
 

Similar to Lec (20)

Numerical Techniques
Numerical TechniquesNumerical Techniques
Numerical Techniques
 
NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1
 
C2 st lecture 13 revision for test b handout
C2 st lecture 13   revision for test b handoutC2 st lecture 13   revision for test b handout
C2 st lecture 13 revision for test b handout
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptx
 
Introduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdfIntroduction-Accuracy-and-Errors.pdf
Introduction-Accuracy-and-Errors.pdf
 
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
Comparative analysis of x^3+y^3=z^3 and x^2+y^2=z^2 in the Interconnected Sets
 
18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt18-21 Principles of Least Squares.ppt
18-21 Principles of Least Squares.ppt
 
Edicoes asa 12 ano 2020-21 - 3 teste
Edicoes asa   12 ano 2020-21 - 3 testeEdicoes asa   12 ano 2020-21 - 3 teste
Edicoes asa 12 ano 2020-21 - 3 teste
 
CRYPTO 2.pptx
CRYPTO 2.pptxCRYPTO 2.pptx
CRYPTO 2.pptx
 
Introduction to Logarithm
Introduction to LogarithmIntroduction to Logarithm
Introduction to Logarithm
 
Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4Ratio and Proportion, Indices and Logarithm Part 4
Ratio and Proportion, Indices and Logarithm Part 4
 
Marh algebra lesson
Marh algebra lessonMarh algebra lesson
Marh algebra lesson
 
Regression
RegressionRegression
Regression
 
mathematics o level book
mathematics o level bookmathematics o level book
mathematics o level book
 
BASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTSBASIC OF ALGORITHM AND MATHEMATICS STUDENTS
BASIC OF ALGORITHM AND MATHEMATICS STUDENTS
 
Opt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptxOpt Assgnment #-1 PPTX.pptx
Opt Assgnment #-1 PPTX.pptx
 
Introduction Combined Number And Dp
Introduction Combined Number And DpIntroduction Combined Number And Dp
Introduction Combined Number And Dp
 
Division of Polynomials.pptx
Division of Polynomials.pptxDivision of Polynomials.pptx
Division of Polynomials.pptx
 
Lesson 7: Graphing Inequalities
Lesson 7: Graphing InequalitiesLesson 7: Graphing Inequalities
Lesson 7: Graphing Inequalities
 
Ch08
Ch08Ch08
Ch08
 

Recently uploaded

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
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
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 

Recently uploaded (20)

History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
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
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 

Lec

  • 2. Subsets of numbers 2 There are 5 basic subsets of numbers: • Natural numbers (N) • Integer numbers (Z) • Rational numbers (Q) • Real numbers (R) • Complex numbers (C)
  • 3. Subsets of numbers 3 Natural numbers (N) • Sometimes called counting numbers • Example: 0, 1, 2, 3, 4, 5, ….. Integers (Z) • The integer numbers constitute of the natural numbers and their negative values. • Example: …., -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, …..
  • 4. Subsets of numbers 4 Rational numbers (Q) • Can be expressed as a fraction with an integer numerator and an integer denominator. • In rational numbers, the denominator can’t be zero. • Example: 1 2 , 3 7 , 2 3 Irrational Numbers • Numbers that cannot be written as a ratio of two integers • Example: π, 2, 3
  • 5. Subsets of numbers 5 Real numbers (R) • Real numbers include all the rational and irrational numbers. Complex numbers (C) • The complex numbers consist of all numbers of the form 𝑎 + 𝑖𝑏 where a and b are real numbers, i = −1
  • 6. Subclasses of the integers 6 Even and odd numbers • An even number is an integer that is divisible by two without remainder. • Any even number m has the form 𝑚 = 2𝑘 where k is an integer • For odd numbers, the remainder is always 1 when dividing by two. • Any odd number 𝑛 may be constructed by the formula 𝑛 = 2𝑘 + 1
  • 7. Subclasses of the integers 7 Prime numbers • A prime number is an integer greater than 1 that is not the product of two smaller positive integers. • Every natural number greater than 1 is either a prime itself or can be factorized as a product of primes that is unique up to their order. For example: 30 → 5×3×2 100 → 5×5×2×2
  • 8. Error Analysis 8 Absolute error Consider two values, as one being the true value (m) and the other is the computed value (p). Absolute Error (AE) is the absolute difference between the measured value and the true value. 𝐴𝐸 = 𝑝 − 𝑚 Relative error 𝑅𝐸 = 𝑝 − 𝑚 𝑚 = 𝐴𝐸 𝑚
  • 9. Error Analysis 9 Mean absolute error Mean absolute error (MAE) is a measure of error between multiple measurements. 𝑀𝐴𝐸 = 1 𝑛 ෍ 𝑖=1 𝑛 𝑝𝑖 − 𝑚𝑖 Mean relative error 𝑀𝑅𝐸 = 1 𝑛 ෍ 𝑖=1 𝑛 𝑝𝑖 − 𝑚𝑖 𝑚𝑖
  • 10. Error Analysis 10 Square error Square error (SE) between two measurements is the square of the absolute error between the two measurements. 𝑆𝐸 = 𝑝 − 𝑚 2 Mean square error 𝑀𝑆𝐸 = 1 𝑛 ෍ 𝑖=1 𝑛 𝑝𝑖 − 𝑚𝑖 2
  • 11. Error Analysis 11 Root mean square error Root mean square error (RMSE) is the most popular evaluation metric used in error analysis. 𝑅𝑀𝑆𝐸 = 1 𝑛 ෍ 𝑖=1 𝑛 𝑝𝑖 − 𝑚𝑖 2
  • 12. Error Analysis 12 Example Suppose that the output of a machine learning model is 23.7. Compute the absolute and relative error for the model if the target value is 25. Solution Predicted value (computed value): p= 23.7 Target value (True value): m= 25 𝐴𝐸 = 𝑝 − 𝑚 𝐴𝐸 = 23.7 − 25 = 1.3 𝑅𝐸 = 𝑝 − 𝑚 𝑚 = 𝐴𝐸 𝑚 𝑅𝐸 = 1.3 25 = 0.052
  • 13. A student made a new device which used to measure the heart rate. He recorded 10 measurements taken from the new device and the corresponding values which measured with a calibrated device. The measurements of the calibrated device are taken as reference. Example 13 Reading New device reading Reference value 1 88 88 2 107 104 3 78 78 4 100 99 5 68 67 6 107 108 7 83 82 8 88 85 9 93 91 10 78 78 Error Analysis Compute MAE, MRE, and RMSE.
  • 14. Error Analysis 14 Solution 1) 𝑀𝐴𝐸 = 1 𝑛 σ𝑖=1 𝑛 𝑝𝑖 − 𝑚𝑖 = 1 10 ሾ ሿ 88 − 88 + 107 − 104 + 78 − 78 + 100 − 99 + 68 − 67 + 107 − 108 + 83 − 82 + 88 − 85 + 93 − 91 + 78 − 78 = 1.2 2) 𝑀𝑅𝐸 = 1 𝑛 σ𝑖=1 𝑛 𝑝𝑖−𝑚𝑖 𝑚𝑖 = 1 10 ቈ ቉ 88 − 88 88 + 107 − 104 104 + 78 − 78 78 + 100 − 99 99 + 68 − 67 67 + 107 − 108 108 + 83 − 82 82 + 88 − 85 85 + 93 − 91 91 + 78 − 78 78 = 0.013
  • 15. Error Analysis 15 Solution 3) 𝑅𝑀𝑆𝐸 = 1 𝑛 ෍ 𝑖=1 𝑛 𝑝𝑖 − 𝑚𝑖 2 = ቆ ቇ 1 10 ൣ ൧ 88 − 88 2 + 107 − 104 2 + 78 − 78 2 + 100 − 99 2 + 68 − 67 2 + 107 − 108 2 + 83 − 82 2 + 88 − 85 2 + 93 − 91 2 + 78 − 78 2 0.5 = 1.61
  • 16. 16 Chapter 2 Solutions of Equations in One Variable
  • 17. Solution of an equation 17 The solution of an equation is the value‐or values‐that a variable can take on such that they make the equation true. Example Given the equation 4x - 8 = 4 The value x = 3 is a solution for this equation. It is possible for an equation to have more than one solution. This occurs when the degree of the polynomials used is not 1 Example Given the equation 𝑥2 + 6𝑥 = 16. The solutions for this equation are 𝑥 = −8 and 𝑥 = 2
  • 18. Solution of linear equations in one variable 18 Linear equations: Degree (max power of the variable) =1 Solution Steps: 1. Carry out all distributions; 2. Regroup the variables on one side of the equal sign and the numbers on the other; 3. Divide both sides by the coefficient of the variable. 𝟐𝒙 + 𝟑 = 𝟎 3(𝒙 + 𝟕) = 𝟓 𝟐 𝒙 + 𝟑 − 𝟏 = 𝟒𝒙 Ex.
  • 19. Solution of linear equations in one variable 19 Example Solve the equation Solution ▪ Carry out all the distributions; ▪ Regroup the variables in one side 6𝑥 − 3𝑥 = 7 + 20 3𝑥 = 27 ▪ Divide the two sides by the coefficient of the variable 3𝑥 3 = 27 3 𝑥 = 9 Thus, the solution for the equation is 𝑥 = 9 We can validate the solution by substituting 𝑥 = 9 in the equation
  • 20. Solution of linear equations in one variable 20 Example Solve the equation 6 2𝑥 + 3 + 𝑥 − 7 = 3 5𝑥 + 7 + 2𝑥 Solution ▪ Carry out all the distributions; ▪ Regroup the variables in one side −4𝑥 = 10 ▪ Divide the two sides by the coefficient of the variable −4𝑥 −4 = 10 −4 𝑥 = −2.5 Thus, the solution for the equation is 𝑥 = −𝟐. 𝟓 12𝑥 + 18 + 𝑥 − 7 = 15𝑥 + 21 + 2𝑥 13𝑥 + 11 = 17𝑥 + 21 13𝑥 − 17𝑥 = 21 − 11
  • 21. 21