Are the Folded F-test and Bartlett s equivalent?

Size: px
Start display at page:

Download "Are the Folded F-test and Bartlett s equivalent?"

Transcription

1 Are the Folded F-test and Bartlett s equivalent? I can think of two ways to solve this problem: (1) Look up what they actually are. (2) Simulate under many conditions and look closely at the results. Looking at a UCLA website at the folded F test is defined by F = max(s 2 1, s 2 2)/ min(s 2 1, s 2 2) where si 2 refers to the sample variance for group i. For k groups, the Bartlett test statistic is T = (N k) log s2 p k i=1 (Ni 1) log si 2 ( k ) 1 3(k 1) i=1 N i 1 1 N k SAS Programming November 20, / 76

2 Are the Folded F-test and Bartlett s equivalent? As test statistics they look quite different, but it s more difficult to tell whether they will generate different p-values because. Bartlett s test is compared to a χ 2 distribution with k 1 degrees of freedom. The Folded F test is based on an F distribution. It is called folded because the larger variance is always placed in the numerator, thus making the F statistic constrained to be greater than or equal to 1. Why are the p-values so close, you ask? SAS Programming November 20, / 76

3 Are the Folded F-test and Bartlett s equivalent? The F test and the χ 2 distributions in that the F distribution has a d denominator and a numerator degrees of freedom and F m,n χ 2 m as n. The arrow means convergence in distribution, something slightly different from the usual limits you study in Calculus, but something you ll study in Casella and Berger. Basically this means that P(F m,n > x) P(χ 2 m > x) for large n, which also means that they generate very similar p-values, but they aren t equivalent for finite n, even if they are close. If you are graphing, they might appear to be identical due to limited resolution, so it is good to look at the numbers themselves to see how close they are. SAS Programming November 20, / 76

4 Are the Folded F-test and Bartlett s equivalent? How to investigate this with simulation? We might guess that as the sample size increases, then the tests are more likely to be similar, so we ll try with a small sample size. Unequal sample sizes might also have an effect, so I ll try three observations in one group and 10 in the other. Both definitions look like they easily generalize to more than two groups, for example you could use max(s 2 1,..., s 2 k )/ min(s2 1,..., s 2 k ) as a test statistic. If all variances are the same, this should still be close to 1. The distribution is now not clear, so you could either use theory to derive the distribution (might be hard!) or simulate the distribution SAS Programming November 20, / 76

5 Are the Folded F-test and Bartlett s equivalent? Let s simulate to see how different the p-values are for the Folded-F versus Bartlett s SAS Programming November 20, / 76

6 Are the Folded F-test and Bartlett s equivalent? Let s simulate to see how different the p-values are for the Folded-F versus Bartlett s SAS Programming November 20, / 76

7 Are the Folded F-test and Bartlett s equivalent? Let s simulate to see how different the p-values are for the Folded-F versus Bartlett s SAS Programming November 20, / 76

8 Are the Folded F-test and Bartlett s equivalent? SAS Programming November 20, / 76

9 Are the Folded F-test and Bartlett s equivalent? SAS Programming November 20, / 76

10 Are the Folded F-test and Bartlett s equivalent? So the type 1 error rate was different between the two tests. Note that although the Folded F was slightly elevated above 0.05, this was not significant since sqrt(.05.95/1000) =.042. I also tried equal samples sizes of 10 per group, and there the p-values disagree only in the 4th decimal place. In 1000 iterations, it wouldn t be surprising if they always agreed on whether or not to reject the null. Looking at the actual p-values instead of the power gives you more resolution for what is going on. SAS Programming November 20, / 76

11 Are the Folded F-test and Bartlett s equivalent? If I use 3 observations in each group, then the tests appear to be closer, but still not identical. SAS Programming November 20, / 76

12 HW hints: How to plot two identical curves on top of each other? Metallica recurrence data. SAS Programming November 20, / 76

13 HW hints Rolling Stones recurrence data. SAS Programming November 20, / 76

14 HW hints Megadeth recurrence data (much easier colors to read...) SAS Programming November 20, / 76

15 HW hints: how to plot two nearly identical curves on top of each other SAS Programming November 20, / 76

16 PROC IML! PROC IML! PROC IML! SAS/IML is the Interactive Matrix Language. It is probably the last topic of programming to cover in the course. After this, we will look at other topics using more statistical procedures from SAS. SAS/IML, like macros, can be used To Boldly Go Where No SAS Proc Has Gone Before...that is, it is partly used to give SAS programmers more flexibility and to implement new techniques that haven t found their way into SAS procedures yet. SAS Programming November 20, / 76

17 PROC IML! PROC IML! PROC IML! Another use for learning SAS/IML is to program with matrices is to improve your knowledge of statistics. This can be done with R or MATLAB just as (or perhaps more) easily than with SAS. It is often too difficult to work out multiple regression estimates by hand for instance, but instead of just relying on a canned procedure to get the answers for you, you can implement the matrices involved yourself and see if you can duplicate the results from programs like SAS or R or STATA. This can give you better appreciation for the methods and involved and deeper knowledge of what s going on under the hood of these programs. SAS Programming November 20, / 76

18 PROC IML basics We ll start by just doing some of the basics of how to use PROC IML. Despite the interactive title, it works pretty much like other SAS procedures, with typing in the Code editor and viewing the results in the Results viewer. The syntax for entering vectors and matrices is more similar to MATLAB than R. Here are some basic examples that show assigning values, vectors, and matrices and displaying their properties. Something that might be annoying is that you have to tell it PROC IML; reset log print each time you run it. If you just highlight your latest bit of code and run it, it will not know that you are using IML or know the previously defined variables. SAS Programming November 20, / 76

19 PROC IML basics SAS Programming November 20, / 76

20 PROC IML basics You can perform operations on matrices such as concatenation either horizontally or vertically... SAS Programming November 20, / 76

21 SAS Programming November 20, / 76

22 PROC IML basics The transpose of a vector or matrix is handled by the left single-quote, which looks a little weird. Some references say you can use the transpose function t(), which is how R does it, but it has generated errors for me. SAS Programming November 20, / 76

23 PROC IML basics You can create arrays of numbers similarly to R, and even arrays of strings that have consecutive suffixes. Try the following in the Code window and then look at the Results viewer. proc iml; reset log print; index=1:10; rows = 1:3 ; rindex=10:1; series(0,100,20); strings = "x1":"x8"; /* turns strings into a vector of, strings "x1", "x2",..., "x8" */ SAS Programming November 20, / 76

24 PROC IML basics Try these also to set up special matrices used often in statistics. proc iml; reset log print; b=j(6,1); *6x1 matrix of ones; c=j(2,3); *2x3 matrix of ones; a = I(6); *6x6 identity matrix; d = diag( {1 2 4} ); * diagonal matrix; b = 1:3; d2 = diag(b); d3 = diag(1:5); SAS Programming November 20, / 76

