SlideShare a Scribd company logo
numarial analysis presentation
PRESENTED BY


 OSAMA TAHIR
   09-EE-88
  SECTION (A)
numarial analysis presentation
LEAST SQUARE

 The least squares technique is the simplest and
  most commonly applied form and provides a
  solution to the problem through a set of points.
The term least squares describes a frequently
used approach to solving overdeter-mined or
inexactly specied systems of equations in an
approximate sense. Instead of solving the
equations exactly, we seek only to minimize the
sum of the squares of the residuals
LEAST SQUARE

 least square method is widely used to find
  or estimate the numerical values of the
  parameters to fit a function to a set of data
  and to characterize the statistical
  properties of estimates.
GRAPH
 A cubic fitting is defined as the smoothest
  curve that exactly fits a set of data points.
numarial analysis presentation
 Generalizing from a straight line the ith
  fitting function for a cubic fitting can be
  written as:



                                   2            3
si x      ai     bi x       ci x        di x
2            3
     yx       a0     a1 x   a2 x          a3 x

 The residual of above equation is
     n
R2         [ y (a0    a1 x a 2 x 2       a3 x 3 )] 2   0
     i 1
 Now we take its partial derivatives
   The partial derivatives are
                    n
  2
R / a0      2           [y    (a 0    a1 x      .....      a 3 x 3 )]    0
                i 1
                n
  2
R / a1     2            [y   ( a0    a1 x     .....      a 3 x 3 )] x    0
               i 1
                n
R 2 / a2   2            [y   (a0     a1 x    .....      a 3 x 3 )] x 2   0
               i 1

                n
 2
R / a3     2            [y   (a0     a1 x    .....      a 3 x 3 )] x 3   0
               i 1
n                             n                 n
           a 0 n a1         xi      ......     a3        xi3                 y
                      i 1                            i                 i 1


     n                n                                  n                       n
                                2                                  3
a0         xi   a1          x   i     ......        a3         x   i                 xi y
     i 1              i 1                                i                   i 1
Cont...

 Now to write this least square equation
In matrix form
    y0          1 x0 x0 x0 2   3       a0
    y1          1 x1 x12 x13           a1
    y2          1 x2 x2 x2 2   3
                                       a2
    y3          1 x x2 x3              a
                      3   3    3         3
In Matrix notation the equation for a Polynomial is
given by
Y=XA
,

          Cont ...


    This can be solved by premultiplying by the transpose



                          xt y       x t xa

                                 t     1   t
                        a ( x x) x y
EXAMPLES
Example…
A bioengineer is studying the growth of a genetically
engineered bacteria culture and suspects that is it
approximately follows a cubic model. He collects six data
points listed below

Time in Days   1      2      3       4      5        6
Grams          2.1    3.5    4.2     3.1    4.4      6.8



 Let we solve it by cubic fitting method
     ax3 + bx2 + cx + d = y
Cont …

 This gives six equations with four
  unknowns
      a + b + c + d = 2.1
     8a + 4b + 2c + d = 3.5
    27a + 9b + 3c + d = 4.2
    64a + 16b + 4c + d = 3.1
   125a + 25b + 5c + d = 4.4
    216a + 36b + 6c + d = 6.8
Cont...

 The corresponding matrix equation is

                                         2 .1
                    a                    3 .5
                    b                    4 .2
                    c                    3 .1
                    d                    4 .4
                                         6 .8
Cont ...
                                          0 .2
 a
 b               t     1    t
                                           2 .0
              ( x x)       x y
 c                                        6 .1
 d                                         2 .3

     So that the best fitting cubic is

         y = 0.2x3 - 2.0x2 + 6.1x - 2.3
numarial analysis presentation
 cubic fittings are preferred over other
  methods because they provide the simplest
  representation that exhibits the desired
  appearance of smoothness

 Cubic fittings provide a great deal of
  flexibility in creating a continuous smooth
  curve both between and at tenor points.
 If we have damped curves or very humped
  curves then we can not obtain usefull results
  from Cubic Fitting Method..because they are
  used for smooth curves
Applications in
“The Real World”???

 The cubic fitting method (CFM) is probably
  the most popular technique in statistics.
 In mathematics it is used to solve different
  curved spaces.
 It is used in the manufacturing of plumbing
  materials.
 It is much important in mechanical and
  Electrical and Civil Engineering
