Free Essay

Linear Progr

In:

Submitted By cogni84
Words 3328
Pages 14
362

Chapter 9.

Root Finding and Nonlinear Sets of Equations

} a=b; fa=fb; if (fabs(d) > tol1) b += d; else b += SIGN(tol1,xm); fb=(*func)(b);

Move last best guess to a. Evaluate new trial root.

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

} nrerror("Maximum number of iterations exceeded in zbrent"); return 0.0; Never get here. }

CITED REFERENCES AND FURTHER READING: Brent, R.P. 1973, Algorithms for Minimization without Derivatives (Englewood Cliffs, NJ: PrenticeHall), Chapters 3, 4. [1] Forsythe, G.E., Malcolm, M.A., and Moler, C.B. 1977, Computer Methods for Mathematical Computations (Englewood Cliffs, NJ: Prentice-Hall), §7.2.

9.4 Newton-Raphson Method Using Derivative
Perhaps the most celebrated of all one-dimensional root-finding routines is Newton’s method, also called the Newton-Raphson method. This method is distinguished from the methods of previous sections by the fact that it requires the evaluation of both the function f (x), and the derivative f (x), at arbitrary points x. The Newton-Raphson formula consists geometrically of extending the tangent line at a current point x i until it crosses zero, then setting the next guess x i+1 to the abscissa of that zero-crossing (see Figure 9.4.1). Algebraically, the method derives from the familiar Taylor series expansion of a function in the neighborhood of a point, f (x + δ) ≈ f (x) + f (x)δ + f (x) 2 δ + .... 2 (9.4.1)

For small enough values of δ, and for well-behaved functions, the terms beyond linear are unimportant, hence f (x + δ) = 0 implies δ=− f (x) . f (x) (9.4.2)

Newton-Raphson is not restricted to one dimension. The method readily generalizes to multiple dimensions, as we shall see in §9.6 and §9.7, below. Far from a root, where the higher-order terms in the series are important, the Newton-Raphson formula can give grossly inaccurate, meaningless corrections. For instance, the initial guess for the root might be so far from the true root as to let the search interval include a local maximum or minimum of the function. This can be death to the method (see Figure 9.4.2). If an iteration places a trial guess near such a local extremum, so that the first derivative nearly vanishes, then NewtonRaphson sends its solution off to limbo, with vanishingly small hope of recovery.

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

Figure 9.4.1. Newton’s method extrapolates the local derivative to find the next estimate of the root. In this example it works well and converges quadratically.

Figure 9.4.2. Unfortunate case where Newton’s method encounters a local extremum and shoots off to outer space. Here bracketing bounds, as in rtsafe, would save the day.

363

1

x

9.4 Newton-Raphson Method Using Derivative

2

3

f (x)

f(x)

3

2

1

x

364

Chapter 9.

Root Finding and Nonlinear Sets of Equations

f (x)

1

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

x

2

Figure 9.4.3. Unfortunate case where Newton’s method enters a nonconvergent cycle. This behavior is often encountered when the function f is obtained, in whole or in part, by table interpolation. With a better initial guess, the method would have succeeded.

Like most powerful tools, Newton-Raphson can be destructive used in inappropriate circumstances. Figure 9.4.3 demonstrates another possible pathology. Why do we call Newton-Raphson powerful? The answer lies in its rate of convergence: Within a small distance of x the function and its derivative are approximately: f (x + ) = f (x) + f (x) +
2f

f (x + ) = f (x) + f (x) + · · · By the Newton-Raphson formula, xi+1 = xi − so that i+1 (x) + ···, 2

(9.4.3)

f (xi ) , f (xi ) f (xi ) . f (xi )

(9.4.4)

=

i



(9.4.5)

When a trial solution xi differs from the true root by i , we can use (9.4.3) to express f (xi ), f (xi ) in (9.4.4) in terms of i and derivatives at the root itself. The result is a recurrence relation for the deviations of the trial solutions i+1 =−

2 i

f (x) . 2f (x)

(9.4.6)

9.4 Newton-Raphson Method Using Derivative

365

