instruction stringlengths 9 38.7k |
|---|
I am working with a large timeseries (millions data points) spread across 5 years from which I would like to estimate the annual maxima distribution and subsequently a quantile of this distribution.
My approach is as follows:
First estimate the daily maxima distribution using the Block Maxima method, from which it wou... |
In APA-ATI Analysis of Intensive Longitudinal Data: Experience Sampling and Ecological Momentary Assessment
(link: https://quantdev.ssri.psu.edu/sites/qdev/files/APA-ATI_ILD_Session_E_-_IntraVarMetricsComputation.html), authors present Frobenius Norm as a measure which can be used to identify intraindividual variabilit... |
Is it possible to approximate the frequency of occurence of a n-sigma event in a symmetrical (skew=0) unimodal distribution with mean/mode/median=0, but with fat tails, with given kurtosis =k.
I was thinking on the lines of approximating the distribution with a t-distribution. The variance of t-dist with v degrees of f... |
I have fitted a Cox ph model using both R 4.3.1 and SAS 9.4 with the same data. In SAS, I used Proc phreg, while coxph function in Survival package, the model formula are totally the same, but I got different results (e.g., coefficients), what's the reason? And I wanan know how to modify my SAS program to get the same ... |
I have a straight-line ROC curve even if the AUC is not 1.00, I do not understand if it is correct or not. Is it possible that the ROC curve is straight?
Thanks in advance.
|
I've got 2 nested Cox models, which I fit to 10 imputed datasets. Pooling the regression coefficient estimates and associated p-values I've done already.
I'm trying to work out if adding one extra predictor improves the model significantly. This is trivial for a Cox model without imputed data, using anova.coxph.
What I... |
in the book "Group Sequential and Confirmatory Adaptive Designs in Clinical Trials" by Wasmer and Brannath - they explain on p.85 how to calculate a confidence interval.
They consider a problem where $H_{0}:\mu=\mu_{0}$ and they are interested in a confidence interval for the standardized effect given by $\delta=(\mu-\... |
As I saw in SAS 9.4 documentation, the "ZPH" option in PROC PHREG statement requests diagnostics based on the weighted Schoenfeld residuals for checking the proportional hazards assumption. Then I used it like this:
proc phreg data=mydata zph(transform=rank);
class group(ref="Placebo");
model time*status(0) = g... |
I have designed an analysis where I am testing a lot of variables together. So I first apply a Lasso regression to select the top variables, and then I run a standard (unregularized) multiple regression with only the selected variables. Which p-values should I report?
I was initially reporting the multiple regression p... |
I am looking for a detailed explanation of moderated mediation and mediated moderation. My basic understanding is that in moderated mediation, we have a classical mediation model with the addition of the moderator (which I believe is just an interaction but I am not sure) that influences the association between the med... |
I'm trying to handle some data and get some insights from it.
The data includes a binary outcome variable, so I am using glmer.
The relationship is whether age groups are more likely to engage in the outcome variable. The issue is that many participants have multiple observations, over a time span of about two years.
I... |
I have the following model where X is the duration of a particular event, A is a factor with five levels and B is a factor with two levels. I want to run a type III ANOVA analysis.
type3.model1 <- list(A = contr.sum, B = contr.sum)
model1<-lm(X~A*B, data = X.duration, contrasts = type3.model1)
summary(model1)
Anova(mod... |
After estimating a multiple-regression using ordinary least squares (OLS), the classical test for joint significance of multiple variables is to run an F test using restricted and unrestricted regressions:
$$F = \frac{(SSR_r - SSR_{ur})/q}{SSR_{ur}/(n-k-1)} $$
(where here $SSR$ stands for residual sum of squares, $q$ i... |
I've asked 10 people to choose between A and B in 3 different conditions and 5 times per condition (resulting in 5 data points per person for condition 1, 5 data points per person for condition 2 and 5 data points per person for condition 3).
My question is whether the proportion of A choices differs between conditions... |
An interesting thought experiment involving flipping a fair is going around X/Twitter:
Flip a fair coin 100 times—it gives a sequence of heads (H) and tails
(T). For each HH in the sequence of flips, Alice gets a point; for
each HT, Bob does, so e.g. for the sequence THHHT Alice gets 2 points
and Bob gets 1 point. Who... |
There is seemingly a difference whether one approaches the "logit" from statistics / econometrics:
$$F^{-1}(\pi) = \log\left(\frac{\pi}{1-\pi}\right) = \text{logit}(\pi)$$ (I)
Or from the machine learning perspective, where it is typically called "logistic regression":
$$F(\eta) = \frac{\exp(\eta)}{1 + \exp(\eta)} = \f... |
Let's say that we have a RCT trial going on and the outcome is a continuous variable. In this paper https://pubmed.ncbi.nlm.nih.gov/23045205/ there are 4 methods that calculate approximated odds ratios and their SE's and one that calcuates the approximated Risk Difference and its standard error. We will focus on the l... |
I'm running a mixed effect logistic regression model (function glmer from the package lme4) in RStudio with two random intercepts ad three different predictors as fixed effects. All the indipendent variables are categorical. However, although the model does not show any convergence problem, there is something strange.
... |
Consider a random variable $X$ such that for all $\lambda\in R$, $E\left(e^{\lambda(X-\mu)}\right)\leq e^{0.5 \lambda^2\sigma^2}$. How do I show that $E(X)=\mu$?
What I have done is that, by $1+\lambda X\leq e^{\lambda X}$, we have $E(1+\lambda X)\leq E(e^{\lambda X})\leq e^{0.5\lambda^2\sigma^2+\lambda\mu}\implies$
$\... |
Let's assume I want to test whether the top ten finishers in a specific sports become lighter over a ten-year period. With top ten finishers for each year, I have a similar number of datapoints per year.
I was thinking of simply doing a pearson correlation between year of race and athlete weight. Is this an appropriate... |
Assuming that we have longitudinal data on pulmonary fibrosis with some patients undergoing transplant while others received medical treatment. Each patient is represented by many rows depending on the time of assessment of the quality of life (qol) which is our outcome (continuous variable). Among the independent pred... |
Given an A/B test with an already defined sample size and variance, a power analysis was conducted to estimate the Minimum Detectable Effect (MDE) of a proportion.
After the experiment was concluded, the observed effect was smaller than the MDE. Should I calculate the p-value and confidence interval? Could it lead to m... |
My setup is this: I am generating some text (say 10 sentences) from a model in a particular scenario, and there’s some text generated by humans (10 sentences, same scenario). Each sentence (20 of them) is assessed by a group of experts who provide a score between 1-5. There are 30 such “scenarios”.
I want to test the h... |
I am trying to express the following single equation error correction model in matrix / vector notation. The original model is:
$
\Delta Y = y_{t-1} \delta_0 + \sum_{i=1}^{k}z_{i,t-1} \delta_k + \sum_{i=1}^{p} \Delta z_{i,t-i} \kappa + t \tau + \epsilon $
which is then in matrix notation:
$
\Delta Y = z_{t-1} \delta +... |
I'm trying to understand the proof for the asymptotic normality of the MLE estimator. The proof I saw in class begins with the Taylor series expansion around the true value of $\theta$:
$$
\frac{1}{n}\sum_{i=1}^n\frac{\partial}{\partial\theta}\log f(x_i,\hat{\theta}) = \frac{1}{n}\sum_{i=1}^n\left[\frac{\partial}{\part... |
I'm conducting a research project involving gene expression analysis.
We've developed a method to calculate a score from a given set of genes, A.
To evaluate the significance of this score in A, we calculate an empirical p-value. We random select 1,000 similar-sized sets of genes ($Gene\_sets = {R_1, R_2, ..., R_{1000}... |
I've been reading Casella and Berger's Statistical Inference. In section 6.3 the author stated the likelihood principle: if the likelihood functions from two samples are proportional, then the inference based on the two samples should be the same. But consider the following simple example: We have a single observation ... |
I would like to use the mutual_info_regression object from scikit-learn to get a rough idea of how well any individual feature in my dataset could explain variation in the target feature.
According to documentation,
the function relies on nonparametric methods based on entropy estimation from k-nearest neighbors dista... |
I'm interested in problems of the following form, which I've deliberately specified a bit vaguely. I would like to know if problems of this kind have been studied, and if so what they're called and what's known about their optimal solutions.
There is a machine that takes inputs in some set $X$ and gives outputs in some... |
I've seen this formula for sample size determination in experimental studies, which was claimed by Walter Federer, is well-known among Indonesian bio researchers.
The formula is:
$$ (t-1)(n-1) \geq 15$$
However, I have never heard of this before.
The best that I found is this article, which I can't find the exact formu... |
I'm trying to model the distribution of my cumulated reputation on one Stack Exchange site over time (that is, each data point is the sum of my reputation whenever that reputation changes, mostly through up- or downvotes).
Here is an example of what the data looks like (the date is a timestamp in Unix time, that is, se... |
Somehow it seems like the less identifiable parameter is easier to hypothesis test.
I have a multivariate normal distribution with the following 4x4 variance-covariance matrix:
$$
\begin{bmatrix}
1&c&0.5&lc0.5\\
c&1&lc0.5&0.5\\
0.5&lc0.5&1&c\\
lc0.5&0.5&c&1\\
\end{bmatrix}
$$
Sometimes $c$ is by itself, and other time... |
I am trying to calculate the unstandardised beta for a categorical variable in a linear regression model
y ~ c + βx1
where y (on the original scale) has a mean of 1000ms and a standard deviation 80 ms.
x1 is categorical and takes on two values as 0 or 1.
The standardised beta is 0.14
Is there a way i can derive the bet... |
'Shap feature importance' was obtained through xgboost, and variables with the lowest feature importance were removed one by one from 50 variables until only 1 variable remained.
As a result of monitoring performance based on auc, we were able to see that performance continued to decrease from when there were 5 variabl... |
I am evaluating multiple ML models which are performing the same binary classification task on the same dataset with the same train-val-test split. I am now looking to compare these models and since the splits are the same my research suggest I need to use a paired test such as McNemar’s test. Now if I have understood... |
Dear crossvalidated community,
I am working on a serie of binary measures $y$ (0s and 1s), and an environamental variable $x$ (temperature). I suppose the existence of a $\bar x$ that acts like a "switch temperature".
But I do not know how to model this behaviour to infer $\bar x$.
$$
y \sim 0; x < \bar x
$$
$$
y \sim... |
Based on wiki, the definition of coefficient of determination is defined as $1 - RSS/TSS$, where RSS is the residual sum of squares ($\sum(y-\hat{y})^2$) and TSS is the total sum of squares ($\sum(y-\bar{y})^2$), with $\hat{y}$ the model prediction and $\bar{y}$ the sample mean.
It can be shown that $1 - RSS/TSS = ESS/... |
I am examining the effect of 'Phase' on reactions time (RT) data using a mixed model in lme4.
However, as is common with RT data, the residuals are non-normal.
This is the first model, which is a linear mixed model approach:
RT_lme<- lmer(RT ~ Phase.ct + (Phase.ct|Pt_ID) + (Phase.ct|Image),
data = Mooney_data, control=... |
looking to clear up some of my knowledge gaps.
Suppose given a dataset, and I am looking to compare the test MSE between different model implementations. For example, between a logistic regression and LDA, I am looking to compare the performance between these 2 approaches based on their test error.
Suppose that I wish ... |
I have a question regarding the choice between interaction term and subgroup analysis.
Suppose that I want to study the association between education and income by sex. I can fit a model with an interaction term as: income = education*sex
Or, fit a simpler model among males and females separately: income = education
In... |
So I was wondering why not just use:
$$dist(p,q)=\bigg(\int_{x \in X} |p(x)-q(x)|^2 dx\bigg)^{1/2}$$ instead of the commonly used KL-Divergence, which isn't even a distance measure and therefore not symmetric.
What is it lacking compared to those other solutions? One option I thought of is that it doesn't take into acc... |
I have a linear regression model where $Y$ is regressed on five dummies $X_3,X_4,X_5,X_{10},X_{20}$. (In R, I actually regress $Y$ on a factor $X$ that produces the 5 dummies.) My sample size is 24 (plus 6 NA observations).
When I naively test the joint significance of the dummies, the $p$-value is 0.4124. When I intro... |
The title of the post refers to this paper by Callaway & Sant'Anna: https://www.sciencedirect.com/science/article/pii/S0304407620303948?via%3Dihub
Let us assume that I have data on incidence ratio per 1000 person-years of cardiovascular disease (CVD), by census tract and year, in a city, for the period 1990-2020.
Let u... |
I performed a categorical clustering with some selected UCI datasets. I one-hot encoded the features, then directly used Binomial Mixture Model and KModes using this one-hot encoded data. On the otherhand, I preprocessed the one-hot encoded datasets further by using Gower's distance and fed the output into a hierarchic... |
Let's assume I have $K$ i.i.d. standard normal random variables $Z_1,...,Z_K$. Hence, I know that $V[Z_i] = 1$ and $E[Z_i] = 0$ for all $i\in K$. I am faced with computing the following conditional variance:
$$ V\left[Z_i| \sum_i\beta_iZ_i\right] \quad\; \text{where} \quad\; \sum_i\beta_i^2 = 1$$
where $\beta_i >0$ is ... |
Suppose (fictitious example) we have a logistic model for dependent "Happy" (0/1), and factor "Age" ("young", "middle", "old") as independent variable and also factor gender:
$logit = b_0 + b_1middle + b_2old +b_3gender$
For category "young", ALL cases in the sample feel happy, so Happy=1 for each young person (comple... |
I am investigating the effect of distributions of predictive variables ($x$) on their standard errors in regression. I thus programmed a little simulation to see how the standard errors behave. I used different distributions (normal, t, uniform, and log normal) as predictive variable in a regression model and looked at... |
Let's say I have discrete data that can only fall into a limited range - for example rating a product with a score from 1 to 10.
How would I go about assigning error bars to the average value of the data?
Staying with the example of a score from 1-10, let's say the average is 1.3, but there are a few outliers in the da... |
I'm fitting a linear model in R with a (non-transformed) response variable and two independent variables: one of them is continuous and the other is numeric but treated as an ordinal variable with four discrete levels. When I run my diagnostic plot it get these:
par(mfrow=c(2,2))
plot(fullmodel_revised)
plot(density(... |
I'm currently reading a paper which utilises a multiple regression and reports the adjusted $R^2$ with a p-value, and I'm wondering what this p-value refers to. Can you calculate p-values for adjusted $R^2$? It separately reports the p-values of the t-statistics for each exogenous variable so it can't be t-statistics.
... |
Truth be told, I don't really have an issue with this problem in general, but in it's calculation. Let me explain.
We need to find $E[Y]$ when $f(x,y) = \frac{x}{3}e^{-xy}$, $1<x<4$ and $y>0$.
So, first I calculated the marginal pdf of $y$ by integrating the joint pdf over the entire domain of $x$, and the calculate $... |
I conducted a four-phases experiment in which data from two groups of subjects are extracted
for each time point according to the states of the outcome variable Dur. So, this variable can be basically decomposed into four states. What I would like to see is if the two groups have different values of the dependent varia... |
On slide number 6 in this link, I found the following lines:
Not every set of possible outcomes will be called an event. Instead, we will require that the collection of events is a $\sigma$-algebra.
However, I don't know what is the motivation behind using $\sigma$-algebra subsets here and why not every set of possib... |
May I use Fisher information for constructing confidence interval for MLE variance estimator?
Fisher information should be: $I(\theta) = E[I_0(\theta,Y)] = E\left[ \frac{m}{2(\sigma^2)^2} \right] = \frac{m}{2(\sigma^2)^2}$
Variance of estimated parametr is : $V(\hat{\theta}) = I(\theta)^{-1} = \frac{2(\sigma^2)^2}{m}$
... |
After creating a simple linear regression model in numpy, I found that changing step size / learning rate was not effective in improving the accuracy of the model, or the speed of convergence. Notice given this standard model:
%%time
x = np.arange(100)
y = 3 * x + 5
x = np.column_stack((np.ones(100), x))
w = np.zeros... |
For a model with two categorical factors in the form:
X = A + B
Type I (used if the factors are balanced) calculates SS for each term in the model sequentially as follows:
SS(A) then
SS(B|A) = SS(A and B) - SS(A) then
SS(AB|A,B) = SS(A, B, AB) – SS(A,B)
Type II (Used if the factors are unbalanced and there is no signif... |
I have a sensor that captures when there was an impact in a container. With this i have a dataset that contains data of when the device communicated and there was no impact and when the device communicated and there was an impact. The problem is that the device always communicates if there was an impact and communicate... |
After conducting an exploratory IRT analysis, the most suitable theoretical and numerical solution suggests the utilization of five latent traits. These latent traits stem from 18 items, all measured on an ordinal Likert scale ranging from 1 to 7. Upon interpreting the resulting latent traits and their relationships wi... |
I have conducted a questionnaire survey of 20 questions, each question of one answer selection, but only one question is a multiple choice question. The sample size was 1000, means 1000 participants had answered my survey, BUT the sample size increased to 1400 for that particular multiple choice questions; means those ... |
I am studying the ARCH model for the first time and have encountered a step in the derivation that I don't fully understand. The context is as follows:
ARCH(1) model is defined by the equations (as per Chapter 14 of "Introduction to Econometrics" by Carter Hill):
\begin{aligned}
y_t &= \beta_0 + e_t \\
e_t | I_{t-1} &\... |
I have 6 animals whose behaviour I’m testing over multiple trials. It’s a pretty small dataset (max 15 observations per animal). Behaviour falls into multiple types. The same behaviour can occur multiple times per animal, and trial numbers vary per animal. This data is organised lengthwise, with one row per observation... |
I have 2 Fisher matrices where each colum/row represents the information (in Fisher's sense) of astrophysical parameters. These parameters are in the same order for both matrices.
Now, I would like to perform a synthesis of these 2 matrices in order to get and extract all the informations on these parameters.
For this,... |
I'm trying to do a time series analysis, but I'm new to this topic and I need help. I have a multivariable time series and I would like to do an analysis of the relationship between them. I have done a Grange causality test and the results are that there is a lot of grange causality between the time series at different... |
I have a question that might seem simple, but I'm unsure how to address it.
For an analysis on pixel detectors, I am extracting a histogram similar to the ones attached, focusing on the cluster size projected. This histogram represents the number of rows or columns (i.e., pixels) that my clusters have for each recorded... |
I am creating a a number of forecasts for sales at various levels of data aggregation, based on the properties of the products (eg. is it in a bottle or a can). I plan to create multiple models and then review the outputs before selecting a forecast - I would like to use MASE as a comparison metric.
I have monthly data... |
What formula or software package can be used for sample size caculations for correlated eye data? An observational study is being conducted in which participants that have two normal eyes and participants that have a clinical condition in one eye and another clinical condition in the second eye are being recruited. So ... |
I have time to event data with competing events and plan to use a competing risk model for my analysis. But what are the benefits in compairson to using a logit model and adding a dummy variate that controls for competing events?
|
How can I convince my teacher that he is wrong in this task? We were given the following task and my teacher says I have to use a z-test. In my opinion I have to use a t-test.The task is as follows:
A company installs a nuclear power blocker into the power grid to improve the health of its employees. Before installatio... |
Say I have an experiment with a binary response: 0 or 1.
Within each experiment, I put X number of individuals in a group (X sub samples) and measure the proportion that has a response of 1 (e.g. 2/4). I replicate this with new groups of X individuals Z times. That is, Z number of replicates.
In order to increase stati... |
This is a somewhat philosophical question. When executing classical statistical modeling, such as regression, LM, GLM, mixed modeling, etc., there is often no mention of propagating the error of the dependent variable. The few instances I saw something like that, it is often a relatively simple adjustment, where the st... |
I'm working with 5 variables related to "child and family health" using Item Response Theory to check the model and identify its parameters. My model is composed of items such as "Do you have a child with a learning or behavior problem?" and "Do you and your family members have health insurance or access to regular med... |
I am working to produce a model in R for seed germination count data with lots of zeros (around 50% of the 264 total observations). The purpose is to determine the effect treatments have on plant species as a whole and individually. Originally, I had fit a generalised linear mixed effects model (binomial error structur... |
I'm running the following ANCOVA:
m1 <- aov(formula = Rate ~ Treatment * Species * Weight, data = Data)
car::ANOVA(m1, type = 2)
My design is a bit unbalanced so I ran a type II ANOVA. I got these results:
Response: Rate
Sum Sq Df F value Pr(>F)
Treatment ... |
Consider this data
#Create the dataframe
values <- c(0, 0, 0, rep(30, 59), 0, rep(14, 20), 0, rep(24, 63), 0, 0 )
df <- data.frame(Samples = 1:length(values), Value = values)
#Add noise
set.seed(123) # for reproducibility
noise <- rnorm(length(values), mean = 0, sd = 1) # Generating random noise
df$Value <- df$Value ... |
In Kernel Ridge regression we have the standard loss function $$L(\beta) = \|Y-K\beta\|_2^2 + \alpha \beta^T K \beta$$
Here, $K$ is the kernel (gram) matrix.
If I compute $\beta$ on a training set, so that $K$ is the train gram matrix, how do I then compute the test loss, assuming I want to include the regularization t... |
I have a dataset which contains happiness scores of several subjects, measured three times within a day (in morning, afternoon and evening) and repeated across several days. But during how many days happiness was measured varies between subjects, and there are different missing time points for these subjects.
The first... |
In linear regression, let $\epsilon_i$ be the $i$th error term. Is the formula for $\epsilon_i$
$\epsilon_i = Y_i - E(Y_i)$
or
$\epsilon_i = Y_i - E(Y_i | X_i = x_i)$?
I have seen both definitions.
Penn State University uses Definition #1[1].
Iain Pardoe uses Definition #2 in Section 2.1 in his 3rd edition of "Appl... |
Closest question I could find to mine was this one, which doesn't cover it.
Is it possible to specify a correlation between two parameters in a Stan model? Consider a linear regression specified by:
$$
\begin{align}
y &\sim Normal(\mu, \sigma) \\
\mu &= \alpha + \beta \times x \\
\alpha &\sim Normal(0, 1) \\
\beta &\si... |
The underlined sentences below from p. 331 in An Introduction to Statistical Learning have me scratching my head: Given that the splitting algorithm always finds the best next split in terms of error reduction, how could it be possible for there to be a worthless split followed by a good split later on? And isn't setti... |
I am currently working on a logistic regression problem with an imbalanced dataset. The total number of rows in my input is 51220 (class_0=49,654, class_1=1,566). I use 3 predictors (1 continuous and 2 binary). I ran logistic regression with default parameters (glm in R), but the model's predictions were all below 0.5.... |
Suppose I have a binary vector $v$ of dimension $n$ with $np$ entries set to $1$ and $n(1-p)$ entries set to $0$ (where $0 \leq p \leq 1$, and $q:=1-p$).
Suppose I then generate a random vector $w$ by random sampling from flipping a $p$-weighted coin $n$ times. I then calculate the Hamming distance $d$ between $v$ and ... |
I want to build a Markov Chain model for a financial time series to determine transition probabilities from one state to another. The underlying assumption is that series obeys the Markovian property. I believe this is still an open question in the literature whether financial time series (e.g, stock prices, returns) a... |
I have 24 subjects. I have measured distance displaced between image frames at a framerate of 1Hz, so how far did the subject move in a 1sec interval? The continuous movement variable contains many zeroes. I have assigned a second response variable as a binary outcome for movement/no-movment. I wish to test for a corre... |
Let's assume you are measuring the physical activity levels over a day of some people, using accelerometry for example. The goal is to quantify the "clumpiness" of the activity patterns. It should discriminate between people that are physically active in many shorter bouts (upper graph in the picture below) and people ... |
Question details:
I have cohort data with a total of 100,000 participants. For some reason, I need to select 2000 participants as controls to construct a control group. I have 3,000 cases of disease A (stroke) and 6,000 cases of disease B (hepatitis). I wish to select 1500 cases of disease A, 1500 cases of disease B, a... |
I have some data where I have reason to believe the dependent variable $Y$ follows an Exponentially modified Gaussian distribution, i.e. $Y$ is the sum of one gaussian distributed stochastic variable $A$ and one exponentially distributed stochastic variable $B$,
$$ Y = A+B $$
I would like to construct a generalized lin... |
I have conducted fieldwork on tree seedlings in plots with different treatments: natural, managed, and fertilised.
The dataset consists of the frequency at which the different tree species occur. I got this for every year:
Sp Freq Year Treatment
NS 10.3 2000 N
PO 20.4 2000 N
Be ... |
I have data for a set of customers divided into treatment and control, where the objective is to check the impact of treatment on customer’s bank balance. To this purpose, I computed the percentage change in balance ($) in a fixed interval before and after treatment. e.g., +20% for a customer whose balance in the pre-t... |
I am trying to test the sensitivity of my model to a change in the parameters std and translation_factor. I get the following results :
Sobol First Order Indices:
translation_factor: -1.5191877062480437
std: -1.7561432756484356
Sobol First Order Indices confidence:
translation_factor: 0.036428989388587026
std: 0.042224... |
Assume I have a random variable $X \sim Poisson(\lambda)$ which models the potential nr of people entering some room. Now consider this room has a capacity $c$ so that whenever $X > c$ we observe $c$, so basically we consider the random variable $Y = min(c, X)$.
Now if we consider that $\lambda$ is fairly small, say $\... |
When training a LightGBM model with lgbm.train, I get the following warning:
[LightGBM] [Warning] Met categorical feature which contains sparse values. Consider renumbering to consecutive integers started from zero
The reason is that I have a column, specified as categorical, that contains the following integers:
[1... |
Is there a relationship between p-value and Cramer's V value after conducting Chi-square test for independence... is for Cramer's V value of about 0.13 the associated p-value is of about 0.001 or it depends on the sample size? Or maybe other factors?
|
In sklearn's documentation https://scikit-learn.org/1.4/modules/generated/sklearn.ensemble.RandomForestRegressor.html it states that the default scoring for OOB samples are r2. It also states that you can provide your own metric by "providing a callable with signature metric(y_true, y_pred) to use a custom metric."
How... |
I am currently trying to design a neural network for image stitching, but I am having trouble coming up with a neural network architecture that seems suitable for the job.
The input to my neural network will be the two images in the top row, which are overlapping in some way (the mask below gives the overlap region wh... |
I have a RCT data set as follows:
IV = Group (Intervention A, Intervention B, Control)
DV = Blood biomarker, Inhibitory control, working memory
I have two research aims.
Comparing the effect of interventions on DVs
Investigating the mediating effect of blood biomarker on inhibitory control and working memory
My resul... |
Participants received one of three sets of instructions and each completed the same two unique questions in a randomized order. I have a 3 (instructions type) x 2 (question) mixed effects model with participant ID as a random effect.
If I add the order variable (2 levels) to control for its potential effects, is my mod... |
Suppose an independent variable that is influential in the data generating process for some dependent variable is omitted. The omitted variable has the following characteristics:
It is NOT correlated with any of the included independent variables
It is correlated with the dependent variable (implied by the fact that it... |
I'm testing inter-rater reliability of an instrument on a sample of subjects from several sites. Each subject is assessed by two raters, different between each site.
According to this paper, I should use one-way ICC, which is used when subjects are rated by a different set of raters. It's not clear to me what the data ... |
Can anyone work out the p value just based on the graph below? I cannot understand how this is calculated and what additional information I would needs to work it out.
|
I am currently trying to predict household wealth in a random forest, using survey data.
My problem is the number of the observations. I have the option to either choose single years (n=4.000) or pooled years (n=20.000).
When pooling years, the survey year receives little importance scores, but is considered by the mod... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.