REFERENCES...

 Wikipedia.com
 Advanced Engineering Mathematics
 Nocedal J. & Wright, S. (1999). Numerical
  optimization. New youk
 NUMARICAL ANALYSIS
numarial analysis presentation
THANKYOU

FOR YOUR ATTENTION

More Related Content

PDF
Ch9-Gauss_Elimination4.pdf
PDF
Assignment6
PDF
Chapter 3 solving systems of linear equations
PPT
Sulalgtrig7e Isg 1 2
PDF
Stationary Points Handout
PDF
C slides 11
PPTX
0101: Graphing Quadratic Functions
PPT
Graphing Quadradic
Ch9-Gauss_Elimination4.pdf
Assignment6
Chapter 3 solving systems of linear equations
Sulalgtrig7e Isg 1 2
Stationary Points Handout
C slides 11
0101: Graphing Quadratic Functions
Graphing Quadradic

What's hot (19)

DOC
Mth 4108-1 c
PPTX
Ecuaciones lineales 1
PPT
4.1 quadratic functions
PPT
Bresenham circlesandpolygons
PPTX
Cramer’s rule of matrix
PPTX
CRAMER’S RULE
PPTX
April 1, 2014
PDF
Bahan ajar Program Linear
PPT
Lab lecture 1 line_algo
PPT
Bresenhams
PPT
1627 simultaneous equations and intersections
PDF
Identidades trigonometricas
PPT
Unit 4 Review
PDF
Jan. 13 polynonial sketching
PPTX
Cramer's Rule
PPTX
April 10, 2015
DOCX
Computer graphics question for exam solved
DOC
Final exam mariluz 1
PPT
Ch02 2
Mth 4108-1 c
Ecuaciones lineales 1
4.1 quadratic functions
Bresenham circlesandpolygons
Cramer’s rule of matrix
CRAMER’S RULE
April 1, 2014
Bahan ajar Program Linear
Lab lecture 1 line_algo
Bresenhams
1627 simultaneous equations and intersections
Identidades trigonometricas
Unit 4 Review
Jan. 13 polynonial sketching
Cramer's Rule
April 10, 2015
Computer graphics question for exam solved
Final exam mariluz 1
Ch02 2
Ad

Similar to numarial analysis presentation (20)

PDF
7.curves Further Mathematics Zimbabwe Zimsec Cambridge
PDF
Jacobi and gauss-seidel
DOCX
Review for the Third Midterm of Math 150 B 11242014Probl.docx
PDF
Em01 ba
PDF
Y11+gdc+maximize+your+use+of+the++ev+2
PDF
1010n3a
DOCX
Mcq exemplar class 12
DOCX
Mcq exemplar class 12
PPTX
Linear Algebra- Gauss Elim-converted.pptx
DOC
Midterm Study Guide
PPT
G9-Math-Q1-Week-9-Solving-Quadratic-Function.ppt
PPTX
Matrix algebra
PDF
ISI MSQE Entrance Question Paper (2008)
PPT
Graph functions
PPT
Bonus math project
PPTX
Math powerpoint
PPTX
Math powerpoint
PDF
add math form 4/5
PPSX
Algeopordy
PDF
Add maths complete f4 & f5 Notes
7.curves Further Mathematics Zimbabwe Zimsec Cambridge
Jacobi and gauss-seidel
Review for the Third Midterm of Math 150 B 11242014Probl.docx
Em01 ba
Y11+gdc+maximize+your+use+of+the++ev+2
1010n3a
Mcq exemplar class 12
Mcq exemplar class 12
Linear Algebra- Gauss Elim-converted.pptx
Midterm Study Guide
G9-Math-Q1-Week-9-Solving-Quadratic-Function.ppt
Matrix algebra
ISI MSQE Entrance Question Paper (2008)
Graph functions
Bonus math project
Math powerpoint
Math powerpoint
add math form 4/5
Algeopordy
Add maths complete f4 & f5 Notes
Ad

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
cuic standard and advanced reporting.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Empathic Computing: Creating Shared Understanding
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
A Presentation on Artificial Intelligence
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Spectral efficient network and resource selection model in 5G networks
Reach Out and Touch Someone: Haptics and Empathic Computing
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
cuic standard and advanced reporting.pdf
Programs and apps: productivity, graphics, security and other tools
Empathic Computing: Creating Shared Understanding
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Review of recent advances in non-invasive hemoglobin estimation
Digital-Transformation-Roadmap-for-Companies.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25-Week II
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The AUB Centre for AI in Media Proposal.docx
A Presentation on Artificial Intelligence
Advanced methodologies resolving dimensionality complications for autism neur...
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.
Spectral efficient network and resource selection model in 5G networks

