instruction
stringlengths
9
38.7k
I did a mean differences test, the t-test gave me a p-value of 0.034 and a regression test gave me significant differences as well. But when I plot my data with a boxplot, I see that the medians are very similar between groups. Is my analysis correct or could I be wrong? Are there really differences between the groups ...
I am curious about the relationship between the arithmetic mean and the (generalized) mediant. I took $10^4$ samples (each of size $n=3$) of $\operatorname{Round}(X_i,\text{decimals}=3)$ where $X_i \sim \mathcal{N}(0,1)$ and are independent. For each sample I computed the arithmetic mean and the (generalized) mediant, ...
If the p-value suggests significance, can the test statistic give any more information? I.e., can you use the test statistic to tell if some of the significance is more significant than other parts? I ran Mann-Whitney U tests and these U's are, overall, far higher than any other U's in my analysis, even for other tests...
I am conducting both constrained and unconstrained analyses on the same species abundance data. For the constrained ordination, I ran the RDA (redundancy analysis) on log x+1 and hellinger transformed species abundance data. For the unconstrained ordination, I am using NMDS. I initially did the nmds using raw (non tran...
I'm new to statistics and probability, and I'm dealing with a question about the Poisson distribution. The following is given : The question is what is the statistical model, and this is the answer for the question: I dont have the full solution so I'm having some trouble trying to make sense of this. Why is this the...
Can we say that the weight vectors are the representations of the data samples that is being used to train the Self-Organizing Maps?
I'm trying to clear up the calculation of the gradient and Hessian of a loss function in an article that I am currently reading. The loss function is given by $$\ell(\beta)=\sum_{i=1}^{N} e^{-y_{i}{{x}}^{\top}_{i} \beta}$$ where $x$, $\beta$ are vectors of the same length, say $p \times 1$ and $y_{i}=\pm 1$ Now, let $X...
TL;DR: Models with nested categorical factors in Statsmodels lead to singular matrices and incorrect results. I am trying to specify a nested model in the Python Statsmodels formula API to describe the following simple dataset from Rasch (2019) 1 A1 A1 A1 A1 A2 A2 A2 A2 A3 A3 A3 A3 B11 B12 B13 B14 B21 B22 B23 B...
I am trying to find a good method to test the null hypothesis(H0) on two unpaired samples. Those samples come from two different HTTP Servers and the unit I'm using is req/30s (requests concluded in 30 seconds). Even a well-established server is expected to have a standard deviation of 50 requests. I have tried to use ...
In the book All of Statistics by Larry Wesserman, the author says "Let $X$ be a random variable and let $\mathcal{X}$ be the range of $X$. We test a hypothesis by finding an appropriate subset of outcomes $R \subset \mathcal{X}$ called the rejection region". Then the author proceeds to say that $X \in R \Rightarrow$ re...
I would like to have a clear understanding of what exactly is a likelihood function in Bayes' Theorem, and why isn't considered a probability. As well as the distinction between the likelihood in discrete and continuous distribution. Bayes' Theorem: $$ P(m|D) = \frac{P(D|m)*P(m)}{P(D)} $$ Where m is the parameters of t...
I have an ordinal dependent variable, named A (small, medium, big) and independent continuous variables (C, C1, C2 and C3) highly correlated between each other. For example the sum of the variables C1, C2 and C3 is equal to variable C. Also, when C1 increases, either C2 or C3 will decrease or vice versa. Can I perform ...
If my mean has a measurement uncertainty, is it necessary to add that onto the confidence interval? Since the equation for confidence interval is x±ts/√n.
Help calculating Inter-rater reliability in a complex online survey (free text). The questions are free text. We have now coded the potential answers. Examples: 1.) Hobbies (Time in nature, mind-body practices, arts) 2.) Expectations about 5-MeO-DMT ceremony (Psychedelic experience, feeling oneness with others, relief ...
I want to run a simulation where I determine what the optimal number of samples are to derive a reliable estimate. Suppose I conducted a pilot experiment where I measured the average of user ratings for different products. For each product I collected data from 20 users. Now I want to run a simulation where I determine...
I'm learning 2 way layout ANOVA. $$ X_{ijk} = \mu + \alpha_i + \beta_j + \gamma_{ij} + u\\ u \sim \mathcal{N}(0,\sigma^2) $$ The total sum of squares can be decomposed as followings ($*$-index indicates the average about itself). $$ \sum_{ijk} (X_{ijk} - X_{***})^2\\ = \sum_{ijk} (X_{ijk}-X_{ij*})^2 + (X_{i**}-X_{***})...
I am running some Monte Carlo Simulations on Matlab. I am wondering if running more Monte Carlo Simulation trials and taking the average value of these trials is the same as running a single trial with the same total number of samples? E.g. Running 10 trials with 10,000 samples in each trial and taking the mean of the ...
I need to predict ED50 at the inflection point and ED50 at 50%. I am not sure the ED50 (intercept) value calculated by the R library 'drc' is ED50 at the inflection point and ED50 at 50%. Can someone explain what is the difference between both, and how to calculate the other parameter since one of them is predicted by ...
I selected the p,q order for ARMA model based on AIC. The AIC suggests that the best order is ARMA(5,5). Although the coefficient is significant for AR 5 it is not significant for AR 1 and AR3 in the mean equation. Is this normal or should I change the order?
Someone: "To study causality, you need some exogenous variation, that moves the system" I wonder why we need the exogenous variation. What's this exogenous variation? I totally forget everything about econometrics, gradually picking it up now. May I have some intuition behind the relationship between the proof of causa...
Suppose that we conduct a simulation study, and the model that generated the data is the following Gaussian Mixture Model. $$f(x)=\pi_{1}N(x;\mu_{1},\sigma_{1}^{2})+\pi_{2}N(x;\mu_{2},\sigma_{2}^{2})+\pi_{3}N(x;\mu_{3},\sigma_{3}^{2})$$ Now, in order to estimate the parameters $\left \{ \pi_{i} \right \}_{i=1}^{3},\lef...
Assume I have a model (linear regression, neural network, etc) in the form $g(\theta)$ and I assume that my data is generated according to $f(x; g(\theta))$ (eg $f$ is the pdf of a normal Gaussian random variable and I am parametrizing the mean $g(\theta)$ with my model). I then optimize my model by maximizing the log...
I'm working on a fairly large dataset (5e5 samples in a 22 dimensional space); I'm reducing the dimensionality of this dataset with PCA. Since a lot of variables are cross-correlated, I group the variables that are highly correlated and then I collapse them in one variable by projecting them on thier first PC [1]. I wa...
The question Is it possible to justify the use of regression diagnostics such as F-tests or the AIC for the analysis of deterministic computer experiments? Background One way to analyse computer experiments is by building surrogate models. The unknown function $f$ is approximated by a nice and explicitly known function...
I already learned the basic model of LSTM, for example, layers, cell state, gates, and so on. However, I am still slightly confused about how the whole thing is done; I want to simulate LSTM step-by-step by hand calculation, like Neural Networks from Scratch by sentex. Is it possible for me to do it? If yes, is there a...
I have a hard time to understand why a error term is included when you split a regression equation into n equations (see below). Lets assume this simple series. Which refers to salary and house price in four regions with data from one household in each region. Which will look like this if you draw a trend line. Here, ...
I have tried hard but cannot solve the below exercise. Any extra hint or solution will be appreciated! Given the below stationary series: \begin{align*} y_t=\frac{L-\phi}{1-\phi L}\varepsilon_t, \end{align*} where $L$ is the lag operator, $|\phi|<1$ and $\varepsilon_t\sim WN(0, \sigma^2)$. If we know $y_t$ is a ARMA($p...
I have a dataset of online Reddit posts for unemployed individuals in two neighboring U.S. states, where unemployed workers in a given state received higher unemployment insurance UI benefits than the other (i.e. my treatment variable), and I am trying to test if receiving higher UI benefits causally correlated with mo...
I am having difficulty clarifying in my mind how item intercepts in Confirmatory Factor Analysis or SEM manifest, and how they are graphically represented in an IRT ICC plot. I understand that multi-group CFA for polytomous variables is mathematically equivalent to an IRT graded response model. Crucially, I would like ...
In the paper Extreme value theory based on the r largest annual events (page 32), the idea is that he wants to fit the Gumbel distribution using a dataset. In this dataset, we have the largest ten values. He wants to compare if we will get a better estimate of the parameters in Gumbel using the ten largest values than...
For example, say it is rare that your roommate eats cereal, however, one day you see an empty bowl with milk stain and later in the day you saw some cereal crumbs. You now conclude that most likely your roommate ate cereal. But the question is can you now say well its "bayesian-like" given the new observations?
I am training a neural network for multiclass classification. I want to combine a custom loss function with another more generic loss. I've been simply adding it, and it works quite well but towards the end the though the custom loss is weighted more heavily because it has a bigger magnitude. I've done something like l...
I'm trying to perform a Two-sample McNemar's test on my data, but I was not able two find any R package implementing the method. I'm familiar with the simple McNemar's test function mcnemar.test(), but it's not sufficient for what I'm trying to do. The Two-sample version of the test is described here : Feuer, Eric J., ...
I have a dataset where the dependent variable is a success probability ranging from 0 to 1. I cannot use the regular linear regression to model because linear regression does not restrict the output range. One idea I come up with is using logit function to map it into real number sets, but I do not know whether it is a...
I have data about 40 stores described by 50+ continuous variables in terms of customer behaviour (types of purchases, demographic attributes, etc). I want to build a simple regression model to explain the profitability of stores based on what we know about the rest. So I: Removed variables with many missing values Rem...
It is not totally clear to me what are the relationships between Pearl, Rubin and Lewis causal models and their philosophy/view of events. Can anybody please explain them to me?
I want to run a regression analysis where my dependent variable is the number of cars registered and my independent variable is the percentage discount given. I am not sure how to use a percentage discount as an IV? Do I just use the percentage as it is, eg. 35% would be 0.35 or is there another way to do this? It woul...
In the Metropolis-Hastings algorithm, acceptance probability is given as $$ \alpha = \min \left( 1,\frac{f(\theta^{'}|y)q(\theta|\theta^{'})}{f(\theta|y)q(\theta^{'}|\theta)} \right) $$ which simplifies to $$ \alpha = \min \left( 1,\frac{f(y|\theta^{'})f(\theta^{'}) q(\theta|\theta^{'})}{f(y|\theta)f(\theta) q(\theta^{...
Hello I have a problem interpreting the results of my mediation analysis (Baron and Kenny) Path a between my IV (X) and M is positive and significant. Path b between my Mediator and DP(Y) is also positive and significant. Path c, the direct path between my IV(X) and DP(Y) is negative and significant. Now when I add my ...
the subject of my problem is related to cluster analysis. Specifically, with SPSS I am conducting a cross-validation procedure based on splitting the sample data into two independent halves (subsample 1 and subsample 2) of an original sample of cases. In the first half (subsample 1), I performed a hierarchical cluster ...
When reporting a positive correlation, I typically see things worded in the positive sense of the term... For example, for a positive correlation between eating vegetables and health outcomes you typically read something like: eating more vegetables was linked to better health outcomes. But would it be just as fine to ...
I am studying the maximal likelihood method to get the estimators. I read the following sentence and I am confused about that The standard deviation of the sampling distribution of estimator $\hat{\theta}$ is called the standard error denoted by $se(\hat{\theta})$. Since this measures the extent of variability in the ...
I have to estimate conversion rate of visitors of a website for the next day. The forecasted value has several input parameters: Website is Weekend/Workday (Yes, No), Month (1-12) Week of the year (1-52) I have historical data in a table like this Website Weekend/Workday Month Week of the year Clicks Orders Conve...
When building a multiple regression model with categorical interacting terms, not all combinations of categorical interactions are shown in model output. This occurs because these terms drop out. Say we have the following multiple linear regression model with the from the iris dataset in R: $y = \alpha + \beta_1X_1 + \...
I am reading Generalized Additive Models by Simon N. Wood. I do not have a very strong formal background in maths and statistics, so this question might be too trivial. However, I am well versed in R. I just finished the first chapter of Simple Linear Models and started with the exercise to grasp things well. In one of...
Consider I have a regression model and I want to identify predictor variables that have a significant effect on my dependent variable. (or improve the fit). I can fit a model with all parameters and do a stepwise backward elimination based on AIC, BIC, Ftest, or else or do LASSO. No matter what, I obtain a model with r...
Currently reviewing some problems in my ML class, and I came across this problem: You estimate a ridge regression model with some data taken from your robot, and find (using cross validation) and optimal ridge penalty $\lambda_1$. You then buy a new sensor which has noise with $1/4$ the variance (half the standard dev...
I'm looking to run regularized negative binomial regression over my data. I'm currently working in R using glmregNB (page 34 here) and am able to fit a model, but I'm not quite sure how to interpret the output. The model tries 100 different values for lambda (the penalty weight term, if I'm not mistaken), but how shoul...
In my main analysis, I observed that people had better overall performance (0=failed, 1=success) in the manipulation condition than in the control condition. This was a within-subjects design. This was the model I used: fit <- glmer(performance~condition + (1|id), data = df, family=binomial()) In the descriptive analy...
As a toy example, I have measurements from a sample of classes, measuring the proportion of black students in those classes. I wish to compare this to the proportion of black children in the US to determine whether classes tend to have a greater or lesser proportion of black students than would be expected from their p...
I feel bad asking for help without a specific understanding. My dataset is to understand how medication(n=10) and genome (in the form of mutations, n=40)affects the subject's depression (in the form of a HAMD score) My dataset is in the form of n patients where the patient has x number of biweekly records. Each record ...
I am using wireless data(I-Q data) to do regression task, and I just use the amplitude of that data as input. The backbone of the network is 1 Conv-BN-RELU layer, 4 ResNet Blocks and a fully connection layer, the loss is smooth-L1 loss. But the network's train loss and validation loss become very low and the loss at th...
I recently learned about DAG-Directed Acyclic Graphs while reading econometrics-related papers. So far, I am used to Structural Equation Modeling for Psychology and Education studies, and DAG looks very similar to the path model analysis, like a structural model without a measurement model. When I searched the differen...
Hello. Can anyone help me with interpreting these plots? I would like to know what assumptions of the linear model are not being met and what method should be used to fix the problems. I think there is a problem with heteroscedasticity? Not sure about linearity either. Thank you!
Say I have a dummy variable $X$ (e.g., gender) and that units are divided into groups. I want to compute the average value of $X$ in each group. To achieve this, we can estimate the following linear model via OLS: $X_i = \sum_{g = 1}^G Group_{i, g} \, \beta_g + \epsilon $ with $Group_{i, g}$ a dummy variable equal to o...
In most CNN guides max pooling is explained and it is just mentioned that also average pooling exists. Why is max pooling preferred over average pooling? Average (or even median) seems to make more sense to me?
I would like to compare the evolution of scores on a math test between two groups in a longitudinal manner. I have a panel of students that we tested in June, at the end of the year, and then in September, at the beginning of the school year. I am trying to find out if the vacations have a differential effect according...
I have the same features and target variable in different countries (features are the same but the values are different). I would like to select the best features with the constrain that they are the same in all groups(countries in my case). I wanted to use Lasso for that but I don't see how I can force it give the sam...
I am reading about the reparameterization trick from here. It states $\boldsymbol{\epsilon}\sim p(\boldsymbol{\epsilon})$, $\textbf{z}=g_\theta(\boldsymbol{\epsilon},\textbf{x})$, and $$\mathbb{E}_{p_\theta(\textbf{z})}[f(\textbf{z}^{(i)})] = \mathbb{E}_{p(\boldsymbol{\epsilon})}[f(g_\theta(\boldsymbol{\epsilon},\textb...
I need to compute the distance between two continuous distributions. However, I have no idea as to what kind of distributions they are. I have a discrete approximation of the distributions. That is, the support is divided into multiple bins and the area of the pdf corresponding to each bin is given. Thus, the values I ...
Dear StackExchange Community, I am working on the codes by https://rpubs.com/rsayed/573439 to "measure the volatility spillovers and connectedness" using Diebold-Yilmaz Methodology (https://github.com/rhameysayed/Spillovers-and-Connectedness/blob/master/Connected__Spillover.Rmd). QUESTION But I am facing a problem with...
In my thesis I want to compare the frequentist and bayesian approach, specifically in doing a multinomial logistic regression. I have had only a few lectures on Bayesian statistics during my bachelors, so I have watched lectures and read a lot of stuff in order to better comprehend this approach to statistics. I have a...
I have some count data, and have used poisson regression to estimate the time trend. An intervention is implemented at a certain time, and I have allowed a step-change and a change-in-slope at this time. I am trying to work out how to report the size of the step-change. Here is some example data (this is R code): d <- ...
I'm working through the Regression and Other Stories (ROS) textbook and it's not clear to me how Gelman etal. would like a reader to answer question 4.3 (which I summarize below): Two basketball shooters. Shooter A has an accuracy of 30% while shooter B has an accuracy of 40%. They each take 20 shots. What is the prob...
I am working with a type 3 ANOVA + lsmeans. I was wondering why sometimes the standard error of all factor levels have the same value? This is my dataset. var, SW, trt are my factors. RG is my metric y-variable. trialdata<-structure(list(var = c("A", "A", "A", "A", "A", "A", "A", "A", "A", "B", ...
I am trying to pre-process data following a statement in a paper. They said for the normalization, each dataset is normalized on a per channel basis with a sample range from -1 to 1 and a mean value of zero. $X_{rescaled} = a+(b-a)\frac{X - min(X)}{max(X)-min(X)}$, following this, it can rescale data $X$ into an arbi...
This question is inspired by the discussion here. The background is that often point null hypotheses like $\mu=0$ are tested, $\mu$ being some effect of interest in some suitably parametrised model, and people argue that in reality $\mu=0$ precisely will often not occur, but in terms of interpretation $|\mu|\le\epsilon...
I need to analyze some data derived from an experiment in which I'm comparing two groups (independent factor) at three different time points (first repeated level) but, for each of these time points I'm measure time bins (5 bins per time point). So, in other words I have two levels of repeated measures. How can I analy...
Suppose we want to tune the hyperparameters of an algorithm. We perform $k$-fold cross validation and we found the optimal hyperparameter values, lets say $p^*$. Nevertheless, we don't have a separate test. Can we report the average error from folds as an estimate of the generalization error? Based on this Question we ...
I've got sample data of the prevalence of a certain characteristic in two different groups, with prevalence in group 1 being 65% and prevalence in group 2 40%: # Generate data where the presence of the characteristic is higher in group 1 compared to group 2. group_1 <- data.frame(id=as.numeric(1:100), ...
I have two feature extraction pipelines giving the same features but with different distributions. To make it simple, it's like we have two types of cameras. We train the model on data coming from the first camera and want to deploy it on the second one. How can we transform images from second camera so they maych the ...
I'm reading about VQ-VAE, and trying to understand the commitment loss $\beta||z_e(x) - sg(e)||^2$, described in the following sentence: Finally, since the volume of the embedding space is dimensionless, it can grow arbitrarily if the embeddings $e_i$ do not train as fast as the encoder parameters. To make sure the en...
I'm currently working on an ensemble of 5 differently trained networks using MinkLoc3D v2 as base-net. I'm currently investigating the reason for lousy recall when I compare the extracted database embedding using one network (trained for example with seed 42) and the extracted query embedding using one network (trained...
If we have an underpowered study but manage to reject the null hypothesis, anyway, it makes sense to wonder if we have overestimated the effect size. However, such a concern seems unwarranted if we use an unbiased estimator of the effect size (such as $\bar X_1-\bar X_2$ to estimate $\mu_1-\mu_2$). At the same time, th...
If I have a data sample in the form of a matrix $X$ of dimensions $n \times m$, is there a standard procedure to optimally pick $n'$ rows ($n'$ fixed) of the matrix $X$ so that $C_{X'}$, the correlation matrix of the resulting matrix $X'$ of dimensions $n' \times m$, is the closest to the identity matrix? I am relative...
In brief, I am used to a definition of the P-value as: the probability of observing our sample data (or something more extreme) if the null hypothesis is true. Consequently, seeing null hypotheses of the form $$ H_0 \ : \ \theta \ge \theta^* $$ (or some variation with an equality statement). Recently, however, I encoun...
Data Here is the data I am using, which records my coffee consumption and productivity habits by day: work <- structure(list(Coffee_Cups = c(3L, 0L, 2L, 6L, 4L, 5L, 3L, 3L, 2L, 2L, 3L, 1L, 1L, 3L, 2L, 2L, 0L, 1L, 1L, 4L, 4L, 3L, 0L, 1L, 3L, 0L, 0L, 0L, 0L, 2L, 0L, 1L, 2L, 3L, 2L, 2L, 4L, 3L, 6L, 6L, 3L, 4L, 6L, 8L, ...
So, I wanted to cook up a statistic that was similar to the Wasserstein metric for finite sized samples from distributions on a continuous support that is also invariant to reparameterization of the 1-d support space. I'm familiar with the KS test (and its drawbacks), and aware of the Anderson-Darling and Cramér-von Mi...
fairly new to data science in python, looking for some help. If I have an array of ones and zeros, which is roughly say 1000 elements zero then 1000 elements one and so on, and an array of time data corresponding to the ones and zeros in ms. How would i calculate the average frequency of the pulses using python? but wh...
I am trying to give some theoretical foundations to the intuitive idea that three branches of mathematics are indeed tightly connected, specifically: clustering, graph-theory and principal components. I would like to post this as a very open question, without commenting too much on why I believe these fields are connec...
I came across this page and was surprised and confused by the following: A naive person attempting to do a bootstrap test just calculates a P-value as something like mean(tstat.star > tstat.hat) where tstat.hat is the value of the test statistic calculated for the actual data and tstat.star is a vector of values of th...
I am analyzing a RNAseq experiment constituted of 5 different groups of alcohol drinking mice: non drinkers, low drinkers, high-resistant, high-sensitive and water control. My ultimate goal is to identify genes changed specifically in one of the conditions (genes changed only in non drinkers, only in low drinkers, only...
I have been learning about standard methods in Statistics such as the Pearson's Correlation Coefficient, Spearman's Correlation and Kendall's Tau. My understanding of this so far is that: Pearson Correlation Coefficient measures the linear correlation between two sets of data Spearman's Correlation measures the "mono...
Suppose I have some data that includes height and weight measurements for 1000 people - I am interested in calculating the Correlation Coefficient to see if there exists some correlation between height and weight, and if this correlation is statistically significant. I was curious in learning more about how the Confide...
Most procedures I found use only one proportion per study. But all the studies I am analyzing have within-subject designs. They compare the proportion of successes in the manipulation with the proportion of successes in the control condition. All sample sizes are known. The meta-analysis method for dichotomous models a...
I read this question somewhere(one statement is apparently false) and all four seem to be TRUE to me. What am I missing? What statement is FALSE? (Sharing my thoughts below the statements) Bagging is used with Decision Trees (This seems obviously True) Bagging creates random subsamples from the whole dataset with rep...
Given independent random variables $X,Y$, and $M=\min(X,Y)$, what is $E(XM\mid Y=M)$ ? The specific case I'm working on is assuming $X$ and $Y$ are exponential random variables with mean $\theta_X$ and $\theta_Y$. I'm curious about what is the general formula for any random variable?
A few questions about the discrete-time voter model, described in the following way. Let $\Lambda = \{1, \dots , L\}^d \subset \mathbb{Z}^d$, and let $(I_n)_{n\in\mathbb{N}}$ and $( N_n)_{n\in\mathbb{N}}$ be i.i.d random variables uniformly distributed on $\Lambda$ and the set $\mathcal{N} := \{i \in \mathbb{Z}^d : |i|...
I am looking for a diagram of stochastic processes like the Univariate Distribution Relationship Chart Maybe someone know a visualisation of a relationship between families of stochastic processes ?
I am modeling a dependent variable which has significantly different distributions when grouped by various independent variables. Consequently, it is difficult to compare previous values of the dependent variable, because they may have been in different groups. I am trying to standardize the dependent variable by these...
Sorry if this question sounds very amateurish, but I am completely new to R and this website. So, I have a data set with counts of infected organisms as a response variable (for three different species) and 5 different predictor variables. The infected organism count data is from over 200 surveys where they did not col...
I need to calculate the sample size for a retrospective, cross sectional study. The outcome variable is fear of cancer recurrence and has 3 categories (normal, mild, significant). There are two groups (treatment vs no treatment). I want to conduct a 3x2 chi square. There is very little existing data on this population ...
I have always wondered - how confident do researchers tend to be in their "prior" information when deciding to create statistical models using a Bayesian Approach vs. a Frequentist Approach? As an example : Suppose a team of researchers has some data relating to the healthcare industry - let's say that they are interes...
In many classification problems, the cost of a FP is different from the cost of a FN. In spam detection, a FP (a regular email classified as spam) should have a high cost. In cancer prediction, a FN (a cancer goes undetected) should have a high cost. In spam detection for example, the cost of a FP is high so a natural ...
The number of registered users 1 group= 5873, the number of returned in 1 day=1887. The number of registered users 1 group= 6520, the number of returned in 1 day=1794. Is it possible to say with confidence that the retention of group 1 is higher than the 2? What statistical test can be used to prove this
My goal is to show that t-GAS is better than t-GARCH, so I am trying to analyze some data about Crude Oil volatility comparing these models with functions in R packages (GAS and rugarch). After estimation, values of AIC, BIC, LL are better in GARCH. How can I resolve it? Thank you!
The binomial probability, for one flip of $n$ unfair coins with probability-of-heads $p_u$, of flipping $r$ heads $$B(n, r, p) = C(n, r) \ p^r \ (q = 1 - p)^{n - r}$$
I came across a figure saying that the distance from mean-sd to mean+sd in a normal distribution has 68.2% of the elements. How can we demonstrate that mathematically?
I am learning the Cox model following following helpful advice from Therneau, Crowson and Atkinson. I am having some trouble interpreting the hazard ratios. In the "Using Time Dependent Covariates and Time Dependent Coefficients in the Cox Mode", a flexible fit by using nature spline was set as the time-transform funct...
I am doing a project where I want to forecast prices for the next day based on some lagged values of the price. When I read about how to implement this (in Python) what I find it that they use a training data set, fit the model, and then use these parameters to forecast a test data set. For example: #first until n-5 ob...