instruction
stringlengths
9
38.7k
I'm a new R user, and also new to Random Forest modeling. I cannot seem to figure out how to obtain the out-of-bag (OOB) error estimates for cforest models built with the Party Package in R. In the randomForest package, the OOB error estimates are displayed if you simply "print" the model object, but the party package ...
In terms of classification task using decision trees, the formula for these looks almost the same. So, how are they different/same? what is the purpose of each in terms of impurity measure? $\text{Entropy}~(p_1,p_2) = -\sum p_i \log (p_i); i= 1,2;$ $p_i $ are fractions. Say, if I have 2 Yes and 3 No in a node, $p_1=2/...
I have exponentially distributed probability of event $E$ $$P(E|a) = a \exp(-aE),$$ where $a$ is the rate parameter of the exponential distribution. Now the probability distribution for $a$ is a Gamma distribution with parameters $d$ and $b$ $$P(a|d,b) = b^d a^{d-1} \exp(-ba) / \Gamma(d)$$ Knowing the prior distri...
I have some data on serving sizes of a particular food (raw oysters), and I am trying to determine what probability distribution I should select to model these data for a risk assessment (RA). The R package I am planning to use for the RA (mc2d) uses a gamma distribution for serving size in its example, although the pa...
I have trouble finding the following sufficient statistics. How do you do this? $$X\sim \Gamma(\alpha, \beta)$$ $$f(x;\alpha, \beta)=\frac{e^{-x/\beta}x^{\alpha-1}}{\Gamma(\alpha)\beta^\alpha}$$ Question: Is $\log(X_1+X_2)$ a sufficient statistic for beta? I am using the first way, conditional probability, but how to y...
I'm trying to train a classifier on 10 classes, using 249 samples and a (currently) 16-dimensional feature vector. I'm using an SVM with RBF kernel, through Python's scikit-learn module. The distribution of classes in those 249 samples is as follows: [6, 45, 51, 38, 34, 23, 12, 15, 19, 6] When building my 200-sample tr...
I'd like to match the outputs of lmer (really glmer) with a toy binomial example. I've read the vignettes and believe I understand what's going on. But apparently I do not. After getting stuck, I fixed the "truth" in terms of the random effects and went after estimation of the fixed effects alone. I'm including this co...
I have a population of interest ($N = 5000$) for which I know some demographic information. I have a sample 1500 members of that population. So I have a good sized sample, and I know exactly how it is biased (at least based on the demographic information I have). Is it possible for me to make generalizations about th...
Does anybody have an idea about why conditional correlation between 2 variables is called "partial" correlation and the simple correlation between them (so, when not conditioned on any other variable) is called "marginal" correlation? What is the intuition behind words "partial" and "marginal"? What do they do with "pa...
Dataset of frequent 3-itemsets before running the algorithm: {1, 2, 3}, {1, 2, 4}, {1, 2, 5}, {1, 2, 6}, {1, 3, 4}, {1, 3, 5}, {1, 3, 6}, {2, 3, 4}, {2, 3, 6}, {2, 3, 5}, {3, 4, 5}, {3, 4,6}, {4, 5, 6}. Assuming there are only six items in the data set. What is the list of all candidate 4-itemsets obtained by the ca...
There are functions in R (e.g., PP.test and adf.test) which have null hypothesis of unit-root in the process ($H_0$: there is a unit root). Does this null hypothesis mean "the process is difference stationary"? If yes, what is the order of difference required to make it stationary? Well, for an $AR(1)$ process, yes, a...
I have some data which I wish to estimate the marginal distribution of. I have no real idea what parametric distribution would be suitable, so was planning on fitting a non-parametric (probably kernel) density estimate to the data. However, there are two complications 1) The data has a hard threshold at $0$ 2) The data...
To reduce the load on the machine I want to take the benefit of the undersampling approach. Here are a few facts about my data: My data is of the order of 20 millions or even more. The event rate is around 0.8%. Using the undersampling approach, I want to reduce the non-event rate and make it either 70:30 or 50:50. ...
Assume I observe a poisson-process with a rate $\boldsymbol{\lambda}$. I would like to model $\boldsymbol{\lambda}$ as: $\boldsymbol{\lambda} = \boldsymbol{\pi}_1\boldsymbol{\lambda}_1 + \boldsymbol{\pi}_2\boldsymbol{\lambda}_2$ where $\boldsymbol{\pi}_k = \text{exp}(\boldsymbol{1}\beta_{1k} + \boldsymbol{a}_1\beta_{2k...
Is it possible to have a model that aims to classify and regress at the same time? For example if I have five independent variables and I want to use these 5 variables to predict the gender of the observation. Subsequently I let the predicted gender be the 6th independent variable and predict for income of the individu...
I am trying to run an econometric panel data (fixed effects) model with about 4000 observations (so not a small dataset). My data consists of transactions (buy and sell). The transactions are linked to a rank (1 to 5) based on the B/M ratio for the company related to the transaction. However, I am having enormous amoun...
I am conducting a mixed model, but do not well understand how df is calculated, can someone help me to clarify it? I have been searching very hard on the internet but could not find the right answer. The data in fact contains Animal as random effect, Breed and DFC (day from calving) and squared_DFC as fixed effect, and...
I have got some small data sets (about 8 to 11 data points for each set), following Normal distribution. I would like to find out the 95% confidence interval of the 0.005 and 0.995 percentile of each set. Firstly, moment estimation method is employed to estimate the Normal distribution parameters, and their confidence ...
We have a variable "pos" in the regression which has three values : guard, forward, and center. My regression looks like y~a+factor(pos) But one of the factor's value is insignificant (i.e. forward). How can we remove it from the regression without eliminating others in R?
We have $$ I_i (x) = \begin{cases} 1 \quad x-h<X_i<x+h \\ 0 \quad \text{otherwise} \end{cases} $$ Does that indicator function follow the Bernoulli distribution? If so, the expected value can be computed easily.
I've a survival analysis study going on and I'm having trouble with dealing with time-dependent variables. To deal with time-dependent variables I have to create intervals when the variable changes. One of the variables is "season" wich has values of breeding, post-breeding or winter. Since all the observations start ...
How to programmatically check if two classes are linear separable? (only yes/no answer) Maybe I can train linear SVM on data(use parameters to overfit) and then run test on same data and if accuracy will be 100% dataset is linear separable.
Let $X_1, X_2, \cdots, X_n$ be an identical and independently distributed sample from $N(\mu, \sigma^2)$, define: $$D = \frac{1}{t}\left[\overline{X} + \frac{1-\rho}{2} S^2\right]$$ where: $t$ and $p$ are fixed constants $\overline{X} = \frac{1}{n}\sum_{i=1}^n X_i$, i.e, the sample mean $S^2 = \frac{1}{n} \sum_{i=1}^n ...
Firstly, the regression of Y on $$X_1, X_2, X_3, X_4$$ yields: $$Y=\beta_0+\beta_1X_1+\beta_2X_2+\beta_3X_3+\beta_4X_4+e (1)$$ Then, regress Y on $$X_2, X_3, X_4$$ $$Y=\beta'_0+\beta'_2X_2+\beta'_3X_3+\beta'_4X_4+e'(2) $$ Lastly, regress $$X_1$$ on $$X_2, X_3, X_4$$ $$X_1=\beta''_0+\beta''_2X_2+\beta''_3X_3+\beta''_4...
What are some good books for learning/mastering duration analysis at an intermediate/advanced level? Would be interested in both modern suggestions as well as classics.
A common good practice in Machine Learning is to do feature normalization or data standardization of the predictor variables, that's it, center the data substracting the mean and normalize it dividing by the variance (or standard deviation too). For self containment and to my understanding we do this to achieve two mai...
a <- c(10,11) b <- c(2,3) The covariance (C) betweena and b = sum ( (a-mean(a)) * (b-mean(b)) ) # equal to cov(a,b) in this case as n=2 The sample covariance (Csamp) betweena and b = sum ( (a-mean(a)) * (b-mean(b)) ) / n-1 # equal to cov(a,b) Now lets say the sum of square differences for a = SSa. This means the...
I'm doing a Mann-Whitney U test to compare two very large samples (sample size 1 = 13250; samlple size 2 = 38871) originating from a raster image. I know t-tests are not recommended to compare rasters, because since rasters have so many values, they will almost surely detect a significant difference, no matter how smal...
If I have some share of a product in some sector as: 2012 2013 50% 60% and I find share change for 2012-13 then should it be 10% or 0.1?
I found this question and since I'm learning probability I'm not sure how to go about it: Of a company’s employees, 30% are women and 6% are married women. Suppose an employee is selected at random. If the employee selected is a woman, what is the probability that she is married? I have done it like this: W ...
I have to make sure that a dependent variable I explain using linear regression ranges between a minimum of 0% and a maximum of 30% (it is an investment weight in a portfolio). How should I proceed ?
I have performed a factor analysis of 14 binary items (Satisfactory vs Not Satisfactory) which yielded 2 factors with 7 items each. I am interested in creating simple factor scores by summing individual responses on the 7 items for each factors. Factor scores would then range from 0 to 7. I am then interested in correl...
What are the assumptions of ARIMA/Box-Jenkins modeling for forecasting time series?
I have read (e.g. here) that a (multinomial) logistic regressor corresponds to a maximum entropy classifier. My question is, how does one end up with the formula for logistic regression starting with the maximum entropy principle?
We are having problems running generalized linear models with proportional data. For example, we have data like this: Species Trait(Diet) IndividualsinForest TotalIndividuals ProportionForest X Insectivore 300.5 500.7 0.60 Y Frugivore 32.3 ...
Are there any good statistical non-parametric forecasting methods besides machine learning methods like neural networks/decision trees etc. for time series analysis ? If so, are there any R packages that implement them ?
I have this problem: A Ph.D. graduate has applied for a job with two universities: A and B. The graduate feels that she has a 60% chance of receiving an offer from university A and a 50% chance of receiving an offer from university B. If she receives an offer from university B, she believes that she has an 80% cha...
I know that I can perform a stepwise selection on ordinary linear regression model based on the t-value. but what about Negative Binomial regression model - or GLM in general? Does it theoretically make sense to perform a stepwise selection on variables bases on P-value resulting from "z-scores" when I am trying to imp...
I have done a multiple linear regression with R. When I plot the diagnostics graphs, I would like to draw a confidence band along with the loess curve in the residual vs. fitted values plot. How can I do that with R?
We are a financial institution which falls under this ‘Big Bank’ category. As a part of our routine analysis on input variables that feed several of our risk models, we would like to setup an input monitoring system that can trigger any drastic changes in the trend/pattern in our input variables over different period o...
Hopefully somebody will be able to shed some light on my SPSS problems! I have been given 65 values. 57 of these data values are quarterly results and 8 are the holdback data to be used. I have to do: - Regression with Dummy variables with a linear trend cycle component Does anyone know what to do as my results are...
So, far I have read following regarding boosting: Boosting is an ensemble technique. Train learner sequentially, where early learners fit simple models to the data. Analyze data for errors, that is, focus on records that have high errors and try to get them right. In the end, all the classifiers are given weights an...
I am trying to perform a Pearson's chi-square goodness of fit test on my Generalized Linear Model to measure how well the model fits my data. Below is my code: m1.pearson <- residuals(m1, type = "pearson") pchisq(sum(m1.pearson^2), m1$df.residual) My question is: if the value given by the command pchisq(sum(m1.pea...
I'm using the Poisson distribution to predict the number of concurrent users accessing a website. The method is described in a paper by Eric Man Wong. This paper provides a formula for calculating the average number of concurrent users as the number of users multiplied by their time on the website divided by length of ...
I am having some difficultires, figuering out what (and why) the ARCH term in the following output is: Please note that above's output is from Introductory Econometrics for Finance from p. 407 I figuered C(5) out to be the GARCH term, but I am uncertain about the ARCH term. Do you know what it is? And if so: How did y...
can anyone direct me to a package/commands in R for performing step-wise feature selection, preferably using the caret package. I have already used linear discriminant analysis (LDA), Random forest, PCA and a wrapper using a support vector machine. I was thinking of including a partial least sqaures or a gradient boos...
This is in the context of marking an undergraduate sociology essay in which the student has not found the predicted significant interaction effect in a Two-Way ANOVA. The diagram below is schematic and doesn't depict the actual data. Imagine that the interaction effect is non-significant. The student has said that beca...
Using Association. I want to prove the confidence of the rule $B'->(A\B')$ can't be more than the confidence of $B->(A\B)$ Given: frequent itemset $A$ and subsets $B$ of $A$. $B'$ is a subset of $B$. "\" is the Set Difference Operator Sometimes written like this: $(X-Y)$ I found the exact question on this book: Da...
Let's say I want to investigate if there is any correlation between the response (continuous) variable individual_fish_size and the three explanatory (continuous) variables Depth, substrate and Temperature. But as my fishes come from several different species and the distribution of these species along the three variab...
I would like to help me with this. I don't understand why do we examine the rate of convergence. Also what do we mean by saying "the error is usually dominated by the variance, not the bias" Thank you very much.
It has been explained here why sampling from n-sphere is not achievable with naive parametrization. And it explains how to correct it for 3 dimensions. Can somebody please guide me what is the correct method for uniformly sampling in n dimensions using the spherical coordinates? i.e. \begin{align} &x_1 = r \cos(\phi_1)...
10) Which of the following distributions will have the smallest standard deviation, assuming that none contain outliers? a) A uniform distribution of integers with a mean of 5 and a range of 10. b) A bell-shaped distribution of integers with a mean of 5 and a range of 10. c) A right-skewed distribution of inte...
I am using a simple $\chi^2$ test to see if there is any impact of an independent variable (two charts) on the resulting choices (two choices). I found that as the number of sample increase, the $p$-value is decreasing (type I error is decreasing). What about type II error? Is this decreasing as well because we collect...
I am predicting the daily change of the dax future. Input data I am using: Dax, vdax, euro bund spy500 close prices as returns 8 series from investor series having values between 5 and -5 This is trained using Matlab time series Neural Network with: Feed recurrent forwards=10 Delays=10 Hiddenlayer(neurons?)=10 Ques...
How do I go about doing a multinomial logistic regression when I have 70 million observations? Is it feasible? It seems that R is out of the question due to memory constraints?
$$My \ \ dataset:$$ $$1: A,B,C,E$$ $$2:A,C,D,E$$ $$3:\ \ \ \ \ B,C,E$$ $$4:A,C,D,E$$ $$5:\ \ \ \ C, D, E$$ $$6: \ \ \ \ A, D,E$$ I want to find out the maximal frequent item sets and the closed frequent item sets. Frequent item set $X ∈ F$ is maximal if it does not have any frequent supersets. Frequent item set X ∈...
I have lots of football result data, and I want to test the dependency of the number of goals per game on the weather (e.g. sun, rain, snow). I'm struggling to decide if the data is dependent or independent (and hence which ANOVA test to use). I can't be sure that every team will have played every other team more than ...
I've got a problem with CV on feature selection. I've used a method, but I don't know it's correct... I split my data into 70% training set and 30% test set I work now with my training set. I do on my training set a 10-fold CV On each fold, I use the training part to search for the minimal subset of features that ma...
I am trying to krige monthly snowfall totals using data from weather stations and elevation. When I use a linear variogram model (set using a GUI and appears to be a good fit), the resulting layer seems overly smoothed to me. The variance layer for this result has a mean of about 13 cm. When I set my nugget and sill to...
I have some timecourse data which plotted looks like the figure below. I want to better describe the difference between the two conditions. My adviser advised :D me to use a linear model and observe a time effect (interesting!) a main condition effect (probably none) and a condition*time effect (most interesting). Now,...
I have the following question which seems extremely easy, but the way the data are set up is causing me some uncertainty: I plan to solve this problem through finding the maximum likelihood estimate for θ=P(a sentence contains at least one Class 1 word), and then performing a Chi-Squared test. This, however, requires ...
Why is it customary to use mean square error rather than mean absolute error (absolute value of target - output)? Specifically in neural networks - does it have anything to do with its convenient derivative?
Info: Blue line is the official inflation statistics by US Bureau of Labour Stats Red line is by independent researchers who claim to have created better way to measure inflation Blue line has been sampled once every month Red line has been sampled daily It can be seen that the red line is tracking inflation ahead of ...
I have a set of 1000 datapoints of measured concentrations that may include up to 300 values which are censored (below the detection limit that the lab could reliably measure). The range of detection limit values vary, such as <2, <3, <7 etc. My data is neither normal or log-normal, and I've used non-parametric tests...
I'm trying to figure out the practical meaning of less degrees of freedom regarding the results of t-test results. For example: If I have two dependent samples and would like to compare their means using a t-test. If I use both tests for dependent and independent samples I will have more degrees of freedom in the depen...
I am new to R and would like your help with lme formula for partially crossed random effect in a random-intercept, random-slope model. In the longitudinal data I have, each subject (barring some dropouts) was tested at 5 different occasions. The standardized tests were administered by 3 different examiners, with 2 of t...
I have a general, presumably simple, question, but I couldn't find a conclusive answer so far. Assume I have a simple case of a General Linear Model with one categorical predictor variable, that has 3 levels. This corresponds to a one-way ANOVA with 3 groups. The Linear Model would then be: $Y_i = \beta_0 + \beta_1X_...
The question emerged while reading Ch. 3 of Rasmussen & Williams . In the end of this chapter, the authors gave results for the problem of handwritten digits classification (16x16 greyscale pictures); features are 256 pixel intensities + bias. I was surprised that in such a high-dimensional problem, 'metric' methods, l...
I am studying Machine Learning (SVMs), and I found this $||w||$ in front of me. I have not seen it again, and Google does not allow me to search for it. Does anyone knows what is $w$, what is $||w||$, how it is called, and why we need that? Many thanks
I need to create a sample of a given size from a population. However, the population is dynamic, that is, comes as a stream of items, and every item has a "time stamp" based on its location in this stream. I don't know beforehand how long is this stream, but I need that in the chosen sample, the time stamps will look a...
This is mostly for fun and because I haven't found it on here. Hopefully nobody looks up the answer online for it ruins the challenge. Best answer will be chosen on who can solve this in their own way. If you look up the answer at least give it your own flavor. Gambler's Ruin A gambler has a certain amount of money $M...
In standarizing the data for supervised classification, one can do the following: 1) Extract mean and variance for each feature from training, use it to standarize both training and testing data. 2) Compute the mean and variance for entire data, training and testing, and standarizing both with the same statistics. 3) S...
I ran a comparison where I estimated the parameters of a model using $S$ different methods several times. More specifically I simulated $M$ datasets $\boldsymbol{y}_1, \dots, \boldsymbol{y}_m$ from a model parametrized by $\boldsymbol{\theta}$, where $\boldsymbol{\theta}$ is $p$-dimensional. Then I have estimated the m...
I am trying to come up with a model by using negative binomial regression (negative binomial GLM). I have a relatively small sample size (greater than 300), and the data are not scaled. I noticed that there are two ways to measure goodness of fit - one is deviance and the other is the Pearson statistic. How can I deter...
I recently studied these topics and I was wondering what their power is. My opinion is that since we are relying on an approximate chi-square distribution it cannot be much and so we have to be extra cautious. Is that right? Thanks.
We have an experiment where we observe a random number of objects (samples) and we measure how many of those are defective. Imagine that this is done in different factories that they produce these objects in different speeds, so 1 factory might produce 1 object a day, and others 1000 or more. Is there any formal way (o...
I have found possibly conflicting definitions for the cross validation (CV) statistic and for the generalized cross validation (GCV) statistic associated with a linear model $Y = X\boldsymbol\beta + \boldsymbol\varepsilon$ (with a normal, homoscedastic error vector $\boldsymbol\varepsilon$). On the one hand, Golub, Hea...
To make this chart I generated random samples of different size from a normal distribution with mean=0 and sd=1. Confidence intervals were then calculated using alpha cutoffs ranging from .001 to .999 (red line) with the t.test() function, the profile likelihood was calculated using the code below which I found in lect...
I have obtained the following estimations and forecasts in R for a seasonal ARIMA(1, 0, 1)(1, 0, 1)[7] model1 Series: PO ARIMA(1,0,1)(1,0,1)[7] with zero mean Coefficients: ar1 ma1 sar1 sma1 0.9895 -0.8241 0.9974 -0.9551 s.e. 0.0053 0.0223 0.0018 0.0136 sigma^2 estimated as 0....
I found this: http://www2.cs.uregina.ca/~dbd/cs831/notes/confusion_matrix/confusion_matrix.html defining TP,FP,TN, FN as: while on the other hand I often find it in such form: http://www.cs.cornell.edu/courses/cs578/2003fa/performance_measures.pdf Which notation for confusion matrix is more accurate?
I am doing some research comparing low frequency oscillations in heart rate with palpated/observed phenomena. I am using a heart rate monitor to collect data and simultaneously asking an observer/palpator to note the occurrence of (possibly related?) phenomena and recording the timings of these events. The following gr...
The following question might have relations to this question: Given $\mu$ and $\sigma$ (mean and standard deviation) of normal distribution, find the set of all distributions with their $\mu_1$ and $\sigma_1$ and $Mo_1$ (mode) that $\mu-Mo_1$ is any increasing function of $\sigma_1$. If not a general result, at least p...
Are there examples of learning algorithms(other than k-means clustering) which fit the paradigm of Hard-EM? By hard EM, I mean the variant described in here.
I am try to evaluate a logistic regression with new data using R. I have created the logistic regression using the old data and evaluated that using chi^2 etc. i.e. model <- glm(outcome ~ input + 0, data = training.data, family = binomial()) (note I do need the intercept = 0). And then the predicted probabilities: pre...
I'm an amateur statistician. I do it mostly for fun. I'm finishing up on my first semester stats class that covers up to hypothesis testing. I'm planning on beginning learning simple regression testing by myself so I can be prepared for the next level class when I have a free slot in my schedule again. Anyway, I have s...
I am performing deviance goodness-of-fit test on my model (used negative binomial regression), and the R summary() table of my model gives the following: Call: glm.nb(formula = topPagesCount ~ DB_LEGAL_STATUS_CODE_V2 + BCORP_INDUSTRY_DENSITY + DENSE_MSA + DENSE_MSA * BCORP_INDUSTRY_DENSITY, data = greatDF, control = ...
A simple sine curve could be written as $\text{amplitude}\cdot\sin(x+\text{phase})$. It can be also written in linear form as $a \cdot \sin(x) + b \cdot \cos(x)$. I run my analysis with R as: fit.lm2 <- lm(temperature~sin(2*pi*Time/366) + cos(2*pi*Time/366)) summary(fit.lm2) Coefficients: Esti...
My book outlines a procedure but a preliminary part of it is unclear to me. Let X be the number of occurences of an event over a unit of time and assume that it has a Poisson distribution with mean $m=\lambda $. Let $T_1, T_2 , T_3, \ldots $ be the interarrival times of the occurences and they are iid with an exponent...
I am trying to fit a multivariate linear regression model with approximately 60 predictor variables and 30 observations, so I am using the glmnet package for regularized regression because p>n. I have been going through documentation and other questions but I still can't interpret the results, here's a sample code (wit...
I would just like to know what are the differences between kernel classifier and linear classifier? In what kind of problems the first is used and in what kind the second? What could be the advantages of the one over the other?
Suppose you know $Y \sim N(\mu_1, \sigma_1^2)$ or $Y \sim N(\mu_2, \sigma_2^2)$. You observe $Y=y$, some realization of the random variable $Y$. What is the probability that $Y \sim N(\mu_1, \sigma_1^2)$? My intuition is to compare $p$-values from each distribution. Let $p_i$ be the $p$-value for $y$ under $N(\mu_i, \s...
I'm trying to understand how multiple regression statistically controls for the effects of other predictor variables when calculating partial regression slopes. In a multiple regression of Y~X1+X2, would the partial regression slope of X1 be given by [Y]~[residuals of X1~X2], or by [residuals of Y~X2] ~ [residuals of X...
I knew about "Coordinate descent" and "Gradient descent" algorithms before; they are well-known and Wikipedia has articles for those. However I recently came across an algorithm called "Coordinate gradient descent". How does this algorithm exactly work, and how does it relate to "Coordinate descent" and "Gradient desc...
I just discovered by mistake that raw data and the same z scored data produces the same correlation. Why is this? Can someone walk me through the logic? > x = c(2,4,6,7,8,3,6,8,9) > y = c(3,3,5,7,6,8,9,10,5) > cor(x,y) [1] 0.3780247 > zx = (x-mean(x))/sd(x) > zy = (y-mean(y))/sd(y) > cor(zx,zy) [1] 0.3780247
I'm posting this in this forum because I think the question is related to stats. If it's not, I'm fine with it being moved over to Stackoverflow. I have data in R and am trying to fit a linear model to it. Here's what the data looks like (sorry that it's not reproducible, it's just too much data to type out). The color...
This is a portion of a tutorial from the Centre for Multi-Level Modeling regarding random intercept models. Can anyone explain why this scenario is so? It seems like by the logic given and that the u_j (group effects) are moved toward zero by adding the new predictor, the variance of the u_j would DECREASE not increas...
I am trying to perform one-class SVM for novelty detection, so I use cross-validation to find the best $\nu$ parameter, but I found that usually I got a big parameter $\nu$, resulting in a big false positive rate. How to set and find the $\nu$ parameter for a one-class SVM?
Invariance property of MLE: if $\hat{\theta}$ is the MLE of $\theta$, then for any function $f(\theta)$, the MLE of $f(\theta)$ is $f(\hat{\theta})$. Also, $f$ must be a one-to-one function. The book says, "For example, to estimate ${\theta}^2$, the square of a normal mean, the mapping is not one-to-one." So, we ca...
I am doing a homework about infering the N value of a binomial distribution for my Bayesian Statistics Course and I have seen a paper in Biometrika magazine published in 1988 for doing so. The question is how to simulate the N and $\theta$ values based on their respective marginal posteriors. The properties about the ...
From my results, it appears that GLM Gamma meets most assumptions, but is it a worthwhile improvement over the log-transformed LM? Most literature I've found deals with Poisson or Binomial GLMs. I found the article EVALUATION OF GENERALIZED LINEAR MODEL ASSUMPTIONS USING RANDOMIZATION very useful, but it lacks the actu...