Math Primer. Outline Calculus: derivatives, chain rule, gradient descent, taylor expansions Bayes Rule Fourier Transform Dynamical linear systems.

Slides:



Advertisements
Similar presentations
©G Dear 2010 – Not to be sold/Free to use
Advertisements

2007Theo Schouten1 Transformations. 2007Theo Schouten2 Fourier transformation forward inverse f(t) = cos(2*  *5*t) + cos(2*  *10*t) + cos(2*  *20*t)
Recall Taylor’s Theorem from single variable calculus:
Example: Obtain the Maclaurin’s expansion for
Selected Problems from Chapter 12. 1) 2) 240 N T BC cos(30) T BC sin(30) T AB.
Basic Calculus. Outline Differentiation as finding slope Integration as finding area Integration as inverse of differentiation.
Fourier Transform Analytic geometry gives a coordinate system for describing geometric objects. Fourier transform gives a coordinate system for functions.
Lecture 4 Probability and what it has to do with data analysis.
Fundamentals of Engineering (FE) Exam Mathematics Review Dr. Garey Fox Professor and Buchanan Endowed Chair Biosystems and Agricultural Engineering October.
Transforms: Basis to Basis Normal Basis Hadamard Basis Basis functions Method to find coefficients (“Transform”) Inverse Transform.
CS B 553: A LGORITHMS FOR O PTIMIZATION AND L EARNING Continuous Probability Distributions and Bayesian Networks with Continuous Variables.
Algebraic Properties: The Rules of Algebra Be Cool - Follow The Rules!
Math 19a: Modeling and Differential Equations for the Life Sciences Calculus Review Danny Kramer Fall 2013.
Today Wrap up of probability Vectors, Matrices. Calculus
7.2 Factoring Using the Distributive Property CORD Math Mrs. Spitz Fall 2006.
3.1 – Graphing Linear Equations. Linear equation.
By: Kelley Borgard Block 4A
Signals and Systems Jamshid Shanbehzadeh.
Machine Learning Queens College Lecture 3: Probability and Statistics.
Day 1 Standards 1.0, 2.0, 3.0, 4.0 Arithmetic Properties and Operations One Variable Equations Absolute Value Equations.
Press Ctrl-A ©G Dear2008 – Not to be sold/Free to use Cosine Rule Angles Stage 6 - Year 12 General Mathematic (HSC)
§ 4.5 Multiplication of Polynomials. Angel, Elementary Algebra, 7ed 2 Multiplying Polynomials To multiply a monomial by a monomial, multiply their coefficients.
Mathematical Properties Algebra I. Associative Property of Addition and Multiplication The associative property means that you will get the same result.
1S Algebra Revision! $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400.
5x 4 – 405 = 5(x 4 – 81) = 5(x 2 + 9)(x 2 – 9) = 5(x 2 + 9)(x + 3)(x – 3) by D. Fisher.
Relationships that are always true for real numbers are called _____________, which are rules used to rewrite and compare expressions. properties.
Lecture 7 Transformations in frequency domain 1.Basic steps in frequency domain transformation 2.Fourier transformation theory in 1-D.
Machine Learning CUNY Graduate Center Lecture 2: Math Primer.
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
You can do it!!! 2.5 Implicit Differentiation. How would you find the derivative in the equation x 2 – 2y 3 + 4y = 2 where it is very difficult to express.
Factoring…One More Time By Grouping. What does that mean?  When you have four or more terms you may be able to factor by grouping  To do this you have.
Special Factoring. Difference of Squares General Formula: (x) 2 – (y) 2 = (x + y)(x – y)
Properties of Algebra (aka all the rules that holds the math together!)
(2 + 1) + 4 = 2 + (1 + 4) Associative Property of Addition.
Math Review Egr Trigonometry Consider a right triangle as shown with sides a and b and hypotenuse c. B c a A b.
Law of Cosines. h a c A B C x D b - x b To derive the formula, fine the relationship between a, b, c, and A in this triangle. a 2 = (b – x) 2 + h 2 a.
Want to be talented in Math? Want to be talented in Math? Get help with and be awww.iPracticeMath.com Performer.
Properties of Algebra. 7 + ( ) = ( ) + 9.
2.5 Algebra Reasoning. Addition Property: if a=b, then a+c = b+c Addition Property: if a=b, then a+c = b+c Subtraction Property: if a=b, then a-c = b-c.
Then,  Fourier Series: Suppose that f(x) can be expressed as the following series sum because Fourier Series cf. Orthogonal Functions Note: At this point,
8.2 Supplementary Angles Definitions: 1. Opposite Rays: rays that extend in opposite directions. 2. Straight Angle: Angle that measures 180  3. Supplementary.
Objectives The student will be able to:
8.2A Factoring using Distributive Property
Polynomials and Polynomial Functions
Linear Algebra Lecture 2.
Probability Theory and Parameter Estimation I
Properties of Real Numbers
Factoring Trinomials.
The Distributive Property
7.6 Factoring Differences of Squares
Factoring trinomials ax² + bx +c a = 1
Special Topics In Scientific Computing
Factoring Polynomials
Boolean Algebra.
Objectives The student will be able to:
Bell Ringer 10/27/10 What is the GCF? 18x³y² and 24x² ab and a³b².
5.5: Factoring the Sum and Difference of Two Cubes
(B12) Multiplying Polynomials
The Distributive Property Guided Notes
Factoring Polynomials
Factoring using the greatest common factor (GCF).
MTH-4106 Pretest Z -54 = (x – 9y)(x + 6y) -3 = 18x2 + 12x – 33x – 22
Algebra 1 Section 9.5.
Objectives The student will be able to:
Objectives The student will be able to:
Property Flip Chart You will need 6 index cards..
Objectives The student will be able to:
Practice makes perfect!
Warm-Up 5 minutes Multiply. 1) (x – 3)(x – 2) 2) (6x + 5)(2x + 1)
Review of Key Algebraic Concepts and Applications to Economic Issues
Presentation transcript:

Math Primer

Outline Calculus: derivatives, chain rule, gradient descent, taylor expansions Bayes Rule Fourier Transform Dynamical linear systems

Calculus Derivatives Derivative=slope

Calculus Derivative: a few common functions (x n )’=nx n-1 (x -1 )’=-1/x 2 = x -2 exp(x)’=exp(x) log(x)’=1/x cos(x)’=-sin(x)

Calculus Derivative: Chain rule Ex: gaussian z=h(x)=exp(-x 2 )’,f(y)=exp(y), y=g(x)=-x 2 f’(y)=exp(y)= exp(-x 2 ), g’(x)=-2x z’= f’(y)g’(x) =exp(-x 2 )(-2x)

Calculus Finding minima: gradient descent f(x) f’(x 0 ) < 0 x0x0 x* x0+xx0+x  x > 0 f’(x*)=0  x = -  f’(x 0 )

Calculus Example: minimizing an error function

Calculus Taylor expansion

Calculus

Bayes rule Example: drawing from 2 boxes 2 boxes (B1,B2) P(B1)=0.2,P(B2)=0.8 (Prior) Balls with two colors (R,G) B1=(16R,8G), B2=(8R,16G) P(R|B1)=2/3, P(G|B1)=1/3 (Conditional) P(R|B2)=1/3, P(G|B2)=2/3 (Conditional)

Bayes rule Joint distributions P(G,B1)=P(B1)P(G|B1)=0.2*0.33=0.066 P(G,B2)=P(B2)P(G|B2)=0.8*0.66=0.528 P(X,Y)=P(X|Y)P(Y) P(Y,X)=P(Y|X)P(X) P(Y|X)P(X)=P(X|Y)P(Y)

Bayes rule P(Y|X)P(X)=P(X|Y)P(Y) P(Y|X)=P(X|Y)P(Y)/P(X) If you draw G, what is the probability that it came from box1? P(B1|G)=P(G|B1)P(B1)/P(G) How do you get this? Marginalize

Bayes rule Marginalization P(G)=P(G,B1)+P(G,B2)= =0.6 P(G)=P(G|B1)P(B1)+P(G|B2)P(B2) P(Y)=  x P(Y,X) P(Y)=  x P(Y|X)P(X) P(Y|X)=P(X|Y)P(Y)/  Y P(X|Y)P(Y)

Bayes rule If you draw G, what is the probability that it came from Box1 or Box2? P(B1|G)=P(G|B1)P(B1)/P(G) =(0.33*0.2)/0.6=0.11 P(B2|G)=P(G|B2)P(B2)/P(G) =(0.66*0.8)/0.6=0.89 Sum to one

Bayes rule P(A,B|C)=P(A|B,C)P(B|C) P(B|A,C)=P(A|B,C)P(B|C)/P(A|C)

Fourier transform Basis in linear algebra Basis function: dirac Basis function: sin

Fourier Transform Decomposition in sum of sin and cosine Power: first term is the DC Phase Fourier transform for Dirac Sin Gaussian (inverse relationship)

Fourier Transform Convolution and products

Fourier transform Fourier transform of a Gabor

Fourier transform Eigenspace for liner dynamical system…

Dynamical systems Stable if <0, unstable otherwise

Dynamical systems Fixed Point

Dynamical systems Stable if f’(x 0 )<0, unstable otherwise.

Dynamical systems

go into eigen space Equations decouple Stable if  <0, unstable otherwise.

Dynamical systems

go into eigen space Equations decouple

Dynamical systems go into eigen space Equations decouple Stable is f’(x 0 )<0, unstable otherwise.

Dynamical systems Fixed point Saddle point Unstable point Stable and unstable oscillations: complex eigenvalues

Nonlinear Networks Discrete case: Stable if | |<1, unstable otherwise

Nonlinear Networks Discrete case:

Nonlinear Networks Dynamics around attractor:

Nonlinear Networks Stable Fixed point: | 1 |<1, | 2 |<1

Nonlinear Networks Saddle Point: | 1 |>1, | 2 |<1

Nonlinear Networks Unstable Fixed point: | 1 |>1, | 2 |>1

Nonlinear Networks Line Attractor: 1 =1, | 2 |<1

Nonlinear Networks Oscillation: complex ’s

Nonlinear Networks: global stability Lyapunov Function: function of the state of the system which is bounded below and goes down over time. If such a function exists, the system is globally stable. Ex: Hopfield network, Cohen-Grossberg network