






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







What do you want to find with a SVM model? - CORRECT ANSWER-Find values of a0, a1,...,up to am that classifies the points correctly and has the maximum gap or margin between the parallel lines. What should the sum of the green points in a SVM model be? - CORRECT ANSWER-The sum of green points should be greater than or equal to 1 What should the sum of the red points in a SVM model be? - CORRECT ANSWER-The sum of red points should be less than or equal to - What should the total sum of green and red points be? - CORRECT ANSWER-The total sum of all green and red points should be equal to or greater than 1 because yj is 1 for green and -1 for red. First principal component - CORRECT ANSWER-PCA -- a linear combination of original predictor variables which captures the maximum variance in the data set. It determines the direction of highest variability in the data. Larger the variability captured in first component, larger the information captured by component. No other component can have variability higher than first principal component. it minimizes the sum of squared distance between a data point and the line. Second principal component - CORRECT ANSWER-PCA -- also a linear combination of original predictors which captures the remaining variance in the data set and is uncorrelated with Z¹. In other words, the correlation between first and second component should is zero. What if it's not possible to separate green and red points in a SVM model? - CORRECT ANSWER- Utilize a soft classifier -- In a soft classification context, we might add an extra multiplier for each type of error with a larger penalty, the less we want to accept mis-classifying that type of point. Soft Classifier - CORRECT ANSWER-Account for errors in SVM classification. Trading off minimizing errors we make and maximizing the margin. To trade off between them, we pick a lambda value and minimize a combination of error and margin. As lambda gets large, this term gets large. The importance of a large margin outweighs avoiding mistakes and classifying known data points. Should you scale your data in a SVM model? - CORRECT ANSWER-Yes, so the orders of magnitude are approximately the same. Data must be in bounded range. Common scaling: data between 0 and 1 a. Scale factor by factor b. Linearly
How should you find which coefficients to hold value in a SVM model? - CORRECT ANSWER-If there is a coefficient who's value is very close to 0, means the corresponding attribute is probably not relevant for classification. Does SVM work the same for multiple dimensions? - CORRECT ANSWER-Yes Does a SVM classifier need to be a straight line? - CORRECT ANSWER-No, SVM can be generalized using kernel methods that allow for nonlinear classifiers. Software has a kernel SVM function that you can use to solve for both linear and nonlinear classifiers. Can classification questions be answered as probabilities in SVM? - CORRECT ANSWER-Yes. K Nearest Neighbor Algorithm - CORRECT ANSWER-Find the class of the new point, Pick the k closest points to the new one, the new points class is the most common amongst the k neighbors. What should you do about varying level of importance across attributes with K Nearest Neighbors? - CORRECT ANSWER-Some attributes might be more important than others to the classification --- can deal with this by weighting each dimension's distance differently. Unimportant attributes may be removed as they are not very important for the classification. What is the difference between real and random effects in validation? - CORRECT ANSWER-Real effects: same in all data sets Random effects: different in all data sets How should one generally split their data set? - CORRECT ANSWER-Training (building models) / Validation (picking model) / Test (estimate performance) Rotating versus randomness when validating data? - CORRECT ANSWER-Rotation: can make sure each part of the data is equally separated Randomness: no chance of bias K-fold Cross-Validation - CORRECT ANSWER-takes number of sections (k) and tests against eachother so you don't have to worry about what is being left out. Gives a better estimate of model quality. Clustering - CORRECT ANSWER-takes a set of data points, dividing them into groups so each group contains points that are close to eachother or similar. Distance Norms - CORRECT ANSWER-Given 2 points x and y with coordinates x1, x2 and y1, y2 -- the distance between them is the square root of x1-y1 squared + x2-y2 squared. rectilinear distance norms - CORRECT ANSWER-Absolute value of distance norms P-norm distance - CORRECT ANSWER-generalized version of both distance equations where p would be 2 for a straight-line distance and P would be 1 for a rectilinear distance 3rd most common value for P is infinity
Unsupervised learning - CORRECT ANSWER-Clustering -- don't know the right grouping of our data points up front. know their attributes but don't know what group to any of these points are in. model must decide how to cluster based only on attributes of the data. Box and Whisker Plots - CORRECT ANSWER-top and bottom of box are 25th and 75th percentile of the values horizontal line through the box is the median vertical lines up and down are whiskers stretching up and down to reasonable range of values (10th and 90th or 5th and 95th percentiles) All points outside b/w plots are outliers. How to find outliers? - CORRECT ANSWER-Box/whisker plots, exponential smoothing model (points with v. large error might be outlier) How to deal with outliers? - CORRECT ANSWER-If bad data: omit, impute Good data: they are expected, don't remove. Instead build two models to handle outliers appropriately. Ex: first model - logistic regression model (est prob of outliers happening under diff conditions). second model: estimate length of delivery under normal conditions / use data without outliers Change detection - CORRECT ANSWER-determining whether something has changed using time series data CUSUM - CORRECT ANSWER-Cumulative Sum -- can detect when a process gets to a higher level than before or to a lower level than before, or both Xt: observed value at time t Mu: mean of x if no change At time t we observe Xt and see how far above/below the expectation it is. then we add that amount to the previous periods metric St - 1 to give a running total St -- if > 0 we keep otherwise running total is 0 What does the C value do in a CUSUM model? - CORRECT ANSWER-It pulls the Xt down a bit as we expect Xt to be higher than expectation at random. The bigger C is, the harder it is for St to get large, and the less sensitive the method will be. The smaller C is the more sensitive the model will be. How to find correct C (pulls Xt down a bit) and T (threshold for change detected) in CUSUM model? - CORRECT ANSWER-how costly it is if the model takes a long time to notice a change and how costly it is if the model thinks its found a change that doesn't exist. Control chart for CUSUM - CORRECT ANSWER-plots St over time and if it ever gets beyond the threshold T line it shows CUSUM has detected a change. Exponential Smoothing - CORRECT ANSWER-used for analyzing time series data where the respons is known for many time periods Notes:
Box Cox Transformation - CORRECT ANSWER-logarithmic transformation that stretches out the smaller range to enlarge its variability and shrinks the larger range to reduce its variability Detrending data - CORRECT ANSWER-detrend factor by factor Principal Component Analysis - CORRECT ANSWER-PCA -- have a lot of factors and you wish to know which subset of them is most important for predicting a response PCA transforms data to (1) remove correlations within data and (2) rank coordinates by importance Concentrates on the first n principal components to reduce effect of randomness and earlier princ comp are likely to have higher signal to noise ratio. PCA dealing with nonlinear functions - CORRECT ANSWER-Use kernels and similar to SVM modeling To perform PCA on a regression line.. - CORRECT ANSWER-Scale matrix X of data Find eigenvectors of matrix X Find principal components by multiplying X by the eigenvectors -- Xv1, Xv2, ..., Xvn are princ. components -- transformed set of orthogonal coordinate directions. CART - CORRECT ANSWER-Classification and Regression Trees leaves in trees - CORRECT ANSWER-different branch endings -- for each of them we run a separate regression to find each leaf's individual set of coefficients When do we branch from a leaf? - CORRECT ANSWER-When the total variance of the two branches compared the the least variance is lower If the decrease in variance is more than some threshold delta, and there would be enough data points in each branch, we make the split Why do you go backwards using the other half the data to prune the tree - CORRECT ANSWER-for every pair of leaves created by the same branch, we use the other half of the data to see whether the estimation error is actually improving by the branching. if branching doesn't improve the error, branch is removed. Random forests - CORRECT ANSWER-takes randomness to generate different trees that might have strengths and weaknesses -- overal the avg of these trees is better than a single tree with a specific strength or weakness Branching -- randomly chose a small number of factors set X and choose best factor within X to branch on Don't need to prune tree Pros/Cons of random forest - CORRECT ANSWER-pro: better estimates and removes overfitting con: harder to explain, can't give specific regression or classification model from data Regression tree - CORRECT ANSWER-Use the average predicted response
different functions to different parts of the data set -- with smooth connections between parts to ensure we don't have drastically diffferent answers for nearby points. MARS -- multiadaptive regression splines Bayesian Regression - CORRECT ANSWER-start with some estimate of how we think the regression coefficients and random error is distributed K-Nearest Neighbor regression - CORRECT ANSWER-Similar to knn method -- no guessing, plot all data and get a new data point we need to predict a response for -- find k closest data points to the new one and that the average of their responses. gives us the predicted response for the new point.