






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!







Overfitting - Number of factors is too close to or larger than number of data points -- fitting to both real effects and random effects. Comes from including too many variables! Ways to avoid overfitting - - Need number of factors to be same order of magnitude as the number of points
backward selection - start with model includes all factors and at each step find worst factor and remove it from the model. continue till there's no factor bad enough to remove and model doesn't have any more factors we want. step-wise regression - combination of forward and backward elimination -- beginning with either all factors or no factors. after adding each new factor (and at end) -- eliminate right away any factors that no longer appear any good. future options are not considered. could use AIC or BIC, or model's R squared to pick factor to add/remove in fwd, bckwd, or stepwise lasso method - adds constraint tau to std reg model. chooses coefficients to min sum of squared errors. right value of tau dependent on 2 things:
what does a factorial design lead to? - typically ANOVA (type of stat. analysis that tests the influence of variables or their interactions) exploration - focusing on getting more info exploitation - focused on getting immediate value multi-armed bandit - k-alternatives want to play the one with highest expected payout, but need to test all to see begin with no info choose alternative to test based on prob of each being best and update prob of each one being best till the best alternative is clear. can take into account expected value of each alternative being best when looking at prob get more value out of process by making it more likely to pick the options with higher est. value works better than running a fixed large number of tests for every alternative. i.i.d. - independent and identically distributed random variables (not comparable) Bernoulli Distibution - flipping a coin where prob p that coin is heads and prob 1-p that coing is tails not memoryless most useful when have many data points together. binomial distribution - prob of getting x yes answers out of n bernoulli trials, each with prob p. with large n, binomial dist converges to a normal dist not memoryless
multiple coinflips geometric dist - tracks number of tries between failures prob mass function: prob of having x Bernoulli (p) failures before first success assumes each bernoulli trial is independent and identically distributed not memoryless airport screening poisson dist - numberof sucesses in a series of independent y/n experimnts with different success probs -- good at modeling random arrivals lambda is avg number of arrivals in time period -- prob that x people do arrive given avg arrival rate lambda this one is memoryless random arrivals of people to queues, call centers, etc. exponential dist - time between events in poisson point process memoryless -- dist of remaining call time = initial dist of call time weibull - tracks howmuch time between failures k< 1 -- weibull good at modeling where failure rate decreases over time (worst fail first)
therefore this simulation is memoryless -- useful for trying to connect smaller amounts of info to larger ones what is pi in a markov chain? - the given probabilities of different outcomes markov chain parameters - pij - transition probability from state i to state j P = {pij} is transition matrix piP = probabilities of tomorrow piP*P = prob of day after tomorrow are simulations heuristic? - they are able to do some heuristic optimization. why don't you want to throw away data? - don't want to lose too many data points -- potential for censored or biased data why don't you want to use the categorical variable approach for missing data? - can lead to issues if some types of data points are more likely to have missing data -- coefficients may be pulled in one direction or another to try and account for missing data. why don't you want to use mean/median imputation for missing data? - bias is more likely pros and cons for regression imputation for missing data - pros: better values cons: overfitting, doesn't capture variability perturbation imputation for missing data - gives better estimate of overall spread -- more accurate variability but values are less accurate on avg what does descriptive analytics assume? - there's a bunch of data and hidden in the data is an understanding of reality we are trying to tease out
what does predictive analytics do? - uses data to find hidden relationships that will help us predict what's going to happen in the future how does prescriptive analytics work? - uses optimization and simulation to advise on possible outcomes and answers what we should do. predicts multiple futures and allows companies to assess a number of possible outcomes based on their actions what are the 3 key elements of optimization? - variables, constraints, and objective function what are the functions of a convex optimization program? - concave (if maximizing) and convex (if minimizing) what are the constraints for an integer program optimization model? - some or all variables are restricted to take only integer values (can be binary) what is the hardest optimization model to solve? - general non-convex program describe dynamic programming - taking a complex probelm and breaking it down into collection of simpler subproblems -- keep storing solns for future times problems need to be solved bellman equation stochastic dynamic programming - modeling opt. probs that involve uncertainty -- takes advantage of probability distributions governing data are known or can be estimated stochastic dynamic programming - dynamic programming but decisions have probabilities of next state -- solving problems of decision making under uncertainty optimization algorithms - follow pattern of finding an improved direction t and a step size theta, make move, repeat.
ksvm function - for svm modeling in R kknn - k-nearest neighbor classification of a test set using a training set grubbs.test - performs grubbs test for one outlier, two outliers on one tail, or two outliers on opposite tails, in small sample HoltWinters - computes holtwinters of a given time series. unknown parameters are determined by minimizing the squared prediction error. lm - used to fit linear models -- can be used to carry out regression, single stratum analysis of variance, and analysis of covariance predict - make a raster object with predictions from a fitted model object -- obtain values to fit the model. prcomp - performs principal components analysis on given data matrix and returns the results as an object of class glm - generalized linear models like gaussian, binomial, poisson, gamma, etc. tree - classification and regression trees glmnet - fit a generalized linear model via penalized maximum likelihood -- computed for the lasso or elasticnet penalty at a grid of values for the regularization parameter lambda. train - function sets up a grid of tuning parameters for a umber of classification and regression routines, fits each model and calculates a resampling based performance measure FrF2 - regular fractional factorial 2 level designs -- obtaining usual minimum aberration designs in a fixed number of runs, possible to request highest number of free 2 factor interactions instead of miminum aberration
kmeans - clustering train.kknn - k fold cross validation rpart - logistic regression prune.tree - determines a nested sequence of subtrees of the supplied tree by recursively 'snipping' off the least important splits randomforest - implements breiman's random forest algorithm for classification and regression CUSUM - performs cusum in R ts - to convert data into time series ARIMA - arima in R GARCH - tests for heteroskedasticity step - stepwise regression