Equation (9.4.6) says that Newton-Raphson converges quadratically (cf. equation 9.2.3). Near a root, the number of significant digits approximately doubles with each step. This very strong convergence property makes Newton-Raphson the method of choice for any function whose derivative can be evaluated efficiently, and whose derivative is continuous and nonzero in the neighborhood of a root. Even where Newton-Raphson is rejected for the early stages of convergence (because of its poor global convergence properties), it is very common to “polish up” a root with one or two steps of Newton-Raphson, which can multiply by two or four its number of significant figures! For an efficient realization of Newton-Raphson the user provides a routine that evaluates both f (x) and its first derivative f (x) at the point x. The Newton-Raphson formula can also be applied using a numerical difference to approximate the true local derivative, f (x) ≈ f (x + dx) − f (x) . dx (9.4.7)

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

This is not, however, a recommended procedure for the following reasons: (i) You are doing two function evaluations per step, so at best the superlinear order of √ convergence will be only 2. (ii) If you take dx too small you will be wiped out by roundoff, while if you take it too large your order of convergence will be only linear, no better than using the initial evaluation f (x0 ) for all subsequent steps. Therefore, Newton-Raphson with numerical derivatives is (in one dimension) always dominated by the secant method of §9.2. (In multidimensions, where there is a paucity of available methods, Newton-Raphson with numerical derivatives must be taken more seriously. See §§9.6–9.7.) The following function calls a user supplied function funcd(x,fn,df) which supplies the function value as fn and the derivative as df. We have included input bounds on the root simply to be consistent with previous root-finding routines: Newton does not adjust bounds, and works only on local information at the point x. The bounds are used only to pick the midpoint as the first guess, and to reject the solution if it wanders outside of the bounds.
#include #define JMAX 20 Set to maximum number of iterations.

float rtnewt(void (*funcd)(float, float *, float *), float x1, float x2, float xacc) Using the Newton-Raphson method, find the root of a function known to lie in the interval [x1, x2]. The root rtnewt will be refined until its accuracy is known within ±xacc. funcd is a user-supplied routine that returns both the function value and the first derivative of the function at the point x. { void nrerror(char error_text[]); int j; float df,dx,f,rtn; rtn=0.5*(x1+x2); Initial guess. for (j=1;j 0.0 && fh > 0.0) || (fl < 0.0 && fh < 0.0)) nrerror("Root must be bracketed in rtsafe"); if (fl == 0.0) return x1; if (fh == 0.0) return x2; if (fl < 0.0) { Orient the search so that f (xl) < 0. xl=x1; xh=x2; } else { xh=x1; xl=x2; } rts=0.5*(x1+x2); Initialize the guess for root, dxold=fabs(x2-x1); the “stepsize before last,” dx=dxold; and the last step. (*funcd)(rts,&f,&df); for (j=1;j 0.0) Bisect if Newton out of range, || (fabs(2.0*f) > fabs(dxold*df))) { or not decreasing fast enough. dxold=dx; dx=0.5*(xh-xl); rts=xl+dx; Change in root is negligible. if (xl == rts) return rts; } else { Newton step acceptable. Take it. dxold=dx; dx=f/df; temp=rts; rts -= dx; if (temp == rts) return rts; } if (fabs(dx) < xacc) return rts; Convergence criterion. (*funcd)(rts,&f,&df); The one new function evaluation per iteration.

9.4 Newton-Raphson Method Using Derivative

367

if (f < 0.0) xl=rts; else xh=rts;

Maintain the bracket on the root.

} nrerror("Maximum number of iterations exceeded in rtsafe"); return 0.0; Never get here. }
Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

For many functions the derivative f (x) often converges to machine accuracy before the function f (x) itself does. When that is the case one need not subsequently update f (x). This shortcut is recommended only when you confidently understand the generic behavior of your function, but it speeds computations when the derivative calculation is laborious. (Formally this makes the convergence only linear, but if the derivative isn’t changing anyway, you can do no better.)

Newton-Raphson and Fractals
An interesting sidelight to our repeated warnings about Newton-Raphson’s unpredictable global convergence properties — its very rapid local convergence notwithstanding — is to investigate, for some particular equation, the set of starting values from which the method does, or doesn’t converge to a root. Consider the simple equation z3 − 1 = 0 (9.4.8)

whose single real root is z = 1, but which also has complex roots at the other two cube roots of unity, exp(±2πi/3). Newton’s method gives the iteration zj+1 = zj −
3 zj − 1 2 3zj

(9.4.9)

