instruction
stringlengths
9
38.7k
I'd like to model the optimal quantile regression curves of probabilities as function of xa, using qgam ideally (mgcv-based R package), but not necessarily: Data: dat <- structure(list(prob = c(0.043824528975438, 0.0743831343145038, 0.0444802301649798, 0.0184204002808217, 0.012747152819121, 0.109320069103749, 0.86863...
I feel like this question has been asked a billion times but none of the answers I read seem to fit my situation, so sorry if it's redundant and I missed it ! Here's my situation : I have 2 non-paired groups, A and B 13 individuals each Continuous variable Normal distribution (based on shapiro test) I want to compare...
The way I see it, is that since samples and features are chosen randomly, there is a chance, small as it may seem, that at the end of it all, some samples and some features might end up not being used at all, and some might be used a lot more than others, on average, which can lead to skewed and biased final results. D...
I'm studying simulation and in particular uncertainty in survival curve estimates, by drawing from a distribution of parameters (for the Weibull distribution), using the variance-covariance matrix from the MASS package. In response to post How to generate simulation paths for Weibull distribution in R?, I've come up wi...
By Chebyshev's inequality it is known that $$\mathbb{P}\left(|X-\mu|<k\sigma\right) \geq 1-\frac{1}{k^2}\,.$$ Then does it follow that $$\mathbb{P}\left((\mu-k\sigma)^2 \leq X^2 \leq (\mu +k\sigma)^2\right) \geq 1-\frac{1}{k^2}$$ assuming $\mu > k\sigma$?
On wikipedia, the definition of a martingale is given as follows: A basic definition of a discrete-time martingale is a discrete-time stochastic process (i.e., a sequence of random variables) $X_1, X_2, X_3,\dots$ that satisfies for any time $n$, $$\mathbb{E}(|X_n|) < \infty$$ $$\mathbb{E}(X_{n+1}\mid X_1\dots,X_n) = ...
For testing distributions existing in base R, say normal or beta distributions, is there any difference if I use a one-sampled or two-sampled Kolmogorov-Smirnov test with same parameters? For example: ks.test(x, "pbeta", shape1, shape2) Or ks.test(x, rbeta(n, shape1, shape2) Of course, with n being big enough, and in m...
I've been trying to understand how to properly conduct a glmer model but I've come across so much contradictory information, I'm hoping someone could help me out. What exactly are the assumptions of my glmer model? What functions and packages do you recommend for testing them? Can I still test the assumptions if my mo...
I am trying to develop an app to help users find the best money for the value of cars based on the real price of car ownership, which is a sum of depreciation, gas consumption, maintenance, and insurance. I need to convert depreciation prices into an equation. The depreciation equation is not linear and may have severa...
I have data on every species in a genus, and am interested in how two factors relate to each other specifically within that genus. Should I use a statistical test to do this or does it not make sense? I'm thinking it doesn't make sense, because the point of a (NHST) statistical test is to see how confident you can be t...
In the seminal paper by Tanner and Wong (1987) on data augmentation, they describe a method for obtaining the posterior distribution $p(\theta|y)$ by data augmentation. Let $Z$ be a latent variable (which will be the augmenting data) so that the posterior distribution $p(\theta|z,y)$ is tractable. Suppose for simplicit...
I'm coming from here and here. I kind of understand what it does running PCA before LDA. However I don't really understand what I have to perform LDA. In the correlation matrix? Here I have all variables centered and scaled and ready to be "weighted" predictors Which would be the steps to follow?
I have a question in which I am given the expected results for a weighted lottery in conditional probabilities (based on gender and race different tickets in the lottery), I also have the actual conditional probabilities calculated from the lottery data. How would i conduct a hypothesis test to see if the lottery is ri...
I have two main questions - but I'll give a brief background first. I've run a mediation logistic regression using Hayes Process macro (v4.3), model 4. It's a parallel mediation, with a categorical IV and 4 mediators. My IV is family type (single parent, social care, multigenerational, etc.), with 'both biological pare...
So I am trying to solve a risk problem using Monte Carlo and the inverse normal. After doing 5000 simulations of invNorm$(x,\mu,\sigma)$ where $x$ is a random number from 0 to 1. And then I count to see how many of those 5000 simulations are less than or equal to a requirement of .95 to get a risk score. The thing I am...
I am sorry I do not have the right terminology to ask as clearly as I would like. I have three datasets of biomes. Each gives a biome by latitude and longitude (3 biome maps converted to tables). The biome scheme used in each one is the same so they are comparable i.e. biome 1 means the same thing in every dataset. The...
I provide you with a small example in which the response variable takes discrete values. There are no covariates, and no different categories (just one, treatment group) The idea is to observe if one treatment is performing effect through a scale (response variable). All participants are in the treatment group. Does it...
I am seeing a Forest Plot presentation of the data in a meta-analysis. But the standard deviation for the final "weighted mean difference" is missing. I am wondering if it is possible to calculate the standard deviation of it. So that I can use this SD value in G power to estimate the sample size. The meta-analysis pap...
I have three contingency tables with the variables month and region that contain the frequency of the sighting of a particular bird. Additionally, the tables differ only by counting frequencies from different years. I am looking for a way to see if there is a significant change in the frequencies between the tables. A ...
So I’m working on a monitoring model and could use some input on what sort of statistical method would be suitable for this particular case. Imagine you are a financial institution with corporate customers transferring and receiving money to/from countries all over the world. You want to be alerted when customers diver...
My banking app provides some predictive analysis on what upcoming bills I have. This got me thinking on how the bank does this analysis. Is it possible to use fourier analysis with my transaction history as input, to identify recurring transactions and predict upcoming bills? If so, could someone provide an example in ...
We know the result that the OLS estimator with measurement error under the Classical Measurement Error (CEV) assumption is biased and inconsistent, and you can write down the probability limit of $\hat{\beta}_{OLS}$. But what is the distribution of this biased and inconsistent OLS estimator? I compute and obtain the as...
My problem: I have a fixed, imbalanced, case-control cohort where I am using two (2) low occurrence predictors (rare variants) to try to find an association between the predictors and disease. I will be doing this on a gene-by-gene basis, but want to figure out the minimum amount of the predictor counts I should see to...
Main questions I'm using conditional logistic regression for a resource selection function (RSF) in an ecology study (more details below). I have no trouble implementing the code but I'm having difficulty grasping what the fitted values represent and how I can ultimately calculate probability of an event for given cond...
I want to find the Wold representation of $y_t = e_t + \alpha e_{t-1} e_{t-2}$, but I'm having difficulties with the product. For instance, I tried: $$ y_t = e_t + \alpha e_{t-1}e_{t-2} \pm e_{t-1}^2 \pm \frac{\alpha^2}{4}e_{t-2}^2 = e_t - e_{t-1}^2 - \frac{\alpha^2}{4}e_{t-2}^2 + \left(e_{t-1}+\frac{\alpha}{2}e_{t-2}...
Is there any non linear dimensionality reduction algorithm that returns a projection matrix $W$, such as Kernel PCA and Kernel LDA does? The projection matrix $W$ can be a non linear transformation matrix. My goal is to find a method that don't have any optimization requirements when projecting data onto a new dimensio...
I am starting to learn more advanced statistics and I have come across this problem: Find the Maximum likelihood estimator of $\theta$ if $X_i$ have the following density: $f(x-\theta)$ with $f(x-\theta)=\frac{e^{\frac{-|x-\theta|}{2}}}{2\sqrt{2\pi|x-\theta|}}$ I have tried to differentiate the log but cannot find wher...
Consider a stochastic process $\left( x_t \right)_{t \in \mathbb{R}}$ with auto-covariance function $k(t, t') = \mathbb{E}[(x_t - \mu_t) (x_{t'} - \mu_{t'})]$ where $\mu_{t} = \mathbb{E}[x_t]$. Suppose $k(t, t)$ is constant, meaning that the variance of the process is stationary. What is such a process called? Note tha...
I have a list of coordinates for where different people live over an eight-year period. They are repeat cross-sections of populations served by several county agencies for free workforce training for low income populations. We suspect (and basically know) that, as the city has gotten more expensive and gentrified, lowe...
Suppose I have the model \begin{align*} Y_i \sim \text{Poisson}(e^{\beta_0 + \beta_1t_i + \beta_2X_i + \beta_3 t'_i}) \end{align*} where $\boldsymbol{\beta} = (-1, 0, -10, 0)$ for $t_i = i$ for $i = 1, \cdots, 100$, $X_i = \mathbb{I}(t_i \ge 60)$, and $t_i' = \max(0, t_i - 60)$. You can imagine a scenario where we are ...
I know that Khinchin's Law is for sample mean: $$\overline X_n=\cfrac 1n\sum_{i=1}^{n}{X_i}$$ $$\lim _{n \rightarrow \infty} \operatorname{Pr}\{\left|\overline{X}_n-\mu\right|<\varepsilon\}=1$$ How to get a law for sample variance: $$S^2_n=\cfrac{1}{n-1}\sum_{i=1}^{n}(X_i-\overline X_n)^2=\cfrac{1}{n-1}(\sum_{i=1}^{n}X...
I'm interested in performing a Bayesian meta-analysis, specifically, using a random-effects hierarchical model (as described here). Briefly, in this model we assume that the $k$th study's reported (observed) effect size $\hat{\theta}_k$ is an estimate of that study's true effect size $\theta_k$. Further, all $\theta_k$...
My general understanding of particle filters is that you represent your state as a collection of discrete particles which you then transform using your state propagation equation. What I don't understand is why you re-sample the particles after propagation? Isn't the whole point to accurately track the distribution? Se...
I have conducted OLS with interaction terms in R and used emmeans package to examine further. I am not sure whether I am on the right track to interpret the interaction terms. My research question: Does depression moderate the association between abuse and delinquency? Hypothesis: Abuse experience will have a greater ...
I know there is similar question related this topic but I still cannt solve my case. So, I have one year data (365 days) of car request. I did 80%(+-280days) for train, and rest for test data. And, I make prediction with ARIMA. Arima_model=sm.tsa.arima.ARIMA(train_df,order=(0,0,0)) result=Arima_model.fit() future_dates...
Suppose I want to learn about a random variable $X$ (e.g., whether the subject is infected with Covid). I have already accessed a random variable $Y$ (e.g., an antigen test), which can help me partially learn about $X$. Now I would like to know given $Y$, how much another random variable $Z$ (e.g., nucleic acid test) c...
I have a data set for observations of life stages of red seaweed with the surface area (mm2) taken on day 1 - 8, 10 and 14 (n = 10). Each life stage has been assigned a number 1 - 5 for a life stage and 8 for death. Culture vessel - petri dish had 10 identified and then tracked. 2D surface area measured and life stage...
I'm reading this book, "Unperturbed by volatility", by Adel Osseiran and Florent Segonne and it says the following: Then, if we assume that individual volatilities (sigma) and correlations (rho) are the same for all assets (and pairs), then the volatility of a portfolio N equally weighted assets is sigma_N = sigma * S...
Let's say I have a classification model to be trained and a relatively small dataset. The data is splited in k-folds (eg. k=5), in such a way that: A, B and C are used for training, D for testing and the trained model is evaluated on E. B, C and D are used for training, E for testing and the trained model is evaluated...
I am trying to use ARIMA for hotel reservation. I have data for a year each day and I want to make predictions. But, my result is very poor I wonder why. Here I attach my data And, this is how I run my model I got that the best order parameter is 212. with AIC score 3460.847 *I also wonder why its so high. And, this ...
I have a few questions regarding ranked data and hypothesis testing. Hypothesis: Car drivers are more likely to consider the car as the most beneficial transportation method for mental health than other transport method users'. Respondents were asked to rank 4 transport methods from least (1) to most (4) beneficial to ...
I am currently studying whether academic freedom (independant variable) has an impact on university rankings (independant variable). So far, my model is only composed of these two variables, as well as university fixed effects. In order to get a better estimation, I am currently looking for control variables to include...
Dears, I have this data below, which represents a distribution of population across 8 groups in time 1 and consequent time 2. (time1 > time2). I would like to sample using these 2 inputs, it this sampling below appropriate? data: from to group 1 17.785825 24.6877200 group 2 19.024499 19.1316200...
I am writing a paper where I am comparing the change over time of an intervention and control group. I have the mean and standard deviation for both groups at baseline and the mean and standard deviation following an 5 week period. I can then calculate the mean difference over time for each of the groups, but I'm not s...
I have trained a regression forest using the R package ranger. Now I would like to discuss the variable importance measures of the included features. However, I am having difficulties understanding the exact definition of the different importance measures offered by ranger. The documentation of the ranger function stat...
I have a highly seasonal data of a little more than 1000 observations, with a 67 seasonal cycle. I am using auto_arima in Python and for some reason when I perform a stepwise search I get a memory error after the stepwise search has fitted a few models. Why could this be happening? Data plot with an earlier ARIMA model...
I want to calculate the perplexity of my language model. To avoid underflow, I stored the log of the probabilities. Since the probabilities are between 0 and 1, the log of them is negative. So when I want to calculate the perplexity, when the number of words is even, the perplexity becomes an irrational number. On the ...
Four samples were analyzed daily for 5 days. It is known that time influences the values of the analyses, because the samples are sensitive to the passage of time. Here is a table illustrating the results of this experiment: Days Sample 1 Sample 2 Sample 3 Sample 4 Day 1 2,7 6,6 2,3 2,1 Day 2 3,2 9,0 2,2 2,2 ...
I am working on problem set 2, Q4d from the MIT 6.041 Oscar has lost his dog in either forest A (with a priori probability 0.4) or in forest B (with a priori probability 0.6). On any given day, if the dog is in A and Oscar spends a day searching for it in A, the conditional probability that he will find the dog that ...
Consider the sequence $$\gamma(\tau) = \begin{cases} 1 & \text{if } |\tau| ≤ K \\ 0 & \text{if }|\tau| > K \end{cases}$$ where $K$ is a positive integer. Is $\gamma(\tau)$ an auto covariance sequence for some discrete parameter stationary process $Y_t$ ? The answer is no but I don't see any valid argument. This would c...
All existing link prediction methods (and indeed, all GNN methods in general) rely on edges being present in the input graph, and the method would be able to predict any missing edges. I've seen one paper called edgeless-GNN which explains how to perform link prediction on edgeless 'nodes', alongside an existing graph....
First off, I am new to predictive modeling and I appreciate any advice. BACKGROUND: I am doing a binomial elastic net where n = 54 and p = 89. This model is for predicting drug effects clinically; thus, prediction by measuring as few variables as possible would be ideal. After Elastic Net variable selection/shrinkage, ...
Background I am doing a project where I am comparing 5 models. It is a regression problem, where the model uses the 3D structure data of a protein and a drug molecule bound to it (specifically, the Cartesian coordinates of atoms) to predict the binding affinity of the protein-drug complex. My training data set has 3847...
I am currently working on a dataset (count data) in which one observation corresponds to one day of monitoring at a site. The overall protocol is to monitor groups of sites along transects. Almost all transects (and by extension almost all sites) were monitored several times. Sometimes, several transects were monitored...
I'm not sure how else to put it, but I often use the sklearn.metrics.classification_report function in order to measure the performance of various classification models I'm using. Here, the term "support" is used to refer to the true number of samples for each label. In other words, it's the sum of true positives and f...
I want to use the Wasserstein distance from scipy.stats.wasserstein_distance to get a measure for the difference between two probability distribution. However, I do not understand how the support matters here. For example, I would have expected stats.wasserstein_distance([0,1,0],[1,0,0]) to be 1 (as we need to move a m...
I want to model the relationship between time spent watching video ads and purchases. There is a correlation between viewing time and purchase. The longer the viewing time, the higher the purchase intent; and the higher the purchase intent, the longer the viewing time. How can we model such a non-DAG (feedback) relatio...
I am identifying a latent profile model with the Mclust package in R. After identifying an optimal number of cluster I would like to identify possible covariates and distal outcomes via logistic/linear regression. The recommended approach is to use step3 model (1) as implemented in Mplus or LatentGold. These specialise...
I have a population that I have quantitatively profiled using two different technologies. The result is two data matrices that have the exact same set of individuals as rows, but different features (both in type and number) as columns. I want to know if the two technologies are actually characterizing anything distinct...
I am working on a survival analysis, which will provide an input for the decision analytic model (discrete event simulation that samples time to event from a survival curve). For that, I need shape and scale parameters and corresponding standard errors for three different competing events that can happen to people. The...
There is a known positive sequence $M_n>0$ (e.g., $M_n = \log(n)$), where $M_n\to\infty$ as $n \to \infty$. If a sequence $X_n$ is $O_p(1)$, then can I claim $\Pr(|X_n| > M_n ) \to 0$ as $n \to \infty$? It seems to me that this is true because $\Pr(|X_n| > M_n ) = \Pr(|X_n|/ M_n > 1)$ and $X_n/M_n = O_p(1/M_n) = o_p(1...
I'm fitting a model with MLE using scipy.minimize (method BFGS). I want to have the hessian to compute its inverse and retrieve the standard error of each parameter. The result of minimize contains one approximation of the inverse hessian matrix in res.hess_inv. To cross-check with other methods, I computed the hessian...
I have questions about GPT-2. What is the context window in the pre-train gpt-2 train? As I know language modeling is based on gpt-2 use prefix language modeling that is demonstrated in picture form T5 model below: And the formula of gpt model indicate below : So I would like to know what the number of K(context size...
I am attempting to run a Mixed-Effects Logistic Regression in R, using the glmer function to predict the choice (0 = reject vs. 1 = accept) of a certain offer in an experimental task on a trial-by-trial structure. The predictors (or fixed effects) include the condition (3-level factor), the reward (numeric) and the cos...
This is a theoritical question about decision trees. I believe that the question is very explicit in the title of the question. My thoughts on this question follow below. If the region we are dealing with can be separated using directions that are orthogonal to the axis, then we model such region with a decision tree t...
As I know BERT model that calculates loss by compare between an original word that was masked with the predicted result for retrieve the loss and update the weight in pre-train model. But GPT-2 uses the technique predicting next word from the previous word that mean the model will calculate loss from original word with...
I haven't done hypothesis testing in a long time so please bear with me. I am trying to understand if my results are statistically relevant per category and aggregated values per category and find 95% confidence interval. I have different categories of inventory, shipped and among those inventory part of inventory is d...
A traditional machine learning validation strategy is to train on some data and check performance on some holdout data. When data are time-dependent, an obvious way to proceed is to train on early periods and test on later periods, say train on data from $2000$ to $2011$ and then check performance in $2012$, $2013$ and...
I currently running an agricultural field study using a 2x2x3 factorial design. I need to collect samples for measuring soil bulk density, which takes a lot of time. There are two sites, 4 replicates per treatment group, and controls added for reference, so in total there are 128 plots to collect a single sample from...
When comparing differences in samples (e.g., difference in medians) between two groups, I am adjusting group size to account for finite populations of the groups, pooling all of the samples together sampling from the pooled data (with replacement) to create two new groups of data calculating the medians of each group,...
SUMMARY How does the diagonal rescaling fit into the derivation of a multiplicative update rule for non-negative matrix factorization (NMF)? DESCRIPTION The NMF problem aims to find non-negative matrix factors $W$ and $H$ from a non-negative matrix $V$ such that $V \approx WH$. Having an additive update rule $H \leftar...
I have data aggregated as a histogram $$ (m_1, c_1), (m_2, c_2), \dots, (m_k, c_k) $$ where $m_1 < m_2 < \dots < m_k$ are the midpoints of the histogram bins and $c_i$ are the counts that sum to the total number of the raw datapoints $\sum_i c_i = N$. The count $c_i$ is for the points within the $[m_i-d, m_i+d)$ range....
I have a simple problem, but haven't found a solution yet. Let $Y_{i}=\sum_{a} X^{a}_{i}*\omega^{a}_{i}$, where $Y$ is something I calculate, and everything else is observed. $\sum_{a} X^{a}_{i}=1$, as this is these are the fractions of a day's time spent in activity $a$. $\omega^{a}_{i}\in[0,1]$, as this is the fracti...
Any features which is represented as a list of 0 or more elements is what I call a Dynamic feature. Let us suppose an example where there are 10 Million movies and a User feature sample looks like: Age Gender County Movies-Liked 1. 25 M USA [Movie-1934, Movie-135, Movie-13] 2. 12 F UK [Mo...
Does $ARMA(p,q)$ process need to be invertible and have a causal stationary solution to be written in $MA(\infty)$ representation? And if you write the process in terms of $Z_t$ instead of $X_t$, then you get $AR(\infty)$ form right?
At some point in the history of statistics, there surely was a transition from thinking of statistical measures strictly as imperfect approximations of real quantities, to thinking of them as estimates of unobservable parameters of abstract population distributions. Similar transitions, from the material to the abstrac...
I am reading this article which says that "when heterogeneity is present, a confidence interval around the random-effects summary estimate is wider than a confidence interval around a fixed-effect summary estimate." This is with regards to a meta analysis approach where the outcome is a particular study's overall effec...
For sample size, in r, samplesize = if replace, nrow(x) else ceiling(0.632*nrow(x)) What I know is random forest constructs a large number of trees with random bootstrap samples from the training data. But, in r, if we have a sample size of replacement, we use all the observations. Then, it's not random. Can you please...
Recall we have two shops that we treat like equal. We want to increase total income, and we want to evaluate some hypothesis. The global goal is to find feature, that maximizes total sum of payments, even if a count of sales is decreased, so we interested in total sum of separate sales in a period of time. Suppose, the...
I have one model, that I fit using MLE. In order to feel what could be a good initial guess for the fitting process, I try different arbitrary smartly chosen initial guess (not random) and report the final estimate for each of them, along with their associated loss (i.e., negative log-likelihood). Now that I have this ...
I understand that it does the opposite of NORMDIST function and returns a normal cumulative distribution. But is there a formula that it uses? Is it using the Quantile function?
In my dataset, working hours is weekly working hours. If the person's employed, then working hours > 0. However, I'm not quite sure how to input the data for working hours if the person is not employed. Do I input it as "NA", or 0? In addition, I'm trying to do a logarithm transformation on the data of working hours. I...
I am doing some work modeling spatial data with Gaussian Processes. To speed things up, I am using a compact kernel. This makes it so that, over spatial extents that are > the bandwidth of my kernel, the covariance matrix is 0, which is hopefully a very large percentage of the covariance matrix. The usual GP setup: I...
I am trying to perform a robust regressions using the lmrob function in R. I am getting this error Message: Warning message: In lmrob.S(x, y, control = control) : S-estimated scale == 0: Probably exact fit; check your data Then I see that 244 of my observations are weighted with 0, the other 355 are weighted with 1...
I was curious if they are anything in the literature about estimating or propagating uncertainties when the desired result is from the minimization of an expression. I have several books on uncertainty propagation, but they do not talk about such problems. I suspect in the statistics literature, this problem might have...
The observational case For observational data, Hernán & Robins (2023, p. 49) state: In the absence of marginal randomization, [computing the average causal effect in the entire population] requires adjustment for the variables $L$ that ensure conditional exchangeability of the treated and untreated Adjustment can the...
I've had a stats related question I've been wondering for a while, but for which I have yet to find good sources on. I'm aware of things like the Akaike Information Criterion for weighting candidate models, but afaik this doesn't account for model autocorrelation (potentially leading to double counting if extremely sim...
I have time series data over an 8hour period of animals displaying behaviors. The behavior being displayed by a particular animal is notated as numbers 1-9, with a number corresponding to a given behavior. These are insects and they can only display one feeding behavior at a time. The most common behavior for each poin...
Since absolute error plotted on a log-log plot will result in asymmetric error bars, my understanding is that this would give a misleading view of the precision of a measurement. I can plot instead the relative error, but then the values on the y axis would be z = log10(y) +/- sigma_y/y/log(10), rather than y on a log ...
I found the following result used in this paper, but it was just claimed without proof and it seems extremely strong to me, so I would like a proof, or at least a reference, of a proof. Let $D$ be probability distribution. For any $k\geq 1$, there exists another distribution $D'$ such that if $Y_1, ..., Y_k \sim D'$, t...
I was reading this paper and saw this passage: The architecture of these detectors has evolved from the initial two-stage [9, 26, 3] to one stage [19, 31, 1, 10, 22, 13, 36, 14, 7, 33, 11], and two detection paradigms, anchor-based [19, 22, 13, 10, 33] and anchor-free [31, 7, 36, 14, 11], have emerged. What is meant ...
I am trying to learn more about how to apply Logistic Regression in the presence of rare events. I am trying to understand what is written in this paper here: https://gking.harvard.edu/files/0s.pdf If I understand correctly, in the presence of rare events, the MLE estimate for the intercept of a Logistic Regression can...
I have a dataset like this image and I want to run a zero inflated negative binomial (ZINB) regression in Stata (Outcome: crime rate). In 3 age group variables I have the percent of population in each city (for example 20% of city "a" population is in age 0-20 group. Is it true to include all of the 3 age group variabl...
Suppose I'm testing a product by taking a sample of size $N$: if the (population) variance $\sigma^2$ is higher than $\sigma^2_\text{max}$, the product should be rejected. Then I can determine the sample variance $s^2$, and use \begin{equation} \frac{(N-1)s^2}{\sigma^2} \sim \chi^2_{N-1} \end{equation} to compute a $(1...
I'm studying ML estimation and I have a silly question that I'm not able to see its solution. Suppose I have an AR(1) process: $$y_t = c+ \phi y_{t-1}+ u_t, \quad u_t \overset{iid}{\sim}\hbox{Normal}(0,\sigma^2)$$ The first step is find the density of $y_1$: $$y_1 = c+ \phi y_{0}+ u_1, \quad u_1 \sim \hbox{Normal} (0,\...
Im doing a meta-analysis of randomized interventional trials to compare between two types of surgeries. The follow up period at which outcomes were reported varied between 6 weeks to 24 months. Some studies reported their results at different follow up points, whereas others reported results at one follow up point. I w...
I am currently working on a project where I have a dataset of scatter-points in space. What I am doing is that I fit Gaussian Mixture Models (GMM) on the data set and use the model to sample 'artificial' data points for simulation purposes. What I would like to do now is find a metric to see how well the GMM reproduces...
I am currently investigating the moderating role of mindfulness in the association between academic distress and suicide ideation with depression as a control variable. I finished doing the multiple regression analysis where all the IVs, control variable, and interaction term was regressed into suicide ideation in this...
I have a classification project and I want to compare three models: Random Forest, SVM and Logistic Regression. Random Forest are tree based algorithms wheras, SVM is a distance based model and LR is probabilistic model. The dataset for SVM and LR needs to be standardized but it doesn't have to be for RF. So my questio...
I have started to learn statistics and I came accross those notations: $c_{d-1,1-\alpha}$ $z_{1-\alpha/2}$ the first one is the $\alpha$-th order quantile of the $\chi_2$ distribution and the second one is the $\alpha$-th order quantile of the normal (gaussian) distribution. What is the explanation behind those notatio...