COMPSCI 514: Algorithms for Data Science
|
|
- Katherine Watts
- 5 years ago
- Views:
Transcription
1 COMPSCI 514: Algoritms for Data Science Arya Mazumdar University of Massacusetts at Amerst Fall 2018
2 Lecture 11 Locality Sensitive Hasing
3 Midterm exam Average out of 35 (82.8%). One exam is still pending grading (we received late).
4 Finding near-neigbors in a ig dimensional space Near neigbors: Points tat are only a small distance away Have to define distance or similarity For example, Jaccard distance/similarity
5 Minas signature Take n (say 100) random permutations Eac define a minas function: 1, 2,..., n Minas signature of S is a vector [ 1 (S), 2 (S),..., n (S)] T n is muc smaller tan te number of rows of te caracteristic matrix Tis constitute a signature matrix Intuition: Similarity between sets implies similarity between signature vectors
6 Row S 1 S 2 S 3 S 4 x +1 mod5 3x +1 mod Fast computation of signature matrix 84 CHAPTER 3. FINDING SIMILAR ITEMS Pick n random as functions 1, 2,..., n SIG(i, c) is te it row and ct column of te signature order. matrix k is large and tere are not too many collisions. We can maintain te fiction tat our as function permutes row r to position (r) in te permuted Tus, instead of picking n random permutations of rows, we pick n randomly cosen Initialization: as functionsset 1,SIG(i, 2,..., n c) on= te rows. for all We iconstruct and c te signature matrix by considering eac row in teir given order. Let SIG(i, c) be te element of te Forsignature te rtmatrix row: for te it as function and column c. Initially, set SIG(i, c) to for all i and c. We andle row r by doing te following: 1. Compute 1 (r), 2 (r),..., n (r). 2. For eac column c do te following: (a) If c as 0 in row r, do noting. (b) However, if c as 1 in row r, tenforeaci =1, 2,...,nset SIG(i, c) to te smaller of te current value of SIG(i, c) and i (r).
7 2. For eac column c do te following: Fast computation of signature matrix: Example (a) If c as 0 in row r, do noting. (b) However, if c as 1 in row r, tenforeaci =1, 2,...,nset SIG(i, c) to te smaller of te current value of SIG(i, c) and i (r). Row S 1 S 2 S 3 S 4 x +1 mod5 3x +1 mod Figure 3.4: Has functions computed for te matrix of Fig. 3.2 Two as functions: 1 (x) = x + 1 mod 5; 2 (x) = 3x + 1 mod 5. Example 3.8 : Let us reconsider te caracteristic matrix of Fig. 3.2, wic we reproduce wit some additional data as Fig We ave replaced te letters naming te rows by integers 0 troug 4. We ave also cosen twoas functions: 1 (x) =x+1 mod 5 and 2 (x) =3x+1 mod 5. Te values of tese two functions applied to te row numbers are given in te last two columns of
8 Figure 3.4: Has functions computed for te matrix of Fig. 3.2 (a) If c as 0 in row r, do noting. Fast computation of signature matrix: Initialization (b) However, if c as 1 in row r, tenforeaci =1, 2,...,nset SIG(i, c) xample 3.8 to : te Let smaller us reconsider of te current te caracteristic value of SIG(i, c) matrix and i of (r). Fig. 3.2, wic reproduce wit some additional data as Fig We ave replaced t tters naming te rows by integers 0 troug 4. We ave also cosen twoas nctions: Row S 1 S 2 S 3 S 4 x +1 mod5 3x +1 mod5 1 (x) =x+1 mod 5 and 2 (x) =3x+1 mod 5. Te values of tes o functions 0 applied 1 to 0 te 0 row numbers 1 are 1 given in te 1 last two columns o g Notice tat tese simple as functions are true permutations of t ws, but a true permutation is only possible because te number of rows, 5, i prime. In general, 4 0 tere 0 will 1 be 0 collisions, 0 were two rows 3 get te same as lue. Now, let us simulate te algoritm for computing te signature matrix itially, tis Figure matrix 3.4: Has consists functions of all computed s: for te matrix of Fig. 3.2 S 1 S 2 S 3 S 4 Example 3.8 : Let us reconsider te caracteristic matrix of Fig. 3.2, wic we reproduce wit some additional 1 data as Fig We ave replaced te letters naming te rows by integers 2 0 troug 4. We ave also cosen twoas functions: 1 (x) =x+1 mod 5 and 2 (x) =3x+1 mod 5. Te values of tese First, we consider row 0 of Fig We see tat te values of two functions applied to te row numbers are given in te last two columns 1 (0) an of (0) Fig. are 3.4. bot Notice 1. tat Tetese row numbered simple as0 functions as 1 s inare te true columns permutations for sets ofste 1 an
9 (a) If c as 0 in row r, do noting. Fast computation of signature matrix: Row 0 (b) However, if c as 1 in row r, tenforeaci =1, 2,...,nset SIG(i, c) to te smaller of te current value of SIG(i, c) and i (r). Row S 1 S 2 S 3 S 4 x +1 mod5 3x +1 mod SIMILARITY-PRESERVING SUMMARIES 3 OF SETS so only tese columns of te signature matrix can cange. As 1 is less t we do in fact cange bot values in te columns for S 1 and S 4.Tecurr mate offigure te signature 3.4: Hasmatrix functions iscomputed tus: for te matrix of Fig. 3.2 S 1 S 2 S 3 S 4 Example 3.8 : Let us reconsider te caracteristic matrix of Fig. 3.2, wic we reproduce wit some additional data as Fig We ave replaced te letters naming te rows by integers troug 4. We ave also cosen twoas Now, functions: we move 1 (x) =x+1 to te row mod numbered 5 and 2 (x) 1=3x+1 in Fig. mod Tis Te values row as of tese 1 only two functions applied to te row numbers are given in te last two columns of and its as values are Fig Notice tat tese simple 1 (1) = 2 and as functions 2 (1) = 4. Tus, we set SIG(1, 3) t are true permutations of te SIG(2, 3) to 4. All oter signature entries remain as tey are because t
10 . SIMILARITY-PRESERVING SUMMARIES OF SETS (a) If c as 0 in row r, do noting. Fast computation of signature matrix: Row 1 (b) However, if c as 1 in row r, tenforeaci =1, 2,...,nset SIG(i, c), so only tese columns of te signature matrix can cange. As 1 is less t to te smaller of te current value of SIG(i, c) and i (r)., we do in fact cange bot values in te columns for S 1 and S 4.Tecurre imate of te signature matrix is tus: Row S 1 S 2 S 3 4 x +1 mod5 3x +1 mod S 1 1 S 2 1 S 3 S Now, we move 4 to 0 te 0 row1 numbered 0 1 in 0 Fig Tis 3 row as 1 only, and its as values are 1 (1) = 2 and 2 (1) = 4. Tus, we set SIG(1, 3) to d SIG(2, 3) to 4. All oter signature entries remain as tey are because te lumns ave Figure 0 in 3.4: te Has rowfunctions numbered computed 1. Tefor new tesignature matrix of matrix: Fig. 3.2 S 1 S 2 S 3 S 4 Example 3.8 : Let us reconsider te caracteristic matrix of Fig. 3.2, wic we reproduce wit some additional data as Fig We ave replaced te letters naming te rows by integers troug 4. We ave also cosen twoas functions: Te row of 1 (x) Fig. =x numbered mod 5 and2 as 2 (x) 1 s =3x+1 in temod columns 5. Te for values S of tese 2 and S 4,an two as functions values are applied to te row numbers are given in te last two columns of 1 (2) = 3 and 2 (2) = 2. We could cange te values in t Fig Notice tat tese simple as functions are true permutations of te nature for S 4, but te values in tis column of te signature matrix, [1, 1], a
11 and its(a) as If cvalues as 0 inare row 1 r, (1) do= noting. 2 and 2 (1) = 4. Tus, we set SIG(1, 3) SIG(2, (b) 3) Fast to However, 4. computation Allifoter c as signature 1 in row ofr, signature tenforeaci entries remain matrix: =1, as2,...,nset tey Roware 2because SIG(i, c) t mns ave to 0 in te te smaller rowof numbered te current1. value Teof new SIG(i, signature c) and i (r). matrix: S 1 S 2 S 3 S 4 Row S 1 S 2 S 3 S 4 x +1 mod5 3x +1 mod e row of2fig numbered as 1 s3in te columns 2 for S 2 and S 4, as values are (2) = 3 and (2) = 2. We could cange te values in 0 3 ature for S 4, but te values in tis column of te signature matrix, [1, 1], less tan te corresponding as values [3, 2]. However, since te colu Figure 3.4: Has functions computed for te matrix of Fig still as s, we replace it by [3, 2], resulting in: S 1 S 2 S 3 S 4 Example 3.8 : Let us reconsider te caracteristic matrix of Fig. 3.2, wic we reproduce wit some additional data as Fig We ave replaced te letters naming te rows byintegers troug We1 ave also cosen twoas functions: 1 (x) =x+1 mod 5 and 2 (x) =3x+1 mod 5. Te values of tese ext comes te row numbered 3 in Fig Here, all columns but S two functions applied to te row numbers are given in te last two columns of 2 nd Fig. te 3.4. as Notice values tat are tese 1 simple (3) = as 4 andfunctions 2 (3) = are 0. true Tepermutations value 4 for of 1 te exce t is already in te signature matrix for all te columns, so we sall
12 r S 2 still (a) as If c s, as 0we inreplace row r, do it noting. by [3, 2], resulting in: Fast computation of signature matrix: Row 3 (b) However, if c as 1 in row r, tenforeaci =1, 2,...,nset SIG(i, c) S to te smaller of te current 1 S value 2 S 3 S of SIG(i, 4 c) and i (r) Row S 1 S 2 S 3 S 4 x +1 mod5 3x +1 mod5 Next comes 0 te 1row 0numbered 0 13 in Fig Here, all columns 1 but S 2 av and te as 1 values 0 are 0 1 1(3) = 04 and 2 (3) 2 = 0. Te value 4 4 for 1 exceed at is already 2 in 0te signature 1 0 1matrix for3 all te columns, 2 so we sall no ange any values 3 in 1 te0 first1 row1of te signature 4 matrix. 0However, te valu for 2 is less4 tan0wat 0 is already 1 0 present, 0so we lower SIG(2, 3 1), SIG(2, 3) and G(2, 4) to 0. Note tat we cannot lower SIG(2, 2) because te column for S 2 in g. 3.4 as Figure 0 in 3.4: te Has row we functions are currently computed considering. for te matrix Te of resulting Fig. 3.2 signatur atrix: S 1 S 2 S 3 S 4 Example 3.8 : Let us reconsider te caracteristic matrix of Fig. 3.2, wic we reproduce wit some additional data as Fig We ave replaced te letters naming te rows by integers troug We 0 ave also cosen twoas functions: Finally, consider 1 (x) =x+1 te row mod of 5 Fig. and (x) numbered =3x+1 4. mod 5. Te values of tese 1 (4) = 0 and 2 (4) = 3 two functions applied to te row numbers are given in te last two columns of nce row 4 as 1 only in te column for S Fig Notice tat tese simple as functions 3, we only compare te curren are true permutations of te nature column for tat set, [2, 0] wit te as values [0, 3]. Since 0 < 2, w
13 ange any values in te first row of te signature matrix. However, te valu (a) If c as 0 in row r, do noting. for 2 is less tan wat is already present, so we lower SIG(2, 1), SIG(2, 3) and (b) Fast However, computation if c as 1 in row ofr, signature tenforeaci matrix: =1, 2,...,nset Row 4 G(2, 4) to 0. Note tat we cannot lower SIG(2, 2) because te column SIG(i, for Sc) 2 in ig. 3.4 as to 0 in te te smaller row we of te are currently value considering. of SIG(i, c) Te andresulting i (r). signatur atrix: Row S 1 S 2 S 3 S 41 x S 2 +1Smod5 3 S 4 3x +1 mod Finally, consider 3 1 te0row 1of Fig numbered (4) 0= 0 and 2 (4) = 3 ince row 4 4as 10only0 in te 1 column 0 for0s 3, we only compare 3 te curren gnature column for tat set, [2, 0] wit te as values [0, 3]. Since 0 < 2, w ange SIG(1, Figure 3) 3.4: to 0, Has but functions since 3 computed > 0wedonotcange for te matrix of SIG(2, Fig. 3). 3.2 Te fina gnature matrix is: S Example 3.8 : Let us reconsider 1 S te caracteristic 2 S 3 S 4 matrix of Fig. 3.2, wic we reproduce wit some additional 1 1 data 3 as0fig We ave replaced te letters naming te rows by integers troug We 0 ave also cosen twoas functions: 1 (x) =x+1 mod 5 and 2 (x) =3x+1 mod 5. Te values of tese two functions applied to te row numbers are given in te last two columns of Fig Notice tat tese simple as functions are true permutations of te rows, but a true permutation is only possible because te number of rows, 5, is
14 Locality Sensitive Hasing Finding similarity for every pair is still difficult Find te closest pair/ Near neigbor searc Has items: suc tat similar items are ased into te same bucket Ceck pairs witin te buckets False positives: dissimilar items in te same buckets - make it small False negatives: similar items are in different buckets - make it small
15 Measure of Distance A distance satisfy tree conditions: 1) nonnegativity (is zero iff measuring to itself) 2) symmetry and 3) triangle inequality Different measures of distances are possible L p : d(x, y) = ( n i=1 x i y i p ) 1/p Wat is L? L : d(x, y) = max n i=1 x i y i Wat is L 0? L 0 or Hamming distance: d(x, y) = {i : x i y i } Jaccard: d(a, B) = 1 A B A B Cosine distance: d(x, y) = arccos x,y x 2 y 2
16 Measure of Distance Edit distance d(x, y) = number of insertions, deletions to cange a string to anoter d(abcde, acfdeg) = 3
17 Figure 3.9 illustrates wat we expect about te probability tat a given In many cases, te function f will as items, and te decision will be based on weter or not Locality te result is equal. sensitive Because itasing is convenient to use te notation f(x) =f(y) tomeantatf(x, y) is yes; make x and y a candidate pair, we sall use f(x) =f(y) as a sortand wit tis meaning. We also use f(x) f(y) tomean donotmakex and y a candidate pair unless some oter function concludes we sould do so. Suppose a distance measure is fixed. A collection of functions of tis form will be called a family of functions. We are given a as function f For example, te family of minas functions, eac based on one of te possible f is permutations called (d of rows 1, dof 2, apcaracteristic 1, p 2 )-LSH matrix, if form a family. Let d 1 <d 2 be two distances according to some distance measure d. A 1. family forf any of functions two x, is said y suc to be (dtat 1,d 2,pd(x, 1,p 2)-sensitive y) dif 1 for, Pr(f every f(x) in F: = f (y)) p for If d(x, any) two d 1, ten x, yte suc probability tat tat d(x, f(x) y) =f(y) dis 2, atpr(f least p(x) 1. = f (y)) p 2 2. If d(x, y) d 2, ten te probability tat f(x) =f(y) is at most p 2. p 1 Probabilty of being declared a candidate p 2 d 1 d 2 Distance Figure 3.9: Beavior of a (d 1,d 2,p 1,p 2)-sensitive function
18 LSH for Jaccard distance Minas wit a random permutation is (d 1, d 2, 1 d 1, 1 d 2 )-LSH for any d 1, d 2 Wy? Pr((A) = (B)) = Sim(A, B) = 1 d(a, B)
19 LSH Amplification Let f be a (d 1, d 2, p 1, p 2 )-LSH Consider independent copies of f : f 1, f 2, f 3,..., f r AND construction F AND (x) = F AND (y) iff f i (x) = f i (y) for all i = 1,..., r F AND is a (d 1, d 2, p r 1, pr 2 )-LSH OR construction F OR (x) = F OR (y) iff tere exists some i {1,..., r} wit f i (x) = f i (y) F OR is a (d 1, d 2, 1 (1 p 1 ) r, 1 (1 p 2 ) r )-LSH
20 LSH Amplification: Cascading AND and OR constructions Let f be a (d 1, d 2, 0.9, 0.2)-LSH Consider f wic is a 4-fold AND construction of f f is (d 1, d 2, , )-LSH Consider f wic is a 4-fold OR construction of f f is (d 1, d 2, , )-LSH
21 LSH for Hamming distance Let f is te value of randomly cosen coordinate from te all n coordinates Pr(f (x) = f (y)) = {i:x i y i } n = 1 d(x,y) n f is (d 1, d 2, 1 d 1 n, 1 d 2 n )-LSH for any d 1, d 2
Continuity and Differentiability Worksheet
Continuity and Differentiability Workseet (Be sure tat you can also do te grapical eercises from te tet- Tese were not included below! Typical problems are like problems -3, p. 6; -3, p. 7; 33-34, p. 7;
More informationMVT and Rolle s Theorem
AP Calculus CHAPTER 4 WORKSHEET APPLICATIONS OF DIFFERENTIATION MVT and Rolle s Teorem Name Seat # Date UNLESS INDICATED, DO NOT USE YOUR CALCULATOR FOR ANY OF THESE QUESTIONS In problems 1 and, state
More informationSolutions to the Multivariable Calculus and Linear Algebra problems on the Comprehensive Examination of January 31, 2014
Solutions to te Multivariable Calculus and Linear Algebra problems on te Compreensive Examination of January 3, 24 Tere are 9 problems ( points eac, totaling 9 points) on tis portion of te examination.
More informationContinuity. Example 1
Continuity MATH 1003 Calculus and Linear Algebra (Lecture 13.5) Maoseng Xiong Department of Matematics, HKUST A function f : (a, b) R is continuous at a point c (a, b) if 1. x c f (x) exists, 2. f (c)
More informationf a h f a h h lim lim
Te Derivative Te derivative of a function f at a (denoted f a) is f a if tis it exists. An alternative way of defining f a is f a x a fa fa fx fa x a Note tat te tangent line to te grap of f at te point
More informationFunction Composition and Chain Rules
Function Composition and s James K. Peterson Department of Biological Sciences and Department of Matematical Sciences Clemson University Marc 8, 2017 Outline 1 Function Composition and Continuity 2 Function
More information. If lim. x 2 x 1. f(x+h) f(x)
Review of Differential Calculus Wen te value of one variable y is uniquely determined by te value of anoter variable x, ten te relationsip between x and y is described by a function f tat assigns a value
More information2.8 The Derivative as a Function
.8 Te Derivative as a Function Typically, we can find te derivative of a function f at many points of its domain: Definition. Suppose tat f is a function wic is differentiable at every point of an open
More informationLecture XVII. Abstract We introduce the concept of directional derivative of a scalar function and discuss its relation with the gradient operator.
Lecture XVII Abstract We introduce te concept of directional derivative of a scalar function and discuss its relation wit te gradient operator. Directional derivative and gradient Te directional derivative
More informationPreface. Here are a couple of warnings to my students who may be here to get a copy of what happened on a day that you missed.
Preface Here are my online notes for my course tat I teac ere at Lamar University. Despite te fact tat tese are my class notes, tey sould be accessible to anyone wanting to learn or needing a refreser
More informationNumerical Differentiation
Numerical Differentiation Finite Difference Formulas for te first derivative (Using Taylor Expansion tecnique) (section 8.3.) Suppose tat f() = g() is a function of te variable, and tat as 0 te function
More informationDifferentiation in higher dimensions
Capter 2 Differentiation in iger dimensions 2.1 Te Total Derivative Recall tat if f : R R is a 1-variable function, and a R, we say tat f is differentiable at x = a if and only if te ratio f(a+) f(a) tends
More information1. Questions (a) through (e) refer to the graph of the function f given below. (A) 0 (B) 1 (C) 2 (D) 4 (E) does not exist
Mat 1120 Calculus Test 2. October 18, 2001 Your name Te multiple coice problems count 4 points eac. In te multiple coice section, circle te correct coice (or coices). You must sow your work on te oter
More informationA = h w (1) Error Analysis Physics 141
Introduction In all brances of pysical science and engineering one deals constantly wit numbers wic results more or less directly from experimental observations. Experimental observations always ave inaccuracies.
More informationExam 1 Review Solutions
Exam Review Solutions Please also review te old quizzes, and be sure tat you understand te omework problems. General notes: () Always give an algebraic reason for your answer (graps are not sufficient),
More information2.11 That s So Derivative
2.11 Tat s So Derivative Introduction to Differential Calculus Just as one defines instantaneous velocity in terms of average velocity, we now define te instantaneous rate of cange of a function at a point
More informationMath 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006
Mat 102 TEST CHAPTERS 3 & 4 Solutions & Comments Fall 2006 f(x+) f(x) 10 1. For f(x) = x 2 + 2x 5, find ))))))))) and simplify completely. NOTE: **f(x+) is NOT f(x)+! f(x+) f(x) (x+) 2 + 2(x+) 5 ( x 2
More informationMath 212-Lecture 9. For a single-variable function z = f(x), the derivative is f (x) = lim h 0
3.4: Partial Derivatives Definition Mat 22-Lecture 9 For a single-variable function z = f(x), te derivative is f (x) = lim 0 f(x+) f(x). For a function z = f(x, y) of two variables, to define te derivatives,
More informationSymmetry Labeling of Molecular Energies
Capter 7. Symmetry Labeling of Molecular Energies Notes: Most of te material presented in tis capter is taken from Bunker and Jensen 1998, Cap. 6, and Bunker and Jensen 2005, Cap. 7. 7.1 Hamiltonian Symmetry
More informationChapter 1 Functions and Graphs. Section 1.5 = = = 4. Check Point Exercises The slope of the line y = 3x+ 1 is 3.
Capter Functions and Graps Section. Ceck Point Exercises. Te slope of te line y x+ is. y y m( x x y ( x ( y ( x+ point-slope y x+ 6 y x+ slope-intercept. a. Write te equation in slope-intercept form: x+
More informationTest 2 Review. 1. Find the determinant of the matrix below using (a) cofactor expansion and (b) row reduction. A = 3 2 =
Test Review Find te determinant of te matrix below using (a cofactor expansion and (b row reduction Answer: (a det + = (b Observe R R R R R R R R R Ten det B = (((det Hence det Use Cramer s rule to solve:
More informationHOMEWORK HELP 2 FOR MATH 151
HOMEWORK HELP 2 FOR MATH 151 Here we go; te second round of omework elp. If tere are oters you would like to see, let me know! 2.4, 43 and 44 At wat points are te functions f(x) and g(x) = xf(x)continuous,
More informationSolution. Solution. f (x) = (cos x)2 cos(2x) 2 sin(2x) 2 cos x ( sin x) (cos x) 4. f (π/4) = ( 2/2) ( 2/2) ( 2/2) ( 2/2) 4.
December 09, 20 Calculus PracticeTest s Name: (4 points) Find te absolute extrema of f(x) = x 3 0 on te interval [0, 4] Te derivative of f(x) is f (x) = 3x 2, wic is zero only at x = 0 Tus we only need
More information3.4 Worksheet: Proof of the Chain Rule NAME
Mat 1170 3.4 Workseet: Proof of te Cain Rule NAME Te Cain Rule So far we are able to differentiate all types of functions. For example: polynomials, rational, root, and trigonometric functions. We are
More informationMaterial for Difference Quotient
Material for Difference Quotient Prepared by Stepanie Quintal, graduate student and Marvin Stick, professor Dept. of Matematical Sciences, UMass Lowell Summer 05 Preface Te following difference quotient
More informationSection 3: The Derivative Definition of the Derivative
Capter 2 Te Derivative Business Calculus 85 Section 3: Te Derivative Definition of te Derivative Returning to te tangent slope problem from te first section, let's look at te problem of finding te slope
More informationFundamentals of Concept Learning
Aims 09s: COMP947 Macine Learning and Data Mining Fundamentals of Concept Learning Marc, 009 Acknowledgement: Material derived from slides for te book Macine Learning, Tom Mitcell, McGraw-Hill, 997 ttp://www-.cs.cmu.edu/~tom/mlbook.tml
More information4. The slope of the line 2x 7y = 8 is (a) 2/7 (b) 7/2 (c) 2 (d) 2/7 (e) None of these.
Mat 11. Test Form N Fall 016 Name. Instructions. Te first eleven problems are wort points eac. Te last six problems are wort 5 points eac. For te last six problems, you must use relevant metods of algebra
More informationLIMITATIONS OF EULER S METHOD FOR NUMERICAL INTEGRATION
LIMITATIONS OF EULER S METHOD FOR NUMERICAL INTEGRATION LAURA EVANS.. Introduction Not all differential equations can be explicitly solved for y. Tis can be problematic if we need to know te value of y
More information1. Which one of the following expressions is not equal to all the others? 1 C. 1 D. 25x. 2. Simplify this expression as much as possible.
004 Algebra Pretest answers and scoring Part A. Multiple coice questions. Directions: Circle te letter ( A, B, C, D, or E ) net to te correct answer. points eac, no partial credit. Wic one of te following
More informationPolynomial Interpolation
Capter 4 Polynomial Interpolation In tis capter, we consider te important problem of approximatinga function fx, wose values at a set of distinct points x, x, x,, x n are known, by a polynomial P x suc
More informationLecture 15. Interpolation II. 2 Piecewise polynomial interpolation Hermite splines
Lecture 5 Interpolation II Introduction In te previous lecture we focused primarily on polynomial interpolation of a set of n points. A difficulty we observed is tat wen n is large, our polynomial as to
More informationEfficient algorithms for for clone items detection
Efficient algoritms for for clone items detection Raoul Medina, Caroline Noyer, and Olivier Raynaud Raoul Medina, Caroline Noyer and Olivier Raynaud LIMOS - Université Blaise Pascal, Campus universitaire
More informationNUMERICAL DIFFERENTIATION. James T. Smith San Francisco State University. In calculus classes, you compute derivatives algebraically: for example,
NUMERICAL DIFFERENTIATION James T Smit San Francisco State University In calculus classes, you compute derivatives algebraically: for example, f( x) = x + x f ( x) = x x Tis tecnique requires your knowing
More informationThe Laplace equation, cylindrically or spherically symmetric case
Numerisce Metoden II, 7 4, und Übungen, 7 5 Course Notes, Summer Term 7 Some material and exercises Te Laplace equation, cylindrically or sperically symmetric case Electric and gravitational potential,
More informationHow to Find the Derivative of a Function: Calculus 1
Introduction How to Find te Derivative of a Function: Calculus 1 Calculus is not an easy matematics course Te fact tat you ave enrolled in suc a difficult subject indicates tat you are interested in te
More information2.3 Product and Quotient Rules
.3. PRODUCT AND QUOTIENT RULES 75.3 Product and Quotient Rules.3.1 Product rule Suppose tat f and g are two di erentiable functions. Ten ( g (x)) 0 = f 0 (x) g (x) + g 0 (x) See.3.5 on page 77 for a proof.
More informationPolynomial Functions. Linear Functions. Precalculus: Linear and Quadratic Functions
Concepts: definition of polynomial functions, linear functions tree representations), transformation of y = x to get y = mx + b, quadratic functions axis of symmetry, vertex, x-intercepts), transformations
More informationMTH-112 Quiz 1 Name: # :
MTH- Quiz Name: # : Please write our name in te provided space. Simplif our answers. Sow our work.. Determine weter te given relation is a function. Give te domain and range of te relation.. Does te equation
More informationAnalytic Functions. Differentiable Functions of a Complex Variable
Analytic Functions Differentiable Functions of a Complex Variable In tis capter, we sall generalize te ideas for polynomials power series of a complex variable we developed in te previous capter to general
More information1 1. Rationalize the denominator and fully simplify the radical expression 3 3. Solution: = 1 = 3 3 = 2
MTH - Spring 04 Exam Review (Solutions) Exam : February 5t 6:00-7:0 Tis exam review contains questions similar to tose you sould expect to see on Exam. Te questions included in tis review, owever, are
More information1. Consider the trigonometric function f(t) whose graph is shown below. Write down a possible formula for f(t).
. Consider te trigonometric function f(t) wose grap is sown below. Write down a possible formula for f(t). Tis function appears to be an odd, periodic function tat as been sifted upwards, so we will use
More informationConsider a function f we ll specify which assumptions we need to make about it in a minute. Let us reformulate the integral. 1 f(x) dx.
Capter 2 Integrals as sums and derivatives as differences We now switc to te simplest metods for integrating or differentiating a function from its function samples. A careful study of Taylor expansions
More informationLab 6 Derivatives and Mutant Bacteria
Lab 6 Derivatives and Mutant Bacteria Date: September 27, 20 Assignment Due Date: October 4, 20 Goal: In tis lab you will furter explore te concept of a derivative using R. You will use your knowledge
More informationMATH1131/1141 Calculus Test S1 v8a
MATH/ Calculus Test 8 S v8a October, 7 Tese solutions were written by Joann Blanco, typed by Brendan Trin and edited by Mattew Yan and Henderson Ko Please be etical wit tis resource It is for te use of
More informationLesson 6: The Derivative
Lesson 6: Te Derivative Def. A difference quotient for a function as te form f(x + ) f(x) (x + ) x f(x + x) f(x) (x + x) x f(a + ) f(a) (a + ) a Notice tat a difference quotient always as te form of cange
More information1 + t5 dt with respect to x. du = 2. dg du = f(u). du dx. dg dx = dg. du du. dg du. dx = 4x3. - page 1 -
Eercise. Find te derivative of g( 3 + t5 dt wit respect to. Solution: Te integrand is f(t + t 5. By FTC, f( + 5. Eercise. Find te derivative of e t2 dt wit respect to. Solution: Te integrand is f(t e t2.
More informationThe Verlet Algorithm for Molecular Dynamics Simulations
Cemistry 380.37 Fall 2015 Dr. Jean M. Standard November 9, 2015 Te Verlet Algoritm for Molecular Dynamics Simulations Equations of motion For a many-body system consisting of N particles, Newton's classical
More informationTangent Lines-1. Tangent Lines
Tangent Lines- Tangent Lines In geometry, te tangent line to a circle wit centre O at a point A on te circle is defined to be te perpendicular line at A to te line OA. Te tangent lines ave te special property
More informationThe total error in numerical differentiation
AMS 147 Computational Metods and Applications Lecture 08 Copyrigt by Hongyun Wang, UCSC Recap: Loss of accuracy due to numerical cancellation A B 3, 3 ~10 16 In calculating te difference between A and
More informationMath 161 (33) - Final exam
Name: Id #: Mat 161 (33) - Final exam Fall Quarter 2015 Wednesday December 9, 2015-10:30am to 12:30am Instructions: Prob. Points Score possible 1 25 2 25 3 25 4 25 TOTAL 75 (BEST 3) Read eac problem carefully.
More informationMathematics 5 Worksheet 11 Geometry, Tangency, and the Derivative
Matematics 5 Workseet 11 Geometry, Tangency, and te Derivative Problem 1. Find te equation of a line wit slope m tat intersects te point (3, 9). Solution. Te equation for a line passing troug a point (x
More informationSection 15.6 Directional Derivatives and the Gradient Vector
Section 15.6 Directional Derivatives and te Gradient Vector Finding rates of cange in different directions Recall tat wen we first started considering derivatives of functions of more tan one variable,
More informationSection 2.1 The Definition of the Derivative. We are interested in finding the slope of the tangent line at a specific point.
Popper 6: Review of skills: Find tis difference quotient. f ( x ) f ( x) if f ( x) x Answer coices given in audio on te video. Section.1 Te Definition of te Derivative We are interested in finding te slope
More informationDefinition of the Derivative
Te Limit Definition of te Derivative Tis Handout will: Define te limit grapically and algebraically Discuss, in detail, specific features of te definition of te derivative Provide a general strategy of
More information1 Lecture 13: The derivative as a function.
1 Lecture 13: Te erivative as a function. 1.1 Outline Definition of te erivative as a function. efinitions of ifferentiability. Power rule, erivative te exponential function Derivative of a sum an a multiple
More informationQuaternion Dynamics, Part 1 Functions, Derivatives, and Integrals. Gary D. Simpson. rev 01 Aug 08, 2016.
Quaternion Dynamics, Part 1 Functions, Derivatives, and Integrals Gary D. Simpson gsim1887@aol.com rev 1 Aug 8, 216 Summary Definitions are presented for "quaternion functions" of a quaternion. Polynomial
More informationSection 2.7 Derivatives and Rates of Change Part II Section 2.8 The Derivative as a Function. at the point a, to be. = at time t = a is
Mat 180 www.timetodare.com Section.7 Derivatives and Rates of Cange Part II Section.8 Te Derivative as a Function Derivatives ( ) In te previous section we defined te slope of te tangent to a curve wit
More informationALGEBRA AND TRIGONOMETRY REVIEW by Dr TEBOU, FIU. A. Fundamental identities Throughout this section, a and b denotes arbitrary real numbers.
ALGEBRA AND TRIGONOMETRY REVIEW by Dr TEBOU, FIU A. Fundamental identities Trougout tis section, a and b denotes arbitrary real numbers. i) Square of a sum: (a+b) =a +ab+b ii) Square of a difference: (a-b)
More informationLECTURE 14 NUMERICAL INTEGRATION. Find
LECTURE 14 NUMERCAL NTEGRATON Find b a fxdx or b a vx ux fx ydy dx Often integration is required. However te form of fx may be suc tat analytical integration would be very difficult or impossible. Use
More informationChapters 19 & 20 Heat and the First Law of Thermodynamics
Capters 19 & 20 Heat and te First Law of Termodynamics Te Zerot Law of Termodynamics Te First Law of Termodynamics Termal Processes Te Second Law of Termodynamics Heat Engines and te Carnot Cycle Refrigerators,
More informationCombining functions: algebraic methods
Combining functions: algebraic metods Functions can be added, subtracted, multiplied, divided, and raised to a power, just like numbers or algebra expressions. If f(x) = x 2 and g(x) = x + 2, clearly f(x)
More informationPrecalculus Test 2 Practice Questions Page 1. Note: You can expect other types of questions on the test than the ones presented here!
Precalculus Test 2 Practice Questions Page Note: You can expect oter types of questions on te test tan te ones presented ere! Questions Example. Find te vertex of te quadratic f(x) = 4x 2 x. Example 2.
More informationPre-lab Quiz/PHYS 224 Earth s Magnetic Field. Your name Lab section
Pre-lab Quiz/PHYS 4 Eart s Magnetic Field Your name Lab section 1. Wat do you investigate in tis lab?. For a pair of Helmoltz coils described in tis manual and sown in Figure, r=.15 m, N=13, I =.4 A, wat
More informationMAT244 - Ordinary Di erential Equations - Summer 2016 Assignment 2 Due: July 20, 2016
MAT244 - Ordinary Di erential Equations - Summer 206 Assignment 2 Due: July 20, 206 Full Name: Student #: Last First Indicate wic Tutorial Section you attend by filling in te appropriate circle: Tut 0
More information2011 Fermat Contest (Grade 11)
Te CENTRE for EDUCATION in MATHEMATICS and COMPUTING 011 Fermat Contest (Grade 11) Tursday, February 4, 011 Solutions 010 Centre for Education in Matematics and Computing 011 Fermat Contest Solutions Page
More informationMath 1241 Calculus Test 1
February 4, 2004 Name Te first nine problems count 6 points eac and te final seven count as marked. Tere are 120 points available on tis test. Multiple coice section. Circle te correct coice(s). You do
More informationWe name Functions f (x) or g(x) etc.
Section 2 1B: Function Notation Bot of te equations y 2x +1 and y 3x 2 are functions. It is common to ave two or more functions in terms of x in te same problem. If I ask you wat is te value for y if x
More informationQuantum Numbers and Rules
OpenStax-CNX module: m42614 1 Quantum Numbers and Rules OpenStax College Tis work is produced by OpenStax-CNX and licensed under te Creative Commons Attribution License 3.0 Abstract Dene quantum number.
More informationTHE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Math 225
THE IDEA OF DIFFERENTIABILITY FOR FUNCTIONS OF SEVERAL VARIABLES Mat 225 As we ave seen, te definition of derivative for a Mat 111 function g : R R and for acurveγ : R E n are te same, except for interpretation:
More informationPolynomial Interpolation
Capter 4 Polynomial Interpolation In tis capter, we consider te important problem of approximating a function f(x, wose values at a set of distinct points x, x, x 2,,x n are known, by a polynomial P (x
More informationIntroduction to Machine Learning. Recitation 8. w 2, b 2. w 1, b 1. z 0 z 1. The function we want to minimize is the loss over all examples: f =
Introduction to Macine Learning Lecturer: Regev Scweiger Recitation 8 Fall Semester Scribe: Regev Scweiger 8.1 Backpropagation We will develop and review te backpropagation algoritm for neural networks.
More informationCopyright c 2008 Kevin Long
Lecture 4 Numerical solution of initial value problems Te metods you ve learned so far ave obtained closed-form solutions to initial value problems. A closedform solution is an explicit algebriac formula
More informationGradient Descent etc.
1 Gradient Descent etc EE 13: Networked estimation and control Prof Kan) I DERIVATIVE Consider f : R R x fx) Te derivative is defined as d fx) = lim dx fx + ) fx) Te cain rule states tat if d d f gx) )
More information, meant to remind us of the definition of f (x) as the limit of difference quotients: = lim
Mat 132 Differentiation Formulas Stewart 2.3 So far, we ave seen ow various real-world problems rate of cange and geometric problems tangent lines lead to derivatives. In tis section, we will see ow to
More information232 Calculus and Structures
3 Calculus and Structures CHAPTER 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS FOR EVALUATING BEAMS Calculus and Structures 33 Copyrigt Capter 17 JUSTIFICATION OF THE AREA AND SLOPE METHODS 17.1 THE
More informationINTRODUCTION AND MATHEMATICAL CONCEPTS
Capter 1 INTRODUCTION ND MTHEMTICL CONCEPTS PREVIEW Tis capter introduces you to te basic matematical tools for doing pysics. You will study units and converting between units, te trigonometric relationsips
More informationTime (hours) Morphine sulfate (mg)
Mat Xa Fall 2002 Review Notes Limits and Definition of Derivative Important Information: 1 According to te most recent information from te Registrar, te Xa final exam will be eld from 9:15 am to 12:15
More informationDerivatives of Exponentials
mat 0 more on derivatives: day 0 Derivatives of Eponentials Recall tat DEFINITION... An eponential function as te form f () =a, were te base is a real number a > 0. Te domain of an eponential function
More information(a) At what number x = a does f have a removable discontinuity? What value f(a) should be assigned to f at x = a in order to make f continuous at a?
Solutions to Test 1 Fall 016 1pt 1. Te grap of a function f(x) is sown at rigt below. Part I. State te value of eac limit. If a limit is infinite, state weter it is or. If a limit does not exist (but is
More informationExponentials and Logarithms Review Part 2: Exponentials
Eponentials and Logaritms Review Part : Eponentials Notice te difference etween te functions: g( ) and f ( ) In te function g( ), te variale is te ase and te eponent is a constant. Tis is called a power
More informationCalculus I Practice Exam 1A
Calculus I Practice Exam A Calculus I Practice Exam A Tis practice exam empasizes conceptual connections and understanding to a greater degree tan te exams tat are usually administered in introductory
More informationSolution for the Homework 4
Solution for te Homework 4 Problem 6.5: In tis section we computed te single-particle translational partition function, tr, by summing over all definite-energy wavefunctions. An alternative approac, owever,
More informationDifferential Calculus (The basics) Prepared by Mr. C. Hull
Differential Calculus Te basics) A : Limits In tis work on limits, we will deal only wit functions i.e. tose relationsips in wic an input variable ) defines a unique output variable y). Wen we work wit
More informationMath 312 Lecture Notes Modeling
Mat 3 Lecture Notes Modeling Warren Weckesser Department of Matematics Colgate University 5 7 January 006 Classifying Matematical Models An Example We consider te following scenario. During a storm, a
More informationClick here to see an animation of the derivative
Differentiation Massoud Malek Derivative Te concept of derivative is at te core of Calculus; It is a very powerful tool for understanding te beavior of matematical functions. It allows us to optimize functions,
More informationSFU UBC UNBC Uvic Calculus Challenge Examination June 5, 2008, 12:00 15:00
SFU UBC UNBC Uvic Calculus Callenge Eamination June 5, 008, :00 5:00 Host: SIMON FRASER UNIVERSITY First Name: Last Name: Scool: Student signature INSTRUCTIONS Sow all your work Full marks are given only
More informationWYSE Academic Challenge 2004 Sectional Mathematics Solution Set
WYSE Academic Callenge 00 Sectional Matematics Solution Set. Answer: B. Since te equation can be written in te form x + y, we ave a major 5 semi-axis of lengt 5 and minor semi-axis of lengt. Tis means
More informationFunctions of the Complex Variable z
Capter 2 Functions of te Complex Variable z Introduction We wis to examine te notion of a function of z were z is a complex variable. To be sure, a complex variable can be viewed as noting but a pair of
More information. Compute the following limits.
Today: Tangent Lines and te Derivative at a Point Warmup:. Let f(x) =x. Compute te following limits. f( + ) f() (a) lim f( +) f( ) (b) lim. Let g(x) = x. Compute te following limits. g(3 + ) g(3) (a) lim
More informationSECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY
(Section 3.2: Derivative Functions and Differentiability) 3.2.1 SECTION 3.2: DERIVATIVE FUNCTIONS and DIFFERENTIABILITY LEARNING OBJECTIVES Know, understand, and apply te Limit Definition of te Derivative
More informationlecture 26: Richardson extrapolation
43 lecture 26: Ricardson extrapolation 35 Ricardson extrapolation, Romberg integration Trougout numerical analysis, one encounters procedures tat apply some simple approximation (eg, linear interpolation)
More informationNotes on wavefunctions II: momentum wavefunctions
Notes on wavefunctions II: momentum wavefunctions and uncertainty Te state of a particle at any time is described by a wavefunction ψ(x). Tese wavefunction must cange wit time, since we know tat particles
More information= 0 and states ''hence there is a stationary point'' All aspects of the proof dx must be correct (c)
Paper 1: Pure Matematics 1 Mark Sceme 1(a) (i) (ii) d d y 3 1x 4x x M1 A1 d y dx 1.1b 1.1b 36x 48x A1ft 1.1b Substitutes x = into teir dx (3) 3 1 4 Sows d y 0 and states ''ence tere is a stationary point''
More information3.1 Extreme Values of a Function
.1 Etreme Values of a Function Section.1 Notes Page 1 One application of te derivative is finding minimum and maimum values off a grap. In precalculus we were only able to do tis wit quadratics by find
More information1 (10) 2 (10) 3 (10) 4 (10) 5 (10) 6 (10) Total (60)
First Name: OSU Number: Last Name: Signature: OKLAHOMA STATE UNIVERSITY Department of Matematics MATH 2144 (Calculus I) Instructor: Dr. Matias Sculze MIDTERM 1 September 17, 2008 Duration: 50 minutes No
More informationName: Answer Key No calculators. Show your work! 1. (21 points) All answers should either be,, a (finite) real number, or DNE ( does not exist ).
Mat - Final Exam August 3 rd, Name: Answer Key No calculators. Sow your work!. points) All answers sould eiter be,, a finite) real number, or DNE does not exist ). a) Use te grap of te function to evaluate
More informationTeaching Differentiation: A Rare Case for the Problem of the Slope of the Tangent Line
Teacing Differentiation: A Rare Case for te Problem of te Slope of te Tangent Line arxiv:1805.00343v1 [mat.ho] 29 Apr 2018 Roman Kvasov Department of Matematics University of Puerto Rico at Aguadilla Aguadilla,
More informationPractice Problem Solutions: Exam 1
Practice Problem Solutions: Exam 1 1. (a) Algebraic Solution: Te largest term in te numerator is 3x 2, wile te largest term in te denominator is 5x 2 3x 2 + 5. Tus lim x 5x 2 2x 3x 2 x 5x 2 = 3 5 Numerical
More informationLearning based super-resolution land cover mapping
earning based super-resolution land cover mapping Feng ing, Yiang Zang, Giles M. Foody IEEE Fellow, Xiaodong Xiuua Zang, Siming Fang, Wenbo Yun Du is work was supported in part by te National Basic Researc
More information