Up to now, we have applied an iteration like equation (9.4.9) only for real starting values z0 , but in fact all of the equations in this section also apply in the complex plane. We can therefore map out the complex plane into regions from which a starting value z 0 , iterated in equation (9.4.9), will, or won’t, converge to z = 1. Naively, we might expect to find a “basin of convergence” somehow surrounding the root z = 1. We surely do not expect the basin of convergence to fill the whole plane, because the plane must also contain regions that converge to each of the two complex roots. In fact, by symmetry, the three regions must have identical shapes. Perhaps they will be three symmetric 120 ◦ wedges, with one root centered in each? Now take a look at Figure 9.4.4, which shows the result of a numerical exploration. The basin of convergence does indeed cover 1/3 the area of the complex plane, but its boundary is highly irregular — in fact, fractal. (A fractal, so called, has self-similar structure that repeats on all scales of magnification.) How does this fractal emerge from something as simple as Newton’s method, and an equation as simple as (9.4.8)? The answer is already implicit in Figure 9.4.2, which showed how, on the real line, a local extremum causes Newton’s method to shoot off to infinity. Suppose one is slightly removed from such a point. Then one might be shot off not to infinity, but — by luck — right into the basin of convergence of the desired

368

Chapter 9.

Root Finding and Nonlinear Sets of Equations

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

Figure 9.4.4. The complex z plane with real and imaginary components in the range (−2, 2). The black region is the set of points from which Newton’s method converges to the root z = 1 of the equation z 3 − 1 = 0. Its shape is fractal.

root. But that means that in the neighborhood of an extremum there must be a tiny, perhaps distorted, copy of the basin of convergence — a kind of “one-bounce away” copy. Similar logic shows that there can be “two-bounce” copies, “three-bounce” copies, and so on. A fractal thus emerges. Notice that, for equation (9.4.8), almost the whole real axis is in the domain of convergence for the root z = 1. We say “almost” because of the peculiar discrete points on the negative real axis whose convergence is indeterminate (see figure). What happens if you start Newton’s method from one of these points? (Try it.)

CITED REFERENCES AND FURTHER READING: Acton, F.S. 1970, Numerical Methods That Work; 1990, corrected edition (Washington: Mathematical Association of America), Chapter 2. Ralston, A., and Rabinowitz, P. 1978, A First Course in Numerical Analysis, 2nd ed. (New York: McGraw-Hill), §8.4. Ortega, J., and Rheinboldt, W. 1970, Iterative Solution of Nonlinear Equations in Several Variables (New York: Academic Press). Mandelbrot, B.B. 1983, The Fractal Geometry of Nature (San Francisco: W.H. Freeman). Peitgen, H.-O., and Saupe, D. (eds.) 1988, The Science of Fractal Images (New York: SpringerVerlag).

9.5 Roots of Polynomials

369

9.5 Roots of Polynomials
Here we present a few methods for finding roots of polynomials. These will serve for most practical problems involving polynomials of low-to-moderate degree or for well-conditioned polynomials of higher degree. Not as well appreciated as it ought to be is the fact that some polynomials are exceedingly ill-conditioned. The tiniest changes in a polynomial’s coefficients can, in the worst case, send its roots sprawling all over the complex plane. (An infamous example due to Wilkinson is detailed by Acton [1].) Recall that a polynomial of degree n will have n roots. The roots can be real or complex, and they might not be distinct. If the coefficients of the polynomial are real, then complex roots will occur in pairs that are conjugate, i.e., if x 1 = a + bi is a root then x2 = a − bi will also be a root. When the coefficients are complex, the complex roots need not be related. Multiple roots, or closely spaced roots, produce the most difficulty for numerical algorithms (see Figure 9.5.1). For example, P (x) = (x − a) 2 has a double real root at x = a. However, we cannot bracket the root by the usual technique of identifying neighborhoods where the function changes sign, nor will slope-following methods such as Newton-Raphson work well, because both the function and its derivative vanish at a multiple root. Newton-Raphson may work, but slowly, since large roundoff errors can occur. When a root is known in advance to be multiple, then special methods of attack are readily devised. Problems arise when (as is generally the case) we do not know in advance what pathology a root will display.