25 PROC IML basics SAS Programming November 20, / 76

26 PROC IML basics Some other functions and operators that can be useful: B = A##2; /* squares A elementwise */ C = A <> B; /* element-wise maximum */ C = A < B; /* element-wise 0-1 test */ B = sqrt(a); /* element-wise square root */ D = block(a,b,c); /* creates a block diagonal matrix using A, B, and C as matrices */ c = NCOL(A); /* number of columns of A */ d = NROW(A); /* number of rows of A */ E = exp(a); /* element-wise exponentiation */ F = log(a); /* element-wise log */ d = det(a); /* determinant */ B = inv(a); /* inverse of A */ v = vecdiag(a) /* v is a vector with the diagonal entries of A */ SAS Programming November 20, / 76

27 PROC IML basics You can extract individual elements or submatrices from a matrix: d1_12 = d1[1,2]; /* extact first row, second column */ d1_ = d1[1,]; /* extract first row */ d_2 = d1[,2]; /* extract second column */ d = d1[1:2,{1 3}]; /* extract a 2x2 submatrix */ mycols = {1 3}; d = d1[1:2,mycols]; /* alternative gives the same results */ Remember that to run this code you also need to run proc iml; reset log print; each time. SAS Programming November 20, / 76

28 PROC IML basics To get column sums and column sums of squares, there is special notation csum = d1[+,] #column sum is a row vector rsum = d1[,+] #row sum is a column vector rsum2 = d1 [,+] #rsum2 is a row vector a = d1[+,+]; /* sum of all elements in the matrix */ b = sum(d1); /* a and b are the same but b is more efficient */ SAS Programming November 20, / 76

29 PROC IML: searching matrices Often we want an index of where certain values occur. For example, we might want to know which values in a vector or a matrix are less than 0, or where the maximum value occurs. This can be done using the LOC function. The LOC function is easier to understand with vectors. Here it returns a vector of indices of the vector satisfying the condition. For example, with d 2 = { 4 0 4}, trying m = max(d_2); negvalue = loc(d_2<0); maxvalue = loc(d_2=m); returns the vector {1 3} for negvalue and returns {2} for maxvalue. The LOC function is very similar to the which() function in R. SAS Programming November 20, / 76

30 PROC IML searching matrices If you apply the LOC function to an entire r c, it counts the cells from 1 to r c and gives a single number indexing the cells rather than the row and column number, and counts cell row-wise. Thus, for a 2 3 matrix like d1, d1[5] extracts element (2,2). SAS Programming November 20, / 76

31 PROC IML: missing values Matrices can be defined with missing values, which will sometimes appropriately create missing values when operated on, and other times missing values are ignored. SAS Programming November 20, / 76

32 PROC IML: formatting and labels You can format values to have dollar signs, commas or any other format you like and can also label rows and columns. SAS Programming November 20, / 76

33 PROC IML: Reading data to and from SAS data sets Typically, you ll want to read in data from a SAS data set instead of starting from scratch and entering data into your matrix. You also might want to manipulate data using PROC IML then output it again to a SAS data set to use usual SAS PROCs. SAS Programming November 20, / 76

34 PROC IML: Creating a SAS data set Typically, you ll want to read in data from a SAS data set instead of starting from scratch and entering data into your matrix. You also might want to manipulate data using PROC IML then output it again to a SAS data set to use usual SAS PROCs. SAS Programming November 20, / 76

35 PROC IML: Creating a SAS data set Note that I ve changed the variable name from temperature to temp and also changed the 5th observation from age 73 to age 67. I needed the three statements, CREATE, APPEND, and CLOSE to create the data set. If you don t CLOSE, then the data set is created but is still empty. Instead of creating a new data set, you can instead edit an existing data set using the EDIT statement. However, you can only input one data set at a time into PROC IML. SAS Programming November 20, / 76

