instruction
stringlengths
9
38.7k
If I plot the feature importance of my xgboost model I get for example f10,f3,f7,f99,... as the most important features. Now I decided to remove f3 and I imagined the new feature importance would be f10,f7,f99,... but what happened is: f10,f18,f99,f50,... Xgboost seems to choose an entire different approach or somet...
This question is based of David Robinson's excellent illustration of using the Beta distribution to estimate a (baseball) batter's season batting average in the middle of a season. To recap, the proportion of hits to at bats (aka batting average) is assumed to be (conditionally) Beta distributed with parameter values ...
In what units are coefficients in survreg's dist=exponential? I'm getting the following output: Call: survreg(formula = Surv(x, delta) ~ z, data = expdatauusi, dist = "exponential") Value Std. Error z p (Intercept) 0.876 0.431 2.04 0.041835 z -2.112 0.639 -3.30 0.000952 Sc...
While working on Davidson and McKinnon's Econometric Theory and Methods, I was encountered with where $X = [X_1\ X_2]$, $M_X$ is the annihilator matrix for $X$, $M_1$ is for $X_1$ and so on. In particular, I couldn't get the second equality. How can we get $(M_1 - M_x) = M_1X_2(X_2^TM_1X_2)^{-1}X_2^TM_1$? I tried but...
Can some one provide an example on what is k-holdout and k-fold cross validation.
Lets say I have a dataframe that looks like this: groups <- floor(runif(1000, min=1, max=5)) activity <- rep(c("A1", "A2", "A3", "A4"), times= 250) endorsement <- floor(runif(1000, min=0, max=2)) value1 <- runif(1000, min=1, max=10) area <- rep(c("A", "A", "A", "A", "B", "C", "C", "D", "D", "E"), times = 100) df <- da...
I have a theoretical question. I have implemented a recommender system using collaborative filtering method. There, I am using cosine similarity method to calculate similarity between two users. I have user-item ratings matrix and I get two raws(user feature vectors) and calculate cosine similarity. As an example consi...
If $X \sim N(1,4)$ find $\mathbb{P}(1<X^2<9)$ If $x=2$ is the unique mode of the $X \sim \Gamma(2,\beta)$ distribution, find the parameter $\beta$. Well I tried transformation to solve this problem. Set $Y=X^2$ and I actually found the pdf of $Y$ but when I try to calculate $\mathbb{P}(1<X^2<9)$, I just can't calcu...
I have a question about negative binomial versus poisson in the presence of an over-dispersed dependent count variable, but with the need to include fixed effects for the cross-sectional component. My understanding is that one of the benefits of the Stata command xtpoisson, fe is that it does not suffer from incidenta...
I am running an intraclass correlation to test for non-independence of the responses of individuals in dyads. I am running the intraclass correlation, as recommended by Kenny, Kashy, and Cook in Dyadic Data Analysis (2006), because my dyad-members are indistinguishable. I have calculated the intraclass correlation, and...
Quick background: I require to obtain a single 'score' for comparison between experimental and simulated data. The parameter being tested is the height of various parts (num = 5) of the model. For the experimental data, I will have the mean and standard deviations for each of the parts, whereas for the simulated data i...
I want to use the EM algorithm to do clustering under a missing labels regime. The assumption I am making about the missing data is that it's distributed according to Bernoulli distribution. So for the complete data likelihood we have: $$ P_{X,Z}(\mathcal{D}, Z; \theta) = \prod_{i=1}^{N}P_{X,Z}(x_i,z_i; \theta) = \pr...
Here i am attaching plot of random-forest in R please help me to interpret. Why does this graph have a negative slope?
Can Mean Square Error (MSE) be applied to decide which model is better?-i have two tables that present the residuals of two different models with the same number of parameters(29).
I am analyzing a certain hormone metabolites from the populations of free-ranging animals. The total samples (N) that I have collected, have a few repetitive samples from some individuals. Will these samples influence the result? What statistical tool should be used to check the influence of such samples?
How can I calculate the mean, step-by-step, in R?
I am trying to implement the agreement score illustrated here. In particular, Equation 1 states that the contribution of sample $i$ to the agreement score of rater $j$ is $$ \hat{s}_{ij} = \frac{n_{i, g_{ij}} - 1}{(\sum_{g=1}^3n_{i, g}) - 1} $$ where $n_{i,g}$ is the observed number of raters giving grade $g$ to sample...
Question I am looking to understand what possible common statistical continuous distributions exist with support [0,1]. Background In my work I often come across data which are bounded between 0 and 1 (both inclusive) and likely skewed to the right. This data mainly consist of sales converted into percentages between ...
I am trying to solve the following problem. Prove that for $X_n\sim \operatorname{Beta}(n,n)$ , $X_n $ converges in probability to $\frac {1}{2}$. This is what I tried: Since as $ n\rightarrow \infty$ , $\mathbb{E} (X_n)\rightarrow \frac {1}{2}$ , and $ \operatorname{Var}(X_n$) $ \rightarrow 0 $ $\implies$ $X_n$ ...
Let $M$ be a n x k matrix which is the outcome of a subjective test, where $n$ is the number of samples and $k$ is the number of raters. Values in $M$ can range from 0 to 1 with a step of 0.1. Since the number of samples is high and the evaluation procedure is long, each rater evaluated only a subset of samples. Sample...
Everywhere in the theory of neural networks, authors saying that idea came about by observing the work of the human brain. But I can not believe in that. I guess, everything is much simpler and neural networks is specific functions of math's series. Proof of this is the existence of the Weierstrass theorem and Taylor s...
I receive the following results of a Durbin-Watson test in R. lag Autocorrelation D-W Statistic p-value 1 0.7302306 0.5348529 0.00 2 0.4735212 1.0428875 0.00 Alternative hypothesis: rho[lag] != 0 does it mean, Null hypothesis is rejected and residuals are not autocorrelated as D-W statisti...
What are the necessary and sufficient conditions for $α_i<β_i$ such that the independent $\operatorname{Uniform}(α_i,β_i)$ distributed variables $X_i$: (1) converge to $0$ in distribution? (2) converge to $0$ almost surely? The $\operatorname{Uniform}(α_i,β_i)$ variables $X_i$ are not identically distributed. For 1 we ...
I have been struggling with ordinal regression for a bit now and would like to ask for some help. My outcome will be an ordinal variable made up out of 4 groups of which 1=good to 4=bad. My data consists of all nominal, ordinal and continuous variables and I have cleaned my data, and it is ready to be used. However I b...
I am running preliminary tests on the two dimension data set. This data set contains 108 data points, and I was wondering whether my data may be considered independent or time-dependent. I test using multivariate normality test such as roystonTest, mardiaTest, hzTest; they all seem to reject that my data belong to a ...
Edit: I apologize if the question is considered to broad. In fact, it is concerning a very specific task in bioinformatic analysis of high throughput data set, and in my opinion the problem presented here, albeit not formulated formally, is very specific. In HT data sets in biology, such as transcriptome profiles, very...
I have trouble selecting the correct regression model for my data. Let's call my dependent variable Y. It can take values from 0 to 5 depending on how many corresponding documents have been published. A value of 0 means none of the five documents were published, and that is really bad. On the other hand, 5 means that a...
I am using a first difference estimator for my panel data. The panel has people whom I observe over time. I want to include a 'time fixed effect'. I argue that this should be possible, as long as I interpret it slightly differently than a standard time dummy. So basically: y_it-y_it-1=gamma_(t,t-1)+beta*(x_it-x_it-1)+...
I would like to know if my two-dimensional data set to follow any of the following distributions such as the mixed multivariate normal model, multivariate t model, multivariate non-central t model. Are there well-known tests to know if I may apply them to my data set?
I am using annual county-level data to predict a headline national figure that is the sum of the counties. For this problem, I applied a Random Forest regression model to the county-level data to predict my scalar target for each county for the subsequent year. After meta-parameter tuning the model achieves $R^2$ in ex...
I am trying to predict demand of Automobiles at dealer and Variant level. I have 2 year, 2 months daily sales data. I need to predict demand at monthly level based on daily data for Enquiry. Just to make it more clear, if I am on 5th of March 2017 so based on enquiries so far, earlier sales data etc. I need to predict ...
I am looking for empirical approximations and guidelines on how many operations are required to run a linear model on a given amount of data, or if it's even feasible. Let's assume we use QR decomposition to solve least squares and use Newton-Raphson (fishier scoring) to solve generalized linear models. The kind of an...
I have started to work with GAM in R and I’ve acquired Simon Wood’s excellent book on the topic ("Generalized Additive Models An Introduction with R"). Based on one of his examples, I am looking at the following: library(mgcv) data(trees) ct1<-gam(log(Volume) ~ Height + s(Girth), data=trees) I have two general questio...
Let's say I have a data set where there are some people sitting and some people standing. One of the variables in my data set is the amount of weight a person is holding on their lap. However, a person who is standing does not have a lap, so the question is meaningless for them. (I apologize that this is the best examp...
I am trying to create a graph representing a trend in binary value distribution. I thought of my own solution but it somehow doesn't feel right. Here's what I'm trying to convey with my graph: I have a list of items that are either correct or incorrect, and their order is random. I am comparing a couple of scoring algo...
I have been using BSTS package for quite a while and I have found it pretty effective with respect to ARIMAX models. I was wondering whether it would be possible to share regression coefficients in the regression part (the equation being: $Y_t = \mu_t + \mathbf{x_t} \boldsymbol{\beta} + S_t + \epsilon_t$, with $\mu_t$...
Background: I have the following data: 27% of the respondents to a survey are interested in a product. Of that 27% which is interested: 59% are 15-24 years old. 18% are 25-34 years old. 6% are 35-44 years old. 4% are 45-54 years old. The rest are outside these age ranges. The probability of being in each age range i...
For example, if I have 12 participants who responded in a particular way to a task, and 7 participants who responded a different way. I want to compare the response time between these two 'groups' of respondents. Will having an unequal sample size impact the t-test? Does the independent t-test make assumptions about sa...
Suppose I have a kind of panel data set, where we track the investment totals of a great many customers, which may be highly variable, and is measured on a monthly basis over the course of 7-10 years. While we are ultimately interested in forecasting the total level of investment of all of our customers, for various re...
I am currently trying to understand what is involved to train a Hidden Markov Model (HMM) with Forced alignment. Forced alignment, as far I understand, is to align the audio file with the utterance at a word level or phonetic level. What I don't understand is how a HMM is being trained by forced alignment. Normally t...
I’m working with a very large data set of auto loans (and monthly performance) to analyze the likelihood of default or prepayment based on different borrower or loan characteristics or macroeconomic factors. I’ve developed cox proportional hazard models in R that seem to fit well. I would like to use the model to br...
I'm taking a course in coursera about neural networks. I understand the relation and difference between "Sigmoid Neurons" and "Stochastic Binary Neurons", but I don't how could you adapt "Rectified Linear" to Stochastic. They said you could imaging the output: $$ \texttt{z} = b + \sum_i (x_i * w_i) \\ \text{(where } b ...
Background: I have a 2-dimensional 2-class classification problem, the following training sample vectors are given: $$D_1 = \left\{ \begin{bmatrix} 0 \\ -1 \end{bmatrix}, \begin{bmatrix} 3 \\ -2\end{bmatrix}, \begin{bmatrix} 0 \\ 2 \end{bmatrix}, \begin{bmatrix} -2 \\ 1\end{bmatrix}, \begin{bmatrix} 2 \\ -1 \end{bmatri...
It's clear to me by inspection that if we fix $\beta = \frac{1-\mu}{\mu} \alpha$ (thereby fixing the mean) and let $\alpha \rightarrow 0$, the Beta distribution approaches a Bernoulli($\mu$) distribution. For example: par(mfrow = c(1, 2), oma = c(0, 0, 1.5, 0)) xx = seq(0, 1, length.out = 1000) mus = c(.2, .7) for ...
Context: I'm familiar with the problems of collinear regressors-- i.e. the general model fit is interpretable but a direct comparison of the predictors is not. I have 2 regressors that are highly correlated and would like to know the relative contribution of each regressor on my outcome variable. Question: What is...
I have been reading up about Q-learning, and I have a question about how the value iteration is computed. From my understanding, the algorithm updates the q-value of a state-action pair, after that action has been taken. So let's say that action a moves the state from s to s'. The q-value, q(s,a) is equal to the value ...
I understand that generative adversarial networks (GANs) can synthetically reconstruct the input using a generator and a discriminator in a zero-sum game. However, I feel that I do not fully understand the mathematics or usefulness of GANs. Are there any good tutorials or explanations on understanding GANs? I have foun...
I have some data and a model, e.g., $H_0: \xi \sim \mathcal N(\mu_1 > \mu_0, \sigma_0)$, $\mu_0, \sigma_0$ are fixed, in other words, this is the similar to the situation with "unequal means, alternative=greater". How can I calculate the likelihood of the data under this model? Numerical integration could help, but of...
How do you interpret a survival curve from cox proportional hazard model? In this toy example, suppose we have a cox proportional hazard model on age variable in kidney data, and generate the survival curve. library(survival) fit <- coxph(Surv(time, status)~age, data=kidney) plot(conf.int="none", survfit(fit)) grid() ...
Context: I'm currently writing my bachelor thesis and have decided to focus on what factors that contribute to students that have risky alcohol habits at my university. I am planing on doing a big survey to gather data about the students habits. First Possible Approach: Since the classification problem is alcohol consu...
If data are missing completely at random (MCAR), then obviously multiple imputation (MI) won't serve its lauded function of lessening bias in your findings, since there's no bias to lessen. However, perhaps it will increase efficiency, and make an uncertain finding more certain. I know that if you do it right, then MI ...
I am assessing the relationship between a state law and a health outcome's incidence in a given state and year using multiple years of data. If I use within and between fixed effects (creating a dummy variable for each state and year) should I still adjust for potential confounders at the state level such as demographi...
I have a dataset with numerical (continuous) and categorical variables. I want to fit an artificial neural network. To do so, I have transformed my categorical variables by using the 1-of-k method, so I now have a bunch of binary variables. I am using the Neuralnet package in R to fit my ANN model. From a theoretical p...
Background: I am working with a data set that requires a transformation. It's prevalence data so I have proportions to deal with, and as the proportions are quite low, I'm using the Freeman-Tukey transformation. My aim is to perform a meta analysis on the prevalence data. I have transformed the proportions, and found c...
Given Hamming distance $H(x,z)$ between two equal length string of length $n$, define a kernel as: $$ K(x,z) = \begin{cases} 1 - \frac{H(x,z)}{n} & \text{if both x and z have the same length $n$} \\ 0 & \text{otherwise} \end{cases} $$ Question: How do I prove that it is a kernel? Attempt: It is symmetric for sure, bu...
Context: I have a dataset in which I am analyzing whether a patient having 1 disease (binary) influences the number of other diseases the patient has (ordinal; range = 0-7), which is the outcome variable. Questions: Is the number of other diseases the patient has in fact ordinal? What regression method would I use to...
I am learning how to use libsvm through sklearn.svm in python. I read here about what happens and why when you change the C value as part of your model. My intuition from what I've learned would be that lower C values would use less support vectors to make a more general classification, while higher C values would use ...
By running the following Bayesian regression model using SAS 9.4: PROC GENMOD DATA = TRAININGSET; CLASS X; MODEL Y = X /DIST = POISSON LINK = LOG; BAYES NMC = 1000 SEED = 1234 COEFFPRIOR = NORMAL; RUN; I found the following warning in the LOG window: WARNING: There is still significant au...
I'm working with a Negative binomial regression in STAN. I would like to make predictions on a test set, but looking at the reference I can't find a negative_binomial random number generator. Is there any way to do so without saving mean and overdispersion distributions and sampling from them in R ?
I'm trying to understand how loss_metric class in dlib calculates the gradient. Here is the code(full version): // It should be noted that the derivative of length(x-y) with respect // to the x vector is the unit vector (x-y)/length(x-y). If you stare // at the code below long enough you will see that it's just an // ...
Note: I am dealing with a state space model/hidden Markov model, where process $x_t$ is only dependent on $x_{t-1}$ and $y_t$ is only dependent on $x_t$. \begin{equation} \begin{split} p(x_{0:t}|y_{0:t})& = \frac{p(y_t|x_{0:t},y_{0:t-1}) p(x_{0:t}|,y_{0:t-1}) }{p(y_t|y_{0:t-1})} ~~~\mbox{(bayes)}\\ & = \frac{p(y_t|x_...
I have a data set I would like to do a regression analysis for. There are many features of both categorical and continuous types. One of the categorical features has many (>75) levels so this is an issue. I have reason to believe that some of the levels are essentially the same. I intend to use decision trees with some...
I am conducting a cfa (two level, with meaning of level 2;it is staff rating organizations and we care about organizations). My question is what is the difference is in mplus between type=complex (mlr with sandwich) and type=twolevel if mlr is selected as an estimator with no covariates in the model? These should be t...
Consider the following model: $$Y = \mu + (1+\beta X)\epsilon,$$ where $Y$ is the dependent variable; $X$ is the independent variable; $\epsilon$ is such that $\mathbb{E}(\epsilon) = 0$ and $\mathbb{V}(\epsilon) = 1$; and $(\mu,\beta)$ is the parameters vector. I wonder if anyone would have a suggestion for a estimatio...
1) How do we statistically interpret a situation where the correlation coefficient r=0.87, denoting a strong relationship between the independent var and the response var, but p-value >.05 (not-significant)? 2) In a different scenario, if the p-value is significant (p<0.05), while r=0.286 (weak correlation), can we say...
I am testing a hypothesis that a training program impacts employee performance. My dataset consists of employee performance as measured by a unit output (e.g. 150 units, 201 units, etc.) in two consecutive periods (before (p0) and after (p1) training), as well as a binary flag of whether the employee received the train...
So, I'm taking a Binary Logistic Regression Course, and I'm modeling. Specifically we're modeling default for subprime credit accounts. But that's neither here nor there. I'm looking at what exactly the C-Statistic is. I understand it's the area under the ROC curve, but I'm watching a YouTube video that defines c as f...
From my understanding the correlation coefficient is r (the correlation between two variables) and ranges from -1,1 to tell the strength of a linear relationship. and is estimated as: $$r_{xy}=\frac{COV_{xy}}{\sigma_x\sigma_y}$$ The regression coefficient is simply the beta in a regression analysis. It tells the streng...
My question is are all ARIMA processes also unit root processes? My guess is yes because $\{X_t\}$ is ARIMA(p, d, q) if $(1-B)^dX_t = a(B)\epsilon_t$ is stationary ARMA(p, q). The characteristic function for $(1-B)^dX_t = a(B)\epsilon_t$ is $(1-B)^d$, which clearly is unit root. Also, I suppose not all unit root proces...
$t$ is a binary target variable equal to $0$ or $1$, and below are the binary distribution and the log-likelihood error function. $p(t|x,w)=y(x,w)^t(1-y(x,w))^{1-t}$ $E(W)=-\displaystyle\sum_{n=1}^N (t_n \ln y_n + (1-t_n) \ln (1-y_n))$ But how should I write down the error function if there is a misclassification probl...
When performing chi-squared independence tests, why do 2x2 tests always have every residual value (o-e) equal? Why is this not true for tests with unequal amounts of rows and columns?
I came across a proof for one of the properties of the ARCH model which says that if $\mathbb{E}(X_t^2) < \infty$, then $\{X_t\}$ is stationary iff $\sum_{i=1}^pb_i < 1$ where the ARCH model is: $X_t = \sigma_t\epsilon_t$ $\sigma_t^2 = b_0 + b_1X_{t-1}^2 + ... b_pX_{t-p}^2$ The main idea of the prove is to show that $...
Let's say we have a random variable $Y$ defined as the sum of $N$ Bernoulli variables $X_i$, each with a different, success probability $p_i$ and a different (fixed) weight $w_i$. The weights are positive and between ~0.001-1,000 with a handful of outliers. If it would make the problem more tractable, it would be OK t...
I would greatly appreciate if you could let me know how to do discrete time survival analysis with time varying covariates. Some part of my data set is as follows: ID TIME EVENT x1 x2 x3 x4 x5 1 1 0 1.28 0.02 0.87 1.22 0.06 1 2 0 1.27 0.01 0.82 1.00 -0.01 1 3 0 1.05 -0.06 0.92 0....
I am analyzing a very large dataset featuring scores in a sport. The only information I have is the scores of many athletes in various locations, which are organized in the following way: Location X: Athlete 1: Score A | Score B , Athlete 2: Score A | Score B (5 scores: five judges giving each a score A and a score B f...
I noticed that software packages sometimes use the function: .5 + abs(AUC-.5) when the AUC is less than $0.5$. In other words, it has: $$ 0.5+|AUC-0.5| $$ as a way to report AUC's under 0.5. Is this just a result of an AUC under $0.5$ being a worthless predictor and is the function above just reversing the labels to w...
On stattrek, there's a calculator that computes the t-score given the degree of freedom cumulative frequency The formula is given on the page as: Without the population mean, how did the calculate on the top of the stattrek page calculate t-score? http://stattrek.com/online-calculator/t-distribution.aspx
I have the following dataset: 5 3 3 5 10 10 3 8 2 12 8 6 2 5 6 5 10 4 3 5 4 3 3 5 8 3 5 6 6 1 10 3 6 6 5 8 3 4 3 4 4 3 2.5 1 4 2 2 3 5 10 4 4 6 3 2 3 8 3 4 4 3 3 4 8 4 4 2 4 4 3 2 10 6 ...
Suppose $X$ and $Y$ are independent and identically distributed non-negative random variables. How can I calculate $\mathbb{E}(X|X+Y=a)$?
Assume the matrix contains one dense column, which consists of continuous values between 1-100. The other columns are binary values and are sparse. When applying Kmeans to such as matrix, does the clustering tend to be dominated by the dense columns? What if I want to avoid such domination and also take the sparse colu...
I just estimated a Vector Autoregressive Model with 6 lags and 10 variables in R. My goal is to simulate the given original time series (on which the model parameters were estimated) to see how the model fits. As the simulation in R doesn't work (but this is not the problem) I'd like to do the simulation with excel. ...
$\newcommand{\Var}{\operatorname{Var}}$My weighted linear regression turned out to be as follows: $\vec{m} = \left(A^TW^TWA\right)^{-1}A^T\left(W^TW\right)\vec{y}$ $\vec{m} $ is a vector of coefficient $A$ is a design matrix such as $A = \begin{bmatrix} \dots & x_1^T & \dots \\ & \vdots & \\ \dots & x_n^T & \dots\end{b...
I have an estimator $\theta$ for the mean $\mu$. I understand consistency such that $\theta$ converges in probability to $\mu$ as $n$ goes to infinity. Now, I encountered another concept, consistency in mean sqaure. $\theta$ is consistent in mean square if: $\mathbb{E}[(\theta-\mu)^2] \rightarrow 0 $ as $n \rightar...
My intuition suggests that if a random process is not stationary in the mean, since it is not WSS there is no practicality in looking at other stationarities in the engineering sense. But I am mathematically curious anyway.
I am using the Mahalanobis-Taguchi method to identify anomaly from a multivariate dataset. The dataset has 30000 data each with 1024 features. Should my data follow a multivariate normal distribution for the method to be effective in detecting anomaly ?
I have some data representing times series about houses costs in specific areas. Some of the values along the times series (30 points = 30 months) are missing or are totally wrong (huge spikes). What I am doing right now is to calculate the average and the standard deviation to eliminate first zeros and spikes and repl...
Context: I have some hazard ratios defined on pCR expression data. Since I have to perform some external validation of my predictions I thought to use RNA seq data. The reasons are two: (1) there's more availability of RNA seq data with respect to pCR on large cohorts of tumor samples, and (2) this will also prove tha...
I'm new at learning random variables and stuck in this example. Can anyone help me solve this? "The RV x is N(5,2) and y=2x+4. Find mean, standard deviation and density function of y."
I wish to forecast Y for year 2018 but I only have two data points of Y in years 2006 and 2012. I already did multiple linear regression (since I have a lot of predictors) but multiple linear regression does not consider the time aspect so my predictions are limited. I was advised to do causal forecasting instead, whi...
Here is the statement that I have read (source pp. 21-23): Since we are selecting the furthest outlier, it is not legitimate to use a simple t-test(for studentized residuals) for detecting outliers. To remedy this we can make a Bonferroni adjustment to the p-value Questions: (1) Why can't we use simple t-test? (2) ...
I have some experimental data that I am trying to analyze. I will try to explain the data: I have three different reading tasks, in each one I have six blocks of presentation, and manipulated the length of the words (short and long). Children from two different grades made one of the tasks, and the items were the same ...
Say I have 20 individuals: 2 of them did event $A$ 8 others did event $B$ 10 did both events $A$ and $B$ Therefore, I can build the following table: Did 1 action Did 2 actions A 2 10 B 8 10 Here is how I want to interpret this: Given that someone did event ...
Context: I have an observed data set, denote it by data set $A$. I simulated a multivariate normal data set, denote it as data set $B$. When I plot the ACF and PACF of both data sets I received a very similar result. I applied all joint test of multivariate normal test on the data set $A$, and I accepted that the null ...
I wonder if someone can help me. I'm running a multiple mediation (parallel model) using the preacher and hayes process script. I am no expert but it seems to be that the $a$ paths (IV to mediators) are essentially correlations, whilst the $b$ paths (mediators to DV controlling for the IV) are essentially a linear regr...
I'm pretty new to statistics and need advice on how to analyse zero-inflated, thick-tailed, panel distributions. My sample is a count of enterprise births per city and per year across U.S. cities and 14 years. Many cities have 0 counts. A few cities have very high counts, i.e. the distributions in any given year are z...
I am building a recommendater system using Collaborative Filtering. I have implemented Alternating Least Square method following this tutorial. Now I want my algorithm to adapt new ratings for movies that were previously not rated. Should the algorithm run again with same number of iterations to adapt new ratings. Or n...
I am trying to forecast time-series in a very "applied" sense. Ideally, what I would be looking for was a time-series model (à la ARIMA models), which could capture the dynamics of the growth data of an index. However, I have strong a priori ideas about how to series will/should behave over the long term (justified or ...
In the book Time Series Analysis by R, the author mentions the use of moving average to smooth out the white noise. Can moving averages be used to remove white noise or are there better methods?
I would like to tune the hyperparameters of a random forest and then obtain an unbiased score of its performance. As I understand, the natural way would be to use nested cross validation. However, it seems to me that with this method the best hyperparameters found in each inner loop might differ across loops, which th...
I am estimating a mixed model using lme4. I need to have varying intercept terms (because I am post-stratifying my results to census categories). However, I also want to add a random slope term for the effect of income (allowing it to vary by state). This is the model that I estimate: dependent.var ~ (1 | state) + (1 |...