Sample page from NUMERICAL RECIPES IN C: THE ART OF SCIENTIFIC COMPUTING (ISBN 0-521-43108-5) Copyright (C) 1988-1992 by Cambridge University Press. Programs Copyright (C) 1988-1992 by Numerical Recipes Software. Permission is granted for internet users to make one paper copy for their own personal use. Further reproduction, or any copying of machinereadable files (including this one) to any server computer, is strictly prohibited. To order Numerical Recipes books or CDROMs, visit website http://www.nr.com or call 1-800-872-7423 (North America only), or send email to directcustserv@cambridge.org (outside North America).

Deflation of Polynomials
When seeking several or all roots of a polynomial, the total effort can be significantly reduced by the use of deflation. As each root r is found, the polynomial is factored into a product involving the root and a reduced polynomial of degree one less than the original, i.e., P (x) = (x − r)Q(x). Since the roots of Q are exactly the remaining roots of P , the effort of finding additional roots decreases, because we work with polynomials of lower and lower degree as we find successive roots. Even more important, with deflation we can avoid the blunder of having our iterative method converge twice to the same (nonmultiple) root instead of separately to two different roots. Deflation, which amounts to synthetic division, is a simple operation that acts on the array of polynomial coefficients. The concise code for synthetic division by a monomial factor was given in §5.3 above. You can deflate complex roots either by converting that code to complex data type, or else — in the case of a polynomial with real coefficients but possibly complex roots — by deflating by a quadratic factor, [x − (a + ib)] [x − (a − ib)] = x2 − 2ax + (a2 + b2 ) (9.5.1)

The routine poldiv in §5.3 can be used to divide the polynomial by this factor. Deflation must, however, be utilized with care. Because each new root is known with only finite accuracy, errors creep into the determination of the coefficients of the successively deflated polynomial. Consequently, the roots can become more and more inaccurate. It matters a lot whether the inaccuracy creeps in stably (plus or

Similar Documents

Premium Essay

Session 12

...Session 13 - Homework Problems Miguel Faundez Chapter 13 13.4 Answers a) The scatter plot shows a positive linear relationship. b) For each increase in shelf space of an additional foot, weekly sales are estimated to increase by $7.40. c) Y=145+7.4X=145+7.4(8)=204.2, or $204.20. 13.5 Answers a) From the scatter diagram, we can see that there exists positive relation between reported and audited magazine. b) The slope, B1=26.724 implies that for a unit increment in number of reported magazines, there will be 26.724 increment in the dependent variable, Audited number of magazines. c) The predicted audited newsstand sales for magazine that report newsstand sales of 400,000(X=400) is audited=0.5718+26.724x400=10690.1718. 13.16 Answers a) 20,535/30,025=0.684. 68.4% of the variation in sales can be explained by the variation in shelf space. b) √9,490/10=30.8058. c) Based on a) and b), the model should be useful for predicting the labor hours. 13.17 Answers a) r2 = 130,301.41/144,538.64 = .901498796 This means that 90.15% of the variation in audited sales is explained by the variability in reported sales. b) Formula = SST = SSR + SSE SST-SSR = SSE 144.538.64 – 130,301.41 = 14,237.23 SSE = 14,237.23 SYX = √SSE/ (n – 2) = √14,237.23/ (10 – 2) = √1779.65 SYX = 42.1859 c) This regression model is very helpful in predicting audited sales 13.24 Answers a) A residual analysis of the data indicates a pattern, with sizable clusters of...

Words: 508 - Pages: 3

Free Essay

Business Perspectives

...Unit Four – Case Analysis 1) Describe the primary system described in the story including the parts of the system, the system’s purpose, and the larger system in which it is embedded. The primary system described in The Tip of the Iceberg involved an iceberg, penguins, walruses, and clams. The penguins were living on an iceberg which had a clam bed beneath it. The penguins did not have the tools (sufficient lung capacity or tusks) to crack open the clams, but the walruses did. The walruses were respectful of the penguins’ territory and were not going to access the penguins’ clams without their permission. The penguins had an idea to ask the walruses to harvest the clams for them and in return the walruses could eat clams alongside them as long as they don’t eat the penguins. As more penguins heard of this treaty and made their way to the iceberg more walruses were needed to meet the demand. The system was looped; as more penguins arrived, more clams were needed, and thusly more walruses were also needed. Due to the increase weight of the penguins and walruses, the iceberg began to sink causing the capacity of the iceberg to decrease. The decrease in area resulted in penguins being sat on which lead to fighting amongst the groups. Such fighting makes the appeal of the iceberg decrease which brings the loop back to the number of penguins and walruses wanting clams and iceberg access. Ultimately, the entire penguin, walrus, clam, and iceberg system is part of a larger system...