36 PROC IML: more on reading in data You can choose to read in less than all of the data in a data set. The syntax for the READ statement is READ <range> <VAR operand> <WHERE (expression)> <INTO name <[rowname=variable colname=matrix]>>; where items within angled brackets are options. Typically for the range you put all if you want to read in all of the data. You can also read in the next n observations using NEXT n, or a list of specific observations using point {3,10,11} (for example to read in the 3rd, 10th, and 11th observations only. SAS Programming November 20, / 76

37 PROC IML: more on reading in data VAR allows you to specify a list of which variables to read in if you don t want to read them all in. The default is to only read in numeric variables, however you can use CHARACTER to specify that you only want to read in character variables. The WHERE option works similarly to WHERE statements in data steps in PROCs. A common example might be to only read in observations without missing data, e.g. where var1 ne.. An alternative to using the READ statement to control what is read in is to create a new data set using data steps to first create the subset of the data you want to manipulate in PROC IML, although this could be less efficient than going directly through PROC IML for large data sets SAS Programming November 20, / 76

38 PROC IML: logical expressions, loops Logical expressions using IF THEN, ELSE, and loops using DO follow the same syntax as in data steps. They allow you to loop through a matrix in a way that can be a bit easier than looping through a data set in a data step. If your loop is indexing observation (row) i, then you can examine row i 1 without having to use lag functions and retain statements. You also have access to observation i + 1. SAS Programming November 20, / 76

39 PROC IML: simple linear regression As an exercise, let s use PROC IML to find the regression coefficients when we do a simple linear regression of temperature on age. For now, we ll ignore the sex of the individuals. We want to use the model Y = X β + e, or y i = β 0 + β 1 x i + e i, i = 1,..., 130 First, we ll read in the data, separate the data into observations Y, and the predictor, and create the design matrix. The design matrix will have a column of 1s and a column for the predictors. Note that X is and the vector of coefficients in the regression model is β = (β 0 β 1 ), which is a 2 1 matrix (or column vector). If we set Y = X β + e, where we use these matrix expressions, then the ith row of Y is y i = x i1 β 0 + x i2 β 1 + e i. SAS Programming November 20, / 76

40 PROC IML: simple linear regression The idea is to solve for β using the equation Y = X β. To do this we first multiply both sides by the transpose of X, so X Y = X X β (X X ) 1 X Y = (X X ) 1 X X β β = (X X ) 1 X Y Now we can use PROC IML to do these matrix calculations and see if they result in β that matches the output of SAS procedures. SAS Programming November 20, / 76

41 PROC IML: simple linear regression Typically, you ll want to read in data from a SAS data set instead of starting from scratch and entering data into your matrix. You also might want to manipulate data using PROC IML then output it again to a SAS data set to use usual SAS PROCs. SAS Programming November 20, / 76

42 PROC IML: simple linear regression output from PROC IML and PROC REG SAS Programming November 20, / 76

43 PROC IML: simple linear regression How do you interpret the matrix X X? Think about how to multiply this. The matrix is p p where p is the number of parameters (β terms), so it is 2 2 in this case. The (1,1) entry is times, so it is 130. You can also think of this as the sample size. The (1,2) entry is x x x 130 = The (2,1) entry is The (2,2) entry is i=1 130 x x x = i=1 130 x 1 x 1 + x 2 x 2 + x 130 x 130 = i=1 x i x i x 2 i SAS Programming November 20, / 76

44 PROC REG You can also output the X X matrix from PROC REG using model temperature = age / xpx; which is an abbreviation for x prime x. Of course, PROC REG outputs much more than this, and you can use PROC IML to see if you can reproduce residuals, fitted values, F statistics, and so on. SAS Programming November 20, / 76

45 Getting other quantities for regression Other quantities of interest for a linear model include the hat matrix, X (X X ) 1 X, the predicted values, X X etc., all of which can easily be obtained from PROC IML. Some of these can also be obtained from PROC REG. If a new diagnostic test is developed not implemented in PROC REG or PROG GLM, then it would be beneficial to have access to these matrices directly from PROC IML. SAS Programming November 20, / 76

46 Comparing shapes An example where you might need something like PROC IML is if you have to rotate your data, which can be accomplished through matrix multiplication of your original data. This comes up in statistics when you want to compare to sets of points (usually either in 2D or 3D, but could be higher-dimensional), and the points are not oriented the same way or scaled the same way. This can come up particularly in shape analysis, where you want to determine whether two shapes are roughly equivalent, or you want to compare two photographs taken from slightly different positions. In addition to statistical testing, sometimes you just want to best visualize the difference between two sets of points, and this is best accomplished by lining up the points as nearly as possible. SAS Programming November 20, / 76

47 Comparing shapes As an example, consider two photographs of hands. SAS Programming November 20, / 76

48 Comparing shapes We have reference points on the hands, and we want to line up the reference points as closely as possible by rotating the images, rescaling if necessary (suppose you have photos that are cropped or zoomed in and still want to compare the shapes). In general we might also allow mirror images. In this case, we assume the points are two-dimensional so that they each have just an x and y coordinate. This would typically be the case for analyzing photographic images, although in general you can imagine have three dimensional data as well. SAS Programming November 20, / 76

49 Comparing shapes Applications for this are widespread. In medical imaging, you might take an x-ray of a patient over time to compare how their spine is changing with osteoporosis. The x-rays won t be taken at identical distances, angles and so forth, so you need to align the images by stretching and rotating. Other examples will include MRI scans of the brains, where you might want to either compare the same individual at different time points, the left versus the right hemisphere to look for asymmetries, or two separate individuals to see how closely aligned two brains are. Here we want to ignore the fact that one brain might be slightly larger than the other. If eyes or fingerprints are used for ID, again it will be easiest to compare two images by rotation and rescaling. SAS Programming November 20, / 76

50 Comparing shapes If you have satellite images of regions on earth, you might want to measure things like habitat loss. Successive photos of the same region won t be exactly the same, so you might try to align two photos using certain geographical reference points. Once the photos are aligned, you can use differences in the area that is green as a measure of vegetation loss, for example. The name Procrustes refers to a bandit from Greek mythology who made his victims fit his bed either by stretching their limbs or cutting them off. (Wikipedia) SAS Programming November 20, / 76

51 Procrustes illustrations You can find some interesting illustrations online... SAS Programming November 20, / 76

52 Comparing shapes Back to the hand example. Here we have two sets of coordinates. We might call them and X = {(x 11, x 12 ), (x 21, x 22 ),..., (x n1, x n2 )} Y = {(y 11, y 12 ),..., (y n1, y n2 )} How should we align the points? If we use the distances between corresponding points, we can minimize the distance between points over all possible angles of rotation, rescalings, and reflections. To deal with reflections, it might help to center the points so that (x 1, x 2 ) = 0 and (y 1, y 2 ) = 0. For many problems (like with satellite photographs or the same patient over time), reflections won t matter. SAS Programming November 20, / 76

53 Comparing shapes The distance between two individual points x i = (x i1, x i2 ) and y i = (y i1, y i2 ) is naturally defined as d(x i, y i ) = (x i1 y i1 ) 2 + (x i2 y i2 ) 2 This is the Euclidean distance between two points in the plane. We might define the overall squared distance from the set of points X to the set of points Y as n d 2 (X, Y ) = d 2 (x i, y i ) i=1 SAS Programming November 20, / 76

54 Comparing shapes We can then minimize the sum of squared distances between points (this is equivalent to minimizing the distances why?). This is fairly similar as a criterion to what we do in regression, so hopefully doesn t seem too weird. In other words, we want to minimize d 2 (x i, y i ) = (x i1 y i1) 2 + (x i2 y i2) 2 over all choices of θ and c. To do this, we need to write y i as a function of y i, θ, and a scaling factor c. SAS Programming November 20, / 76

55 Example SAS Programming November 20, / 76

56 Example Lines connecting corresponding points SAS Programming November 20, / 76

57 Example Rotating π/8 radians = 22.5 degrees clockwise, we get SAS Programming November 20, / 76

58 Example How the squares were shifted by π/8 radians = 22.5 degrees SAS Programming November 20, / 76

59 Example Shifting by another π/8 radians (45 degrees total), we get SAS Programming November 20, / 76

60 Rotating your data To rotate 2-dimensional data, you can use a rotation matrix. If a set of points is in an n 2 matrix, then we need a 2 2 matrix to multiply this matrix. The rotation matrix (from linear algebra) is [ ] cos θ sin θ R = sin θ cos θ SAS Programming November 20, / 76

61 Minimizing squared distances Let X be the matrix for the first data set and Y the matrix for the second data set. To simplify the problem, we ll consider only doing optimal rotations without worrying about scaling. We can think of rotating the observations Y to match X using a rotation matrix R. Thus X = RY This usually can t be solved exactly, so we want to find R for which X RY 0 To minimize the sum of squared distances, we minimize tr[(x RY ) (X RY )] where tr is the trace, or sum of the diagonals. After some matrix algebra, this is equivalent to minimizing tr(ry X ) SAS Programming November 20, / 76

62 Minimizing squared distances A technique for solving this problem involves the singular value decomposition, which again comes from linear algebra and which we won t review, but can be used in SAS, Matlab, and other matrix-oriented languages. However, the matrix Y X can be decomposed into UDV, where D is diagonal and U and V are orthogonal. The solution is R = VU which minimizes the sum of the squared distances. If you have software which can do the singular value decomposition, then you can use it get the optimal rotation. SAS Programming November 20, / 76

63 Using PROC IML for Procrustes Rotation SAS Programming November 20, / 76

64 Using PROC IML for Procrustes Rotation SAS Programming November 20, / 76

65 Using PROC IML for Procrustes Rotation SAS Programming November 20, / 76

66 Using PROC IML for Procrustes Rotation SAS Programming November 20, / 76

67 Using PROC IML for Procrustes Rotation In this case, the rotation matrix has values near 1 and -1 for sin θ and sin θ for the (1,2) and (2,1) entries, respectively, suggesting that the optimal rotation is near 90 degrees or π/2 radians. This means 90 degrees counterclockwise, and if you look at the photos, moving the right-hand photo 90 degrees counterclockwise will indeed line up the wrists (from top left to bottom left) and the rest of the hand. Since these photos look identical, the slight discrepancy might be due to truncating measurements in the positions of the points. SAS Programming November 20, / 76

68 Using PROC IML for Procrustes Rotation Most of the work of the Procrustes rotation in terms of code was for centering the data. Once the data was centered, there were only three lines of code needed. It is possible to do the optimal rotation without using matrices, but this would involve more work in terms of coding. For the centering itself, this could have been done outside of PROC IML, and PROC IML could have read in a SAS dataset with X and Y already centered. If you had the original data in a SAS data set, how would you center the data using data step programming? SAS Programming November 20, / 76

69 Centering the data Often if something is very tedious, there might be a procedure to help you out. Googling z-score SAS quickly reveals PROC STANDARD, which can center your data. If you have a data set called temperature, you can use something like proc standard data=temperature mean=0 std=1 out=ztemp; var degrees; run; SAS Programming November 20, / 76

70 Minimizing squared distances using calculus To minimize this distance, we can use calculus, but in this case, we need to minimize over rotations (angles) and rescalings. It helps to think of one data set as fixed, say X, and we rotate and rescale Y to match X as closely as possible. If we rotate the Y data by an angle θ and stretch their values by c, then [ cos θ sin θ sin θ cos θ ] [ cyi1 cy i2 ] = c [ yi1 cos θ y i2 sin θ y i1 sin θ + y i2 cos θ So we use y i1 = c(y i1 cos θ y i2 sin θ) and y i2 = cy i1 sin θ + cy i2 cos θ and and plug these values into n d 2 (X, Y ) = (x i1 y i1) 2 + (x i2 y i2) 2 i=1 Then the idea is to minimize with respect to θ and c. This can be done taking partial derivates with respect to θ and c and using the usual calculus techniques of optimization. SAS Programming November 20, / 76 ]

71 The calculus approach I ll give the formulas in terms of summations for the optimal values for θ and c. This will be equivalent whether you use the calculus approach or the matrix approach. The optimal rotation angle is for integer k, and θ = arctan D B + kπ c = B A cos θ + D A sin θ where k {0, 1} should be chosen to let c > 0. Here A = n i=1 y 2 i1 + y 2 i2 B = C = n x i1 y i1 + x i2 y i2 i=1 n x i1 y i1 x i2 y i2 i=1 SAS Programming November 20, / 76

72 Using PROC IML for Procrustes Rotation Part of the advantage of the matrix approach to Procrustes rotations is that it generalizes more easily than the calculus approach. In particular, you can compare three-dimensional (or higher dimensional) shapes or patterns in the data as well as two-dimensional, which makes the rotations more complicated. We just illustrated rotations rather than scaling. Optimizing the scaling factor as well as rotations is sometimes called extended Procrustes Analysis. Generalized Procrustes also more than two data sets at a time to be used. For Generalized Procrustes, and mean shape is the set of points that minimizes the sum of the Procrustes distances to each of the input data sets. SAS Programming November 20, / 76

73 Comparing data sets and Outlier detection In addition to rotating your data, Procrustes rotations give you a way to quantify how different two shapes are. You might or might not want to rescale (stretch) the data depending on the application, for example using the minimum sum of squared distances. Thus, given three data sets, you can look at all pairwise distances to determine which two datasets are most similar. The Procrustes rotation can also be used to look for outliers. Try removing one observation at a time and recomputing the squared distances each time. (This means you will do Procrustes rotations with n 1 instead of n data points each time.) This gives you a measure of which observations have the biggest effect for one dataset not being able to be rotated to match the other data set. SAS Programming November 20, / 76

74 Writing functions in PROC IML SAS Programming November 20, / 76

75 Writing functions in PROC IML SAS Programming November 20, / 76

76 Writing functions in PROC IML SAS Programming November 20, / 76

Chapter 1. Math review. 1.1 Some sets

Chapter 1. Math review. 1.1 Some sets Chapter 1 Math review This book assumes that you understood precalculus when you took it. So you used to know how to do things like factoring polynomials, solving high school geometry problems, using trigonometric

More information

Basics of Computational Geometry

Basics of Computational Geometry Basics of Computational Geometry Nadeem Mohsin October 12, 2013 1 Contents This handout covers the basic concepts of computational geometry. Rather than exhaustively covering all the algorithms, it deals

More information

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview

D-Optimal Designs. Chapter 888. Introduction. D-Optimal Design Overview Chapter 888 Introduction This procedure generates D-optimal designs for multi-factor experiments with both quantitative and qualitative factors. The factors can have a mixed number of levels. For example,

More information

18.02 Multivariable Calculus Fall 2007

18.02 Multivariable Calculus Fall 2007 MIT OpenCourseWare http://ocw.mit.edu 18.02 Multivariable Calculus Fall 2007 For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms. 18.02 Problem Set 4 Due Thursday

More information

1.7 Limit of a Function

1.7 Limit of a Function 1.7 Limit of a Function We will discuss the following in this section: 1. Limit Notation 2. Finding a it numerically 3. Right and Left Hand Limits 4. Infinite Limits Consider the following graph Notation:

More information

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6 Polar Coordinates Any point in the plane can be described by the Cartesian coordinates (x, y), where x and y are measured along the corresponding axes. However, this is not the only way to represent points

More information

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below.

The first thing we ll need is some numbers. I m going to use the set of times and drug concentration levels in a patient s bloodstream given below. Graphing in Excel featuring Excel 2007 1 A spreadsheet can be a powerful tool for analyzing and graphing data, but it works completely differently from the graphing calculator that you re used to. If you

More information

Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ x + 5y + 7z 9x + 3y + 11z

Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ x + 5y + 7z 9x + 3y + 11z Basic Linear Algebra Linear algebra deals with matrixes: two-dimensional arrays of values. Here s a matrix: [ 1 5 ] 7 9 3 11 Often matrices are used to describe in a simpler way a series of linear equations.

More information

1 Introduction to Matlab

1 Introduction to Matlab 1 Introduction to Matlab 1. What is Matlab? Matlab is a computer program designed to do mathematics. You might think of it as a super-calculator. That is, once Matlab has been started, you can enter computations,

More information

Here are some of the more basic curves that we ll need to know how to do as well as limits on the parameter if they are required.

Here are some of the more basic curves that we ll need to know how to do as well as limits on the parameter if they are required. 1 of 10 23/07/2016 05:15 Paul's Online Math Notes Calculus III (Notes) / Line Integrals / Line Integrals - Part I Problems] [Notes] [Practice Problems] [Assignment Calculus III - Notes Line Integrals Part

More information

Meeting 1 Introduction to Functions. Part 1 Graphing Points on a Plane (REVIEW) Part 2 What is a function?

Meeting 1 Introduction to Functions. Part 1 Graphing Points on a Plane (REVIEW) Part 2 What is a function? Meeting 1 Introduction to Functions Part 1 Graphing Points on a Plane (REVIEW) A plane is a flat, two-dimensional surface. We describe particular locations, or points, on a plane relative to two number

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos, sin,

More information

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation

Matrices. Chapter Matrix A Mathematical Definition Matrix Dimensions and Notation Chapter 7 Introduction to Matrices This chapter introduces the theory and application of matrices. It is divided into two main sections. Section 7.1 discusses some of the basic properties and operations

More information

How to Do Everything We Need to Do on a TI Calculator in Algebra 2 for Now (Unless Davies Forgot Something)

How to Do Everything We Need to Do on a TI Calculator in Algebra 2 for Now (Unless Davies Forgot Something) How to Do Everything We Need to Do on a TI Calculator in Algebra 2 for Now (Unless Davies Forgot Something) 10.01.17 Before you do anything, set up your calculator so that it won t get in your way. Basics:

More information

University of Alberta

University of Alberta A Brief Introduction to MATLAB University of Alberta M.G. Lipsett 2008 MATLAB is an interactive program for numerical computation and data visualization, used extensively by engineers for analysis of systems.

More information

Introduction to Matlab

Introduction to Matlab What is Matlab? Introduction to Matlab Matlab is software written by a company called The Mathworks (mathworks.com), and was first created in 1984 to be a nice front end to the numerical routines created

More information

MATLAB TUTORIAL WORKSHEET

MATLAB TUTORIAL WORKSHEET MATLAB TUTORIAL WORKSHEET What is MATLAB? Software package used for computation High-level programming language with easy to use interactive environment Access MATLAB at Tufts here: https://it.tufts.edu/sw-matlabstudent

More information

Table of Laplace Transforms

Table of Laplace Transforms Table of Laplace Transforms 1 1 2 3 4, p > -1 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Heaviside Function 27 28. Dirac Delta Function 29 30. 31 32. 1 33 34. 35 36. 37 Laplace Transforms

More information

Partial Derivatives (Online)

Partial Derivatives (Online) 7in x 10in Felder c04_online.tex V3 - January 21, 2015 9:44 A.M. Page 1 CHAPTER 4 Partial Derivatives (Online) 4.7 Tangent Plane Approximations and Power Series It is often helpful to use a linear approximation

More information

Lecture 2. Arrays. 1 Introduction

Lecture 2. Arrays. 1 Introduction 1 Introduction Lecture 2 Arrays As the name Matlab is a contraction of matrix laboratory, you would be correct in assuming that Scilab/Matlab have a particular emphasis on matrices, or more generally,

More information

COMP 558 lecture 19 Nov. 17, 2010

COMP 558 lecture 19 Nov. 17, 2010 COMP 558 lecture 9 Nov. 7, 2 Camera calibration To estimate the geometry of 3D scenes, it helps to know the camera parameters, both external and internal. The problem of finding all these parameters is

More information

How to learn MATLAB? Some predefined variables

How to learn MATLAB? Some predefined variables ECE-S352 Lab 1 MATLAB Tutorial How to learn MATLAB? 1. MATLAB comes with good tutorial and detailed documents. a) Select MATLAB help from the MATLAB Help menu to open the help window. Follow MATLAB s Getting

