instruction stringlengths 9 38.7k |
|---|
We've tested a cohort of wildtype and mutant mice on many different behavioural tests.
5 different tests, performed on different days ON THE SAME SET OF MICE, assess anxiety.
While bonferonni or some other multiple test correction would "penalise" the repeated testing, shifting our alpha to ~alpha/5, I think that by co... |
I have a binary classification problem. I get ROI mammogram images and then apply a decomposition algorithm and as output I get 5 images which summation of them results in the original image. Now, having these five components, I apply a VGG-like deep model for training a network, considering an input shape as (320,320,... |
I am learning python especially in machine learning and computer vision. Recently, I was trying to examine codes of some papers in Github. One thing I got, is that writing codes for papers are much different from tutorials on internet. They are much more complicated, comprising of many different folders and .py files n... |
Let $X,Y\in \mathcal{N}(0,1)$ with $X$ and $Y$ independent. I am interested in the pdf of $Z=X^2/Y^2$ which has a $\mathcal{F}(1,1)$ Fisher distribution. I know that his can be done by first finding the pdfs of $U=X^2$ and $V=Y^2$ and find the pdf of $U/V$. However, I am interested in the following approach: let $h$ be... |
I have a dataset with behavioural observations that are split into different types within each category.
For example one category would be: "Boldness". Within "Boldness" 7 different types of behaviour exist, which would be my different variables (coloumns). For each of these variables I have count data, which often ar... |
In Equation. 15 of the DDPM paper it derives $x_o$ directly based on $\epsilon$ and $x_t$.
I understand the iterative denoising that achieves $x_{t-1}\leftarrow x_{x}$:
$$
x_{t - 1} = \frac{1}{\sqrt{\bar{\alpha}_t}}\big(x_t - \frac{\beta_t}{\sqrt{1-\bar{\alpha}_t}}\epsilon_{\theta}(x_t)\big) + \beta_t\mathbf{I}\cdot \... |
[![regression model.][1]][1]
[solve the questions given here.]
[1]: https://i.stack.imgur.com/f2LHc.png
|
I am currently writing a registered report for data which will be clustered within eight countries. Since that is too few to do a multilevel model with random effects (McNeish & Stapleton, 2016), I've chosen a fixed effects approach, where the country clusters are modelled as fixed effects (dummy variables) and the sta... |
I'm a Master's student analyzing the Attrak Diff questionnaire results from my user study. I do not have a background in statistics and I am struggling to interpret my results.
I ran one way repeated measures ANOVA and got a significant p value so I ran Tukey's to see which of the four questionnaire categories had sign... |
I would love to get some advice regarding the following please!
I have a dataset (n = 99) that comprises of:
Composite scores for 7 different cognitive domains
Measures of 934 lipid species, which can be summed into 27 subclasses
Cardiorespiratory fitness measured as VO2max (which I've also categorised as low/high
in ... |
Bartlett and Partnoy (BP) (2020) show that OLS with natural log dependent variables that are ratios must include the $\ln(denominator)$ on the RHS in order to avoid bias (see pages 24-28) unless one makes the assumption that $\ln(denominator)$ would a slope of $1$ with $\ln(numerator)$ on the LHS. This is because a $\... |
I want to know if mathematical formalism can be applied to understand the "geometric" structure of an experiment's data set, and esp. to the relationships between its categorical predictors.
First, defining terms…
Crossed vs. Nesting vs. Nested Categorical Predictors
Each level of a crossed predictor has a measuremen... |
In the region $0\leq x\leq 1$ and $0\leq y\leq 1$ I have 1 radio broadcaster placed in $(x_b,y_b)$ and N receivers. The position of the broadcaster is not known.
The position of each receiver however is known: $(x_i,y_i)$ as is the distance from the receiver to the broadcaster: $d_i$.
There is some noise in the distanc... |
When performing survival analysis with mixed models I've usually used random intercept or random intercept and random slopes models with these codes in R:
Random intercept:
coxme(surv~variable1+ (1|grouping))
Random intercept and slope:
coxme(surv~variable1 + (1+ variable1|grouping))
With variable1 being a categorica... |
I had two datasets with 144 points in 2 dimension then I used he sklearn library to fit the GMM and that fits well , I checked for the BIC values while fitting the model and chooses the model with low BIC value. After that I wanted to compute the JS divergence between the two gmms that we obtain and I used the followii... |
Currently, we are taking weight measures from a brick with a weight of 1kg as a way of calibration. However, the final weight returned by the sensor is not 1kg, instead, it varies along with ambient temperature, probably due to how the sensor estimates the weight (I attach the data scaled on a graph).
We want the retu... |
We've done a systematic review of studies that investigate the effect of physical exercise on pain and disability in workers, and we've been asked to complement it with a meta-analysis of the data.
So, we selected the studies that featured an intervention and a control group, and reported pre and post intervention meas... |
I have been reading this paper and I was wondering if their discriminitive loss definition is correct for instance segmentation ?
From what I understand they map the image pixels into a higher dimension and try to cluster them according to the instance they belong to. There is a loss term that "pulls" pixel embeddings ... |
I'm trying to create a regression MLP to predict a certain parameter using input data (which I have called indicators). Below I've put graphs corresponding to 570 entries of indicators 1 to 4 and parameters 1 and 2.
As seen, there is a strong dependence between the indicators and parameter 1, but not so much for param... |
The aim:
I am trying to investigate the difference of COPD incidence in participants in stratified age groups of alcohol consumption debut.
The dataset:
I have a dataset of approx 4700 participants who answered a questionnaire and performed a lung function test at both baseline and follow up.
The dataframe df is in lon... |
I am analyzing clinical data and complex microbiome data in a longitudinal study. I already compared different groups at baseline and between baseline and "events" using linear mixed models (LMMs) and permutation-based analyses.
Now, I would like to explore predictive modeling. During the time of the study some partici... |
I am experimenting with Monte Carlo simulations and have a question about the applicability of the method to my particular problem.
In this problem, I have a parameter $\phi$ which is normally distributed. I am then running a number of simulations to randomly generate values for $\phi$ that follow this normal distribut... |
I am performing an analysis and am using marginal homogeneity/stuart maxwell for the first time. It is a pre-post test and in analyzing secondary outcomes I ran into an issue. I downloaded three different marginal homogeneity packages in R ("DescTools", "irr", and "coin" with the commands "StuartMaxwellTest()", "stuart... |
I've been looking at a paper for a while that I find interesting. It's essentially a comparative analysis where the authors are comparing PCA/PLS to different machine learning methods. The aim is to predict bond risk premia so they report MSPE and R^2_{OOS} as their main results. But the results are a bit puzzling to m... |
Given two distributions a and b, we can assess the distance between them using e.g. the Wasserstein distance, Energy distance or Cohens'd. By dividing the metric values with the standard deviation of the combined distribution, we can make these metrics scale-invariant.
I wonder whether the following metric would make s... |
I'm testing two groups for equivalence in exercise self-efficacy using the TOSTER package in R. I ran a Mann-Whitney U test (wilcox_TOST). The lower limit p value is significant but not the NHST and upper limit p values. The confidence interval partially falls in the predefined equivalence limit (the lower side of it f... |
Imagine I have two cities situated near each other.
People have buying patterns in both cities so similar that the number of a company's sales per day is very closely correlated.
My goal is to predict sales in city A given that I only know sales in city B.
So my questions are:
1) Can I use regular OLS for this?
Teachi... |
Let $(X, Y)$ be distributed according to the exponential family density $f_{\theta_{1}, \theta_{2}}(x,y)=c( \theta_1 , \theta_2 )h(x,y)exp( \theta_1x+ \theta_2y)$.
Show that the only unbiased test for testing $H_{0} : \theta_{1} \leq a, \theta_{2} \leq b$ against $H_{1}:\theta_{1} > a$ or $\theta_{2} > b_1$ or both, i... |
I have created a mixed-effects Cox regression in r:
This can be created in coxph:
library(survival)
kidney <- data.frame(kidney)
coxph.me <- coxph(Surv(time, status) ~ age + sex + frailty(disease),
data = kidney,
x = TRUE)
Or coxme:
library(coxme)
coxme <- coxme(Surv(time, stat... |
We have a model that is predicting 5 year rent growth. We know that supply for the next two years is at a record high. We know that this record high supply is going to impact the rent growth prediction but because this is a model that predicts 5 years out, we are not able to introduce this supply knowledge into the t... |
I'm seeking clarification on the distinction between fixed effects and random effects in the context of panel data analysis. My understanding is as follows:
Fixed Effects: In a fixed effects model, individual characteristics that could influence the dependent variable, $Y$, are considered. For instance, with panel dat... |
I want to run some Bayesian analysis on some data. Suppose we have a sample that we believe comes from a binomial population. We have $m$ observations
$$X_i \sim \text{Bin}(n,p)
\quad \quad \quad
\text{ for } i \in \{1,2,\dots,m\}.$$
I have chosen my prior to be a beta distribution. I'm unsure how to pick parameters t... |
that's my first question on here :)
I am working with the kNN classifier on datasets from the multivariate normal distribution. I have to groups coming from N(mu_1,I) and N(mu_2,I) with differing expectation vectors mu_i and both identity matrices as covariances (so the features are independent). The dimension is 1000... |
I have a data $Y_t$ that basically measures the number of certain events at any day, and I have a time-series for all countries from 2015 to now. And I am trying to fit that $Y_t$ to some $X_t$ that I have and also add a dummy for country variable (also thinking of doing random/fixed effect for country but greater the ... |
So I was going through this paper: Align before Fuse: Vision and Language Representation Learning with Momentum Distillation (2017) by Junnan Li et al., in this they perform contrastive loss using KL divergence.
$$
L_{\text{ITC}} = (1 - \alpha) L_{\text{contrast}} + \frac{\alpha}{2} \left[ \text{KL} \left( q^{i2t} \par... |
I am conducting a genetic analysis comparing Fst and relatedness coefficient values between male and female animals across years from 2013-2019. Each year is divided into quarters, so I have a total of 40 quarter-year categories. Each year has a varying number of individuals, and the number of males and females are not... |
I know the size, empirical mean and empirical variance of two samples $X_1$ and $X_2$, but I don't know the values. How can I calculate the bounds of a confidence interval of the relative difference of the mean values $(m_1-m_2)/m_1$?
When I try to do a direct calculation, I have to calculate the variance of a ratio. O... |
I'm looking to calculate the needed sample size for a study based on precision of estimates, but am having a very difficult time figuring out exactly how to do it. What is mainly throwing me off is
needing to account for measurement error and
needing to account for repeated measures within the same participant.
Also,... |
This is a simple exploratory R question i hope somebody can help me with. I am trying to model accelerated failure time models on data that is arbitrarily censored (right, left, or interval censored) and some observations are left truncated. So far i have not been able to find a package that seems to be able to do that... |
What sample size should I take in order to estimate the mean of the exponential of normal distribution?
I use Matlab to make an approximation:
r = normrnd(0,5, 1,10^7); % generate 10 million sample, mu=0, sigma=5
mean(exp(r)) % gives 1.5493e+05
exp(0+5^2/2) % real expected value is 2.6834e+05
As can be seen the error ... |
I have some loose intuition with this but I don't understand it
Say we have a scatterplot of data in 2 dimensions. Then we can propose a mean model where, for all $x_i \in X$ the estimated $y_i = E[Y]$ or the average value of $y$ irrespective of $x$.
Then why are the estimated $y_i$ by the regression line equal to $E[Y... |
The calibration plot for logistic regression is quite intuitive for me because we can directly get the predicted probability. However, in Cox regression model we just get the hazard ratio so how can we transform it into the probability?
|
Let $(\Omega, \mathcal{A}, \mathbb{P})$ be a probability space and $X:(\Omega, \mathcal{A})\rightarrow (\mathcal{X}, \mathcal{F})$ and $Y:(\Omega, \mathcal{A})\rightarrow (\mathcal{Y}, \mathcal{G})$ be random variables. Assume there exists a regular conditional distribution $\mathbb{P}_{Y|X}$
My first question revolves... |
I'm working with a comprehensive dataset of 12,000 companies and 600 ESG metrics from Refinitiv, segmented into 10 sectors. In my feature selection process for determining influential ESG scores, I've encountered high missingness in top-ranked features (around 50%), identified using Shapley values and permutation impor... |
I am currently doing my first project involving a lot of statistics and I've stumbled into a bit of a problem.
I am researching if comments from two different subreddits explainlikeimfive (ELI5) and AskReddit (AR) are different in the amount of metaphors they use. I've used a model called FrameBERT(https://github.com/l... |
I have two different study groups (A: intervention, B: no intervention/control), each around n~220 patients. Now, every patient has had monthly check-ups for 12 months where blood was drawn, so for each patient, I have 12 metric values of lab values. I ran tests to see whether the data (i.e. the lab values) was normall... |
I’m looking for some advice on analysing this data. I think I need a multilevel model.
I have 58 participants measured progesterone and a factor at 4 timepoints. I would like to do a model to see how progesterone predicts factor1, but it should probably take into account repeated measurements per individual (4* per per... |
I was doing some tests regarding my PR curve for 2 different models (first image), and I got the idea of ploting the log of those curves (second image) to see if there were any insights that I could take from that.
I failed to find any previous work regarding this, can this new plot be any useful to draw conclusions be... |
I am trying to analyse the results from the Attrak Diff questionnaire, which is split into four 'quality' categories, and I was asking participants their opinions on three different feedback types. I got a significant p value from the one way repeated measures ANOVA so decided to run a Tukey test. The code I have for t... |
Let $X_{1} ,...,X_n$ be a random sample from a $N(\theta, 1)$ distribution. Let $0 < \alpha < 1$ and $\theta_{1} < \theta_{2} < \theta_{3} < \theta_{4}$. Consider testing the following set of hypotheses: $H_{0} : \theta \leq \theta_{1}$ or $\theta_{2} < \theta < \theta_{3}$ or $\theta \geq \theta_{4}$ vs $H_{1} : \the... |
Study design:
Within a two-year period (2021-2022), both the people in the treatment group and the people in the control group did not receive the treatment of interest at time point #1, and only the people in the treatment group received the treatment at time point #2.
Time points #1 and #2 vary across people. So, one... |
I have some data that I believe come from a binomially distributed population. A beta prior seems like an appropriate choice, but I don't have any very strong prior beliefs. I could use a less informative or Jeffrey's prior, but for the sake of what I'm working on I'd like to try the beta prior. Is there any justificat... |
Let's assume a data matrix $X_{n\times p}$. The idea of PCA is to find the projection $Xv$ that has the maximum variance. When thinking about column space $C(X)$ then $Xv$ is obviously a linear combination of columns of $X$, so we seek for that particular vector $c^* \in C(X)$ that maximizes the projection variance. No... |
I'm trying to learn linear mixed effects models and how to estimate them using the R package lme4 and I am confused about some aspects.
I have a dataset where a number of participants completed 6 trials for each condition in a 2 × 2 factorial design (factor1 and factor2). I want to model intercept, slope, and interacti... |
I am using 5 fold cross validation on my data. X_train is an array with shape (1303, 320, 320, 1) and y_train is an array of binary values with length 1303. I am using the below code to perform cross validation and train my ResNet50 network:
k = 5
fold_indices = kfold_indices(X_train, k)
model = ResNet50()
model.comp... |
I have the following data and am trying to fit a glm model. There are six factors. Each factor has $250$ samples and $Y$ accounts for the successes.
X <- seq(1:6); n = rep(250, 6)
Y <- c(28, 53, 93, 126, 172, 197)
I have the following model if I create a vector that follows the success and fail.
y <- cbind(Y, n - Y)
m... |
I'm hoping to fit a binary logistic regression to be used to predict the binary outcome for new cases/observations. I'm wondering if there is any way to gauge uncertainty of a prediction for individual cases - for example, if I use my model to predict the binary outcome in 500 cases (which were not used to build the mo... |
I don't know a lot about statistics and survival analysis so this might be a dull question.
I'm performing a survival analysis where I want to study the possible risk or protective factors that could lead to the incidence of a proctological pathology after the surgery of another proctological patology. I would like to ... |
I am writing a paper comparing quantitative values across $5$ groups. I have performed an ANOVA in SPSS 29 and have requested from the software the Levene statistic to judge if there is homogeneity in variance between the $5$ groups.
The software has reported a Levene statistic of means, medians, a test based on means ... |
Obviously, being a conjugate prior is useful as it saves performing tricky integrals or using a simulation, but why would I want to use a beta distribution? More generally, how does one pick an appropriate distribution as a prior at all? Obviously, the range of values the distribution can take is a factor to consider b... |
I have two algorithms that produce, for every observation, a vector of probabilities for 3 classes
| Algo 1 | Algo 2
-------------------------------------------------
Obs 1 | [0.5, 0.3, 0.2] | [0.3, 0.3, 0.4]
Obs 2 | [0.3, 0.2, 0.5] | [0.1, 0.1, 0.8]
Obs 3 | [0.2, 0.2, 0.6] | [0.2... |
This question has some similarities to a previous related question.
How can I fit a spline to data that contains values and 1st/2nd derivatives?
I went through the suggestions mentioned in that post, no issues with the theory but I am not sure how to implement that in R. So basically I am asking a similar question and ... |
I have a dataset of ambulance response times before and after a quality improvement change. I'm looking to see if there is a difference in response times before and after the change. Specifically, I'm trying to report the 90th percentile values in two groups (Before and After), the difference between their two 90th per... |
How do I determine Matthews' Correlation Coefficient for leave-one-out cross-validation? There doesn't seem to be a way to average the coefficient across folds - one element is insufficient support for calculating MCC.
|
I'm currently working with some power law data of the form:
$Y_i = \beta \times X_i ^{-\gamma} $
Where $Y_i$ are my measurements at point $X_i$. The uncertainty on $X_i$ is vanishingly small and can be neglected. However, my $Y_i$ measurements are quite noisy.
I'm trying to understand what the best way of capturing the... |
(1) Research background:
My research design involves having each participant complete multiple trials to assess their happiness rating while simultaneously recording EEG data. Each participant has different EEG channels. I aim to use EEG data metrics (such as avg_HFB and peri_HFB) from each channel to predict happiness... |
Aloha Cross Validated,
In the context of binary classifiers we have a number of metrics like accuracy, precision, recall, AUROC, F1, etc. To show robustness of a model we can gain a confidence interval via a bootstrap. Personally I have had issues with bootstrapping done with small / imbalanced datasets. Sometimes the ... |
So far my understanding:
consider two mutually exclusive events, A and B. If A occurs, B cannot, and vice versa. In this case, the occurrence of one event (say, A) provides certain information about the other event (B). Therefore, they are dependent.
Please describe?
|
Some perceive scientific information (for example, scientific evidence of climate change) as accurate, but others don't.
I want to know under which condition this biased evaluation increases or decreases.
To do so, I'm conducting a survey experiment, whose design is a 3 ("some conditions", 1, 2, or 3) X 2 (0 as conserv... |
As I understand it, the Cholesky decomposition of a Toeplitz matrix can be computed more efficiently by first embedding it in a circulant matrix then using FFT, but I'm having trouble finding any implementations of this approach anywhere, nor description of the specific series of operations I'd need to implement it mys... |
I thought I would quickly find the answer to this, and maybe my capabilities of using the sites search function are very poor, but I didn't find an answer to the definition of what a 2-stage estimator is. Maybe it's a case where the answer is so obvious that it doesn't need a definition.
Is it an estimator that compute... |
I am simulating non-normal data to investigate how this affects some diagnostical methods that assume normality. In particular I'm interested in seeing how skewness and kurtosis affects the results.
I've investigated skewness using the skewed normal distribution as well as the gamma distribution, but would like to chan... |
Classical VIF coefficient calculated using aux regression as $VIF_i = \frac{1}{1 - R^2_i}$. But this formula derived from classical linear model assumptions (spherical matrix of errors) under which $Var(\hat{\beta}_{OLS}) = \sigma^2 (X'X)^{-1}$. My question is any generalisation of VIF formula exist that based on robus... |
I'm working with a group of physicians who are interested in evaluating a new diagnostic tool for detecting colon cancer in older patients. The gold standard to detect colon cancer is with a colonoscopy (hereafter "a scope"). Their plan is to administer the diagnostic and then scope all patients so as to calculate th... |
I have a patient group (Group = 0) and a healthy control subject group (Group = 0). I have variables ID, Age, and C1. I want to z-standardize each individual C1 value in the patient group, using the corresponding C1 mean and standard deviation from the healthy control subject group within the age range matching each re... |
Someone asked a question on Stack Overflow where they noted a difference between Minitab and R (glm) results for the variance-covariance matrix of the parameters, for a probit-link binomial model.
Minitab's algorithm is not well described, but fitting the same model in glmmTMB (which uses general MLE rather than IRLS,... |
Consecutive differences in Poisson arrivals have an Exponential Distribution. In modelling this kind of data, I have usually seen the arrival rate (lambda) held as constant. Sometimes I have seen Non-Homogeneous approach where arrival lambda can change as a function of time.
In Non-Homogeneous approaches, I have genera... |
I established scalar measurement invariance for a two-group CFA. The output from my final model showed that the latent mean in group 1 is lower than the latent mean in group 2. Can this difference in latent means also be explained by different response styles (e.g., disacquiescence response style)? Why (not)?
I know th... |
I am embarking on a project for which I'd like to use functional Data Analysis (FDA). I have several thousand discrete curves objects on which I'd like to fit continuous time curves. These discrete curve objects each contain about 6 points on which to fit each continuous time curve.
I am concerned that 6 is too few a p... |
We've completed a systematic review of % diagnosed among female sex workers (FSW) living with HIV across Sub-Saharan Africa (SSA). In our Objective 1, we model this proportion $p_s$ as:
\begin{aligned}
y_s &\sim \textrm{binom}(p_s,n_s) \\
\textrm{logit}(p_s) &= \epsilon_s
+ R_s (\alpha_r + \beta_r t)
\end{aligned}
wher... |
I used the Joinpoint trend software (https://surveillance.cancer.gov/joinpoint/) and found interesting results to my data that really intrigued me.
I have mortality rates from 2001 to 2021 as follows:
Year
Population
Deaths
Crude_Death_Rate_100k
2001
172402407
86228
50.02
2002
174652142
87190
49.92
2003
176... |
A population moment is often stated as
$E[x]$
the sample moment counterpart is stated as
$1/n \sum_{i=1}^{n} x_i$.
I do not quite understand what is meant by
$E[x]$.
Why not
$E[x_i]$?
What does
$E[x]$
say? Expected value of all observations of x? What is x?
|
Here is a problem I am trying to solve:
Consider a sequence of IID random variables $Y_1,Y_2,Y_3,...$ with values in $E$ and let the function $\varphi: E^2 \rightarrow E$ define the corresponding sequence $X_1,X_2,X_3,...$ given by:
$$X_{n+1} = \varphi(Y_{n+1}, X_n)
\quad \quad \quad \text{for } n = 0,1,2,3,...$$
Pro... |
I understand that in OLS regression, the sum of the residuals for the entire model must be zero. However, does this property also guarantee that the sum of residuals within each subgroup defined by a categorical variable is zero?
If I have a categorical variable $X_2 \in \{0, 1\}$ and some continuous variable $X_1$ suc... |
I am trying to analyze a online food delivery usage for a company in COVID period. The data is time series data including 10 years. We have daily total amaount of order for food delivery (numbers). Different policies have been applied during Covid. These policies are work from home, shops closed, education stopped. The... |
Seeking relationships between two variable, both with random gaussian errors; ratio of error variances is unknown, no correlation of errors in X and Y, but another unknown variable Z (unmeasured) may be contributing most of the error that result in deviations from regression line. Errors in X, Y, Z are uncorrelated. Ho... |
I wanted to know the distribution of some discrete points and they don't follow any particular distribution according to the graphical and other methods. So, I thought of applying non-parametric method, KDE and obtained the KDE plot. Now I have 2 doubts:
How do I interpret that KDE plot so that I can proceed with esti... |
In many image classification models, the global pooling operation is performed before the classification layer (i.e. fully connected layer) to reduce model complexity. Is the global pooling layer a necessary component in the image classification framework?
|
I am looking to solve the following problem in Python.
I need to generate a sequence of numbers, $V$, which satisfy the following parameters:
$V$ is normally distributed as assessed by Shapiro-Wilks test; or contains negligible variance ($\sigma \le 2$).
The length of $V$ is equal to a specified constant, $C$.
The sum... |
I am struggling with a comparison of temporal processes, which are observed in several time series. The problem is as follows:
Suppose there are some semi-experimental conditions, with several observational processes running simultaneously or with a small lag (1-2% of each period’s length), producing a time series corr... |
I'm trying to build an GLM regression (10k samples and 50 dimensions). I ran an analysis of the dependent variable since the regression has a normality assumption for the dependent variable.
The QQ plot (mid fig) shows the distribution of y is far away from normal distribution (does it imply a gap in y? I did not find ... |
If I have to select an alternative way for causally finding the impact of a treatment using frequentist methods for a time series data, Bayesian Structural Time Series is one of them but is there a non-bayesian way to get around this? Additionally are there any python or r packages that let me do this?
|
I am currently working with a sparse matrix dataset and employing the Isolation Forest algorithm for outlier detection. Given the nature of my data (high dimensionality and sparsity), I am contemplating whether increasing the subsampling size for the Isolation Forest algorithm could yield better results.
The default s... |
Let's say, for the sake of ease, I have a sample of data that I believe comes from the binomial distribution. Let's say I have 100 observations in my sample. Previous to this experiment, I have created 10 samples of data and recorded summary statistics on them (each sample having 10 observations). I want to use these o... |
I want to create a lasso model, but I can't have a test set because I have a small sample size. So, I want to use cross-validation to evaluate the model.
I have seen that functions like cv.glmnet and caret are used to make the lasso model. Now I want to know if it is possible to get the confusion matrix from cv.glmnet ... |
$X$ and $Y$ are independent variables $X$ ~ $N(0,2)$ and $Y$ ~ $N(0,1)$. What is the probability that $X > Y$? I understand that the distribution of $X - Y$ ~ $N(0,3)$ assuming they are independent. Then it should be plausible that:
$$
P(X > Y) = P(X - Y > 0)
$$
$X - Y$ has a mean of $0$ so I think it is probably equal... |
I am trying to understand the paper NeuralODE which is very interesting.
I get the general idea and the proof they give about the dynamics of the adjoint are fairly simple.
They define a network $f$, parametrized by $\theta$:
$$
\frac{dz(t)}{dt} = f(z(t), t, \theta)
$$
Of course, to train the network, it is important t... |
I'm trying to do threshold moving to get the appropriate threshold for an imbalanced dataset. I have a 1D timeseries that I am applying a binary transformer-based classifier on. I have:
Training set:
Total samples: 8133
Number of 0s: 6930 (85.21%)
Number of 1s: 1203 (14.79%)
Validation set:
Total samples: 904
... |
I am trying to replicate a study published by Bai & Liang, 2022 which focuses on clustering purely categorical data which are mostly found in the UCI repository. In my experiment for K-Modes, I have observed that the indices which includes the Normalized Variation of information (NVI), Normalized Information Distance (... |
In the case of a neural network,are there different cost functions for different hidden layers?
or is there one cost function for the final layer ?
For example, in the neural network, the hidden layer has sigmoid and Relu activations, and the output layer has linear activation.
So, Will the cost function be MSE dependi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.