Words: 765 - Pages: 4

Premium Essay

Regression Analysis

...it would mean to a manager (AIU Online).   Introduction Regression analysis can help us predict how the needs of a company are changing and where the greatest need will be. That allows companies to hire employees they need before they are needed so they are not caught in a lurch. Our regression analysis looks at comparing two factors only, an independent variable and dependent variable (Murembya, 2013). Benefits and Intrinsic Job Satisfaction Regression output from Excel SUMMARY OUTPUT Regression Statistics Multiple R 0.018314784 R Square 0.000335431 The portion of the relations explained Adjusted R Square -0.009865228 by the line 0.00033% of relation is Standard Error 1.197079687 Linear. Observations 100 ANOVA df SS MS F Significance F Regression 1 0.04712176 0.047122 0.032883 0.856477174 Residual 98 140.4339782 1.433 Total 99 140.4811 Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Intercept 4.731133588 1.580971255 2.992549 0.003501 1.593747586 7.86852 Intrinsic -slope 0.055997338 0.308801708 0.181338 0.856477 -0.5568096 0.668804 Line equation is benefits =4.73 + 0.0559 (intrinsic) Intercept- t-stat HO: Coefficients is zero. Intrinsic t-stat is zero...

Words: 830 - Pages: 4

Premium Essay

Assignment 4