More information

Linear and Quadratic Least Squares

Linear and Quadratic Least Squares Linear and Quadratic Least Squares Prepared by Stephanie Quintal, graduate student Dept. of Mathematical Sciences, UMass Lowell in collaboration with Marvin Stick Dept. of Mathematical Sciences, UMass

More information

2D and 3D Transformations AUI Course Denbigh Starkey

2D and 3D Transformations AUI Course Denbigh Starkey 2D and 3D Transformations AUI Course Denbigh Starkey. Introduction 2 2. 2D transformations using Cartesian coordinates 3 2. Translation 3 2.2 Rotation 4 2.3 Scaling 6 3. Introduction to homogeneous coordinates

More information

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below: Polar Coordinates Any point in the plane can be described by the Cartesian coordinates (x, y), where x and y are measured along the corresponding axes. However, this is not the only way to represent points

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab Andreas C. Kapourani (Credit: Steve Renals & Iain Murray) 9 January 08 Introduction MATLAB is a programming language that grew out of the need to process matrices. It is used extensively

More information

Unit 1, Lesson 1: Moving in the Plane

Unit 1, Lesson 1: Moving in the Plane Unit 1, Lesson 1: Moving in the Plane Let s describe ways figures can move in the plane. 1.1: Which One Doesn t Belong: Diagrams Which one doesn t belong? 1.2: Triangle Square Dance m.openup.org/1/8-1-1-2

