instruction
stringlengths
9
38.7k
Is Shapiro Wilk test insensitive on the tails of sample distribution? I've read such statement on a paper but I cannot figure out why from its test statistic W. Could someone help me understand this?
I've have a variable that has a regression coefficient of 5 using OLS, but when I use quantile regression (examining every 5th percentile, 5, 10, 15, etc.), I find a coefficient that is anywhere from 1/100th to 1/5th of the size of the OLS coefficient. It never really approaches the OLS coefficient. What is causing tha...
Given the joint density $f_{12}(x_1,x_2)$ of two (dependent) random variables $X_1$ and $X_2$, each defined on $\mathbb{R}$. Suppose that $f_{12}$ is differentiable everywhere on $\mathbb{R}^2$. Now define the event $Y=\{(x_1,x_2) : x_2 - x_1 \leq d\}$ for some real $d$. What is the conditional density $f_{12}(x_...
I have used scaling on features of a model which contains 40 features (all columns are numbers) and a binary output variable. This is the Kaggle contest here I've scaled the features assuming it would deliver better performance, but with a rbf kernel SVM, the accuracy with 10 fold CV fell from 0.92 to 0.87 Here is a b...
I am having a little trouble understanding the concept and derivation of the likelihood of truncated data. For example, if I want to find the likelihood function based on a sample from a distribution, but when taking a sample from the distribution, I observe the truncated values (where there is a cut-off of $M$, i.e. a...
I would like to implement (in R) an instrumental variable (IV) estimator, that takes the most general form (here not 2SLS or GMM!): $$ \beta_{IV} = (Z'X)^{-1}Z'Y $$ I could code this in the naive way, inverting $Z'X$, and computing the rest, but I remember that this is very inefficient in term of computing, and that in...
Suppose we estimate $x$ from $y_1=ax+z_1$ and get $x_1$. Then suppose we receive $y_2=bx+z_2$ and reestimate $x$ using both $y_1$ and $y_2$ and get $x_2$. Is the means squared error (MSE) of $x_2$ always lower than MSE of $x_1$. In other words is $$E(x-x_1)^2\geq E(x-x_2)^2?$$ Here $a,b$ are know constants and $z_1$ a...
I have selected a number of words and asked people to rate them on a Likert scale. Words were selected according to two categories; syllable length (mono-, di- and trisyllable and final phoneme (vowel or consonant). These variables interact and are three words for each cross-category (eg. 3 monosyllabic vowel-final wor...
I have two sets of random floats between [0,1], each one with a different number of elements: $$A = \{0.3637852, 0.2330702, 0.1683102, 0.2127219, 0.0152532, ..., N_A\}$$ $$B = \{0.4541056, 0.7521812, 0.0266602, 0.5099002, 0.3468181, ..., N_B\}$$ where $N_B > N_A$. I need to asses the similarity between these two sets d...
Is there a general rule of thumb about when robust regression or quantile regression is preferred in the presence of outliers? For example, I have a dataset where the DV exhibits extreme positive skewness. However, the large cases are actually some of the most interesting observations. When I run OLS, I find a positive...
I ran a repeated design whereby I tested 30 males and 30 females across three different tasks. I want to understand how the behaviour of males and females is different and how that depends on the task. I used both the lmer and lme4 package to investigate this, however, I am stuck with trying to check assumptions for ei...
Can somebody tell me what are and how to do pooled time series? and in what way it can help me to build forecast models from clusters of time series? Maharaj and Brett do this in their article http://ideas.repec.org/p/msh/ebswps/1999-9.html Thanks.
I am wondering how to estimate the uncertainty of the fit if the coefficients in the model have uncertainties as well. for example: I try to use model y=exp(-(a+b)*x)+c to fit a data set x and y to find out the value of b and sigma_b, where a and c are predetermined coefficients and have uncertainty sigma_a and sigma_c...
I processed rpart( ) on the same dataset. One did not use the control parameter "minsplit", but the other one did. I do not understand why I got the different first node in two processes. My understanding is that the "minsplit" will only extend the branches of the tree, but it should not change the structure of the ...
I am working on some medical research. Given 3 values (BMI, age, gender) I have a list of baseline risks for the probability of an adverse event occurring in the next 10 years for an individual with a given BMI, age, gender. I also have a list of additional risk factors, given as Hazard Ratios. How can I properly compu...
Suppose I have positive and negative samples, and I care a lot more about precision than recall. Furthermore, I assume that there are some cases among the positive samples which are "easier" to separate than others, but I have no direct way of identifying these. By easier, I mean it is easy to pick for a given classifi...
I'm coming from this question Similarity between two sets of random values (which still stands BTW) where @whuber suggested in the comments that I use a Q-Q plot to assess the similarity of two discrete distributions. To recapitulate, I have two sets of random floats between [0,1] of different sizes: $$A = \{0.3637852,...
I have a list of say 50,000 e-values (multiple testing corrected P values) for a statistical test I am doing that essentially matches patterns together. Essentially the e-value is the expectation that these two patterns would match purely by chance. Most people who do this will do another round of multiple testing cor...
The description sounds to me as if it makes a MostPopular recommendation. But the MostPopular recommendation I did myself got much better results. So what does this recommender really return? It is a Boolean data set. And I just count the occurrences of an item and sort them with the counts.
I have a time series $X_t$, which is shown in the first plot. In the second plot, I am doing a linear regression on $X_t\sim X_{t-1}$. The regression line is very close to $y=x$. But this is tricky since if if we look at the bottom left or the top right part of the data, they are almost random. From the diagnosis of re...
I'm pretty new to self organising maps (SOMs). From reading around a bit, it seems like most implemetations use a 2D grid for the SOM network structure (or less often a 1D grid). This is nice, cause it's easy to visualise, but is there any particular reason why barely anyone uses 3D grids, etc? In particular, how does ...
I am currently analysing multivariate time series and have worked on VAR models in R. I need to know if there is any way to analyse it using neural networks in R. PS: I am aware of the nnet package and tsDyn package, but I guess they are applicable for univariate time series only.
Let $Z = X + Y$ where $X \sim N\left(\mu, \sigma^2 \right)$ and $Y \sim \Gamma\left(k, \theta \right)$ using this parametrization of the Gamma distribution. Also assume $X$ and $Y$ are independent. Then what is the distribution (pdf) of $Z$? I thought this question looked straightforward, but it doesn't seem so. For e...
If $X$ is a random variable and also let $X\ge 0$. I want to show $E(X)\le \sum_{n=0}^{\infty}P(X>n)$.
I want to try fitting an ARMA/GARCH model but want a methodological approach rather than fitting different models and picking the best one. However, I'm not sure how to choose my AR and MA terms for my mean equation, same thing for my variance equation. Hence I have the following queries: Are there any conventions/gui...
I am trying to implement the ARIMA model using statsmodels. I get really unusual results for my predictions, and was hoping for advice on fixing this. arima = tsa.ARIMA(train[endogenous], exog=train.drop(endogenous,axis=1), order=(2,2,0),freq='B') results = arima.fit() prediction = results.predict(start=1,end=len(x)-1,...
I am familiar with the chi-squared goodness of fit test and also the chi-squared test of independence. An example of the chi-squared goodness of fit is where we have frequencies for three different groups and want to know if the observed proportions differ from the expected proportions. An example of the chi-squared te...
Do you know a reference (freely available on the web) where the likelihood ratio test is applied in order to test for the Markov property? The setting is a directly observable discrete Markov-chain with given transition matrices. The concrete application is a model for credit rating transitions. Some statistical tests...
I want to estimate a simple Regression. I have 20 observations and 10 regression parameters. The degrees of freedom are too small to get reliable point estimates and p-values. I found the following statement: Another advantage of MCMC estimation is the problem of degree of freedom. In the maximum likelihood estimat...
I am working on a project where the training labels are given to me as a probability value in the range [0,1]. My first approach was to fit a simple linear ridge regression to predict the probability. This isn't ideal as: 1) Predictions from this model end up with values outside the range of 0 and 1 2) I don't think ...
I'm reading about expectation maximization from Dempster, Laird and Rubin's original paper which can be found from the following link: http://web.mit.edu/6.435/www/Dempster77.pdf My questions are from pages 1 and 2. I have added those particular parts into the image below and tried to be as clear as possible with my qu...
I have a regression with my dependent variable being the number of visitors and my independent variable being the presence or absence of a certain kind of ad. Now, when I run the regression my independent variable is significant. When instead, I add another independent variable (the presence of a big exhibition at the ...
I have reduced the estimation problem of a real event (a technical failure happening, the fact of which is checked in regular time intervals) to the following problem: we have a non-fair coin, which gives a head for almost every throw. It gives a tail extremely rarely. Let's say we throw the coin every second. After an...
I tested the moderating effect of the variable X' on the relation between X and Y. The results were positive and significant. However, when I plotted the results, I found out the two lines become very, very close at the higher levels, but do not "cut each other". I wonder if these results make sense... I'm trying to ...
I am trying to fit a regression model where the dependent variable is number of messages received (MsgReceived in sample data below) by an individual/user, and the independent variables are a mix of count and binary variables like "TimeActive", "BioAvailable" etc. Here, TimeActive is a count of weeks the user was acti...
I have a question on comparing means and I would be really thankful if you could help... I have a data set that contains responses from a questionnaire (so one group only, N=216). The questionnaire forms 3 scales (A,B,C). My means for these scales are: A:mean=14.92, with SD=6.96 B:mean=10.51, with SD=7.32 C:mean=14....
I have a general question about regression in Stata. What is the main difference between commands: rreg (Huber regression) and reg, robust? What is the explanation for one and the other?
imagine you have the following data structure data | | env1 env2 env3 env4 env5 | | | | | replicates 1,2,3 4,5,6 ...
How do I calculate sample size for estimating difference in proportions between 3 groups? Most of the free sample size calculators have options for only 2 groups.
Suppose we have $X,Y$ i.i.d. Is there a simplified form of $E[\max\{X,Y\}]$? Is it just $\max\{E[X],E[Y]\}$? That doesn't seem right, because the latter would just be $E[X]$, and it seems like taking a max should increase the expectation. Here's what I have so far: $$\begin{align} E[\max\{X,Y\}] &= \int\int \max\{x,y\}...
If I apply ARMA on a stationary differentiated time series and want to make forecasts with this model, the forecast will be on the differentiated values. I need the values to be non-differentiated, is it possible?
I have seen that a number of Statistics texts state that in order to get the $1-a$ confidence interval, we have to arrange our $B$ bootstap sample estimators in order statistics: $$ \theta_{(1)} \leq \theta_{(2)} \leq \ldots \leq \theta_{(B)} $$ Then choose $m= \left[ \left( a/2 \right) B \right]$ where $[.]$ denotes t...
Let a multivariate distribution be given by $P(Y,S_1,S_2)$, where all three variables are discrete, $Y$ is multivalued, $S_1=(0,1)$ and $S_2=(0,1)$, respectively, and all may be dependent. Define the quantity $X$ for difference in means on categry $j$ of $Y$ as $$X=E(Y=j|S_1=1)-E(Y=j|S_2=1).$$ To give some background t...
I have some results from a genome wide association study, which basically fits $n$ linear models for one trait $y$ and $n$ genotypes $x_1, x_2, \cdots, x_n$: \begin{align*} y &\sim b_{10} + b_{11} x_1 \\ y &\sim b_{20} + b_{21} x_2 \\ &\vdots \\ y &\sim b_{n0} + b_{n1} x_n \\ \end{align*} after which ...
A friend's assignment question is "Does class attendance affect GPA?" She has 3 survey questions: How many courses do you have a week? How many classes did you miss a week? What is your GPA? She is now told to analyse her data: her assignment question told her to analyse by combining two of the questions, but in her ...
Potentially simple question here but I can't work out the answer, so... I have created a single question questionnaire with five possible yes/no answers and then calculated the percentages for each answer (N=34) with the distribution being normal as per a Kolmogorov-Smirnov test. I then split this sample into two subs...
I have two sets, $A$ and $B$, containing string values. I am trying to model the relationship between sets $A$ and $B$ by computing the following distance: $d = \frac{ \mid A \mid + \mid B \mid- \mid A \cap B \mid}{ \mid A \mid + \mid B \mid}$ $ d = \ [0,...,1 \ ] $ The more $A$ and $B$ are similar the closer $d$ is to...
I tried fitting an ARMA(1,1)/GARCH(1,1) model to my data consisting of around 5000 data points but I got significant results in Ljung Box test on standardized residuals and squared residuals. However when I used only the last 3000 data points the model showed much better results with non-significant standardized residu...
The "classical" MAP estimation: $$\hat\theta = \arg\max_{\theta}P(\theta|\mathbf{x})$$ where $\mathbf{x}$ are the observations and $\theta$ are the parameters. In this book chapter (page 6, second item), MAP estimation for a MRF is to maximize $P(\mathbf{x}|\mathbf{z},\theta)$ w.r.t $\mathbf{x}$, where $\mathbf{x}$ i...
I would like to perform something like a linear regression on my distribution of data, but I'm interested in a trendline that estimates the minimum, not mean, value for each time bin. I'd like to do this in R. The image below shows a scatterplot of the minimum value for each time bin. The black line is a typical linear...
I'm having trouble understanding what a correct model for my data should be, and also if it would even be a good idea to make it a single model. At the basis it is a rather simple regression model with two predictors. The predictors are 'perceived ease of use' (ease) and 'Perceived Usefulness' (useful), and the depend...
For robust m-estimation, all the convergence results I'm aware of assume symmetric weights (eg: Huber function) in their formulation of the iterative reweighted least squares algorithm. Does the method apply to asymmetric weights, and does the corresponding convergence results hold?
Is it possible to get a larger coefficient (either a larger negative or a larger positive) when moving from OLS to a fixed effects regression? Furthermore, is it possible/likely for a coefficient sign to flip when moving from OLS to fixed effect regression? Could this be completely 'normal' or is it a sign of problems ...
I am currently working on a random intercept multilevel model using the European Social Survey round 6 dataset. It is a 2-level model with individuals (level 1) nested within countries (level 2). To simplify things, imagine the following regression: $Y_{ij}=\beta_{0j}+\beta_{1j}X_{ij}+e_{ij}$ where the dependent variab...
Say I have two factor variables, X and Y, each with 3 levels. However, X==3 if and only if Y==3, while such a connection doesn't hold for X,Y==1,2. In this case, while X and Y are not redundant, my design matrix, when expanded, will contain the same column twice (0's everywhere, except 1's where X==Y==3). This is not g...
I want to use HMM for filtering, i.e. to find $p(x_t|y_{1:t})$. I see that the forward algorithm calculates the forward variable as a joint probability; $\alpha_t(i) = p(y_{1:t},x_t=S_i|\lambda)$, meaning joint of observations so far and the current state is $S_i$, given HMM parameters $\lambda$. To find $p(x_t|y_{1:t...
I am fitting a linear model in R with many variables: lm(Y~X1+X2+...+X100) I want to check also for all pairwise interactions. Writing X1*X2*...*X100 is not good since it checks the full model (more than pairwise). Writing all pairs explicitly is annoying (100 over 2). Is there a way to do this in R?
I am performing quantile regressions in R using the package quantreg. My dataset includes 12,328 observations ranging from 0.12 to 330. The timepoints for my data are not exactly continuous; all data fall into one of a few dozen bins ranging from 73 to 397. When I performed a linear regression on this data using the lm...
Setting: Large N, short T panel dataset. Very few 1's (probably 1 percent), most zeroes. I estimate a logistic regression and find a negative significant coefficient on the IV of interest. Reassuringly, it's negatively correlated with the indicator variable. But when I run this in a LPM (with OLS), I find a positive si...
This might be a trivial problem but wondering if there's a known model formulation for this problem: Ordered Categorical observed variable with k levels Trying to estimate the parameter (theta) of a latent Bernoulli/Binomial variable The latent and observed related by a k-length vector of probabilities e.g. if obse...
Let $B(t)$ be Brownian motion. I want to calculate $\int B(t)^2 dB(t)$. definition.A process $\{X(t),0\le t \le T \}$ is called a simple adapted process if there exist times $0=t_{0}<t_{1}<t_{2}<\cdots<t_{n}=T $ and random variables $\eta_{0},\eta_{1},\cdots,\eta_{n}$ such that $\eta_{0}$ is a constant,$\eta_{i}$ is $\...
I am learning about the ARIMA model and trying to implement it and had some questions. From my understanding, ARIMA forecasts better for short-term projections rather than long-term projections (is this true or false)? I am implementing the ARIMA to make a 6 month projection on a daily basis. Would I get better results...
Suppose you have some measurement series with quite different variances, see e.g., figure below. The problem is that the differences between a, b, and d are barely recognizable, because the y-scale is rather large, because of the first measurement (these are no measurement errors, they are quite essential and can not ...
I am analyzing a timing circuit I designed, and I need to calculate the probability of a certain event (bit error). For example, I have derived this equation: $(1 + x) / d < 1 / M$, where x is a random variable with a normal distribution, d is a random variable with uniform distribution, and M is a constant. I would li...
The decision function for C-support vector classification is $sign(wT\phi(x)+b)=sgn(\sum_{i=1}^{l}y_i\alpha_iK(x_i,x)+b)$ How can I modify it to $sgn(wT\phi(x)+b)=sgn(\sum_{i=1}^{l}y_i\alpha_iK(x_i,x)+b+aconstant)$ that aconstant is a ARBITRARY number
I have searched about chi-square test and what I read is only about its application to genetics like Mendel's law. My data is about internet marketing where my variable is about user sessions. What I got from chi-square test I tried to apply to user sessions. I made data for observed user sessions and then for expected...
If I had a glm using on count data I may do the following: glm(response ~ exp1 * exp2, family = poisson, data =data) The first thing I would do here is check for overdispersion with the residual deviance/df. If there was overdispersion I may choose to use family = quasipossion glm(response ~ exp1 * exp2, family = qua...
I'm dealing with linear regression with a continuous outcome. Due to suspected non-linearity in one of the covariates (via scatterplot) I tried some possible transformations of the independent variable. Using the AIC as criterion, I have two models that seem suitable: Model 1: $$ Y =\beta_0 + \beta_1 X + \beta_2 X^2 $$...
I would like to aestimate the cost function of a random forest model fed by several subsets of my training/test data. The subsets are increasing in size. Comparing the cost against the training and then test sample size I would like to explore the possibility of having an underfit in my data (which I suspect). The ques...
I have a Gaussian distributed random variable $X$ with known variance $\sigma^2$. Given that I know $P(X\geq t)=m$, how can I find the mean of the random variable?
I am interested in estimating an endogenous treatment effects model of the following form: \begin{eqnarray} Y_i = \alpha + \beta_x X_i + \beta_{z1} Z_{1i} + e_i \\ X_i = a + \beta_{z2} Z_{2i} + v_i \end{eqnarray} where $Y$ is a continuous variable, $X$ is a binary variable that is endogenous in the first equation and ...
I am computing the MLE values of some parameters of a likelihood function, subject to non-negativity constraints. Given these constraints, some of the MLE values for my parameters are exactly in the boundary (i.e. they are equal to zero). Is it still valid to estimate the variance of the MLEs using the Hessian of the l...
This question was asked by my friend who is not internet savvy. I've no statistics background and I've been searching around internet for this question. The question is : is it possible to replace outliers with mean value? if it's possible, is there any book reference/journals to backup this statement?
Let $x_1,x_2, \ldots, x_n $ be the values of a random sample. A bootstrap sample $x_1 ^* ,x_2^*, \ldots, x_n^* $ is a random sample of $x_1, x_2, \ldots, x_n$ drawn with replacement. My question is how can I show that the bootstrap sample values are iid with common cdf $\hat{F_n}$, the empirical cdf of $x_1,x_2, \ldots...
I am seeking to characterize time-series data (specifically parameters derived from sensor data) for 18 patients collected over 20 days using autocorrelation (see plot below of autocorrelation functions for 18 patients for a given sensor parameter). I want to see if I can use the autocorrelation function values at dif...
I want to test the following hypothesis: $$ H_0: \mu \geq \mu_0 \\ H_a: \mu < \mu_0.$$ I use one sample t-test: $$t_0 = \frac{\bar{X} - \mu_0}{S/\sqrt{n}}.$$ Since under the alternative we expect that $\bar{X}$ is small, we should reject for small values of $t_0$. Thus, given that the size of the test is equal to $\alp...
This data is for a company who wants to minimize their expenses. The expenses is described out of the production costs . (Production, salary, capital and material prices). I need to create a regression model, which explains the expenses as good as possible by using R. Expenses Production Salary Capital Ma...
Techniques like Adaboost use a ensemble of weak classifiers to obtain a "better" classifier. Does(Can) the final classifier have a greater VC-dimension than the weak classifier? An intuitive explanation would suffice.
I have taken a sample of $n$ data points from a population. Each of these points has a true value (known from ground truth) and an estimated value. I then calculate the error for each sampled point and then calculate the RMSE of the sample. How can I then infer some sort of confidence interval around this RMSE, based u...
Been working on this problem - any suggestions would be greatly appreciated! Let $e \in\varepsilon$ be a simple function over $(\Omega,A,P)$. Show that there is a disjoint partition $A_i, i = 1,\ldots,m,$ of $\Omega$ such that $e = \sum\limits_{i=1}\alpha_i1_{A_i}$.
I'm pretty much stuck on part (ii). Any guidance would be appreciated! The Dirac measure $\delta_{x_0}$ for $x_0$∈$\mathbf{R}$ is defined over the measurable space $\left(\mathbf{R}, \mathbf{B}\right)$ by: $\begin{equation} \delta_{x_0}(B)=\begin{cases} 1, & \text{if $x\in B$}.\\ 0, & \text{if $x\in B^C$}. ...
I understand that lift is a the ratio of the observed support to the expected one if X and Y were independent. Looking at independence it would make sense to define it as follows: $$\frac{\mathrm{P}(X \cap Y)}{ \mathrm{P}(X)\mathrm{P}(Y)}$$ Exactly this is done in the Wikipedia article on lift: Here Yet in another Wiki...
Consider the stationary VAR process $${\bf X}_t = \sum_{\tau = 1}^{L} A_\tau {\bf X}_{t-\tau} +{\bf \epsilon}_t$$ If the innovations $\epsilon_t \sim MVN({\bf 0},\Sigma)$ then is ${\bf X}_t$ a Gaussian stationary process? Is it correct that due to the invertibility of the VAR into an MA and observing that ${\bf X}_t$ ...
Let $B(t)$ be Brownian motion. Show that $e^{-\alpha t}B(e^{2\alpha t})$ is a Gaussian process. Find its mean and covariance functions. thanks .
I am trying to implement the ARIMAX model. I have a lot of exogenous features and I have no clue which ones are important in predicting my endogenous variable. Does ARIMAX have some sort of native feature selection in that it just places less weight to the variables that aren't that important and more weight to the one...
I am applying a logistic regression on the effect of dose, age, PS, menopausal and pairID on the response variable. The data come from a case-control study where controls were matched/paired based on age, PS and menopausal. The pair ID is then recorded as PairID and is also a covariate in the model. The model is: m...
I have some data that varies over time, and cannot be described by a simple model. In fact we don't care what the model is at all, we just want to know whether it is significantly non-zero at any point in time. Ideally, the result would also tell us at which time points the data is significantly different from 0. It is...
My contingency table: heterozygous homozygous.minor homozygous.major observed 2 0 3 expected 0 0 5 The expected population is composed of only AA genotype, but in the observed population we observe 2 AB genotypes. To calculate the Chi-sq for th...
Note: This question is a follow-up of Estimating population size of a subgroup based on independent samples without replacement Let a bag have 1000 balls of arbitrary colors and unknowns sizes ($r$). Suppose we also known the total volume occupied by the balls ($t_v$). We want to estimate the total volume occupied by r...
I have been trying to look for a reference on the theory behind using the F-test to test for the equality of regression coefficients. The closest I could find is this, which is for general linear restrictions: http://www.mattblackwell.org/files/teaching/ftests.pdf. Google seems to have failed me. Could you point me in ...
I want to find the maximum likelihood estimator of the "rate parameter theta of the Exponential Distribution". So i followed the following commands in R: x=rexp(500,rate=2) f <- function(x,theta){ sum(-dexp(x,rate=theta,log=T)) } optimize(f=f,x=x,interval=c(0,5)) I do not understand the logic - why do we c...
I am having trouble in understanding link how the 5.4 has come from and the line " Since the distribution has to be equal to 1 at $r_u$, it must be divided by $\tilde{\phi} \exp (-d \tau K_{2}) r_u^{\nu}$" what does "it" mean and where from is that distribution coming? After, the distribution how is Equation (5.4) real...
Can someone share some Octave/Matlab code or algorithm to pre-process a photo taken from mobile camera of a handwritten digit. After pre-processing, the data should have similar characteristics to the MNIST data set digit images. I have a neural network trained using the MNIST data set. Now I want to test my implemen...
I have 10 iid r.v. with Bernoulli distribution with $X_{i} = 1$ for a positive result. I'm given $\sum_{i=1}^{10} X_i= 1$ and need to find a two-sided 99% confidence interval for $\theta$. So $\alpha = 0.01$ and $z_{\alpha/2} = 2.575$ based on the standard normal distribution. The variance is given $\sigma^{2} = \hat{...
I am slightly irritated about weak stationarity in connection to ARCH/GARCH models. I do not know the answer and I am not sure about it: The basic question is: Do we have to test weak stationarity before applying an ARMA-GARCH model? Further on it can be said: ADF and others test the mean equation, but this is no...
I have 500 instances of student dataset and 10 attribute. If I am dividing 170 for training, 330 for testing. These ration is correct for crossvalidation?
I am using scikit-learn in Python and they define a quantity called score. It's defined in the middle of the documentation page. Reproduced here: Returns the coefficient of determination R^2 of the prediction. The coefficient R^2 is defined as (1 - u/v), where u is the regression sum of squares ((y_true - y_pred) **...
not sure if this is the place for this, please let me know if not! I'm trying to complete a piece of homework and one of the questions is : Given this tree derived using the ID3 algorithm: Gender = Male TV = Yes Income = 40 - 50 Age = 30 – 40 -> Take up = Yes Age = 40 – 50 -> Take ...
If I have two variables that have different sampling frequencies, one of the first steps is to align the frequencies; could someone explain the intuition of this alignment without being too technical. I am reading some theory on doing MIDAS regression and can't grasp this concept. What does it mean to align data freque...
I am currently working on a study in which I am using beta regression (in Stata). My depend variable is bounded between 0 and 1. To interpret the effects of my independent variables I am using the margins command. However, the problem is that interaction-terms cannot be interpreted using the margins command. My model ...