...Michelle D. Griner MAT540 – Professor Johnson Strayer University Formulate a linear programming model for Julia that will help you to advise her if she should lease the booth. Formulate the model for the first home game. Explain how you derived the profit function and constraints and show any calculations that allow you to arrive at those equations. Let, X1 =No of pizza slices, X2 =No of hot dogs, X3 = No of barbeque sandwiches Objective function co-efficient: The objective is to maximize total profit. Profit is calculated for each variable by subtracting cost from the selling price. For Pizza slice, Cost/slice=$4.5/6=$0.75 | X1 | X2 | X3 | SP | $1.50 | $1.60 | $2.25 | -Cost | $0.75 | $0.50 | $1.00 | Profit | $0.75 | $1.10 | $1.25 | Maximize Total profit Z = $0.75X1 + 1.10X2 +1.25X3 * Constraints: 1. Budget constraint: 0.75X1 + 0.50X2 + 1.00X3 ≤ $1500 2. Space constraint: Total space available = 3*4*16=192 sq feet =192*12*12=27,648 sq. in. The oven will be refilled during half time. Thus, the total space available = 2*27,648 = 55,296 sq. in. Space required for a pizza = 14*14 = 196 sq. in. Space required for a slice of pizza = 196/6 = 32.667 sq. in. approximately. Thus, space constraint can be written as: 33X1 + 16X2 +25X3 ≤ 55,296 (sp. in of oven space) 3. at least as many slices of pizza as hot dogs and barbeque sandwiches combined X1 ≥ X2 + X3 (at least as many slices of pizza as hot dogs and barbeque sandwiches ...

Words: 345 - Pages: 2

Premium Essay

Forecastings

...Forecasting Methods Genius forecasting - This method is based on a combination of intuition, insight, and luck. Psychics and crystal ball readers are the most extreme case of genius forecasting. Their forecasts are based exclusively on intuition. Science fiction writers have sometimes described new technologies with uncanny accuracy. There are many examples where men and women have been remarkable successful at predicting the future. There are also many examples of wrong forecasts. The weakness in genius forecasting is that its impossible to recognize a good forecast until the forecast has come to pass. Some psychic individuals are capable of producing consistently accurate forecasts. Mainstream science generally ignores this fact because the implications are simply to difficult to accept. Our current understanding of reality is not adequate to explain this phenomena. Trend extrapolation - These methods examine trends and cycles in historical data, and then use mathematical techniques to extrapolate to the future. The assumption of all these techniques is that the forces responsible for creating the past, will continue to operate in the future. This is often a valid assumption when forecasting short term horizons, but it falls short when creating medium and long term forecasts. The further out we attempt to forecast, the less certain we become of the forecast. The stability of the environment is the key factor in determining whether trend extrapolation is an appropriate forecasting...

Words: 1639 - Pages: 7

Premium Essay

Models for Estimation of Isometric Wrist Joint Torques Using Surface Electromyography

...MODELS FOR ESTIMATION OF ISOMETRIC WRIST JOINT TORQUES USING SURFACE ELECTROMYOGRAPHY by Amirreza Ziai B.Eng., Sharif University of Technology, Tehran, 2008 THESIS SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF APPLIED SCIENCE In the School of Engineering Science Faculty of Applied Science © Amirreza Ziai 2011 SIMON FRASER UNIVERSITY Summer 2011 All rights reserved. However, in accordance with the Copyright Act of Canada, this work may be reproduced, without authorization, under the conditions for Fair Dealing. Therefore, limited reproduction of this work for the purposes of private study, research, criticism, review and news reporting is likely to be in accordance with the law, particularly if cited appropriately. APPROVAL Name: Degree: Title of Thesis: Amirreza Ziai M.A.Sc Models for estimation of isometric wrist joint torques using surface electromyography Examining Committee: Chair: Parvaneh Saeedi, P.Eng Assistant Professor – School of Engineering Science ______________________________________ Dr. Carlo Menon, P.Eng Senior Supervisor Assistant Professor – School of Engineering Science ______________________________________ Dr. Shahram Payandeh, P.Eng Supervisor Professor – School of Engineering Science ______________________________________ Dr. Bozena Kaminska, P.Eng Examiner Professor – School of Engineering Science Date Defended/Approved: _________September 2, 2011 ______________ ii ABSTRACT With an aging...

Words: 15377 - Pages: 62

Free Essay

Matrix

...coordinates of the image are (8, -1). Example 2: A rectangle has coordinates (1, 1), (4, 1), (4, 3) and (1, 3). Find the coordinates of the image of the rectangle under the transformation represented by the matrix . Solution: You could find the image of each vertex in turn by finding , etc. However, it is more efficient to multiply the transformation matrix by a rectangular matrix containing the coordinates of each vertex: . So the image has coordinates (2, 0), (11, -3), (9, -1) and (0, 2). The diagram below shows the object and the image: Any transformation that can be represented by a 2 by 2 matrix, , is called a linear transformation. 1.1 Transforming the unit square The square with coordinates O(0, 0), I(1, 0), J(0, 1) and K(1, 1) is called the unit square. Suppose we consider the image of this square under a general linear transformation as represented by the matrix : . We therefore can notice the following things: * The origin O(0, 0) is mapped to itself; * The image of the point I(1, 0) is (a, c), i.e. the first column of the transformation matrix; * The image of the point J(0, 1) is (b, d), i.e. the second column of the transformation matrix; * The image of the point K(1, 1) is (a + b, c+ d), i.e. the result of finding the sum of the entries in each row of the matrix. Example: Find the image of the...

Words: 2245 - Pages: 9

Premium Essay

Airtel

...Churn Prediction Vladislav Lazarov vladislav.lazarov@in.tum.de Technische Universität München Marius Capota Technische Universität München mariuscapota@yahoo.com ABSTRACT The rapid growth of the market in every sector is leading to a bigger subscriber base for service providers. More competitors, new and innovative business models and better services are increasing the cost of customer acquisition. In this environment service providers have realized the importance of the retention of existing customers. Therefore, providers are forced to put more efforts for prediction and prevention of churn. This paper aims to present commonly used data mining techniques for the identification of churn. Based on historical data these methods try to find patterns which can point out possible churners. Well-known techniques used for this are Regression analysis, Decision Trees, Neural Networks and Rule based learning. In section 1 we give a short introduction describing the current state of the market, then in section 2 a definition of customer churn, its’ types and the imporance of identification of churners is being discussed. Section 3 reviews different techniques used, pointing out advantages and disadvantages. Finally, current state of research and new emerging algorithms are being presented. given a huge choice of offers and different service providers to decide upon, winning new customers is a costly and hard process. Therefore, putting more effort in keeping churn low has become...

Words: 3713 - Pages: 15

Premium Essay

Significance and Advantages of Regression Analysis

...which can be described by a probability distribution. Regression analysis is widely used for prediction and forecasting, where its use has substantial overlap with the field of machine learning. Regression analysis is also used to understand which among the independent variables are related to the dependent variable, and to explore the forms of these relationships. In restricted circumstances, regression analysis can be used to infer causal relationships between the independent and dependent variables. However this can lead to illusions or false relationships, so caution is advisable:[1] see correlation does not imply causation. A large body of techniques for carrying out regression analysis has been developed. Familiar methods such as linear regression and ordinary least...

Words: 784 - Pages: 4

Free Essay

Devices Ii Hw Pg 504 #1-22 Section 9-1

...Section 9-1 1. Identify each type of filter response in Figure 9-32. A)Band-pass B)High-pass C)Low-pass D)Band-stop 2. A certain low-pass filter has a critical frequency of 800 Hz. What is its bandwidth? For this low-pass filter with fc of 800 Hz, the bandwidth is 800Hz. 3. A single-pole high-pass filter has a frequency-selective network with R=2.2 kΩ and C=0.0015µF. What is the critical frequency? fc=1/2πRC=1/(2π(2200Ω)(.0000000015F))= 48.2kHz Can you determine the bandwidth from the available information? No. 4. What is the roll-off rate of the filter described in Problem 3? As a single-pole filter it has a roll-off rate of -20 dB\decade. 5. What is the bandwidth of a band-pass filter whose critical frequencies are 3.2 kHz and 3.9 kHz? BW=fc2-fc1=3.9kHz-3.2kHz=700Hz What is the Q of this filter? Q=fo/BW= √fc1fc2/700Hz= √(3.2×3.9)/700=5.05 6. What is the center frequency of a filter with a Q of 15 and a bandwidth of 1 kHz? Q=fo/BW 15= fo/1kHz=15kHz Section 9-2 7. What is the damping factor in each active filter shown in Figure 9-33? DF=2-R1/R2 a)2- 1.2/1.2=1 b)2- 560/1000=1.44 c)both stage 1&2: 2- 330/1000=1.67 Which filters are approximately optimized for a Butterworth response characteristic? b)2- 560/1000=1.44 8. For the filters in Figure 9-33 that do not have a Butterworth response, specify the changes necessary to convert them to Butterworth responses...

