instruction stringlengths 9 38.7k |
|---|
Let's say that I have a hypothesis, and I'm trying to determine whether the hypothesis is true or false. If I remember correctly, in statistics, the standard philosophical view is that, technically, we cannot determine whether a hypothesis is true or false, but rather whether the evidence (data) fails to reject the hyp... |
I have a dataset of Males. In this dataset, there is a categorical response variable with multiple categories and $p$ covariates. I am interested in understanding the effects of these covariates on a male belonging to one of these categories, and how to predict the probability of a male belonging to one of these catego... |
I need to do a power analysis of a group that is composed of three subgroups.
The measurements to sample are difference measurements between two dogs of the same breed rated side by side. Dogs are sampled independently. There are three sub-categories below each dog breed. The null hypothesis is no difference between br... |
I am performing a yeast growth experiment measuring areas of growth across a time interval, therefore having area (%) as my dependent variable and time (min) as my independent variable. I have three experimental conditions: Control, Treatment 1, and Treatment 2, and 3 replicates for each condition.
As my initial area p... |
I need to estimate an inferential statistical model of a variable that is a set of 8 proportions that sum to 1. The data repeat for 25 years and the series is an AR1 process. Is there a statistical software (R, STATA, or a Python library) that can estimate a dirichlet/multinomial dirichlet model and also correct the st... |
I am reading Discovering Statistics using R by Andy Field. In the section about how to calculate the rank statistic in MWU, one of the steps is to subtract the mean rank from the sum of ranks.
W = sum of ranks − mean rank
The idea being, that it corrects for the number of people in the group.
But what we are subtractin... |
I have a question about the Lasso estimator. I understand that it is particularly useful in high-dimensional settings due to its sparsity-inducing properties.
For instance, if the design matrix is orthogonal, it is known that applying Lasso is essentially equivalent to performing Ordinary Least Squares (OLS). In this c... |
Every explanation of laplace smoothing for, e.g, spam filtering, includes the following:
The solution is to never let any word probabilities be zero, by smoothing them upwards. Instead of
starting each word count at 0, start it at 1. This way none of the counts will ever have a numerator
of 0. This overestimates the w... |
OLS estimator solves the following minimization problem:
$$\min ||y-X\beta||^2.$$
By taking the FOC, we obtain $\hat{\beta}$, which minimizes the objective function.
But the James-Stein estimator achieves a lower MSE. I know the proof for James-Stein, but how do I reconcile it with the fact that squared error loss is a... |
Consider the Quasi-Likelihood function (I wrote it in the GEE context):
$$ Q(\beta; y) = \sum_{i=1}^{n} (y_i - \mu_i(\beta))^T V_i^{-1}(\beta, \alpha) (y_i - \mu_i(\beta))$$
where:
$y_i$ is the response for the $i$-th subject,
$\mu_i(\beta)$ is the mean response for the $i$-th subject,
$V_i(\beta, \alpha)$ is the vari... |
So to my understanding, Probabilities are areas under fixed distribution, which can be expressed mathematically probability of data given distribution: $$P(Data|Distribution)$$
Whereas likelihoods are the y axis values for fixed data points with distributions that can be moved. So, mathematically
$$L(Distribution|data... |
I create 2 data, the 1st repeats in 5 terms, the 2nd repeats in 15 terms. Then they are summed up and converted to ts using default setting.
library(forecast)
x0=c(3, 5.8, 6, 6.2, 2)
x1=rep(x0,24)
x2=rep(c(1,5,8,10,10,20,20,22,20,20,10,10,8,5,1),8)
x3=x1+x2
x4=ts(x3,start=1901)
Trying to use plot(stl(x4,s.window='peri... |
Suppose:
\begin{equation}
x|\sigma^2 \sim \mathcal{N}(x; \mu, \sigma^2) \; \; st. \; \; \sigma^2 \sim \mathcal{X}^{-2}(\sigma^2; \psi, v)
\end{equation}
where $\mathcal{X}^{-2}$ is the inverse chisquared distribution with degrees of with scale parameter $\psi$ and degrees of freedom $v$.
It is known that the marginal d... |
I have a classification problem where the size of the dataset is about 1 million lines but the target group is only about 0.6% of the dataset.
I have about 40 feature including both categorical and continuous features and some of the continuous features have correlation with each other. The way I used to do features se... |
I have two different time series data which are the results of running a simulation model with different sets of parameters and configurations. The datasets each contain 100 time series which indicate the evolution of the target outcome (LGRD) through the simulation steps (Days). There are 70 entry points for each time... |
I am interested in learning how to derive the probability distributions for the Time to Absorption in Markov Chains (Discrete and Continuous).
In the past, I have usually done one of the following:
Use the Fundamental Matrix to directly determine the Expected Time to Absorption of a Discrete Time Markov Chain
Repeated... |
Brain float (BF16) and 16-bit floating point (FP16) both require 2 bytes of memory, but in contrast to FP16, BF16 allows to represent a much larger numerical range than FP16, so under-/overflows won't happen as often. However, this comes at the cost of reduced precision.
In mixed precision training with FP16, the probl... |
I have been reading up on hypothesis testing, and realized I misunderstood something, which made me mix Fisher's p-values with Neyman-Pearson's critical regions. I am going to amend that situation, so I have been reading up. The importance of one thing is very clear to me, but I can't seem to find an example of how to ... |
I understand that scaling data is important for certain machine learning algorithms, and the idea makes sense. I've found this great description of the processes here https://ourcodingclub.github.io/tutorials/data-scaling/#Scaling.
I have been running a hidden Markov model (using depmixs4) for an ecology question. How ... |
I'm doing an exploratory data analysis which is looking at a number of character-level features of Chinese writing. The association I am looking at currently is that between the complexity of the character (discrete) and estimated age of acquisition (continuous). The data in its raw form looks like this:
Based on what... |
I am currently reading murphy and i came across regularization
The issue i am facing is building intuitive sense behind the complexity penalty they have used
how can having log on my prior belief will penalize the model from overfitting ??
|
I would be very grateful if someone could offer some ideas or point to relevant literature on the calculation of partial correlation coefficients (PCCs) using estimates from multi-level analyses.
Currently we are conducting a meta-analysis which draws on data from multiple regression models and uses PCC as a common eff... |
When comparing 2 groups (K=2), we can either perform a t-test or f-test of One-Way ANOVA, because the f-test is equal the t-test squared(t^2 = f), it essentially goves the same resilt, right ?
Only with two groups we can have a directional hypothesis (one-tailed), but then if for example, I use in my t-test alpha=0.05,... |
I would like to understand what difference it makes, if I use, for example, either Mean Square Error or Poisson Deviance as error metric/loss function for a regression of count data. Are there any a-priori or theoretical reasons to prefer one metric over the other?
Background
I do have a large dataset of count data (i.... |
In a machine learning workflow, we need to split the dataset into training and test sets. We train several candidate models (typically tuned with hyperparameter optimization) on the training set and then select the model that performs best when evaluated on the test set. This way, the performance evaluation minimizes o... |
I want to build a model that is able to predict the outcome of a user-client interaction.
I know that for categorical variables Factorization Machines are a good choice.
Imagine for example we are talking about people interacting with movies: categorical variables for people are Age, Sex, ethnicity and so on, while for... |
I have the following vectors:
vec_1=c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)
vec_2=c(1,1,1,1,1,1,1,1,1)
from which I compute the corresponding sums:
> print(sum(vec_1))
[1] 18
> print(sum(vec_2))
[1] 9
Is there a way to test if these two sums are statistically different?
|
I'm trying to get deeper into the topic of graph neural networks. While reading this paper recently, I came across a statement that confused me. The authors state that spectral methods are limited to a "single graph structure", while spatial methods are not.
One limitation of the above [referring to 2] spectral formul... |
Does someone know the function to create density forecasts within the GAMLSS Package?
The predict. Formula is not the right one. Predict do Point Forecasts
|
To design a retrospective longitudinal study (outcome: certain event after drug exposure), we know that the annualized rate of that event is 0.06%, aka 0.0006/person-year (possibly underestimated as they only counted the first event for a given patient). I need to reproduce the study and calculate a sample size. With t... |
In order to understand Person's theorem (why chi squared test is justified),
I have read this lecture note and I think I understood the discussion, but I still don't understand why the degree of freedom for table size ab becomes (a-1)(b-1).
Could anyone explain to me?
|
I have a linear mixed model and am interested in the significance of the fixed effects.
I run run 2 identical models, except the second eliminates data points that are outliers (i.e., a sensitivity test).
Assuming the use of p-values to determine statistical significance, what is the best method to determine whether a ... |
I performed a survival analysis to compare PFS between 3 groups. I use this code to produce my analysis.
fit <- survfit(Surv(time, censor_status) ~ group, data = df)
I then use ggsurvplot to plot the survival curves.
I would like to also compute prob(HR < 1) and plot the posterior distribution of the HR but I couldn'... |
I am currently, for the first time, conducting cross-lagged panel analyses to test for temporal precendence in the relationship between two variables. I have two questions:
How do you interpret, in words, the respective cross-lagged coefficients. Is it similar to regression as in (given they are unstandardized): one un... |
I trained an XGBoost classifier model on a training set, and I predicted it on the testing set. I also calculated the respective class prediction values. I concatenated X_test and y_test together. I was wondering if I can place filters on this test dataset, and will I have to split this concatenated testing set again ... |
I am looking for a mathematical function that can produce a shape like the one below:
The above curve has probabilities ranging between 0 and 1, with the x values being able to take any positive integer. The actual values of X or where the distribution curves don't matter so much (although the ability to define these ... |
I have a series with N observation, I want to test the whole series for stationarity with KPSS. However I noticed that when run with all lags, the KPSS test always seems to return the 0.5 value, for example:
import numpy as np
from statsmodels.tsa.stattools import kpss
kpss(np.random.uniform(0,1,100), nlags=99)
(0.499... |
I am currently working on adjusting p-values in R using the False Discovery Rate (FDR) method and have encountered some confusion regarding the basic concepts of adjusted p-values and q-values. Adjusted p-values result from applying a correction method to control for multiple testing.
Indeed in https://genome.ucsc.edu/... |
I want to design a questionnaire and examine a new construct (variable) in my research with a five point scale from 1 to 5. How can I test whether the questionnaire satisfies the requirements of reliability and construct validity?
|
To give an idea of my use case, I'm performing an A/B test using a two-sample t-test to compare the mean between a control and a treatment sample.
I set $\alpha=0.05$. I set my effect size $d=0.01$ and my power=0.80. Then, using a power solver, I get $n=156978$. I understand that power, effect and alpha help me define... |
I acquired some protein expression data of one protein marker (e.g. CD45, expression range between 0-4, not necessarily integer and on a continuous scale) in a Control group and a Treated group. This is single cell imaging cell mass cytometry data, so I have the information for each individual cell.
Each group contains... |
The terms sampling error and measurement error in statistics field are very relevant and have a paramount importance for data analysis and reporting.
|
Is it possible to get confidence intervals for the estimated CIF from a survival::coxph multi-state model?
This code produces the cumulative incidence function, but there are no options to get confidence intervals:
library(survival)
# 0 = Censored, 1 = Relapse, 2 = Death
rotterdam$status = ifelse(rotterdam$recur == 1,... |
I have a set of panel data (including variables X1, X2, X3. and N=193; T=22) these variables are used as independent variables in the model. I want to check the autocorrelation of each of these variables (Ex: Whether variable X has serial correlation during the research period?), what method should I use? Can the using... |
Because I'm that guy, I wanted to run some statistical analysis on the results of a number of experiments; specifically, I'm wanting to track my progress on different runs of the turn-based strategy game The Battle of Polytopia in Perfection mode in order to attempt to develop a predictive model.
In Perfection mode, yo... |
I researched thinking styles based on Sternberg's Investment Theory. I used a TSI questionnaire that measures preferences in thinking styles. The problem is that I got low scores of Cronbach's alpha for some types of thinking styles. Examples are shown below:
Local type of thinking styles, which contains six items, wi... |
I would like to compute quantiles for a gamma distribution. I found a purported example here given as
$$\text{quantile}(a, b, p) = \frac{\gamma^{-1}(a, \Gamma(a) p )}{b}$$
where $\gamma^{-1}$ is the inverse of the lower incomplete gamma function and $\Gamma$ is the gamma function.
Trying this out in SciPy I found that ... |
I'm trying to understand the meaning of the intercept term in a linear mixed model. The caveat here is that the dataset the LME will be built upon will only consist of subjects from a single class (group). All subjects will have technical replicates, some more than others. Thus, the formula is as follows:
$y = B0 + (1|... |
I am working on a project involving the analysis of clinical texts using the "emilyalsentzer/Bio_ClinicalBERT" model from Hugging Face's transformers library. My goal is to extract meaningful sentence embeddings from the model for downstream tasks. I am aware of several pooling strategies for BERT embeddings, but I'm u... |
I am working on using a bootstrap technique to compute confidence intervals of a parameter of interest.
Let $\textbf{Z}_1, ... \textbf{Z}_n\in\mathbb{R}^d$ be an (iid) random sample. From this random sample, we compute $\hat{\theta}$ parameter (very ugly to express explicitly). I would like to obtain CI for this parame... |
my task is to evaluate the effect of a fish predator (otter) on fish abundance in natural waterbodies. While otters are found in one part of the country already in good abundances, a quick expansion of the range is expected soon across the entire region. Ideally, I would want to monitor the fish stocks currently unaffe... |
I am looking for an R package for calculating the CDF and the inverse-CDF of the sample Kendall's tau (*) under the null assumption of independence, in the case of no ties.
(*) Just to be clear, I am referring to the statistic $\hat{\tau}$ that measures concordance or monotonic correlation for a random sample $\{(X_1, ... |
One way of presenting the intuition behind using controls in a regression to estimate the effect of a treatment on an outcome is in terms of stratification. When one controls for Z, one is looking at the relationship between X and Y among observations with similar levels of Z, as here
The easiest, and one you came up ... |
Hyperparameter Range Determination: My main challenge is in setting effective ranges for hyperparameters such as length_scale, noise_level, and sigma_0. Currently, for length_scale, I've used the minimum and maximum pairwise distances of my features. Are there recommended statistical approaches or empirical methods to ... |
I want a reference that explain the $n^{th}$ moment of the gamma random variable having shape and scale parameters for the gamma distribution, specifically the following moment equation
\begin{equation}
E[X^n]=\theta^n \prod_{i=1}^n(k+i+1)
\end{equation}
|
I want to compare brain volumes of two disease categories: young vs. old onset. I know that age, in general, is a covariate for brain volume. That is, the older the age, the smaller the brain. However, it is also a part of my grouping variable by definition. Whatever I do, the old onset group has the age $> 50$ years o... |
I'm a little confused regarding the difference between the posterior and the posterior predictive distribution. I know that the posterior is a distribution over the parameter, while the posterior predictive is a distribution over the data.
Am I correct in assuming that for a Gaussian prior and likelihood, the posterior... |
In an article that I have been reading, they have a simulation study:
In this simulation, we generate $T_i$ from the following
group-specific linear transformation model: $$H(T_i) = \beta_{k,1}
X_{i,1} + \beta_{k,2} X_{i,2} + \varepsilon_i, i = 1, 2, \ldots, n;
\quad k = 1, 2 $$ where $ H(t) = \log\left(2(e^{4t} - ... |
I need to conduct a power analysis, but I'm not sure if I'm doing it correctly. Initially, I have four units, and each unit will be divided into two halves. In Units 1 and 2, stimulation (S) will be applied, while in Units 3 and 4, there will be no stimulation (NS). Each half of these units will receive one of two trea... |
I'm trying to learn about when there is a 'statistically significant difference' and the size of the effect.
Imagine that we have a new medicine, and there is a Randomized Controlled Trial (RCT). The results are (where more is better). We don't have access to the raw data.
Placebo:
N = 33
Mean = 85
Standard Deviation ... |
EDIT:
Following on the comment of Sycorax, I am assuming that equation (4) is an "immediate consequence" of assuming the relative linearity of $f$ under the "regime" of our inputs. I'm still interested in justifying the assumptions of the preceding paragraph, and ideally in seeing some discussion of why we assume the l... |
I've been trying to learn hyperdimensional computing (aka vector symbolic architectures). There's not a lot of resources out there. I've found a few examples, but I can't seem to get very good results in my own experiments. The closest I've found is the recipe example at Tutorial on Hyperdimensional Computing
The exper... |
Good morning,
I am doing the following procedure:
Split a Train a Test Dataset
X_train, X_test, y_train, y_test = train_test_split(
X_pre,
y,
random_state=0,
stratify=y,
train_size=training_fraction
)
Apply SMOTE or Some other Balancing Algorithm
X_imputed_train_df, y_train = balancing_algorithm.fit_resample(
X_imp... |
Background
I have a 2-dimensional dataset $\{y_i, x_i\}_{i=1}^N$ in the coordinates $y,x$. I'm trying to fit the dataset with the trivial model
$$\tag{*}y=mx$$
where $m$ is a (scalar) parameter that has to be learned from the dataset. A simple solution is given by the least squares estimator, which chooses $m$ as
$$\ha... |
res <-manova(cbind(Sepal.Length, Sepal.Width) ~ Species, data=iris)
summary(res)
When running the above code, the result will be as follows:
Df Pillai approx F num Df den Df Pr(>F)
Species 2 0.94531 65.878 4 294 < 2.2e-16 ***
Residuals 147
-... |
I am running mediation analysis where there is a significant mediating effect through the total scale for the construct I'm looking at. However, when I run a parallel mediation using the subscales in the same measure, non of the indirect paths are significant. How can I best interpret this?
|
I have a model: lm(measurement ~ Status + Treatment + Status:Treatment, contrasts=list(Status = contr.sum, Treatment = contr.sum), data=data1) #contrasts to account for unbalanced design as I have been told to do
I have applied this to an ANOVA type III.
Here is the question, relating to the biological query:
I am inte... |
I am working with a function which has the form $f(X_1, \dots, X_n)$, where $\\{X_n\\}$ is an ergodic stationary process. Theorem 5.6 in "A first course in stochastic processes" by Karlin & Taylor states a list of conditions which are equivalent to ergodicity, one of which is that the limit
\begin{equation}
\lim_{n \ri... |
I am working with a model that models water flows in a certain area. These flows can be influenced by taking certain measures, resulting in multiple water management scenarios. I would like to compare the flows and residence time per scenario using box plots.
However, the box plots based on the daily output have very m... |
I have the following model which I am trying to understand:
$y_i=\beta_0+\beta_1 x_{1i} + \beta_2 x_{2i}+ u_i \sqrt{x_{2i}}_i$
where:
$u_i\sim i.i.d.N(0,\sigma^2)$,
$x_{1i}=x_{2i}+\epsilon_i$,
$\epsilon_i\sim N(0,1)$,
$x_{2i}\sim \chi^2_2$
I am confused about several things:
(1) whether there is heteroskedasticity in t... |
I'm currently working on a Design of Experiments (DOE) for a process that involves temperature shifts at three different times. My challenge is incorporating a 'No Shift' scenario as one of the factors.
My initial idea was to:
Treat the three time points for temperature shifts (1 hour, 2 hours, 3 hours) as a continuou... |
My colleagues observed in an experiment involving categorical and continuous independent variables, how the species composition changes. Approximately equal numbers of microbes were used in the experiments, and at the end of the trials, the surviving species were genetically determined. Only relative frequencies (not c... |
I have developed a index of drug addiction risk whose formula is Index = 1/log10(a_given_variable). The raw values of the calculated Index range from -4 to 0. Since I wanted the Index to be expressed on a scale of 1 (lowest risk) to 10 (highest risk), I normalized the Index with the following min-max formula:
Index_no... |
Consider the following regression model:
$y_i=\beta_1+\beta_2x_{i,2}+\beta_3x_{i,3}+\beta_4x_{i,2}x_{i,3}+\epsilon_i,$
where $\epsilon_i\sim N(0,\sigma^2).$ Here, $x_2$ is binary variable
$$X_2 =
\begin{cases}
0, & \text{if method 1} \\
1, & \text{if method 2}
\end{cases}$$
and $x_3$ is continuous variable.
If I find ... |
Imagine there are two different groups of individual samples. I know they are different but I don't know why. For example in biology a group of sick individuals and a group of healthy ones.
Now for each individual in the group there is a set of features, let's imagine there are 100 features where each is independent an... |
in machine learning mastery website, i don't understand this paragraph.
P(A|B) = P(B|A) * P(A) / P(B)
We can simplify this calculation by removing the normalizing value of P(B) and describe the conditional probability as a proportional quantity. This is useful as we are not interested in calculating a specific conditio... |
I am currently developing a cluster extent permutation test on time series data. For that I wanted to sanity test to see whether there are any biases with my test when it is ran on null (i.e., no effect between conditions) data or not. My approach is as follows:
True observed procedure
I have 2 groups.
Each group has ... |
I am struggling to specify my linear mixed models, as I am relatively new to interaction terms.
Subjects were given a drug after the first observation, and the aim is to identify time points for which this blood parameter ("Value") is different across the study. Since there are missing values and unequal groups, my aim... |
I have a dataset with missing values. Since my main hypothesis is just a simple regression, my adviser told me to use FIML regression. So I used lavaan package:
reg.model <- sem("Var1 ~ Var2 + Control", data=data, missing="ml.x")
This works great, but for an exploration, I'll have to do some correlation tests on the s... |
I am running this model:
m1a <- lmer(DeltaMass ~ Box.type + Delta.Mass.Temps +
Individual..Hatch.order. + Age2 + (1|seasonnest),
data=AllDeltachickshistoric.df)
I get this error of singularity:
(boundary (singular) fit: see help('isSingular'))
What could this be due to? Something in the model or the dat... |
I wanted to do a project where I measured how random the native RNGs are in various programming languages. How can I objectively measure my results? Also, if you run a random number generate say 100 vs 10,000,000 times should the distribution even out the more tests you run?
I've compared some various methods in Python... |
I have case control data, of cancer cases and healthy controls (1 row per participant). I am doing 3 rounds of matching where round 1 does 1 match per case, round two does another match per case and round 3 does another match per case. I do it this way as i want to make sure that everyone has at least 1 match (which do... |
I have a large number of MARSS dynamic factor analysis models that, based on AICc, are all competitive for the 'best' model. Is there a way to implement a model averaging process so that I can extract the coefficient estimates of the covariates?
|
According to this site:
Hall (1991) cited an argument of his previous paper that operation research profession could and should be more scientific and less mathematical. In fact, Hall also suggested another queueing rule of thumb that queues should be small if the number of servers is
$$s \geq \max(1, \rho + \sqrt{\rh... |
Consider $x_i \sim N(\mu,\sigma)$ I am interested in distribution of the the following statistic (arises from likelyhood ratio test):
$$
\frac{
\sum_{n=1}^{n} (x_i - \overline{x})^2
}{
\sum_{n=1}^{n} (x_i - \mu)^2
}
$$
where $\overline{x}$ is the sample mean
After observing distribution of this statistic with simulatio... |
I have the data with 2 treatments and 1 site (see the image). I am trying to run a mixed model with the code below.
model <- lmer(Yield ~ Treatment + Variety + (1 | site),
data = yieldn, REML = FALSE)
However, I have one confusion. If you look at the data the "Treatment" (amount of nitrogen added/presen... |
So, starting from no information besides N trials from a Gaussian with $\mu = 0$, I'd like to know the best Bayesian posterior for the unknown variance, $\sigma^2$.
My approach so far as been to assume a uniform prior for $\tau = \frac{1}{\sigma}$, i.e. the scaling factor for the standard Gaussian. In addition to being... |
Generalized method of moments (GMM) estimation seems to be called generalized method of moments because the standard method of moments (MoM) is a special case, following the following logic.
MoM is solved by setting moment conditions equal to zero.
This can be seen as a minimization problem, where the $\ell_2$ norm o... |
I made a mixed model to investigate the effect of 2 interventions (strength or endurance) on physical activity. Here are descriptions of my variables:
PA = Physical Activity (measured in minutes of PA per week)
progr = is the intervention program (1 = endurance, 2 = strength)
time = time points of measurement (at base... |
I am interested in understanding how center volume affects a quality metric in a healthcare application. Each program's performance is reported as an observed/expected (O/E) ratio where the expected count of outcomes is estimated from a multivariable model. The O/E ratio is calculated by (O+2)/(E+2). The distribution o... |
I'm following up on this question with a slightly more specific clarification I'd like to have addressed.
I'm well familiar with covariance matrices as a matrix-valued generalization to random vectors of (co)variance of random variables. However, in Understanding the difficulty of training deep feedforward neural netwo... |
I'm trying to understand if I can fit mlogit's nested logit model using a different parametrization under the base glm procedure. Is that even possible?
Here's what I got so far:
Using a common example that we see in the mlogit documentation:
library(mlogit)
#> Loading required package: dfidx
#>
#> Attaching package: ... |
I have an almost diagonal covariance matrix, I would like to decompose it in an uncorrelated and correlated part:
$$
\Sigma = \Sigma_U + \Sigma_C
$$
where all the matrices above are covariance matrices, $\Sigma_U$ is diagonal.
I guess the solution is not unique, but I would like $\Sigma_U$ to be "large", for example wi... |
The Chinchilla paper (Hoffmann, Jordan, et al. "Training compute-optimal large language models." arXiv preprint arXiv:2203.15556 (2022).) famously found that when scaling a model, you should roughly increase your parameter count and data amount equally, as opposed to the earlier OpenAI scaling law paper which said you ... |
I do not want to use torch’s default loss.backward function for gradient computation. Instead I am calculating the gradients manually from the loss function (via torch.autograd.grad). But my gradients become zero after a few steps. The same code works if I use the loss.backward function. Is there any hidden transformat... |
I am having trouble finding clear answers to these specific questions about calculating Cronbach's alpha. For my dissertation study, I conducted a teaching intervention. I administered a pretest and posttest to investigate increased knowledge after the intervention. I developed the test items and I also developed paral... |
It is well known that the classical k-fold CV does not work well when it comes to time series data. I recently found two methods called Purging and Embargo, which aim to modify the k-fold CV, so that there is no data leakage.
Purging k-fold CV:
The main idea is to 'purge' (remove) the observations in the training set, ... |
I'm conducting an observational study between two non-randomised treatment groups. I plan to balance the two using IPTW (inverse probability of treatment weighting). I'll be using some covariates (age, ethnicity, cancer stage, rurality etc.) to create the Propensity score first, before Weighting. My question is, do I ... |
Suppose we have absolutely continuous random vectors $X=(X_1,X_2)$ and $Y=(Y_1,Y_2)$. And we have $Y_i=a_iX_i+b_i$, and $a_i>0, b_i\geq 0$ $i=1,2$ . Let ${F}$ be a distribution function such that
${F}_X(x_1,x_2)=P(X_1\leq x_1,X_2\leq x_2).$
We know that $\frac{\partial^2}{\partial x_1\partial x_2}F_X(x_1,x_2)=f_X(x_1,x... |
I have two independent Poisson random variables and want to assess the confidence bounds for X - Y. I know there is a closed form solution for Poisson confidence bounds, but need the difference. Can I calculate this numerically for given Poisson failure rates. For example, suppose X ~ Poisson(20) and Y ~ Poisson(18). C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.