instruction
stringlengths
9
38.7k
I came across a proof on a statistics book using the following, if$$ S=P(|X|≥\epsilon,|B|≤b)+P(|X|≥\epsilon,|B|≥b) $$then$$ S≤P\left(\frac{X}{|B|}≥\frac{\epsilon}{b}\right)+P(|B|≥b) $$ I want to verify if my thinking is correct. The event $\{\frac{X}{|B|}≥\frac{\epsilon}{b}\}$ is a subset of the event $\{|X|≥\epsilon\c...
In class, my professor that a recurrent neural network is for problems where the state changes as a function of past state and new input, i.e. h_(t+1) = f(h_t, x_t), for any f. Then he said we would have, in each RNN cell, a universal function approximation (e.g. a deep neural network) to learn any f and thus solve all...
I have a within-subjects study where for each participant I have 10 datapoints from the control condition and 10 datapoints from the treatment condition. The treatment effect is calculated as [mean of outcomes from treatment condition] - [mean of outcomes from control condition]. I am trying to use bootstrap to calcula...
I want to run a linear mixed model (LMM) testing the effects of two continuous variables (FD and FI) over time (Year:FD, Year:FI) on my response variable (QMD). For LMMs I typically use lmer4 but as in this model the variance increases over time, I want to use nlme to weight the model variance by year (using VarIdent=Y...
I am studying the incidence of different types of stroke in a hospital. I have the information about the time of arrival of each patient and the type of stroke. I divided the whole day into 6 time slots (00-04, 04-08, 08-12, 12-16, 16-20, 20-00) and counted the number of each type of stroke (ischemic stroke, hemorrhagi...
Let say I have the below time series data(It is a return data of a financial derivative): x<-structure(c(-0.030727, -0.009815, -0.001215, 0.010281, -0.03471, 0.01946, -0.027811, -0.002559, -0.001176, 8.3e-05, 0.026288, -0.015959, 0.010825, -0.022024, 0.008582, 0.023524, 0.00139, -...
I'm look to learn about extreme value theory, starting from univariate case and then moving onto the multivariate case. I have tried the textbook by de Haan, but I'm constantly lost trying to read the proof of Fisher–Tippett–Gnedenko theorem in the first chapter. I have also tried Statistics of Extremes: Theory and App...
This is a follow-on to post Correctly simulating an extreme value distribution for survival analysis?, as I work towards adaptation of that code to the Weibull distribution. In the below code I generate random numbers for $W$ for the Weibull model that takes the form $logT = α + σW$ where $α$ is the linear predictor an...
I am thinking of running a regression of $Y ~ Xi$, but for each $X_i$, I have a pre-determined "score" $S_i$ in terms of quality of the data. The higher the score is, the more confidence I have in $X_i$. So I want to run a modified regression of finding $w_i$ to minimize $$| y - \sum w_i X_i |^2 + \lambda \sum w_i^2/S...
I am currently working on a logistic regression model using the mgcv package. The mode contains 3 variables (x1 and x2, continuous) and x3 (categorical) and I believe there is interaction between the variables x1 and x2. This is my base model: gam_model <- gam(Output ~ s(x1) + s(x2) + x3, method = "REML", data = data, ...
How interpret Pr(>|t|) results? Can I consider the "speed" significant for regression despite the "intercept" having no statistical difference? Or the linear regression model is only reliable if there had a significant "intercept"? Example summary(lm(dist~speed,data=cars)) # # Call: # lm(formula = dist ~ speed, data =...
Does ANCOVA require homogeneity of regression slopes? In other words, do the slopes of the lines need to be the same in order to use this method? Per this blog post ANCOVA can be used to discriminate between models, with different slopes, but this blog post says the slopes must be parallel for ANCOVA to be used. Please...
For one experiment, I have two data sources A and B contributing data points, and a function that takes the union of the sets of datapoints and assigns a quality weight to each point. I'm trying to analyze the quality of A vs B over many such experiments to evaluate if B is "as good" of a data source as A is. One basic...
I am trying to understand how to actually implement the Harville-Fellner-Schall algorithm for the estimation of the P-splines penalties presented in Appendix E (Sec. E.2) of Marx and Eilers [1]. Let me summarize here the main points. Given a P-spline basis matrix $B$, the data vector $y\in \mathcal{R}^m$ and the discre...
From the summary of my fitted generalized additve model (gam) I see two edfs. The first edf is the model edf and second is the reference edf. However, for AIC estimation, the reference edf is used. But what is the reason behind that? As model is estimated using the edf, why are we using reference edf? This is a sample ...
I want to make a correlation analysis of two nominal columns, the "advocates" column and the "company" column, the advocates in this case are processing the companies, the data looks like this Advocate Company Adv 1 Comp A Adv 1 Comp A Adv 2 Comp C Adv 3 Comp B Adv 3 Comp B Adv 2 Comp D Adv 3 Comp E...
I'm having trouble finding references to (and the name of) an obvious correction procedure that surely must have been used extensively in time series forecasting, but my Google searches keep turning up references to anomaly detection (which isn't what I'm looking for). In (univariate) time series forecasting, we're alw...
I have a continuous treatment variable which I dichtomize into a binary treatment dummy. Using MatchIt and the newly created dummy variable, I conducted genetic matching to create a dataset of treatment and control observations. My question is, can I replace that binary treatment variable with the original continuous t...
I have two features. I need to perform T-test for these two datasets but with the same model. train_x, test_x, train_y, test_y = model_selection.train_test_split(X_pac, labels, test_size=0.2) train_x1, test_x1, train_y1, test_y1 = model_selection.train_test_split(author_post_new, labels, test_size=0.2) I need to per...
Suppose there are N measurements of a random variable x which has Gaussian p.d.f. with unknown mean $\mu$ and variance $\sigma^2$. Classical textbook solution for estimation $\mu$ and $\sigma$ is to maximize likelihood function: \begin{equation} L(\mu, \sigma) = \Pi_{i=1}^N\frac{1}{\sqrt{2\pi\sigma^2}}\,e^{-\frac{(x_i ...
I would like to plot contour plots of covariance functions in R: one for a fitted separable spatio-temporal covariance; one for the empirical covariance function, similarly to Figure 4.4 in Wikle et al Spatio-Temporal Statistics with R. I understand the theory behind these concepts, I just need help with implementing...
Ranking of Raters and Cases I am looking for a method for ranking a set of raters with partially overlapping binary assessments. I also want to rank the cases according to their difficulty. Context I have dataset with N cases, $\{c_n\}_{n=1}^N$, and M raters, $\{r_m\}_{m=1}^M$, where each rater $r_m$ has assessed some ...
I'm trying to calculate a good mean shrinkage parameter for a custom quadratic discriminant analysis (QDA), and I ran into a math problem. Suppose $X=(X_1, X_2, \ldots, X_k)^T\sim{\mathcal{N}(\textbf{0},\Sigma)}$, where $\Sigma_{ii} = 1$ for $i=1,2,\ldots, k$. Define $$ \text{mean}(X) = \frac{1}{k}\sum_{i = 1}^k X_i. $...
I'm trying to gain deper understanding of the logic behind vanishing and exploding gradients. Most sources I've come across explain the problem by saying that when the weights become too small, the forward pass and back propagation essentially become a chain of multiplications of numbers $< 1$, resulting in increasingl...
Exponential family form is $$f_X(x) = h(x)\exp(\eta(\theta)\cdot T(x) - A(\theta))$$ I know $$\operatorname{Cov}(T(x), \log(h(x)) = 0.$$ But how can I prove it?
I'm in the middle of writing my Master's thesis on undersampling techniques in imbalanced datasets, and I wanted to refer on this paper explaining the Condensed Nearest-Neighbor algorithm and what kind of adjustments is Tomek Links making on it. What niggles me is the beginning of the article that explains the steps of...
Say that there's a horse race between the two horses Alice and Bob. People bet on which horse will win. The "house" is taking no money off the top, so basically it's a direct transfer where everyone guesses wrong loses their money, and it all gets split between the winners (I'm pretty sure that's how it works). My ques...
I am seeking assistance in analyzing whether there are any discernible trends, seasonality, or cycles present in the monthly data represented by the following figures: I would greatly appreciate it if you could let me know how to set seasonal.periods in this code (12 or 6): train.ts.msts <- msts(train.ts.df,seasonal....
Let $F$ be a distribution function, and let $g \colon \mathbb{R} \to \mathbb{R}$ be a real function. I want to prove $\int_{\mathbb{R}} g(x) dF^n(x) = n \int_{\mathbb{R}} g(x) F^{n-1}(x) dF(x)$, where $dF$ means to take integral with respect to the distribution measure generated by distribution function $F$, and $F^n$...
It's surprisingly difficult to find a clear answer to this online. Nearly every online source claims that error terms must follow a normal distribution for statistical inference but stops short of proving it. There are a million "data science" and "statistics" articles out there that rehash the same assertions and simp...
I am new to Mahalanobis distance matching and trying to see for information on how I can assess whether the matches I got using Mahalanobis matching are good matches. gen long matchD3 = . mahapick hhh_age55older hhh_edu nfemale1859 nmale1859 nmale05 nmale615 nmale61up nfemale05 nfemale615 nfemale61up x1_17, idvar(a01)...
Theorem 1 here states $\lim_{n\to\infty} \sup_x |\mathbb{F}_n(x) - F(x)| = 0$ with probability $1$, where $\mathbb{F}_n$ is the empirical distribution function of the first $n$ $X$s, which are i.i.d. and $F$ is the commmon distribution function of the $X$s. Is it implied that $\mathbb{F}_n$ and $F(x)$ are random variab...
I'm using the tool in the following website to compare correlation coefficients: http://vassarstats.net/rdiff.html The tool uses Fisher's r to z transformation to ultimately compare two correlation coefficients. Let's say I want to compare a correlation coefficient that was calculated with Pearson's correlation and a c...
Suppose $X_i\overset{\text{iid}}{\sim} N(0,1)$, and define the random vector $\mathbf{X}=(X_1,\ldots,X_n)$. Then the normalized vector $\mathbf{Z}:=\frac{\mathbf{X}}{\|\mathbf{X}\|_2}$ is uniformly distributed on the sphere $\mathbb{S}^{n-1}$. Several properties of the distribution of $\mathbf{Z}$ are known, e.g., All...
One result of Slutsky's theorem is that when $X_{n}$ is a sequence of random variables converging to a random variable $X$ and $Y_{n}$ a sequence of random variables converging to a constant $c$ then it holds that in the limit $n \rightarrow \infty$ we have that $$X_{n}Y_{n}\ {\xrightarrow {d}}\ cX$$. But apparently th...
I have read 2 papers (this and this) about the convergence of the Adam optimizer. One of the assumptions is the smoothness of the loss function, meaning that the gradient of the loss function is Lipschitz continuous. Let's consider a neural network $f(\theta)$ with a loss function $L$. If I want to prove the smoothness...
Can I compare the forecasting performance of two models VECM and VAR with the same dataset, if in the case of VECM I have some of the variables I(1) at the level, and others are stationary?
The equation of a margin in SVM is $\frac{2}{\lVert \mathbf{w} \rVert}$, which I completely understand. It is also rewritten as $\frac{1}{2} \lVert \mathbf{w} \rVert^2$ for the sake of mathematical convenience or "convention". However, I do not see how these two equations are equivalent. I understand it works but I jus...
Hello I am modeling a regression for my school project and one of the question I got from my professor was, how would I model this with polynomial regression. I have quite good random forest and knn regression models, however it is desired that I improve my polynomial regression model. My question is, is polynomial reg...
I have a time series dataset that records the number of passengers per day. Based on this data, I need to make predictions for the next three months at the monthly level. The provided plot illustrates the number of passengers in different areas of the city since 2019. Each line represents the passenger count observed ...
When we over-difference a time serie, we are introducing units roots in its moving average component, hence obtaining an IMA. My question is: IMA is an integrated time serie, hence it has unit root and in order to remove them I should take differences; why doesn't it work this way and instead, taking differences of an ...
I use monthly log returns for some stock portfolios and rejects the null of the ADF-test for both. Hereafter I use AIC to select best fitting models using auto.arima in R. The selected models are ARIMA(0,0,0) with zero-mean and ARIMA (0,0,0) with a drift. Now I have a couple of questions. Since I use log returns, equa...
How to use heteroscedasticity tests in model with ARIMA errors?
This is probably a stupid question that I'm overthinking, and apologies if it's super obvious, but - Say you have some regression model y ~ f(x1, x2...) that you fit to data. Call this the 'main model' for now. You get your regression from the main model, and you use a predict type function to yield in-sample predicted...
I am working with what I believe is quite a big dataset, with $17$ columns (each corresponds to one variable) and $41714$ rows (each corresponds to one observations). My goal is to implement clustering algorithms with $16$ of these variables and then check if the clusters created coincide somehow with the categories th...
Let $X_1,X_2,....$ be iid random variables with Cauchy distribution and $S_n=X_1+X_2+\cdots+X_n$, find $P(S_n>an)$, $a>0$. This is exercise 8.44 of the intro book of Grimmet and Welsh. We cannot use the Large deviation theorem, because all the $X_i$ have no defined mean. The only thing that came in my mind was that $S_...
I've estimated a VECM model on four variable. my results are Unit root test (ADF): all variables are I(1) Johansen rank test suggests estimating VECM with a trend and 1 cointegrating vector Estimation of VECM gives very large error correct terms (estimated via the cajorls function in r, and then summary of model$rlm)...
Recently, I read a paper (this paper) that provides convergence analysis of the Adam optimizer without assuming the smoothness condition of the loss function. Suppose I have a neural network $f(\theta)$ with a loss function $L$, and I want to verify if my network satisfy the assumptions (S1)-(S3) and (A1)-(A2). I am co...
For GLRT, the ratio is: $$ \Lambda^* = \frac{\max_{\theta \in \omega_0} L(\theta)}{\max_{\theta \in \omega_1}L(\theta)} $$ but we instead use: $$ \Lambda = \frac{\max_{\theta \in \omega_0}L(\theta)}{\max_{\theta \in \omega_0 \cup \omega_1}L(\theta)} $$ I'm not understanding what the rationale behind this is and would a...
I am learning Time series analysis and I am studying the augmented Dickey Fuller test. My understanding of the null hypotheses is clashing with all the explanations I find online and in books. I refer to the notation of the picture attached. For a series I am working on all $\tau$- and $\phi$-nulls are rejected, for al...
I have 3 different groups based on their level of resilience : low (n=60), moderate (n=35), high (n=10). After a qualitative thematic analysis of their responses, different subjects emerged, like "being super funny" for example. => I would like to know is there is a significant difference between those 3 groups about h...
I have an analysis question that I need some help on. I received an analysis request to identify events that have statistically different frequencies between two groups. For example, assume I have group A and group B and in each group, there are events that are either shared or unique to each group. And each event is f...
I have some analysis I'm working on and I'm having a hard time nailing down the correct approach to take. I am modeling the dynamics of frog choruses by looking at what predicts the outcome of calling interactions between different chorus members. Interactions can result in call overlap or not, so I have coded each int...
I am running logistic regression. The odds ratio estimate I got is positive but the lower bound of my 95% CI is negative (close to -1) and the upper bound is greater than 1. Would this mean that my result is not statistically significant? In a hypothetical case that the odds ratio 95% CI is something like (-1, .5), wou...
I have proved that my function with two variable is concave. I am looking for the minimum of the function. Since the function is continuous over a convex set the minimum should occur on the border of the function. How can I find the minimum efficiently having these information?
I'm minimizing distances between two 6 dimensional vectors. I have been using manhattan distance so far and it works ok but my problem would benefit from discriminating between the following two cases case 1. v1 = [1, 1, 1, 1, 1, 1] v2 = [1, 1, 1, 1, 1, 4] manhattan(v1, v2) = 3 case 2. v1 = [1, 1, 1, 1, 1, 1] v2 = [1...
In 3.5.2 of Machine Learning Methods for Estimating Heterogeneous Causal Effects by Susan Athey and Guido Imbens it is stated: "If the models include an intercept, as they usually do, most estimation methods would ensure that the average of $$(Y_i^{tr,obs}-\hat{\mu}(X_i^{tr})).\hat{\mu}(X_i^{tr})$$ would be equal to ze...
For a problem I am working on I need to compute the conditional expectation of a continuous random variable $T$ given a discrete random variable $K$. I already derived a formula for the joint distribution function $P(T\leq t, K = k)$, as well as the pdf of $T$ and the probability mass function of $K$. Is there some for...
I've been reading a paper (Machine learning identifies candidates for drug repurposing in Alzheimer’s disease), but having a hard time understanding its core idea. Basically, the researchers Obtained a dataset of postmortem brain tissues that includes the expression values of ~20k genes as features and disease stage (...
I have a dataset with 11 observations and 11 features. I want to use linear regression for estimating the coefficients by using OLS method. I know it is not advisable to use linear regression with such a big number of features, comparing with the number of records. I have about 6 features that are highly correlated (co...
I'm new to MCMC methods, and as I learn, it seems there is a lot of art in choosing the proper priors especially when there are many parameters (which is why we use MCMC in the first place). Are there any strategies that go into which distributions are suitable for which scenarios or parameter types? Coming from physic...
Are there any ways to assign a metric to time series that measures its distance from the white noise? By white noise I mean a time series sampled from $N(0,\sigma^2)$ for some $ \sigma$. This metric should assign non-negative numbers to the times series with a given confidence interval, that somehow measures the simila...
I've read multiple posts/papers citing Tabachnick and Fidell's cut off of +/- 1.5 as the acceptable range for skewness and kurtosis to determine normality; however, I cannot find it in their book. Can someone please tell me where Tabachnick and Fidell have stated this cut off? Book and page number please.
The cox.zph function of the survival package computes the Schoenfeld residuals for each variable and tests the porportionality assumption with a score test, but I don't understand how it deals with factors with more than 2 levels since when the option terms is set to TRUE (by default) it computes a set of residuals for...
In an RCT, I want to find out whether the treatment (treatment vs control) has an effect on the uptake of aftercare (yes/no + time). I have five measurement points, which are not equidistant (i.e., baseline, 3 weeks, 6 weeks, 12 weeks and 24 weeks after randomization). There are some questions regarding the difference ...
In a binomial experiment, I have an estimate for the probability of 3 independent events A, B & C, each with a 95% confidence interval. (Trivial example values) P(A) = .12 (.05, .29) P(B) = .16 (.08, .25) P(C) = .06 (.02, .14) I need to calculate P (no event) = P (no A) * P (no B) * P (no C) which is (1 - P(A)) * (1 - ...
I'm conducting a Difference-in-Difference (DiD) analysis where I included clusters at the state level. To fulfill the crucial common trend assumption of DiD, I examined the pre-treatment period to see if there are parallel trends. I observed that the trends are not parallel. However, I believe that the non-parallelism ...
I'll illustrate what I want to do with a Poisson GLM first. I have a GLM with only factor co-variates, thus, to bootstrap this GLM what I can do is e.g. take a single random observation without the response, predict the response using my Poisson GLM, and get a value $\lambda$. Since this is Poisson, the predicted expec...
I understand Lemma 8 in Chapter 1 from Lehmann's Testing Statistical Hypotheses [or Lemma 2.7.2 in Lehmann and Romano] as follows: If the pdf of an exponential family is $$p_{\theta}(x)=\exp\bigg\{\big(\eta_1^\top(\theta),\eta_2^\top(\theta)\big)\big(T_1(x),T_2(x)\big)^\top-\xi(\theta)\bigg\}h(x),$$ then the pdf of $T_...
I'm going over past exam papers and there's a question on probability clusterin algorithms that I'm not really sure how to approach. It goes as follows: A probabilistic clustering algorithm based on a mixture of Student’s T distributions has been trained on a labelled dataset consisting of pairs of the form (x,c), wher...
Does scaling the instance weights impact the XGBoost ML Model training? The instance weights determine the importance of each data point during the training process. The XGBoost ML Model uses instance weights to multiply gradients in the learning process. I am reviewing the literature and can not find any relevant pape...
In a crossover- trial: Outcome: continuous: cholesterol level Factor 1: categorical: two levels: within subject repeated measure [treatment A (standard) and treatment B (new)]. So same subject received randomly A and B or B and A treatment in two sessions after considering a washout period. Factor 2: categorical: two l...
I am writing my thesis, and I am trying to test the relationship between transnational counterterrorism and state repression in countries of intervention. My independent variable is counterterrorism aid (continuous) and my dependent variable is human rights violations (ordinal). I have unbalanced panel data, where ther...
Suppose I have two groups of users, A and B. In case it is relevant, B is much smaller than A. I have a feature of products purchased across two groups. I want to find items whose popularity is different between the groups and ultimately classify group membership based off this for unlabelled data. Example: Suppose the...
(Full disclosure: I'm trained as a physicist, so maybe the answer to this question exists and I just need to be pointed in the right direction). I have been working with a material properties data set for several years now. The data comes in the form pass/fail binary data. A stimulus of varying (numerical) degrees is a...
Let $y_t = \Delta{p_t}$ denote a time series of asset log-returns, where $p_t$ are logarithmic prices; $y_t$ is generated by the conditionally heteroscedastic MA(1) process $y_t = \epsilon_t + \theta \epsilon_{t-1}$, where $\epsilon_t = \sqrt{h_t}z_t$ and $z_t\sim i.i.d N (0,1) $ with $|\theta|<1$, $h_t = \omega+\alph...
I am relatively new to statistics and dealing with a dataset where I’ve studied 3 different treatment groups on color change in bell peppers. I scored the bell peppers every day for one week based on their skin color (score 1, score 2…score 7) and wanted to see if there are differences in the treatment groups on any gi...
I want to classify diabetic retinopathy grades using SVM. I have 32 extracted features, and those features won't all be used in classification stage. Before entering feature selection, I want to clean the data to improve the correlation and classification accuracy. If i have normal and abnormal data, how do i find and ...
How should I do the p-value adjustment for several post hoc comparisions. Should I adjust them all at once. Or should I adjutment per comparsion. Suppose Anova-pvalue Pvalue:A1-A2 Pvalue:A1-A3 Pvalue:A2-A3 Colostrol: 0.04 0.1 0.03 0.02...
This may be a question of philosophy or metrology, but I'd like to know if there are any methods that are available to differentiate between variance that is caused by a true spread in the population and variance that is as result of imprecise measurements. Example: Imagine you have a population with a property of inte...
Let $X_1,X_2,\ldots,X_n$ be (iid) Random variables and define $Y_n:=\sum_{j=1}^na_jX_j$ with $a_j\in \mathbb{R}$, can we then say that the $a_jX_j$ are independent aswell. Can we express the MGF than in the following way $$M_{Y_n}(t)=\mathbb{E}(e^{t(a_1X_1+\ldots a_nX_n)})=\mathbb{E}(e^{ta_1X_1}\cdot\ldots\cdot e^{t a_...
I am currently using STATA to estimate ARDL. I am wondering if one can interpret the signs of the coefficient in the output? My question arises as they don't make much sense and if I estimate ECM the signs are opposite for some variables.
In the context of the Central Limit Theorem (CLT), which postulates that the distribution of sample means will approximate a normal distribution given a sufficiently large number of samples and sample size, how can we reconcile this with the following concept presented by Rowntree in "Statistics Without Tears"? He clai...
I've tried to research this question but have had to rely on answers to only somewhat similar scenarios which have led me in different directions. For example, I've been advised to calculate variance using the eigenvalues of the dissimilarity matrix, but elsewhere advised to use eigenvalues of the stress matrix. Can an...
I am creating virtual species distributions on a 100x100 grid (for now). Each layer of the grid represents one environmental variable. The "suitability function" defines the probability of a presence (and inversely, an absence) at a given point based on the value of each variable (grid layer). Stratified random samplin...
I am a bit confused regarding this issue. From my understanding the normal distribution and t distribution we look at the left tail for a one tail test and for the f and chi-squared we look at the right.
I have variable with a range (0;1). I want to do a transformation, so that later I can use this variable as a dependent variable in my multiple linear model. For example, can I use logit transformation? And if I use, what are my Linear model coefficients interpretation with that transformation? I want to transform, bec...
There is an interesting post about the connection of lagged exogenous variables and the autoregressive time series model: Forecasting - Lags vs. AR terms for Exogenous Variables Consequently, by using an ARIMA model (I assume that this not only holds for AR models) including a non-lagged exogenous variable you are able...
Im looking for the optimal time in which a process should be cancelled before it results on financial losses. Say M_n=X_n*Y_n-c(n) for for n =1 to 12 which is the number of hours the process gets going, and c(n) is the cost of the process on the n-th hour. c(n) is deterministic in nature as opposed to X_n, a positive ...
"Roughly equal" is ambiguous. My professor told me to use the cut off ratio of 1.5 to determine if my two sample sizes are roughly equal (i.e., n1 divided by n2) but I cannot find the citation. Can someone please tell who stated this? thanks in advance.
I'm building a model using the auto.arima function in R, and it gives the following output: arima(x = revtrend, order = c(2, 1, 2)) Coefficients: ar1 ar2 ma1 ma2 1.1894 -0.1975 0.4387 -0.5613 Can someone help me write this as an actual mathematical model? I believe I'm getting a bit lost in the notat...
Consider a random variable $V$ with variance $\sigma_V^2$. Since the covariance between a random variance and a constant is zero, I think, if $\sigma_V^2=0$, the covariance between $V$ and another random variable, say $U$, should be zero. That is, $\sigma_V^2=0 \implies \sigma_{VU}=0$ for any random variable $U$. I am ...
Sorry my calculus knowledge is extremely rusty - what is the reason that we can flip the bounds from $-\infty\to 0$ to $0\to\infty$ and then also flip the $x$ value to $-x$?
I am trying to find if the age and the sex influence the headache during the heatwaves. I tried to use mclogit::mclogit(Headache ~ Age+Sex, data=Headache) The levels for Headache are " No", "Yes, inside" and "Yes, outside". I changed those in 0 for "no", 1 for inside and -1 for outside. The error I get is "Error in h(...
I want to know an appropriate way to conduct a post-hoc power analysis for several glmer models built in R using the lme4 package. A reviewer asked for this. What I did: I used the R package simr which conducts power analyses for mixed-effects models using simulation. However, the resulting post-hoc power was around 9...
If three annotators, A, B, and C, label 180 data, In the middle of the labeling process, C is replaced with D, and A, B, and D label 200 data. Can it count and average for three labelers as whole 380 data with three annotators with Fleiss Kappa? How many annotators in the matrix for this case can calculate 380 data acc...
For the final inequality, could someone explain the intution behind the $M-(N-K)\leq x$? I am struggling to find an intuitive argument for this relationship. Like if we have $N=20$ balls and $M=15$ are red, then the difference between the number of red balls and the number of total balls that remain after choosing $K$...
I have a study. I have 150 AI-generated images and 150 human-generated images. I have created a survey where respondents are given 10 images randomized from these 300 images. For each picture, they are asked if they think it's human-generated or AI-generated. I want to see if there is a statistically significant differ...
When calculating the long run multiplier in a dynamic model (ARDL) (no cointegration found so not ECM) should the coefficients that are not statistically significant also be included?
I'm not able to found any website or textbook or scientific paper with the detailed derivation of of Multiplicative and Additive Holts & Winter triple exponential smoothing forecasting variance... Any help/reference would be greatly appreciated