More information

MATLAB Project: Getting Started with MATLAB

MATLAB Project: Getting Started with MATLAB Name Purpose: To learn to create matrices and use various MATLAB commands for reference later MATLAB built-in functions used: [ ] : ; + - * ^, size, help, format, eye, zeros, ones, diag, rand, round, cos,

More information

Generating Functions

Generating Functions 6.04/8.06J Mathematics for Computer Science Srini Devadas and Eric Lehman April 7, 005 Lecture Notes Generating Functions Generating functions are one of the most surprising, useful, and clever inventions

More information

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors.

Physics 326G Winter Class 2. In this class you will learn how to define and work with arrays or vectors. Physics 326G Winter 2008 Class 2 In this class you will learn how to define and work with arrays or vectors. Matlab is designed to work with arrays. An array is a list of numbers (or other things) arranged

More information

Optimization and least squares. Prof. Noah Snavely CS1114

Optimization and least squares. Prof. Noah Snavely CS1114 Optimization and least squares Prof. Noah Snavely CS1114 http://cs1114.cs.cornell.edu Administrivia A5 Part 1 due tomorrow by 5pm (please sign up for a demo slot) Part 2 will be due in two weeks (4/17)

More information

MAT 343 Laboratory 4 Plotting and computer animation in MATLAB

