instruction stringlengths 9 38.7k |
|---|
I am struggling with one question. Is goodness of fit of a model necessary when your purpose is to test hypothesis regarding a coefficient? To be specific, I am regressing formal credit access on gender (variable of interest) and other predictor variables. Logistic regression with svy prefix in Stata is used. It is obs... |
We have 2 standard distributions that are independent from each other and we take smallest number of the two. That should create a new distribution although not a normal one most of the times. I have done some simulation on a spreadsheet and figured some stuff like if you increase the σ, the new σ also increases or if ... |
I am referring to this example: http://www.sthda.com/english/wiki/chi-square-test-of-independence-in-r
The data used are frequencies for household tasks:
Wife
Alternating
Husband
Jointly
Laundry
156
14
2
4
Main_meal
124
20
5
4
Dinner
77
11
7
13
Breakfast
82
36
15
7
Tidying
53
11
1
57
Dishes
32
24
4
5... |
Reference: Koller, D., & Friedman, N. (2010). Probabilistic graphical models: Principles and techniques (Nachdr.). MIT Press.
Bayesian network $\mathcal{G}$ encodes that for any node $X_i$, there are always local independencies with any node that isn't a descendant of $X_i$, with the condition of all parent nodes:
$$... |
when I run a logistic model I get log odds that I can easily convert to probabilities. What I don't understand is how can I use percentages instead?
Here's the code:
testmodel <- glm(survived ~.,family=binomial(link='logit'),data=Titanic)
odds <- exp(coef(testmodel))
prob <- odds / (1 + odds)
If I use the allEffects ... |
Problem
Imagine I have a list of categorical labels: A A A B C C B B B C C A C C. I want to calculate a numerical measure that characterizes how ordered it is. So perfectly ordered lists, where there is no mixing between labels of different kind, like A A A A B B B B C C C C or C C C C C B B B B B A A A A A and so fort... |
I have a question regarding calibration (train) and holdout (test) periods.I have time based data.
I split my data into two sets. Fit/Train (first 2/3 of data) and validation/testing (latest third). So I validated my model to see what was predicted and compared this to what actually happened in this time period.
Exampl... |
I want to run a simulation using lavaan and simsem to determine the sample size to use in a study using path analysis. The conceptual model for my study is as below, with 2 independent variables, 1 mediator and 2 moderators.
From what I understand, the corresponding statistical model is as below:
I am following the r... |
I have 10 numeric outcomes in one dataset and I want to use Kruskal-Wallis test to identify an influence via a predictor variable (group variable) and also for each age group.
I am testing for each age group (4 categ.) for each of the 10 variables (10*4=40) and I am wondering if I have to correct my alpha (0.05/40). I ... |
I'm conducting research on the treatment effect of tinnitus. Δ represents the pre-treatment to post-treatment change. ΔTHI yielded a p-value of 0.03, while the other p-values are above 0.5.
Now, should I apply the Bonferroni correction to assess whether ΔTHI between the two groups (treatment vs. sham) is significantly ... |
While desribing properties of the single auction equilibrium defined by theorem 1 in "Continuous Auctions and Insider Trading" A. Kyle conjectured that
one-half of the insider's private information is incorporated into prices and
the volatility of prices is unaffected by the level of noise trading $\sigma^2_u$.
M... |
I am running a model that looks like so:
TD_PE_analysis1 <- lmer(PE ~ learn_prof * trial * condition + (1|subject) + (1|image), data=td_pref_all)
Where PE is prediction error, learn_prof is a between subjects fixed effect (two groups), and trial and condition are within subject. The data appear below:
structure(list... |
I have a variable x that corresponds to data from a database. I've been trying to find the best distribution to fit it and looking at the histogram I figured either a normal, weibull or logistic should work.
This is the variable
x <- ShippingLogs$ActualShippingDays
Which is taken from this csv where all values are non... |
From the ordinary least squares (OLS) problem, given a design matrix $X_{n\times p}$ and a response $y_{n \times 1}$, we want to find
$$
\hat\theta = \arg\min_\theta \|X\theta-y\|^2.
$$
In this case, the hat matrix is defined as $H = X (X^\top X)^{-1} X^\top$ such that the predicted response is given by $\hat{y} = H y$... |
Im building a Cox Regression in SAS. My code looks like this:
proc phreg data = mydata;
class sex hospital;
model time*status(0) = sex hospital age bmi;
strata treatment_variable;
run;
Now this code does not calculate a hazard ratio for treatment A vs treatment B. If I remove the strata statement and instead... |
I'm doing a study in which a new diagnostic method is evaluated. Samples are taken from patients, both this new method and the current standard method are applied, and we calculate concordance between the methods. The problem is that some of the samples are from the same patient, and are thus highly correlated. I would... |
I have been dabbling in NB regression for less than a year now. I have applied the well known g.o.f. tests. Lately I started using the Conditional Moment (CM) test, described in Cameron and Trivedi 2003 Regression Analysis of Count-Data book. (Chp. 5, pg. 194). It basically looks at the expected versus observed counts,... |
I am currently working with continuous data measured from different sensors (thermometers and voltmeters). I have a matrix whose columns represent the sensors and the rows are normalized measurements (one each second).
I have been asked to check if these sensors behave in the same way. Thus, I have used clusterization ... |
Our hypothesis is that there is a 3-way interaction between A, B, and C.
I have defined a model as follows:
Y=A+B+C+AB+AC+BC+ABC+error
I aim to use the likelihood ratio test (LRT) to determine if the three-way interaction effect is statistically significant. To do this, I constructed a nested model without the three-wa... |
for example, if:
$$\begin{aligned}
f_{X_{pi},T_{pi}}(x,t|*)=& \begin{aligned}\frac{\pi s^2}{\alpha_{pi}^2}\exp\left(\frac{\alpha_{pi}(x-\frac12)\nu_{pi}}{s^2}-\frac{\nu_{pi}^2}{2s^2}(t-\tau_p)\right)\end{aligned} \\
&\times\sum_{k=1}^\infty k\sin\left(\frac{\pi k}2\right)\exp\left(-\frac{\pi^2k^2s^2}{2\alpha_{pi}^2}(t... |
What is the difference between robust Hausman test and Mundlak test?
Wooldridge "Econometric Analysis of Cross Section and Panel Data" (Second edition page 870) mentions robust Hausman test is obtained by adding group averages to RE estimation and testing for joint significance.
Isn't Mundlak test also the same see sta... |
Suppose that I have time series forecasting model, e.g. forecasting point of sales revenue in various economic scenarios represented by indicators such as inflation or interest rates. I build a model $\hat y_{t+h|I_t}=f(X_{t+h|I_t}|\hat\theta_\tau)$, where $X$ are set of scenario variables and $\theta$ - model weights/... |
I have a large panel with 4 time periods and 10,000 observations per year. First I do OLS regressions for each year, and they all look fine. Then I run the FE model for the entire period, and one fairly important variable changes sign. This is odd, but what worries me most is that R2 is very small (0.058), and the adju... |
I am running a beta-regression using betareg in R (with default logit link function). My response variable is a proportion, and may include 0 and/or 1. I've transformed the data following the betareg manual:"if y also assumes the extremes 0 and 1, a useful transformation in practice is (y · (n − 1) + 0.5)/n where n is ... |
I defined a loss function that I am trying to optimise consisting of two elements. let's say a and b:
w1 * (a_actual - a_measured)^2 + w2* (b_actual - b_measured)^2
I am trying to simplify the optimisation process by setting both w1 and w2 to 1. I want two terms to have a same contribution but the an and b have differe... |
I am comparing two groups of participants change and magnitude of prediction errors over 60 trials. Each participant is completing the task based on two different learning profile types (learn_prof). Additionally, there is within-subject variation in the task (condition). When comparing the two groups variance of predi... |
The goal of normalizing flows is to produce arbitrarily complex probability-distributions from a simple distribution (usually the Normal distribution) through learning an invertible transform.
Copulas model a joint distribution by transforming marginals into standard uniform distributions and learning/finding the depen... |
Our object is calculating AIC, and we are unsure whether we can use our measure below when calculating AIC. The following are the data from the experiments and our method to calculate the information criterion. I wonder if this method is valid.
Experimental data (Selten and Chmura 2008, AER):
A group consists of four ... |
I have a sample of N=1,615, and 319 of those cases (19.75%) received the treatment. The prevalence of the outcome of interest is about 0.09 for the whole sample.
Ultimately, I want to conduct IPTW to estimate the association of the treatment with the outcome. This likely means that I have to trim the sample before doin... |
I am using ci.auc in the pROC library to calculate AUC's confidence intervals and roc.test to calculate delong test.
When I run the following:
ci.auc(roc1, conf.level=0.95)
ci.auc(roc2, conf.level=0.95)
roc.test(roc1, roc2, method = "delong", conf.level=0.95)
I get the following:
AUC of ROC 1: 0.5769568 (95% CI 0.565... |
I have distribution , which is not normal and highly skewed. I take a sample from that distribution and calculate the first four moments of the sample distribution. The first four moments calculated are Mean, variance, skewness and kurtosis. I did this in python using the stats package
Now i want to estimate the mean, ... |
This is a cross-posting of this math SE question.
I want to compute or approximate the following expected value with some analytic expression:
$\mathbb{E}\left( \frac{X}{||X||} \right)$
, where $X \in \mathbb{R}^n$ is a multivariate non-centered gaussian $X\sim N(\mu, \Sigma)$.
For a general $X\sim N(\mu, \Sigma)$ Gaus... |
I am running an exploratory factor analysis (EFA) in R, extracting three factors (determined via parallel analysis).
efa3 <- fa(d.wide.nn, nfactors =3, rotate = "oblimin", fm = 'pa', max.iter = 100000)
However I am getting the following error:
Warning: NaNs producedWarning: imaginary eigen value condition encountered ... |
I have a microarray dataset that has already been normalized, and the fold change values for each gene in the mutant versus the wild type have been calculated. I'm interested in determining the statistical significance of these fold changes.
Given that I only have the fold change values (and no raw intensity or count d... |
I have audio files and timestamped fragment transcriptions that I have force-aligned with third party software.
Unfortunately the software places the end of each fragment right before the start of the next fragment, so if you try to play just one fragment from the audio file it will bleed over to the next fragment.
Her... |
I want to fit a linear regression model, but I know that if I treat each instance as unique there will be many pseudo replicates.
I want to explore the relationship between 2 binary variables and one continuous variable, I have data measured from 2 separate years (2021 and 2022). An example of this would be exploring t... |
I used the following code to perform a Kruskal-Wallis test on a dataset, which gave me a significant p-value (5.159e-06).
However, when I then use pairwise.wilcox.test() to perform a Pairwise Wilcoxon Rank Sum Test, no p-value between groups shows significance. Same thing when I get the significance letters with multco... |
Context: I know the "classic" ANOVA framework: we have $n$ groups and $k$ measurements of a variable $X$ for each group. Let $µ_1$, $µ_2$, ..., $µ_n$ be the mean of $X$ in each group.
Hypothesis $H_0$: $µ_1 = µ_2 = ... = µ_n$
Hypothesis $H_1$: $\exists i,j, \rm{\ such\ that \ }µ_i \neq µ_j$
Based on the effective sampl... |
I am trying to figure out the impact of a visiting team on the attendance draw of a sporting event.
This is a personal inquiry exercise to see if the team that I root for has any impact on the other teams in the league.
What I have:
I have all of the Attendance Reports for each event in a sports league season in a spr... |
I have a dataset with four groups $G_i$ with $i = 1, 2 , 3 , 4$, and in each group $G_i$, a certain number $n_i$ of observations are favorable. I want to check if there are any differences between the groups. One way to do this is to compute the proportion of favorable outcomes in each group and to use pairwise $z$-tes... |
In the below image VECM model has learnt the pattern but did not predict properly there is a difference in actual and prediction
Have used the below dataset to predict the meanpressure:-
https://www.kaggle.com/datasets/sumanthvrao/daily-climate-time-series-data/code
In what other method we can reduce the difference or ... |
I've just started my data science internship, and this is my first time in the field. I'm sure I'll face challenges in the future where I might need your help. It's also my first time asking a question on Stack Exchange, so I hope the community will be friendly and understanding. I have a binary classification problem ... |
I'm thoroughly enjoying pycaret to handle much of the legwork in my analysis. I'm making heavy use of the setup() method in preprocessing to handle normalization, target transformation, and feature selection in my data. After running my train/test, I'm aiming to run the model on an unseen dataset to mimic a real worl... |
The geometric and exponential distributions exhibit memorylessness, i.e.,
$$ P(X \geq k + j)=P(X\geq k)P(X\geq j) $$
This can be shown for an arbitrary exponential distribution using R:
> pexp(q=1, rate=1, lower.tail = F)
[1] 0.3678794
> pexp(q=0.2, rate=1, lower.tail = F)*pexp(q=0.8, rate=1, lower.tail = F)
[1] 0.3678... |
I'm trying to do a two way ANOVA on a dataset with 2 fixed effects factors (Genotype and Treatment). However, depending on the order of which the factors are in the model formula, I'm getting different results.
Formulas are : aov(Angle~GenotypeTreatment) for "modele2" and aov(Angle~TreatmentGenotype) for "modele21".
C... |
I paste here the section on Expectation Propagation from Gelman et al.'s Bayesian Data Analysis (pg 340). I have two questions:
In Step 5 (with the red box), where we infer the hyperparameters of the multivariate $g_i(\theta)$ from the moments of the univariate $g_i(\eta)$, how are these transformations motivated?
Als... |
I've seen some discussion of using a 83.4% confidence interval to compare two parameter estimates, so that non-overlapping confidence intervals correspond to a statistical difference between these parameter estimates at the alpha = 0.05 level.
However, these examples are almost always use the mean of two groups as an e... |
I came across this concept of GCV optimization (new to me) for tuning hyperparameters in a model, as an alternative to maximizing the maginal likelihood (MML) of the output, which is what I am used to doing.
I see people applying it to Bayesian-related methods (regularization), though it definitely yields an empirical ... |
What is the posterior predictive of a normal distribution with normal prior over mean and Gamma prior over precision. Thus, what is the distribution of x given:
\begin{equation}
x \sim \mathcal{N}(x; \mu, \lambda^{-1})\\
st.\\
\mu\sim \mathcal{N}(x; \mu_0, \lambda_0^{-1}) \;\;\; and \;\;\; \lambda\sim \mathcal{G}(\lamb... |
Let's consider a fixed NN architecture, dataset and hardware. We add a layer, either at the beginning or at the end of the NN. In which case the training time will increase more? Intuitively, I imagine the answer may depend on a few factors:
whether the NN is a autoencoder (input has same dimension as output), an enco... |
I have data from a large-scale health survey and am interested in using it to predict certain outcomes in new populations.
However, I'm concerned with several variables that seem to "miss the mark" when comparing to authoritative estimates. For example, the income distributions skew low, and urban/rural indicator skews... |
Forgive me as I am a novice. I have done a training for a group and wanted to calculate some stats on the percentage of improvement of knowledge and understanding based on participant survey answers. For example, for Question A, 55% percent of participants report they didn't understand the concept before training, bu... |
I've calculated an effect size (Cramer's V) with the associated 95% CIs for some analyses I ran. I know that narrow CIs are preferable, but I haven't a clue what constitutes narrow or wide. I understand it's very context dependent for a statistic, but what about a Cramer's V? Thanks in advance!
|
I am currently a graduate student working on writing my master’s thesis. The master's thesis includes conducting a regression model on a set of bank data, which includes financial indicators for the dependent variable and the independent variable.
I am now working on conducting regression according to three models (com... |
I am working on a project about what behaviour humpback whales show in a certain area along the coast of Mozambique. Now I am trying to test the significance, whether this behaviour is random through out the season or not. I thought of using an one way Chi-square test in either Excel or R, but I am unsure what the best... |
I have a question regarding data following the truncated Fisher's z-transform. I currently understand that the correlation coefficient data, after the unbounded Fisher's z-transform, has a standard error of $\frac{1}{\sqrt{N-3}}$ based on asymptotic approximation. However, I admit that I have limited understanding of t... |
I have a scatter plot and only my y values have uncertainty.
I obtained a linear fit to my data (using curve_fit from scipy.optimize).
I also have the 1 sigma uncertainty for the gradient and the intercept of the linear fit:
Gradient: -4.304e-06 +- 3.908e-06
Intercept: 0.068 +- 0.005
But I want to put some kind of unc... |
My data have asymmetrical confidence intervals (e.g. 100 with a 95% lower bound of 50 and 95% upper bound of 300). I want to perform a KDE on all my data where the bandwidth is determined by the uncertainty. However, the uncertainties are asymmetrical so it is not as simple as using a weighted mean. Does anybody know h... |
I'm having a bit of trouble choosing what statistical test to pick. Hopefully you can advise.
I have a panel survey in two waves (with almost all the same respondents retained from wave 1 to wave 2. I measure respondent's party identity in the first wave and their response to another question in both waves (a categoric... |
The main regression formula I am using is as follows (Both the Group and Time variables are binary):
lmer.fit <- lmerTest::lmer(corrmcc ~ Group * Time + (1|ID),
data = sm.dat)
summary(lmer.fit)
# Fixed effects:
# Estimate Std. Error df t value Pr(>|t|)
# (Intercept... |
If samples taken from the population vary from one another by a certain amount, while the differences between the types of sample in any sampling event vary only by a certain amount, what formula can be used to calculate the sizes of the samples? For example, if you take a random sample for A and B from the population ... |
I want to perform classification of breast cancer cases by using models like SVM or Random Forest. When I was browsing the web I saw that one could use Lasso for feature selection, and then applied these features as input to my ML models. The question that I have is if its useful to use Lasso as a feature selector for ... |
I just came across a problem related to Event prediction in timeseries data.
So there is a timeseries data having timestamp and event occurred at that time, and I need to predict the next set of events maybe for few months or days. Now my question is how should I approach this problem, assuming that I am not even sure... |
Hi i'm a new student of statistics and i'm trying to make some exercises with rstudio.
I try to create a question "differences between groups" and i have created this dataset for the incidence of Hepatite B in different age classes.
"Are there significant differences in the incidence of hepatitis B among young people, ... |
I am currently training a neural network on the EMNIST dataset for an assignment.
We are asked to select the best combinations of hyperparameters (inclusion probability for the dropout layer and penalty coefficient for L1/L2 regularisation) based on the performance of a model on the validation set.
If using validation ... |
I have a matrix where each row is an observation (i), each column is a feature (j), and each value is the ratio the feature j is complete in observation i. That is, the values are floats that range from 0.0 - 1.0
I'm looking through the distance measures in SciPy and I'm not sure which one would be best for this type o... |
I was reading elements of statistical learning and it mentions let $\hat{f}(x)=Ave(y_i|x_i \in N_k(x))$ where $N_k(x)$ is the neighborhood containing the k points closest to x .
Then it says "under mild regularity conditions on the joint probability distribution $Pr(X, Y )$, one can show that as $N, k \to \infty$ such ... |
I am currently studying some latent variable models.
In many works, I found the following equation:
$L( \theta, \boldsymbol\pi | x ) = \sum_{c=1}^{C} f(x| \theta, \alpha = \alpha_c) \cdot \pi_c$
where $\theta$ is a continuous parameter, $\alpha$ is latent variable (categorical, in the case), and $\boldsymbol\pi = (\pi_... |
I am trying to implement propensity score weighting in a GEE model with geeglm. I am also using bootstrapping to estimate the standard errors. However, I am running into a strange convergence related issue with geeglm.
I believe I have coded everything necessary to implement the methods correctly. However, when running... |
I have a very quick but subtle question.
Consider a trivariate normal vector:
\begin{align*} [V_1,V_2,V_3]'\sim N\left[0, \Sigma\right]\end{align*}
Here, if $V_3$ is a convex combination of $V_1$ and $V_2$ (e.g. $V_3=V_1+V_2$), then can we still say that $[V_1,V_2,V_3]'$ follows a trivariate normal distribution?
I thin... |
A homogeneous Markov chain $\{X_n\}_{n\in\mathbb N}$ with discrete state space $\mathcal{S}$.
Set
$$\tau_{k}:=\text{inf} \left\{n\ge 0:\, X_n=k \right\}.$$
where $\tau_{k}$ is defined to be $+\infty$, when doesn't exist any $n$ such that $X_n=k$.
$\textbf{1}.$
Now consider the Ehrenfest model,its state space $\mathca... |
I've had such a hard time finding a source that addresses how to handle multicollinearity of parametric terms in a generalized additive model (GAM) that I'm starting to think it may not be important, but why might this be? Multicollinearity is a big issue in linear regression, but it seems to be hardly mentioned when a... |
I'm learning about cluster-randomized trials and I'm interested in the variance of the difference in means estimator. Can it simply be decomposed between intra and inter cluster variance? How?
|
I am looking for a way to investigate whether a new batch is different from all previous batches. We measure around 40 parameters and each batch has 3 to 4 replicate values per parameter.
The data would look something like this:
x <- <- runif(30)
group <- c("ref", "ref", "ref", "ref", "ref", "ref", "ref", "ref", "ref",... |
I'm trying to implement the Holt-Winters method in R. I have a time series whose data contains measurements over 24 hours of the day. I have a total of 5 years of data, that is, 43824 observations. I divided them into 43656 training and 168 tests. When I apply the method, I see that the values such as RMSE and MAPE are... |
I have a database with number of sessions students attended and their final grades as Fail, 3, 4 and 5. Which test should I run to find out if there is a relationship between their attendance and final grade?
|
Hi everyone quite new to the ML field and on my masters degree doing my capstone project. So I have done hours of research and tests on how to test and train several models, but I am still getting undesirable results. Accuracy is above 99% and F1 and precision scores are 0. AOC is 0.5 obviously.
A little background on ... |
So, I have a folder named Cycles in which I have multiple (say 1000) csv files. Each of this csv file has four parameters and how they vary with time from t=0 to t=900. For more clarity, each csv file is corresponding to either a charge cycle or discharge cycle of a battery and four parameters are voltage across batter... |
There are multiple posts asking for help in understanding the coefficients. Yet, I failed to find one that addresses the following.
set.seed(1) # for reproducibility
## case 1: starting point
dat1 <- data.frame(
signal = c(rnorm(6, mean=100), rnorm(6)),
condition = rep(c('trt', 'ctrl'), c(6, 6)), # treatment, c... |
My question is about the implications of the violation of homoscedasticity/linearity for multiple linear regression. I have tried to find the answer in multiple sources but could not figure it out.
I have performed three multiple linear regressions on a dataset with $4,000$ participants. There are $4$ independent varia... |
I have data looking like this:
group
refusal proportion (judge A)
refusal proportion (judge B)
refusal proportion (judge C)
group 1
0.2
0.3
0.05
group 2
0.1
0.5
0.6
group 3
0.6
0.9
0.7
group 4
0.09
0.12
0.1
group 5
0.55
0.5
0.3
group 6
0.2
0.15
0.15
...
...
...
...
group 500
0.55
0.5
0.3
Conte... |
I have a confusion regarding sample size and CRB.
CRB can be found for any estimator, even when it is biased. There are formulas to compute a "biased-CRB". There are also papers suggesting how to compute the biased-CRB when the bias gradients are not tractable.
However, there are some estimators that are asymptotically... |
I'm attempting to fit a structural equation model in lavaan. My model looks like this:
model <- '
# measurement model
OCI =~ OCI_ordering + OCI_obsessing + OCI_checking + OCI_hoarding + OCI_washing + OCI_neutralizing
SPQ =~ SPQBR_NCA + SPQBR_IRS + SPQBR_ESA + SPQBR_MT + SPQBR_OS + SPQBR_EB + SPQBR_UD
# regr... |
If I'm estimated a regression with individual fixed effects and the lagged dependent variable, and I do the standard fixed effects transformation, I can see whether the bias comes from and it makes intuitive sense to me.
However, if I consider running a regression with individual dummy variables and the lagged dependen... |
I'm working on a problem involving Bayesian updating with a Beta prior, but the data I observe comes from a slightly complex source.
Let $X \sim \text{Bernoulli}(p)$ and $Y \sim \text{Bernoulli}(q)$, where $q$ is known. I don't directly observe $X$. Instead, I observe $Z = XY$. I would like to estimate $p$.
Here are so... |
I am analyzing some IHC data on the density of cells in two brain regions(factor 1) in two closely related species(factor 2). My data is composed of an n of 6 for each species and is not normally distributed(Shapiro-Wilk test). so I went for the non-parametric aligned ranks transformation ANOVA (based on the recommenda... |
I have conducted a mixed-design ANOVA with a between-subjects factor (Group: Control Group [0] vs. Intervention Group [1]) and a within-subjects factor (Time: Baseline [0], Follow-up 1 [1], and Follow-up 2 [2]). To further investigate a significant interaction (Time Point * Group), I performed pairwise comparisons in S... |
I'm trying to estimate equivalent performances at different events, using Peaks-Over-Threshold from Extreme Value Theory. The challenge is to find the threshold and preferably with same number of exceedances for all events, in order to do a fair comparison.
But I wonder if this even converges into a Generalized Pareto ... |
How to calculate an incidence density/ rate for weighted data, e.g. using weighting methods such as matching weights, IPW, ...?
-- UPDATE 06.11.2023:
Regard the following paper as an example of incidence density/ rate calculation:
In Table 2 the crude and weighted incidence density/ rate is given as:
Events / Follow-up... |
Motivation: I have a discussion with friends many days ago, at that time I think this problem is very easy so we directly skip, later I realize I cannot solve it XD. The problem is:
Given a sequence of vectors $x_1, x_2, \ldots, x_t$ and $v_1, v_2, \ldots, v_t$ in $\mathbb{R}^p$ in an online fashion, I'm interested in ... |
Hi all,
Could you please help me to interpret Schoenfeld residual below.
Of note, I have very few outcome in one arm (Only 6 events and around 60 in the other)
|
For example, I have a scenario where the independence assumption of Poisson regression is invalid. Is there a solution to this? Can I still use the model if I am interested in using it to look at the relationship between variables? Thanks
Maybe, I should have been more clear. Although, a models assumptions have been in... |
I am working right now in R with correlation coefficients. I know that we can achieve approximately a Pearson coefficient r=0 and Spearman p=1, because Pearson is sensitive to outliers. However, I was wondering if we could achieve the reverse as well? i.e. r=1, p=0
|
If I do a time series ARIMA model data on monthly data, all future predictions will be at the monthly level.
Is it wrong to take 12 future predictions, add them together, and then say that this will be the cumulative prediction for the next year?
Then, I could do bootstrap method to get confidence interval. Here, I wou... |
Currently I'm working with time series data and my initial linear regression,:
My current model is
Yi = b0 + b1X1 + b2X2 + e
after I ran some assumption test there is autocorrelation on my model, and I did some research to avoid autocorellation. One of the way is adding lag independent variable of Y, so my question is... |
I have a complex resource allocation problem where I need to manage specific quantities while adhering to a daily quota of 3000 tonnes. The allocation is based on various variables, and I'm looking for an equation to solve this problem.
I already have a cumulative resource total (X) spread over 365 days, with an initia... |
For a stochastic system, the time average cost like:
$ \lim_{T \to \infty}\frac{1}{T}\sum_{t=0}^{T-1}\mathbb{E}\{cost(t)\}$
and total cost like:
$ \lim_{T \to \infty}\sum_{t=0}^{T-1}\mathbb{E}\{cost(t)\}$.
If our goal is cost minimization, which optimization objective should be used?
|
I have a dataset containing angles. They represent the bending angle that a seedling makes to go toward light. I have two factors: treatment and genotype, so I use a two way ANOVA. However, the heteroscedasticity assumption is not filled. I have really low p values for my Bartlett and Levene tests, and my boxplot looks... |
I was checking some ViTs implentation like this.
And, as Layernorm (LN) are assigned by channels like ln1 = nn.LayerNorm(768), and the data input of this layer has shape (N, HW, C). Isn't LN acting just like Batchnorm (BN) when normalizing the values over the dims (N, HW)?
|
I have a somewhat theoretical question: I work in an area that requires a number of anomaly detection solutions. When we approach these problems, we cross-validate and for each fold, we oversample the train set and validate on an unaltered test set. Typically, an unoptimized model will have high accuracy and low pre... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.