instruction
stringlengths
9
38.7k
I have problem with the diagnostic of the one way analysis of variance model (fitted in R). I've checked all the assumptions of the analysis of variance 1) "For each level of the within-subjects factor, the dependent variable must have a normal distribution." (shapiro-wilk test) http://en.wikipedia.org/wiki/Repeated_me...
Effects package provides a very fast and convenient way for plotting linear mixed effect model results obtained through lme4 package. The effect function calculates confidence intervals (CIs) very quickly, but how trustworthy are these confidence intervals? For example: library(lme4) library(effects) library(ggplot) d...
I've been told that is beneficial to use stratified cross validation especially when response classes are unbalanced. If one purpose of cross-validation is to help account for the randomness of our original training data sample, surely making each fold have the same class distribution would be working against this unle...
Why is it that $\sqrt{n}(X_{n}-\mu)$ converges in distribution to $N(0,\sigma^{2})$ but $\sqrt{n}(X_{n}-\mu)/\sigma$ converges in distribution to $N(0,1)$?
I am trying to select the correct mathematical model for my standard curve. This data was collected from spectrophotometry. I am hoping to get a model to help me detect very small absorbance. conc <- c(40, 20, 10, 5, 2.5, 1.25, .3125, .0391) abs <- c(.3563333, 0.189333333, .104, 0.061666667, 0.039, 0.026666...
I am running a CHAID classification tree on SPSS to classify my data set. I have a couple independent variables including categorical and continuous ones. For continuous variables, I've noticed that SPSS (and other software as well) technically binned the continuous variables into groups having similar observations. My...
I have below an example I pulled from sklearn 's sklearn.metrics.classification_report documentation. What I don't understand is why there are f1-score, precision and recall values for each class where I believe class is the predictor label? I thought the f1 score tells you the overall accuracy of the model. Also, wha...
When I manually calculate just negative binomial probability it matches to the value from Excel, or R. formula : (nCr) * (p^k) * ( q^(x-k) ) x = 1000 ; k = 4 ; p = 0.01 ; [ and n = x-1 ; r = k-1 ] nb_cumul = 0.9899 nb_noncumulative = 0.00007445 If I add non-cumulative negative binomials for k=1, 2, 3, 4 : 0.0...
My question is based on this response which showed which lme4::lmer model corresponds to a two-way repeated measures ANOVA: require(lme4) set.seed(1234) d <- data.frame( y = rnorm(96), subject = factor(rep(1:12, 4)), a = factor(rep(1:2, each=24)), b = factor(rep(rep(1:2, each=12))), c = factor(rep(r...
Software packages seem to prefer to work with the upper triangular part of the Cholesky factorization, see for example cholupdate. Why is this? It seems that it is more natural to represent a covariance matrix by it's lower triangular Cholesky factorization. For example, $L z$, where $L$ is the lower triangular Cholesk...
In order to run Lasso and elastic net multiple regressions on my company's SAS server (which doesn't support R), I've been working on a coordinate descent macro for performing least squares regressions (as described in the 2010 paper "Regularization Paths for Generalized Linear Models via Coordinate Descent" by Jerome ...
I want to evaluate several "classifiers" (machine-learning algorithms) with paired samples. I do not want to compare each algorithms' performance to every other (n x m comparison) but only compare the performance of each algorithm to one baseline (n x 1 comparison). An often quoted paper in the field [1] uses the Fried...
Say I have 1000 potential predictors in a logistic regression. I don't have time to check each predictor manually for linearity. I could wait till after variable selection, but in that case I wonder if some predictors that have strongly non-linear relationship with the mean may not be selected because their non-linea...
I am trying to solve a problem in which I need to figure out what is driving the daily/monthly total expenditure up over time. The data I have is something like this, Item Location Date Type ...Expenditure Item1 NY Jan 1 A 100 Item2 NJ Jan 5 B 200 ... It is a big table with many featur...
I want to perform an ANOVA on data with a single factor with three levels. The difficulty for me is that two of the levels are repeated measures (within subjects) and the third level is independent measurements (between subjects). How can I setup the anova in R? Is there a non-parametric test as well similar to the Fri...
I don't understand which R code I am supposed to be using to figure these problems out. I brief explanation of what the code is doing would be amazing. The problems below are two different applications I'm expected to understand and I don't get either. Thank you! Problem 1. Let Z~N(0,1) For each of the following, find ...
I want to make a regression analysis. A correlation analysis must or should be made before a regression?.
I am trying to conduct a paired t-test to detect if there is a difference between the mean value of a parameter calculated by another person and myself (carbon stocks of forest types) but am unsure of the appropriate sample size. Basically I need to independently verify the exact same samples. One sample was measured...
Apologies if this is a basic question, I am not very familiar with survival analysis ... I have trained a gradient boosted Cox proportional hazards model in R, and have been able to obtain reasonable hazard function estimates from through the gbm package's basehaz.gbm function. My goal though is to obtain expected life...
I recently purchased a data science interview resource in which one of the probability questions was as follows: Given draws from a normal distribution with known parameters, how can you simulate draws from a uniform distribution? My original thought process was that, for a discrete random variable, we could break th...
I am currently working on a project where I need to simulate the prices of a set of $D$ substitutable commodities over time. I was hoping to do this using the following $D$-dimensional lognormal random walk model: $$\ln(p_{t}) = \ln(p_{t-1}) + \varepsilon_t, $$ where $p_{t}$ is a $D\times 1$ vector containing the price...
My question boils down to if I really have to use a multiple comparison adjustment or not, and if so, how I can do this to retain as much power as possible. I have multiple models (say 5) that are scored on how well they match up to data over cross fold validation. Since the score that is used (area under an ROC curve...
In deriving the eigenvectors for PCA, the vector is subject to the condition that it should be of unit length. Why is this so?
I have a set of data where the dependent variable is an ordered response with 7 levels and I've fitted an ordered logit model to the data, and now I want to conduct some robustness checks on the estimates. Is the Linear Probability Model for binary responses generalisable for ordinal data with multiple categories? I.e....
I came across a problem where the marginal distribution of a random variable $Y$, $f(y) = c/y^2$ and $f(x|y) = 1/y$. Can I simply multiply these two to get $f(x,y)$ the joint distribution of $X$ and $Y$, which in this case will be $c/y^3$. And then integrate it over all $Y$ to find the marginal distribution of $X$.
I ask these because I come up with an idea : If I have infinite and universal model set, then there must exist model that totally fits my data and no parameter for the model so the complexity is zero. (e.g. a delta distribution on my data or the training data points itself if supervised learning) After model selec...
In 'Bayesian Data Analysis' (Gelman, Carlin, Stern and Rubin) on page 64 it reads: "If the density of $y$ is such that $p(y-\theta|\theta)$ is a function that is free of $\theta$ and $y$, say $f(u)$ where $u = y - \theta$, then $y - \theta$ is a pivotal quantity, and $\theta$ is called a pure location parameter. In suc...
Consider af complete observation sample path of a Levy process $X_t$ (wtr a poisson randommeasure $\mu$) on [0,t] concentrated on the integers. The parametrization is a family of Levy measures $\nu_{\theta}$, $\theta$ finite-dimensional. I need to show that the log-likelihood is given by: $l(\theta)=\sum_{0<s\leq t, \D...
It is planned to conduct a study on the percentage of homeowners who have at least two TVs. What should be the sample size if we want to ensure that $95\%$ of estimation error is less than $0.01$? The original French text version: We want to calculate $$\operatorname{A confidence interval}=\overline{X}\pm E\quad \t...
I am trying to determine the correlation between two sets of data points which span the same time period (20 minutes) but have different resolutions. The first set was recorded at 1-minute intervals, while the second was recorded at 2-second intervals. Both sets of data contain 10 minutes before an event, and 10 minute...
What does "P=0.45" mean in this case? Complete 1-year follow-up data were obtained for 98.1% of the patients (11 were lost to follow-up in the angiography group and 8 were lost to follow- up in the FFR group [P = 0.45]). (source) It looks like they mean that the p-value is 0.45, but: p=0.45 is very high It is ...
For my current reseach I'm using the Lasso method via the glmnet package in R on a binomial dependent variable. In glmnet the optimal lambda is found via cross-validation and the resulting models can be compared with various measures, e.g. misclassification error or deviance. My question: How exactly is deviance defin...
exchangers! I am struggling with my data analysis for an article I'm writing. I have to following experimental set-up. Instruction (A/B) Group (Alcohol Dependent / healthy Control) - between subjects facotr Medication (C/D) - (between subject Factor) Session (Baseline / Medication) - Within Subject factor All su...
I know that if there is significant difference in means among groups in ANOVA, then one can perfrom post-hoc test ( Tukey HSD or something similiar) to get to know within which groups the difference is significant. Then we have to remember about multiple comparisons procedures and p-value corrections. I wonder, is this...
I have a study where clustering occurs in one condition but not the other. In the treatment group I have repeated measurements on individuals who are nested within families. And in the control condition I only have repeated measurements on individuals, but no clustering due to family. Some dummy data would look like t...
There are a load of discussions online about adding means and recalculating the standard deviation, but on none have I found answer to this question. I have two sub groups with mean $x_1$ and $x_2$, and $s_1$ and $s_2$. I want to add the two means to create $x_1 + x_2 = x_3$. How do I calculate $s_3$. The two sub group...
I'd like to know if it's correct to the CV function in the forecast R package (http://cran.r-project.org/web/packages/forecast/forecast.pdf) to cross-validate a nonlinear model that is linear in the parameters. The description in the documentation says that the CV function "Computes the leave-one-out cross-validation s...
I have seen a tutorial video where a person is advising to check for heteroscedasticity in a regression by plotting the IV against the DV. Is this a problem? Are there any drawbacks with this approach? I know that I was always told to plot the standardised residual against the predicted values.
Suppose we have a simple Bayesian network which has two variables $x$ and $y$, $x$ is the parent of $y$. We sample $M$ $x$s independently based on $P(x)$, named $x_1,\ldots,x_M$, and for every $x_i$, we sample $N$ $y$s independently based on $P(y|x)$, named $y_{i1},\ldots,y_{iN}$. In this way we have $MN$ observations ...
$\DeclareMathOperator*{\plim}{plim}$ I thought I understood the idea of convergence in probability. I know the definition is $$\plim_{n\to\infty} X_n\rightarrow X \;\; \text{if and only if} \;\; \lim_{n\to\infty}\mathrm{Pr}(|X_n-X|\geq\epsilon)=0 \, ,\;\; \text{for every} \;\; \epsilon>0\, .$$ I kind of understand th...
I have a very large set of products (1000+), each one contributing a certain amount to total revenue. Product profit for purposes here can be negative. I decided to use a binary indicator variable to detect whether a certain feature exists in each product or not. That is I have the model: $TotalProductProfit = Inter...
I have a client that wants to test 3 pricing options to visitors of a website. All options are for the same product and service (no difference except pricing). Their current idea is to present all 3 options to visitors and use conversions to determine which is the right pricing model for their business. I'm more famil...
The multivariate linear regression model is given by $\mathbf{y} = \mathbf{X}\boldsymbol{\beta} + \boldsymbol{\epsilon}$, where $\boldsymbol{\epsilon} \sim \mathcal{N}(\mathbf{0, \boldsymbol{\Sigma}})$. $\mathbf{X}$ is $n \times p$. We may want to learn a mean for our data in addition to the effect that each of the cov...
How do Fisher's combined probability test and the Mantel-Haenszel and Breslow-Day approaches compare, when both are feasible? Is one of these approaches preferred when estimating the combined probability under the null hypothesis?
I have a product that I would like to price for the highest income. The income $I$ from this product will depend on the asking price $c$: $$ I(c) = N \cdot E(c)$$ where $E(c)$ is the expected spending on the product from each individual and $N$ is the population size. Now, pricing for the highest income is the same a...
I am new at this and could use some help with a conversion. Survey participants were given the answer choices on a ranking scale of 1-9 for each question. We then averaged the results for each question to understand what the average answer was for each question. For example, for question B, the average answer was 8.1 o...
In my study there were 63 types of stimuli (63 levels of the IV) and all types had 8 different examples (8 trials per level of IV) which were all categorized by each participant. Accuracy of categorization was the dependent variable. I originally arranged my data for R such that all 8 responses for a stimulus type were...
When I enter a nominal categorical variable as independent variable into the Cox regression procedure, SPSS gives cloaked results. It just reports something like the following: P OR Variable 0.000 -- Variable(1) 0.000 21.004 Variable(2) 0.005 5.074 Variable(3) ...
I have a vector, $k$, that determines allocation to five pools. I'd like to set priors on these probabilities, and I can provide informative priors on a few of the ratios, e.g.: $$ \frac{k1}{k2} \sim \text{beta}(6,1)$$ $$ \frac{k1}{k3} \sim \text{beta}(2,12)$$ $$ \frac{k1+k2+k3}{k4+k5} \sim \text{beta}(50,1)$$ $$ \frac...
I have two sets of points and I find with different methods, different correspondence matrices which shows which point in one set correspond to other point in the other set. How could I find the optimal correspondence matrix in order to minimize the distance between two sets of points from having both these matrices in...
I need to estimate the parameter of a Gamma distribution from the data, but I only have samples from 0.05 to 3 (most of the samples are concentrated here). I tried MLE, but due to the truncation it is not quite accurate. I've been doing some research but I haven't found anything that really works well.
Despite having only a single binary outcome for each ID, there are multiple correlated measurements for the same test for each ID at different timepoints. The individual ID´s are obviously independent, but the measurements of the same test at different time-points are not independent. The aim is to see whether the test...
Let $S$ be the covariance matrix of some data set. $S^{-1}$ is the inverse covariance matrix, also called the precision matrix. Question: In practice, then, what does $S^{-1}x$ mean for a data point $x$? Question 2: What does $x^TS^{-1}x$ mean, then? Do these have attractive interpretations?
I'm using McNemar's test for compare two designed models in a binary classification problem. As you know we have two kinds of this test. One tail and two tails. What is difference of these kinds and which one should i choose for calculating my p-value? I'm using Yates's correction for continuity for this test.
I've read two interpretations of Akaike's Information Criterion (AIC) that seem to be in conflict, and I was hoping that someone could help me understand how to reconcile them. Interpretation 1: AIC's approximation to the model's KL divergence is only accurate up to an unknown constant, so AIC is useless for estimating...
I have a data set measuring rock detection depths $Y$ based on the distance from some point of interests $X$, which are classified based on geophysical criteria. Each observation $Y$ is set after plowing the ground to determine if A) there is any chance of rock formation at all and B) what is the distance of the rock f...
Let $ X_i$ be i.i.d $Exp(\theta)$ for i=1,...,4.We want to test $H_0: \theta =6$ versus $ H_1: \theta = 2$. Consider the following test: $$\text{Test: Rejects H_o} \iff \frac{X_1 + X_2}{2}>4.5$$ Evaluate the probability of error type I My attempt: For the iid exponential we have that $$Y=X_1+X_2 \sim Gamma(2,\theta)$$ ...
I have observed that I am generally in a better mood after exercising. If I record data on how much I exercise and my mood, how can I correlate these? Input: discrete events recorded at irregular, unpredictable intervals. Example input data: Monday 2pm - Exercise (Moderate, 4/10, or 0.4) Monday 5pm - Mood (0.5) Monday...
I am trying to classify data into four different labels. The training data looks something like: [ [[0.1 , 0.6, 0.0, 0.3], 1, 10, 0, 0, 0], [[0.7 , 0.3, 0.0, 0.0], 0, 7, 22, 0, 0], [[0.0 , 0.0, 0.6, 0.4], 0, 0, 6, 0, 20], ... ] Each row is an instance. First column contains the labels. Columns 2..n contain the...
Can someone please explain this (with further statistical assumptions). In the standard regression model where $$Y = X\beta+u,$$ we want to show that $$ E(uu′) = \sigma^2 \cdot I \\ E(u'u)=T \cdot \sigma^2.$$ Above, I is an $n \times n$ identity matrix and $T$ is the number of observations.
My name is Abhi and I am trying to teach myself data science by solving problems on the internet. In my current model I am using a random forest & the rfcv function to test the performance of the model. My current understanding of this function is that this provides the cv error as we gradually reduce the number of fea...
I'm taking a Data Analysis class on Coursera, and we are learning about bootstrapping when you have a small sample size (>30). What I don't understand, is when do you bootstrap and then use the t-distribution, and when do you just use the t-distribution? For example, we looked at 21 apartments for rent, and bootstrappe...
I tried gradient boosting models using both gbm in R and sklearn in Python. However, neither of them can provide the coefficients of the model. For gbm in R, it seems one can get the tree structure, but I can't find a way to get the coefficients. For sklearn in Python, I can't even see the tree structure, not to mentio...
Let the three independent events $ A, B,$ and $ C$ be such that $P(A)=P(B)=P(C)= \frac14.$ find $P[(A^*\cap B^*) \cup C].$ My solution starts from using the probability of their complements which is $\frac34$, I do not know how to answer this question. Please help.
I have a problem that involves the term $I(X_i < \overline{X})$. The only reference to this in the question is "trimmed means", but I believe it references the entire function $\frac{\sum X_i I(X_i < \overline{X})}{\sum I(X_i < \overline{X})}$.
I have 3 data sets. one is the water level of a lake at 15min intervals, one is the water level of a pond next to the lake (also at 15min intervals) and one is the wind speed over both the lake and the pond. I want to try and determine if there is a relationship between 1) the changing lake level and the level of th...
Consider the following random variables in $(\Omega, \mathfrak{F}, P)$. $X_1,X_2, X_3,...$ where $\forall n \in \mathbb{N}, \mu_n = E(X_n), \sigma_n^2 = Var(X_n) < \infty$. $N$, a discrete RV whose range is $\mathbb{N}$. Let $A_n = ({\omega: N(\omega) = n})$ and $p_n = P (N = n) = P(A_n)$. Also, $N$ is independent of ...
My understanding of the mixed logit is that it is designed to deal with situations where the population examined has heterogeneous preferences after taking into account all observed variables. The standard logit model on the other hand assumes homogeneous preferences given the observed information. Standard logit $ u_{...
I am currently trying to build an algorithm to predict a continuous output (Y) from a list of predictors (X). My first idea was to use a simple linear regression to see how it performs. Distribution of residual errors is not normal. I have a lot of data and I was wondering if I can take advantage to this to split my tr...
I have been hearing about this term "regress out the variable" all the time and understand that it roughly means that you exclude the effects by that variable. But how does one mathematically do this? I wish to learn how to do it in this example: The data set includes the variables brain volume, cortex thickness, age, ...
Let $X_1,...,X_n $ be iid $U(0,\theta)$. Find the UMP to test $H_0: \theta = \theta_0$ versus $H_1: \theta=\theta_1$, for $\theta_1 < \theta_0.$ Obtain the power of the test. My attempt: We know that $X_{(n)}$ is sufficient for $\theta$ and its distribution is $$f(x;\theta)=\frac{nx^{n-1}}{\theta^n}I_{(0, \theta)}(x)$...
My 1-way ANOVA test is not significant. Is it possible that a Scheffé test as a post hoc test be significant? If not, please say why not.
I want to fit a structural equation model (SEM) on using the lavaan package in R. Some of the most important variables in my model are count data, e.g. abundance of different species, and thus do not follow a normal distribution. I tried to transform some of my variables to obtain normal distributed data but this resul...
I've just gotten stuck in interpreting the output for a linear mixed effects model. My model includes Week as a time predictor, and scores on a depression scale as outcome. I have not worked with R before, and while the output is mostly clear to me, there's one part I don't understand. What does my correlation of -0.18...
What work has been done for supervised classification using tree methods that utilize linear combinations of variables instead of single variables?
I'm testing several model that predict a binary variable. I've applied the logarithmic, Brier, and spherical scoring rules. Now, how do I determine what is a meaningful difference between the scores for two models? Does the low probability of a success ( <4% ) play a factor?
So I have a hypothesis that goes as follows: the relationship between gender of the leader and perceived effectiveness is moderated by company performance. I did some analyses on this and this moderation is significant. The point is, however, I need to figure out whether female leaders in high company performance are p...
I am investigating staff inequality between genders and ethnicities in an institution. I have data on contract types (permanent or fixed term) and pay grades for almost all employees. I want to test the hypothesis that there is no inequality across genders and ethnicities in contract types or pay grades. For example, I...
A friend had an incident near where he lives recently that is similar to my line of work (currently) that made me think what constitutes a significant drop in speed as a result of a change in road dimensions? In short, the friend lives in a small village and there had been problems of people speeding through it (predom...
I have a basic linear regression model I fitted to a time series. Unfortunately I have to account for autocorrelation and heteroskedasicity in the model and I have done so with the NeweyWest function from the sandwich package in R while analyzing the coefficients. Now I would like to create prediction intervals using ...
I have one single set of observational data. Assuming I know the right answer for one property of this data set and then I use one tool to measure this quantity. To get an estimate of the amount of the error in the measurement, I evaluate the bias, scatter and number of outliers using this tool to measure this specific...
I have the following residual plot. Can I detect outliers from residual plot? I want to remove 200 outliers in my data set, but I do not know how should I do that in R ? residual plots: scatter plots:
My goal is to see that K-means algorithm is in fact Expectation-Maximization algorithm for Gaussian mixtures in which all components have covariance $\sigma^2 I$ in the limit as $\lim_{\sigma \to 0}$. Suppose we have a data set $\{x_1, \dots ,x_N\}$ of observations of random variable $X$. The objective function for M-m...
How would you evaluate this if X1, X2 are independent exponentials? I know what $min(X1,X2)$ is and what $max(X1,X2)$ is. However, while $min(X1,X2)$ is exponential with parameter (lambda1 + lambda2) -- the max is not. Is the only way to proceed is to say: 1) Suppose $X_1 > X_2$. Then I find $Pr(R <= r) = Pr(X_1 - X_2 ...
I ask, because it is very hard to find information regarding the beta distribution and the bayesian inference, where the beta distri is NOT the prior. My goal is to identify or to improve the two parameters $\alpha$ and $\beta$ of a fitted beta distribution from binned data with the pdf $ f(x|\alpha,\beta)=\frac{1}{\te...
Suppose that a two-dimensional random variable $X$ has a covariance matrix given by $$ \Sigma = \pmatrix {1 & -2\\ -2 & 4}$$ One of the three linear combinations below corresponds to the first principal component. Without performing an eigen-decomposition of the covariance matrix, identify which linear combination cor...
Suppose men's heights follow a normal distribution $X \sim \mathcal{N}(\mu_1,\sigma_1^2)$ and women's heights follow a normal distribution $Y \sim \mathcal{N}(\mu_2,\sigma_2^2)$. How can I find the median height of the entire population of adults, supposing an equal number of men and women? I think the solution is a he...
I found on the book Casella & Berger: "Statistical Inference" the following theorem (2.3.4): If $X$ is a random variable with finite variance, then for any constants $a$ and $b$ $$\operatorname{Var}(aX+b)=a^2\operatorname{Var}X$$ This makes me wonder the following problem: Give an example of a random variable $X$ (with...
An average ball player scores 20% of his penalties. How many penalty results would I need to receive before I can say that a player scores at a rate of 15% requires coaching on his penalty shots? How do I calculate this based on different population averages, statistical certainty etc.
I have implemented a classifier and I can calculate the precision and recall when testing the classifier (two classes) in the test set(>100). Is it meaningful to talk about the confidence interval for the precision(recall)? The precision(recall) can be defined as a random variable. I assume that my sample is the test s...
I have a set of percent data on histological abnormalities in fish gills and I need to compare the results between two sites A and B. We analyzed abnormalities in lamellae of a particular gill arch. For example for fish 1 we counted 500 lamellae and noted the number that had abnormality Y. The majority of the data is 0...
My objective is to classify sentences into useful (denote in boolean as 1) and not useful (denote in boolean as 0) categories. I have about 525 features where 300 features are the most frequent and important keywords after removing stopwords and the rest are domain names. The total number of documents I have is 793. ...
I fitted four mixed linear models for 4 DVs, and 5 IVs in each of these models as fixed effects (there is a random effect as well). These 5 IVs are "time" (weeks from 1-12, 12 levels), and 4 measures of linguistic characteristics (LCs) (continuous variables). What I was trying to do is to introduce an interaction effec...
I'm a little bit confused on the calculation for CP in the summary of an rpart object. Take this example df <- data.frame(x=c(1, 2, 3, 3, 3), y=factor(c("a", "a", "b", "a", "b")), method="class") mytree<-rpart(y ~ x, data = df, minbucket = 1, minsplit=1) summary(mytree) Call: rpart(f...
According to Wikipedia (source of all truth and knowledge...), http://en.wikipedia.org/wiki/Generalized_least_squares#Properties a weighted least square regression is equivalent to a standard least square regression, if the variables have been previously "decorrelated" using a Cholesky decomposition. I made up then a v...
The summary command of a plm regression with the (effect="twoways") argument reports the same coefficients as a plm regression with manual time dummies (and the default effect="individual") but a much lower total sum of squares (and therefore a much lower R2). Why is this the case? Example: library(plm) individual <- ...
As far as I know, when adopting Stochastic Gradient Descent as learning algorithm, someone use 'epoch' for full dataset, and 'batch' for data used in a single update step, while another use 'batch' and 'minibatch' respectively, and the others use 'epoch' and 'minibatch'. This brings much confusion while discussing. So ...
I am trying to understand what the residuals from a regression convey about the model's adequacy/ability to explain the variance in the data. I read that if we are able to take the residuals from a regression model (say Model 1) and build another model (Model 2), by regressing a new set of predictors on it , then unles...
I have a data set where the response variable Y is a rate between 0 and 1, where the histogram of Y is bimodal. So I feel the linear regression is not suitable.s I have been reading papers about inflated beta regression. My question is, just as in OLS, we check the plot of Y at a given level of X to se if it is normal,...
I want to build a predictive model of a value which changes over time from features which can be partitioned into 2 types - 9 features which describe the history of the value (And could be used to build some sort of predictive function of the future value), and one feature which describes a semantic feature of the curr...