MAT 343 Laboratory 4 Plotting and computer animation in MATLAB MAT 4 Laboratory 4 Plotting and computer animation in MATLAB In this laboratory session we will learn how to. Plot in MATLAB. The geometric properties of special types of matrices (rotations, dilations,

More information

SIMPLE INPUT and OUTPUT:

SIMPLE INPUT and OUTPUT: SIMPLE INPUT and OUTPUT: (A) Printing to the screen. The disp( ) command. If you want to print out the values of a variable to the screen, you simply can type the variable at the command line. > x = 5

More information

(Refer Slide Time: 00:04:20)

(Refer Slide Time: 00:04:20) Computer Graphics Prof. Sukhendu Das Dept. of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 8 Three Dimensional Graphics Welcome back all of you to the lectures in Computer

More information

Introduction to MATLAB

Introduction to MATLAB Introduction to MATLAB Introduction MATLAB is an interactive package for numerical analysis, matrix computation, control system design, and linear system analysis and design available on most CAEN platforms

More information

Diode Lab vs Lab 0. You looked at the residuals of the fit, and they probably looked like random noise.

Diode Lab vs Lab 0. You looked at the residuals of the fit, and they probably looked like random noise. Diode Lab vs Lab In Lab, the data was from a nearly perfect sine wave of large amplitude from a signal generator. The function you were fitting was a sine wave with an offset, an amplitude, a frequency,

More information

A Mathematica Tutorial

A Mathematica Tutorial A Mathematica Tutorial -3-8 This is a brief introduction to Mathematica, the symbolic mathematics program. This tutorial is generic, in the sense that you can use it no matter what kind of computer you

More information

Precalculus and Calculus

Precalculus and Calculus 4 Precalculus and Calculus You have permission to make copies of this document for your classroom use only. You may not distribute, copy or otherwise reproduce any part of this document or the lessons

More information

A quick Matlab tutorial

A quick Matlab tutorial A quick Matlab tutorial Michael Robinson 1 Introduction In this course, we will be using MATLAB for computer-based matrix computations. MATLAB is a programming language/environment that provides easy access

More information

Therefore, after becoming familiar with the Matrix Method, you will be able to solve a system of two linear equations in four different ways.

Therefore, after becoming familiar with the Matrix Method, you will be able to solve a system of two linear equations in four different ways. Grade 9 IGCSE A1: Chapter 9 Matrices and Transformations Materials Needed: Straightedge, Graph Paper Exercise 1: Matrix Operations Matrices are used in Linear Algebra to solve systems of linear equations.

More information

MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review.

MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review. MATRIX REVIEW PROBLEMS: Our matrix test will be on Friday May 23rd. Here are some problems to help you review. 1. The intersection of two non-parallel planes is a line. Find the equation of the line. Give

More information

Notes on Simulations in SAS Studio

Notes on Simulations in SAS Studio Notes on Simulations in SAS Studio If you are not careful about simulations in SAS Studio, you can run into problems. In particular, SAS Studio has a limited amount of memory that you can use to write

More information

The Singular Value Decomposition: Let A be any m n matrix. orthogonal matrices U, V and a diagonal matrix Σ such that A = UΣV T.

The Singular Value Decomposition: Let A be any m n matrix. orthogonal matrices U, V and a diagonal matrix Σ such that A = UΣV T. Section 7.4 Notes (The SVD) The Singular Value Decomposition: Let A be any m n matrix. orthogonal matrices U, V and a diagonal matrix Σ such that Then there are A = UΣV T Specifically: The ordering of

More information

Polar Coordinates. 2, π and ( )

Polar Coordinates. 2, π and ( ) Polar Coordinates Up to this point we ve dealt exclusively with the Cartesian (or Rectangular, or x-y) coordinate system. However, as we will see, this is not always the easiest coordinate system to work

More information

CITS2401 Computer Analysis & Visualisation

CITS2401 Computer Analysis & Visualisation FACULTY OF ENGINEERING, COMPUTING AND MATHEMATICS CITS2401 Computer Analysis & Visualisation SCHOOL OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING Topic 3 Introduction to Matlab Material from MATLAB for

More information

CALCULUS II. Parametric Equations and Polar Coordinates. Paul Dawkins

CALCULUS II. Parametric Equations and Polar Coordinates. Paul Dawkins CALCULUS II Parametric Equations and Polar Coordinates Paul Dawkins Table of Contents Preface... ii Parametric Equations and Polar Coordinates... 3 Introduction... 3 Parametric Equations and Curves...

More information

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors.

OUTLINES. Variable names in MATLAB. Matrices, Vectors and Scalar. Entering a vector Colon operator ( : ) Mathematical operations on vectors. 1 LECTURE 3 OUTLINES Variable names in MATLAB Examples Matrices, Vectors and Scalar Scalar Vectors Entering a vector Colon operator ( : ) Mathematical operations on vectors examples 2 VARIABLE NAMES IN

More information

Quadratic (and higher order) regression on your calculator (TI-82, 83, or 84) NAME:

Quadratic (and higher order) regression on your calculator (TI-82, 83, or 84) NAME: Quadratic (and higher order) regression on your calculator (TI-82, 83, or 84) NAME: Notice the points on the scatter plot below have a curved pattern. We will find the quadratic, cubic, and quartic functions

More information

Polar Coordinates. OpenStax. 1 Dening Polar Coordinates

Polar Coordinates. OpenStax. 1 Dening Polar Coordinates OpenStax-CNX module: m53852 1 Polar Coordinates OpenStax This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License 4.0 Abstract Locate points

More information

EN 001-4: Introduction to Computational Design. Matrices & vectors. Why do we care about vectors? What is a matrix and a vector?

EN 001-4: Introduction to Computational Design. Matrices & vectors. Why do we care about vectors? What is a matrix and a vector? EN 001-: Introduction to Computational Design Fall 2017 Tufts University Instructor: Soha Hassoun soha@cs.tufts.edu Matrices & vectors Matlab is short for MATrix LABoratory. In Matlab, pretty much everything

More information

Ingredients of Change: Nonlinear Models

Ingredients of Change: Nonlinear Models Chapter 2 Ingredients of Change: Nonlinear Models 2.1 Exponential Functions and Models As we begin to consider functions that are not linear, it is very important that you be able to draw scatter plots,

More information

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3.

Variable Definition and Statement Suppression You can create your own variables, and assign them values using = >> a = a = 3. MATLAB Introduction Accessing Matlab... Matlab Interface... The Basics... 2 Variable Definition and Statement Suppression... 2 Keyboard Shortcuts... More Common Functions... 4 Vectors and Matrices... 4

More information

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens.

PC-MATLAB PRIMER. This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. PC-MATLAB PRIMER This is intended as a guided tour through PCMATLAB. Type as you go and watch what happens. >> 2*3 ans = 6 PCMATLAB uses several lines for the answer, but I ve edited this to save space.

More information

Eigen Tutorial. CS2240 Interactive Computer Graphics

Eigen Tutorial. CS2240 Interactive Computer Graphics CS2240 Interactive Computer Graphics CS2240 Interactive Computer Graphics Introduction Eigen is an open-source linear algebra library implemented in C++. It s fast and well-suited for a wide range of tasks,

More information

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9 Contents 1 Introduction to Using Excel Spreadsheets 2 1.1 A Serious Note About Data Security.................................... 2 1.2

More information

Administrivia. Next Monday is Thanksgiving holiday. Tuesday and Wednesday the lab will be open for make-up labs. Lecture as usual on Thursday.

Administrivia. Next Monday is Thanksgiving holiday. Tuesday and Wednesday the lab will be open for make-up labs. Lecture as usual on Thursday. Administrivia Next Monday is Thanksgiving holiday. Tuesday and Wednesday the lab will be open for make-up labs. Lecture as usual on Thursday. Lab notebooks will be due the week after Thanksgiving, when

More information

Introduction to Matlab

Introduction to Matlab Introduction to Matlab November 22, 2013 Contents 1 Introduction to Matlab 1 1.1 What is Matlab.................................. 1 1.2 Matlab versus Maple............................... 2 1.3 Getting

More information

Pre-Calculus Mr. Davis

Pre-Calculus Mr. Davis Pre-Calculus 2016-2017 Mr. Davis How to use a Graphing Calculator Applications: 1. Graphing functions 2. Analyzing a function 3. Finding zeroes (or roots) 4. Regression analysis programs 5. Storing values

More information

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s.

An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Using Monte Carlo to Estimate π using Buffon s Needle Problem An interesting related problem is Buffon s Needle which was first proposed in the mid-1700 s. Here s the problem (in a simplified form). Suppose

More information

DSP First Lab 02: Introduction to Complex Exponentials

DSP First Lab 02: Introduction to Complex Exponentials DSP First Lab 02: Introduction to Complex Exponentials Lab Report: It is only necessary to turn in a report on Section 5 with graphs and explanations. You are ased to label the axes of your plots and include

More information

CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES

CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES YINGYING REN Abstract. In this paper, the applications of homogeneous coordinates are discussed to obtain an efficient model

More information

Intro. Scheme Basics. scm> 5 5. scm>

Intro. Scheme Basics. scm> 5 5. scm> Intro Let s take some time to talk about LISP. It stands for LISt Processing a way of coding using only lists! It sounds pretty radical, and it is. There are lots of cool things to know about LISP; if

More information

Basic matrix math in R

Basic matrix math in R 1 Basic matrix math in R This chapter reviews the basic matrix math operations that you will need to understand the course material and how to do these operations in R. 1.1 Creating matrices in R Create

More information

Parallel Transport on the Torus

Parallel Transport on the Torus MLI Home Mathematics The Torus Parallel Transport Parallel Transport on the Torus Because it really is all about the torus, baby After reading about the torus s curvature, shape operator, and geodesics,

More information

Divisibility Rules and Their Explanations

Divisibility Rules and Their Explanations Divisibility Rules and Their Explanations Increase Your Number Sense These divisibility rules apply to determining the divisibility of a positive integer (1, 2, 3, ) by another positive integer or 0 (although

More information

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013

Lab of COMP 406. MATLAB: Quick Start. Lab tutor : Gene Yu Zhao Mailbox: or Lab 1: 11th Sep, 2013 Lab of COMP 406 MATLAB: Quick Start Lab tutor : Gene Yu Zhao Mailbox: csyuzhao@comp.polyu.edu.hk or genexinvivian@gmail.com Lab 1: 11th Sep, 2013 1 Where is Matlab? Find the Matlab under the folder 1.

More information

Vector Calculus: Understanding the Cross Product

Vector Calculus: Understanding the Cross Product University of Babylon College of Engineering Mechanical Engineering Dept. Subject : Mathematics III Class : 2 nd year - first semester Date: / 10 / 2016 2016 \ 2017 Vector Calculus: Understanding the Cross

More information

Big Mathematical Ideas and Understandings

Big Mathematical Ideas and Understandings Big Mathematical Ideas and Understandings A Big Idea is a statement of an idea that is central to the learning of mathematics, one that links numerous mathematical understandings into a coherent whole.

More information

Linear Methods for Regression and Shrinkage Methods

Linear Methods for Regression and Shrinkage Methods Linear Methods for Regression and Shrinkage Methods Reference: The Elements of Statistical Learning, by T. Hastie, R. Tibshirani, J. Friedman, Springer 1 Linear Regression Models Least Squares Input vectors

More information

UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING

UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING UNIVERSITY OF CALIFORNIA, SANTA CRUZ BOARD OF STUDIES IN COMPUTER ENGINEERING CMPE13/L: INTRODUCTION TO PROGRAMMING IN C SPRING 2012 Lab 3 Matrix Math Introduction Reading In this lab you will write a

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 3 Creating, Organising & Processing Data Dr Richard Greenaway 3 Creating, Organising & Processing Data In this Workshop the matrix type is introduced

More information

Unit 4: Multiplication

Unit 4: Multiplication Math Fundamentals for Statistics I (Math 52) Unit 4: Multiplication By Scott Fallstrom and Brent Pickett The How and Whys Guys This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike

More information

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx 1 of 9 FreeMat Tutorial FreeMat is a general purpose matrix calculator. It allows you to enter matrices and then perform operations on them in the same way you would write the operations on paper. This

More information

SOME CONCEPTS IN DISCRETE COSINE TRANSFORMS ~ Jennie G. Abraham Fall 2009, EE5355

SOME CONCEPTS IN DISCRETE COSINE TRANSFORMS ~ Jennie G. Abraham Fall 2009, EE5355 SOME CONCEPTS IN DISCRETE COSINE TRANSFORMS ~ Jennie G. Abraham Fall 009, EE5355 Under Digital Image and Video Processing files by Dr. Min Wu Please see lecture10 - Unitary Transform lecture11 - Transform

More information

by Kevin M. Chevalier

by Kevin M. Chevalier Precalculus Review Handout.4 Trigonometric Functions: Identities, Graphs, and Equations, Part I by Kevin M. Chevalier Angles, Degree and Radian Measures An angle is composed of: an initial ray (side) -

More information

Answers. Chapter 2. 1) Give the coordinates of the following points:

Answers. Chapter 2. 1) Give the coordinates of the following points: Answers Chapter 2 1) Give the coordinates of the following points: a (-2.5, 3) b (1, 2) c (2.5, 2) d (-1, 1) e (0, 0) f (2, -0.5) g (-0.5, -1.5) h (0, -2) j (-3, -2) 1 2) List the 48 different possible