Words: 800 - Pages: 4

Premium Essay

Statistics and Spss

...Marketing Research Fall 2011 Exercise: SPSS 5. Hypothesis test The MBA programme leader is interested to know if there is any significant average age difference between males and females and if there is which is the older group. a. Suggest a null hypothesis and an alternative hypothesis for testing the mean age for male and female students. μ0: The average ages of males and females are the same. μ1: The average ages of males and females are not the same. b. Carry out an appropriate test to compare the mean age for the two sexes, and interpret your results. Since the goal is to compare two means and that the data is of ratio scale, One-Way ANOVA is the appropriate test. Here we have gender as the factor and age as the dependent variable, and we choose the common 0.05 level of significance. Figure 5.1 is the resulting ANOVA table. | | | | | | |3.131a |2 |.209 | | |3.433 |2 |.180 | | |.543 |1 |.461 | | |40 | | | Figure 6.1 Cross table of satisfaction and sex at α=0.05 The p-value, which is 0.209, is very obviously greater than our chosen level of significance, 0.05. The null hypothesis...

Words: 659 - Pages: 3

Premium Essay

Time Series Methodologies

...Applying Time Series Methodologies Derek Griffin RES/342 March 22, 2012 Olivia Scott Applying Time Series Methodologies MEMO To: Myra Reid, VP of Production From: Derek Griffin, Market Analyst Date: 22 March 2012 Subject: Three Week Analysis Simulation to Predict Blues Inc. Forecast Message: Over the past three weeks an indebt research analysis was conducted to provide Blues Inc reasonably accurate forecast that will ensure continued growth to the six percent market share of a 45 billion dollar industry. In week one the marketing team was given a directive from the Chief Executive Officer, Barbara Baderman, to have an effective advertising strategy in place to become the industry leader. A regression analysis was performed using sales as the selected variable for the strong positive relationship to advertising budget. The correlation coefficient of sales with the advertising budget is 0.96, which was higher than the relationship of competitors advertising budget or retail coverage. Sales with a lower standard error indicate a better predicted forecast. Using the regression equation and expected sales of 2,400 million, the forecasted advertising budget should be set at 162 million. During week two the marketing team was challenged to predict the market sales for the next year. Denim sales have increased five percent over the past four years and is expected to increase again next year. The team used the weighted moving average with a weight of .9 for the...