numarial analysis presentation

  • 2. PRESENTED BY OSAMA TAHIR 09-EE-88 SECTION (A)
  • 4. LEAST SQUARE  The least squares technique is the simplest and most commonly applied form and provides a solution to the problem through a set of points. The term least squares describes a frequently used approach to solving overdeter-mined or inexactly specied systems of equations in an approximate sense. Instead of solving the equations exactly, we seek only to minimize the sum of the squares of the residuals
  • 5. LEAST SQUARE  least square method is widely used to find or estimate the numerical values of the parameters to fit a function to a set of data and to characterize the statistical properties of estimates.
  • 7.  A cubic fitting is defined as the smoothest curve that exactly fits a set of data points.
  • 9.  Generalizing from a straight line the ith fitting function for a cubic fitting can be written as: 2 3 si x ai bi x ci x di x
  • 10. 2 3 yx a0 a1 x a2 x a3 x The residual of above equation is n R2 [ y (a0 a1 x a 2 x 2 a3 x 3 )] 2 0 i 1
  • 11.  Now we take its partial derivatives  The partial derivatives are n 2 R / a0 2 [y (a 0 a1 x ..... a 3 x 3 )] 0 i 1 n 2 R / a1 2 [y ( a0 a1 x ..... a 3 x 3 )] x 0 i 1 n R 2 / a2 2 [y (a0 a1 x ..... a 3 x 3 )] x 2 0 i 1 n 2 R / a3 2 [y (a0 a1 x ..... a 3 x 3 )] x 3 0 i 1
  • 12. n n n a 0 n a1 xi ...... a3 xi3 y i 1 i i 1 n n n n 2 3 a0 xi a1 x i ...... a3 x i xi y i 1 i 1 i i 1
  • 13. Cont...  Now to write this least square equation In matrix form y0 1 x0 x0 x0 2 3 a0 y1 1 x1 x12 x13 a1 y2 1 x2 x2 x2 2 3 a2 y3 1 x x2 x3 a 3 3 3 3 In Matrix notation the equation for a Polynomial is given by Y=XA
  • 14. , Cont ... This can be solved by premultiplying by the transpose xt y x t xa t 1 t a ( x x) x y
  • 16. Example… A bioengineer is studying the growth of a genetically engineered bacteria culture and suspects that is it approximately follows a cubic model. He collects six data points listed below Time in Days 1 2 3 4 5 6 Grams 2.1 3.5 4.2 3.1 4.4 6.8 Let we solve it by cubic fitting method ax3 + bx2 + cx + d = y
  • 17. Cont …  This gives six equations with four unknowns a + b + c + d = 2.1 8a + 4b + 2c + d = 3.5 27a + 9b + 3c + d = 4.2 64a + 16b + 4c + d = 3.1 125a + 25b + 5c + d = 4.4 216a + 36b + 6c + d = 6.8
  • 18. Cont...  The corresponding matrix equation is 2 .1 a 3 .5 b 4 .2 c 3 .1 d 4 .4 6 .8
  • 19. Cont ... 0 .2 a b t 1 t 2 .0 ( x x) x y c 6 .1 d 2 .3 So that the best fitting cubic is y = 0.2x3 - 2.0x2 + 6.1x - 2.3
  • 21.  cubic fittings are preferred over other methods because they provide the simplest representation that exhibits the desired appearance of smoothness  Cubic fittings provide a great deal of flexibility in creating a continuous smooth curve both between and at tenor points.
  • 22.  If we have damped curves or very humped curves then we can not obtain usefull results from Cubic Fitting Method..because they are used for smooth curves
  • 23. Applications in “The Real World”???  The cubic fitting method (CFM) is probably the most popular technique in statistics.  In mathematics it is used to solve different curved spaces.  It is used in the manufacturing of plumbing materials.  It is much important in mechanical and Electrical and Civil Engineering
  • 24. REFERENCES...  Wikipedia.com  Advanced Engineering Mathematics  Nocedal J. & Wright, S. (1999). Numerical optimization. New youk  NUMARICAL ANALYSIS