More information

Equations and Functions, Variables and Expressions

Equations and Functions, Variables and Expressions Equations and Functions, Variables and Expressions Equations and functions are ubiquitous components of mathematical language. Success in mathematics beyond basic arithmetic depends on having a solid working

More information

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab MATH 495.3 (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab Below is a screen similar to what you should see when you open Matlab. The command window is the large box to the right containing the

More information

Statistics Case Study 2000 M. J. Clancy and M. C. Linn

Statistics Case Study 2000 M. J. Clancy and M. C. Linn Statistics Case Study 2000 M. J. Clancy and M. C. Linn Problem Write and test functions to compute the following statistics for a nonempty list of numeric values: The mean, or average value, is computed

More information

Excel Spreadsheets and Graphs

Excel Spreadsheets and Graphs Excel Spreadsheets and Graphs Spreadsheets are useful for making tables and graphs and for doing repeated calculations on a set of data. A blank spreadsheet consists of a number of cells (just blank spaces

More information

Lecture 7: Arnold s Cat Map

Lecture 7: Arnold s Cat Map Lecture 7: Arnold s Cat Map Reference http://www.chaos.umd.edu/misc/catmap.html https://www.jasondavies.com/catmap/ Chaotic Maps: An Introduction A popular question in mathematics is how to analyze and

More information

Paul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies

Paul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies 1 of 8 5/17/2011 5:58 PM Paul's Online Math Notes Home Class Notes Extras/Reviews Cheat Sheets & Tables Downloads Algebra Home Preliminaries Chapters Solving Equations and Inequalities Graphing and Functions

More information

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, April 5

CS/NEUR125 Brains, Minds, and Machines. Due: Wednesday, April 5 CS/NEUR125 Brains, Minds, and Machines Lab 8: Using fmri to Discover Language Areas in the Brain Due: Wednesday, April 5 In this lab, you will analyze fmri data from an experiment that was designed to

More information

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology Intermediate Algebra Gregg Waterman Oregon Institute of Technology c 2017 Gregg Waterman This work is licensed under the Creative Commons Attribution 4.0 International license. The essence of the license

More information

CPSC 535 Assignment 1: Introduction to Matlab and Octave

CPSC 535 Assignment 1: Introduction to Matlab and Octave CPSC 535 Assignment 1: Introduction to Matlab and Octave The goal of this assignment is to become familiar with Matlab and Octave as tools for scientific investigation. Matlab, a product of Mathworks,

More information

Lecture 3: Linear Classification

Lecture 3: Linear Classification Lecture 3: Linear Classification Roger Grosse 1 Introduction Last week, we saw an example of a learning task called regression. There, the goal was to predict a scalar-valued target from a set of features.

More information

Programming Exercise 1: Linear Regression

Programming Exercise 1: Linear Regression Programming Exercise 1: Linear Regression Machine Learning Introduction In this exercise, you will implement linear regression and get to see it work on data. Before starting on this programming exercise,

More information

1 Introduction to Using Excel Spreadsheets

1 Introduction to Using Excel Spreadsheets Survey of Math: Excel Spreadsheet Guide (for Excel 2007) Page 1 of 6 1 Introduction to Using Excel Spreadsheets This section of the guide is based on the file (a faux grade sheet created for messing with)

More information

Project and Production Management Prof. Arun Kanda Department of Mechanical Engineering Indian Institute of Technology, Delhi

Project and Production Management Prof. Arun Kanda Department of Mechanical Engineering Indian Institute of Technology, Delhi Project and Production Management Prof. Arun Kanda Department of Mechanical Engineering Indian Institute of Technology, Delhi Lecture - 8 Consistency and Redundancy in Project networks In today s lecture

More information

The problem we have now is called variable selection or perhaps model selection. There are several objectives.

The problem we have now is called variable selection or perhaps model selection. There are several objectives. STAT-UB.0103 NOTES for Wednesday 01.APR.04 One of the clues on the library data comes through the VIF values. These VIFs tell you to what extent a predictor is linearly dependent on other predictors. We

More information

Math 182. Assignment #4: Least Squares

Math 182. Assignment #4: Least Squares Introduction Math 182 Assignment #4: Least Squares In any investigation that involves data collection and analysis, it is often the goal to create a mathematical function that fits the data. That is, a

More information

Math Lab 6: Powerful Fun with Power Series Representations of Functions Due noon Thu. Jan. 11 in class *note new due time, location for winter quarter

Math Lab 6: Powerful Fun with Power Series Representations of Functions Due noon Thu. Jan. 11 in class *note new due time, location for winter quarter Matter & Motion Winter 2017 18 Name: Math Lab 6: Powerful Fun with Power Series Representations of Functions Due noon Thu. Jan. 11 in class *note new due time, location for winter quarter Goals: 1. Practice

More information

APPM 2360 Project 2 Due Nov. 3 at 5:00 PM in D2L

APPM 2360 Project 2 Due Nov. 3 at 5:00 PM in D2L APPM 2360 Project 2 Due Nov. 3 at 5:00 PM in D2L 1 Introduction Digital images are stored as matrices of pixels. For color images, the matrix contains an ordered triple giving the RGB color values at each

More information

Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM

Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM Image Manipulation in MATLAB Due Monday, July 17 at 5:00 PM 1 Instructions Labs may be done in groups of 2 or 3 (i.e., not alone). You may use any programming language you wish but MATLAB is highly suggested.

More information

,!7IA3C1-cjfcei!:t;K;k;K;k ISBN Graphing Calculator Reference Card. Addison-Wesley s. Basics. Created in conjuction with

,!7IA3C1-cjfcei!:t;K;k;K;k ISBN Graphing Calculator Reference Card. Addison-Wesley s. Basics. Created in conjuction with Addison-Wesley s Graphing Calculator Reference Card Created in conjuction with Basics Converting Fractions to Decimals The calculator will automatically convert a fraction to a decimal. Type in a fraction,

More information

Interactive Math Glossary Terms and Definitions

Interactive Math Glossary Terms and Definitions Terms and Definitions Absolute Value the magnitude of a number, or the distance from 0 on a real number line Addend any number or quantity being added addend + addend = sum Additive Property of Area the

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #43. Multidimensional Arrays

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #43. Multidimensional Arrays Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #43 Multidimensional Arrays In this video will look at multi-dimensional arrays. (Refer Slide Time: 00:03) In

More information

(Refer Slide Time: 02:59)

(Refer Slide Time: 02:59) Numerical Methods and Programming P. B. Sunil Kumar Department of Physics Indian Institute of Technology, Madras Lecture - 7 Error propagation and stability Last class we discussed about the representation

More information

Math Fundamentals for Statistics (Math 52) Unit 3: Addition and Subtraction. Scott Fallstrom and Brent Pickett The How and Whys Guys.

Math Fundamentals for Statistics (Math 52) Unit 3: Addition and Subtraction. Scott Fallstrom and Brent Pickett The How and Whys Guys. Math Fundamentals for Statistics (Math 52) Unit 3: Addition and Subtraction Scott Fallstrom and Brent Pickett The How and Whys Guys Unit 3 Page 1 3.1: Place Value (Addition Preview) Our system is a base-ten,

More information

Affine Transformations Computer Graphics Scott D. Anderson

Affine Transformations Computer Graphics Scott D. Anderson Affine Transformations Computer Graphics Scott D. Anderson 1 Linear Combinations To understand the poer of an affine transformation, it s helpful to understand the idea of a linear combination. If e have

More information