Words: 455 - Pages: 2

Free Essay

Encoder Analysis

...ENCODER Documentation A0001229 Rev 1.3, Aug 2011 101 0100101010100000010101010100010101010010101000100010101011111110010100001010100100101010001010101010100101010101001010 0001010101001010100010001010101111111001010000010010100101010010101010000001010101010001010101001010100100100101010010010010 IMPIKA - 135 rue du Dirigeable - 13400 Aubagne - France Tel : + 33 (0)4 42 62 43 00 Fax : + 33 (0)4 42 62 42 99 www.impika.com IMPIKA assumes no responsibility for any errors that may appear in this document. If you have any suggestion for improvements or amendments or have found errors in this publication, please notify us. At the time of publication, this document is intended to be as comprehensive and accurate as possible. However, information contained hereafter can be subjected to modification without prior notice. IMPIKA reserves the rights to modify the features and ESifications of its products without prior notice. This document has been designed by IMPIKA for its customers but also for its internal use. The information contained hereafter is the property of IMPIKA and cannot, under any circumstances, be totally or partially reproduced in any form or by any means including photocopying, without express written permission of IMPIKA. When devices are used for applications with technical safety requirements, the relevant instructions must be followed. Failure to use IMPIKA software or approved software with our hardware products may result in injury, harm, or improper...

Words: 1600 - Pages: 7

Premium Essay

Regression Analysis

...Introduction Regression analysis was developed by Francis Galton in 1886 to determine the weight of mother/daughter sweet peas. Regression analysis is a parametric test used for the inference from a sample to a population. The goal of regression analysis is to investigate how effective one or more variables are in predicting the value of a dependent variable. In the following we conduct three simple regression analyses. Benefits and Intrinsic Job Satisfaction Regression output from Excel SUMMARY OUTPUT Regression Statistics Multiple R 0.616038 R Square 0.379503 Adjusted R Square 0.371338 Standard Error 0.773609 Observations 78 ANOVA df SS MS F Significance F Regression 1 27.81836 27.81836 46.48237 1.93E-09 Residual 76 45.48382 0.598471 Total 77 73.30218 Coefficients Standard Error t Stat P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0% Intercept 2.897327 0.310671 9.326021 3.18E-14 2.278571 3.516082 2.278571 3.516082 X Variable 1 0.42507 0.062347 6.817798 1.93E-09 0.300895 0.549245 0.300895 0.549245 Graph Benefits and Extrinsic Job Satisfaction Regression output from Excel SUMMARY OUTPUT Regression Statistics Multiple R 0.516369 R Square 0.266637 Adjusted R Square 0.256987 Standard Error 0.35314 Observations 78 ANOVA ...

Words: 684 - Pages: 3

Premium Essay

Spreadsheet

...Spreadsheet Analysis & Modeling MIS-505 Questions for Final Exam 1. What is name range? How can ranges be named? What are its uses? 2. What is lookup in Excel? What are the different kinds of lookup functions? What are its uses? 3. What is Index function? Write down the procedure of index function. What are its uses? 4. What is Match function? How you can write an Index and Match functions in a nested way? What are its uses? 5. Describe different kinds of text functions in Excel (such as left, right, mid). 6. How can you put date in Excel? What are its uses? 7. What is NETWORKINGDAYS function in Excel? What is NETWORKINGDAYS.INT function in Excel? What are its uses? 8. What is workday and WORKDAY.INT functions in Excel? What are its uses? 9. What is Net Present Value? How do NPV and XNPV function work in Excel? What are its uses? 10. What is internal rate of return (IRR)? How do IRR, XIRR, and MIRR work in Excel? What are its uses? 11. What is present value? How does PV function work? What are its uses? 12. What is Future Value? How does FV function work? What are its uses? 13. Write down the functions of PMT, PPMT, IPMT. How can you use these functions to prepare a loan amortization schedule? 14. Write down the function of IF Statement, AND, OR and XOR. 15. Describe different Time functions. What are its uses? 16. What is What If Analysis? Describe different kind of what if analysis. What are its uses...

Words: 474 - Pages: 2