instruction
stringlengths
9
38.7k
I have an RNA seq dataset, but I am only interested in the expression of a single pre-specified gene and to compare it between 2 groups (patient phenotypes). Some have suggested (without a reference) that I use variance-stabilizing transformation and do a simple t-test between 2 groups, but I am not sure if this is the...
I have three log-transformed time series variables, which are: I(1) and not cointegrated. I read in a lecture slide that I can rethink my model by adding an LDV. This solves my autocorrelation problem (I add LDV to solve for the autocorrelation), but the effect of external regressor drops significantly. I am trying out...
I am constructing an algorithm where it should map every input to a different output and the output bits should be statistically random (that is when put into randomness test suites (like NIST), it should give a fairly good score). My question is, for a size of X for the input, how long should the output be for the abo...
Imagine that I am trying to simulate a data generating process where I make the following assumption about $Y$: $Y$ = $X$(0.15) + $Z_1$(0.23) + $Z_2$(0.08) + $Z_3$(0.19) + $Z_4$(0.05) + Error Also, consider that I am interested in several estimators and I am trying to find which estimator recovers the defined treatment...
I am using a RNN with two Bi-LSTM layers to classify signals. The signals are complex valued, so what I am feeding the network are the magnitude, phase and unwrapped phase. These parameters of the signals look like such: Please note that these plots are just for 1 signal. There are 3 plots, or parameters per signal....
Given a set of n one dimensional (circular) Von Mises distributions, it is possible to randomly sample each distribution (with a different weight, w, applied to each distribution) and estimate parameters mu and k for a single joint distribution. This is straight-forward using the r package circular. However, for my rea...
I am studying Kernel PCA methods and now I'm trying to calculate orthogonal distances (OD) on the feature space. What I've found is, you can calculate ODs with a kernel trick if you are interested in one of the training observations. However, I could not find a way to calculate OD between a new observation and the prev...
Just wanted to make sure that my proof is correct and that I am not missing anything in the process. Any thoughts? " To demonstrate mathematically that the K-means algorithm corresponds to an algorithm of Expectation Maximization, we need to show that the K-means algorithm can be derived from the EM algorithm for a spe...
I'm using boot::boot with BCa to assess uncertainty estimation for a binomial model. The statistic function is manually coded as a cluster bootstrap with G-computation (full explanation and replicable code: https://stats.stackexchange.com/a/620201/323174). In rare instances, I get a sample that contains only some of th...
Suppose I have some data, and use this data to create a posterior distribution. Now suppose I have some new data that I believe is from the same population as the data before. Can I now use my old posterior distribution as a new prior, given my new data?
I'm am looking for ways to combine multiple quantitative values in order to build a ROC curve with specificity and sensitivity. This seems to be common in multiple biomarkers paper, but I can't find any direct way to do it. CombiROC seemed to be made for this, but the Shiny app is no longer working and the packages hav...
I am going to write some tests on advanced topics on Statistical sample survey methodologies, which includes following topics like below Simple random sampling, Systematic sampling, PPS sampling, Stratified sampling. Ratio and regression methods of estimation. Non-sampling errors, Non-response bias What are textbooks t...
I'm trying to carry out my first EDA on a Student Performance dataset. The dataset has 395 samples and consists of 33 attributes. After drawing the boxplots and doing some tests I detected outliers in 10 of those attributes, ranging from very small percentages (0.3%) to higher ones (up to 21%). In some columns, whether...
I was reading this post which is relevant to a research project I'm working on now. I think that I understand the difference between crossed and nested random effects, e.g. as described here. The first post I linked asks about differences between the random effects structure Ticks~(1|Year)+(1|Site) vs. Ticks~(1|Year)+(...
I want to make a classifier for a very rare category. The base rate in a random sample is about 0.01%, estimated from finding about 10 positive examples using a zero-shot classifier on 100,000 unlabelled examples. I have access to a lot more unlabelled examples. Obviously there are a lot of weird and wonderful techniqu...
When doing a hypothesis test for whether some value $a$ is significantly different from some other value $b$, if the confidence interval for $a$ contains $b$, then we cannot reject the null hypothesis and thus $a$ is not significantly different from $b$. Take the following graph for example (plotted with seaborn.regplo...
I use simple linear regression and I want to find the decomposition of MSE, that is as a sum of the bias, the variance and the variance of the error terms. I have the following code: n <- 100 Sigma <- 2 x <- rnorm(n, 0, 3) y <- x + rnorm(n, 0, sqrt(Sigma)) sim_data <- data.frame(y,x) model <- lm(y ~ x, data = sim_dat...
I am having trouble understanding how to interpret a Schoenfeld plot and how to correct for the violation of PH assumption in Cox PH model when using continuous numeric covariates. Here is the code I am using to call the model, the variable I am investigating is average spring/summer precipitation (AS_avg_total_p_mm) o...
The wikipedia article about Brier Score mention a two-way decomposition: $$ BS = CAL + REL $$ (Calibration and Reliability) with: $$ REL = \frac{1}{N} \sum_{k=1}^{K} n_k * \hat{o_k} * (1 - \hat{o_k})$$ where reliability is linked to AUROC. But it is not entirely clear how they are related. Can anyone clarify how this q...
Let's say I have a set $X$ of $N$ random $p$-dimensional vectors generated by $\mathbf{x}_i = \boldsymbol{\mu} + \Psi_i^{1/2} \boldsymbol{\xi}_i + \Sigma^{1/2} \boldsymbol{\zeta}_i$, where $\boldsymbol{\xi}_i, \; \boldsymbol{\zeta}_i \sim \mathcal{N}_p(\mathbf{0}, \mathbb{I})$ are $p$-variate standard normally distribu...
I made a question here Poisson Distribution with Changing Lambda? where I was curious about Poisson Arrival Process where the lambda parameter varies according to an AR process or a discrete markov process. I was wondering : Could any of these plots be considered as a Thinning Process or a Compounded Process? 1) Thinn...
Suppose $e_0=1$ and $e_k$ evolves according to the following recurrence with $x_i\sim \operatorname{Cauchy}$, IID draws from standard Cauchy random variable. $$e_{i+1}\leftarrow e_i - a (x_i e_i)$$ Does this random walk converge to 0 in probability for any value of $a$? This appears to be true for Gaussian $x_i$ and $0...
I understand that Regression with Arima errors which is also called Dynamic regression is normally implemented using exogeneous variables, is it possible to implement dynamic regression using only endogenous variables? And how would this be implemented? Bellow is the regression equation using exogenous variables (Indep...
Suppose that I have a simple univariate time series. My goal is to use the value of 3 consecutive days to predict the value of the fourth day. I built my dataset by applying a rolling window that moves forward along the time series by one day at a time. The resulting dataset is structured as shown in this picture: My...
I have a set of data that I think shows a slight decrease in the value, but there is no statistical difference among the groups. Is there a test to check if there is indeed a trend in the data in the absence of clear difference between groups? The data I have is the following: r0 = c(0.128, 0.131, 0.118) r1 = c(0.128, ...
I've got time series 3 years long, there is seasonal uplift during December - but it's not so clear. Seasonal test fails. I train model twice without setting any parameter: auto.arima(tsData, trace = TRUE) ARIMA(2,1,2)(0,0,1)[52] : 2294.794 Best model: ARIMA(2,1,2)(0,0,1)[52] and with capital D se...
I am trying out GLMMs models to test whether two categorical variables (species and sex) and their interaction (sex + species + sex*species= fixed factors) influence certain acoustic parameters (response variable) of some vocalisations. My response variables are continuous numerical positive, such as the Fundamental fr...
I have a dataset of thousands of reddit posts on economic issues in the U.S. We selected a random sample of 40% of total posts where each post contained a "Blame" indicator with three possible values "Republicans", "Dems", the "Federal Reserve," or "Neither" which captures who is being blamed in each in a given post. M...
The Data I have a list of N ∼ 6700 population members who have a condition and are labeled with age in whole years and biological sex. For the parent population, I have The total number of each sex (∼1e6 each). A population pyramid labeled in percentages to one decimal place. I want to test the hypothesis that the po...
I'm trying to wrap my head around how to interpret the results of CCA. I've got a fairly deep understanding of OLS regression, and I've read a lot of helpful CCA explainers like this one by @ttnphns. However, I'm still struggling with one particular aspect of the logic of what one apparently does with the CCA results. ...
I have an numerator and denominator data for an outcome variable from multiple countries disaggregated by several factors, such as age and gender - similar to: country gender age denominator numerator Country A M <=15 1414 958 Country A M >15 1462 837 Country A F <=15 1178 121 Country A F >15 1525 1372 ...
I'm trying to apply reinforcement learning to learn the optimal stepsize in every gradient descent step. Currently I'm only considering simple quadratic problems of the form f(x)=x'Qx with Q diagonal and condition number 10. I'm using the Soft Actor-Critic (SAC) implementation of Stable-Baselines 3 (SB3) in Python. How...
I want to minimize a loss function $L(\Theta \mid X)$ given data $X = \{x_1,\dots,x_D\}$ where $D$ is large. The loss can be decomposed as: $L(\Theta \mid X) = \sum_{d=1}^D l(\Theta \mid x_d)$ where each $l$ is non-convex. The domain of $\Theta$ is a subset of $\mathbb R^n$, with various constraints along each or multi...
I've not seen an example of multiple multivariate regression use an F statistic, is it still valid here? (Would the f stat follow the f distribution under the null hypothesis?) detail Given n paired observations: $X \in \mathbb{R}^{a \times n}$ predictor variables ($a > 1$) $a' < a$ of these are covariate (nuisance)...
This is probably a fairly simple question, but it is one that I have not considered until now. Imagine that I have some $Y$ of interest (let's say, body fat percentage), and I also have some $X$ of interest - a binary indicator of whether or not a person has changed their eating habit to a particular diet (for simplici...
I am not an advanced mathematician and I'm very new to spatial autocorrelation. So I apologize if my question seems primitive in any way. I'm looking for ways to quantify the distribution similarity of two heatmaps. The heatmaps are saliency maps generated from an AI model (see below for an example of a corresponding p...
There are four different methods I use to generate solutions for different domains. To determine which solution is the most useful, I want to conduct an experiment with participants. As I have some limitations about the execution of the experiment, such as how long it should take each participant to participate, I cons...
Team $1$ has a historical win percentage of $p_1$. Team $2$ has a historical win percentage of $p_2$. The upcoming game features team $1$ against team $2$ and cannot end in a tie (one team wins, and the other loses). While this isn't strictly true, assume the time series of wins for each team to be $iid$ (so no player ...
I'm a teacher doing some basic research but I'm out of my waters in anything statistical. Recently I submitted a paper based on a student survey which aimed at evaluating the impact of a new pedagogical tool that we are deploying. Students were asked to answer questions about the tool using several scales (e.g. 1-5, Ye...
I have questions about the Box-Cox transformation that can be used to maintain positive forecasts (Log-Transform) when $\lambda=0$ \begin{equation} w_t = \begin{cases} \log(y_t) & \text{if $\lambda=0$}; \\ (\text{sign}(y_t)|y_t|^\lambda-1)/\lambda & \text{otherwise}. \end{cases} \tag{3.1} \e...
I am following the CS231n NN case study — a derivation of gradient descent for a simple network with a single hidden layer. I have followed the rest of the tutorial and have confidence that the derivations are correct. However, when I run their code (after “The full code looks very similar:”), I encounter increases to ...
I am interested in the latest insights and thinking about the computation of p-values for the fixed effects in mixed models. This stems from the perspective offered by Douglas Bates in 2006, where he expressed reservations about the methodological soundness of computing p-values at all for the fixed effects in mixed mo...
I am conducting a vote-counting meta-analysis where the only information I have from each study is the direction of the treatment effect (positive or negative) and the sample size. My plan is to fit a binary logistic regression with treatment effect direction as the response variable and several study-level characteris...
I am comparing biomarker levels (50 total) obtained from immunoassay in a cohort divided into 3 groups (control vs. inactive vs. active). I want to use the Kruskal-Wallis test with Dunn’s test to assess if there are differences between the groups (control vs. inactive, control vs. active, inactive vs. active). I would ...
I have a SEM model in SPSS AMOS that is testing the mediating effect of information sharing on the relationship between the three dimensions of trustworthiness (which are ability, integrity and benevolence) and innovation. The picture below depicts my SEM model. When I run the full structural model on SPSS AMOS, the r...
I have a dataset, I attach a sample of my data and the code. I have one column which shows the intensity value of a disease, one column which shows that its weak of moderate and the other columns are different alleles! (in my real data I have 25 rows and 36 allels). So, I want to find the relation ship between the alle...
I've only recently encountered path analysis. Suppose I have a simple causal model like this: I'm not sure if it's needed for this q., but for simplicity let's assume X, Y, Z are multivariate normal. My usual approach to analysing the strength of the effects would be to regress Y on X, and then regress Z on X and Y. D...
I learned recently that you need to mean center variables for regression. I have a few follow up questions: Do you mean center variables before any advanced analysis (e.g. SEM, MLM, LGM) or just regression? Is mean centering required for regression or it okay to not mean center variables? Is mean centering only necess...
I am thinking about a variational autoencoder. As far as I understand it, in the encoding section you compress to a px1 tensor and then you create a $\mu$ and $\sigma$ of dimensions of my choice (though less than $p$). The decoding layer is then the reverse. But what if I want to do dimensionality reduction using the V...
For a simple data set: anthers.sum <- structure(list(storage = c(1, 2), n = c(309, 247), y = c(164, 155)), row.names = c(NA, -2L), class = "data.frame") logit_model <- glm(cbind(y, n-y) ~ storage, data=anthers.sum, family=binomial(link='logit')) summary(logit_model) Call: glm(formula = cbind(y, n - y) ~ stor...
I collected survey data in late 2018 through mid 2019. With the pandemic and other projects, I haven't had time to do anything but enter the data. I have not yet analyzed the data, or even looked at basic descriptives or correlations. I do have hypotheses and theory that were generated in 2018. Is it too late to pre-re...
I'm fairly new to Bayesian deep learning, so sorry if this is a silly question. I'm trying to implement the work in this paper: What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision? Throughout the paper, they give minimisation objectives that allow the model to learn aleatoric uncertainty, but t...
Explaining, imagine that I compute a single test statistic from $n$ successive real world samples. And imagine that I obtain a total of $m \gg n$ real world samples during my experiment. Do I have $m$ or $m \over n$ samples to work with for hypothesis testing? An example whereby I test for a uniform distribution as p...
I am interested in using this algorithm, glm-pca, to find a lower dimensional embedding in time series data, specifically neuronal spiking data, which is Poisson distributed. I have looked at some posts regarding finding the covariance of two Poisson distributions https://math.stackexchange.com/questions/3707140/joint-...
I very much like the idea of the ROPE (region of practical equivalence) (e.g. see here), where you compute the posterior probability that a given parameter is in a previous range that counts as "small" in subject-area terms. (This is not a substitute-for-a-hypothesis-rejection-procedure question; in the particular cont...
I have a highly skewed dataset. But, my MODEL of choice below shows drastically improved, normally distributed residuals (and predicted values) compared to other models whose residuals are not modeled. Two questions: 1- Is MODEL below assuming that my data for each subject come from normal populations whose variances a...
I am running a GLMM on my small dataset ($n=31$) in a repeated measures study that has $2$ groups and $5$ conditions (conditions are fixed for everyone). I am interested in main effects of group and condition as well as the interaction effect. The dependent variable is derived from two count variables (say response $A$...
If we know A and B are independent such that $P(A,B) = P(A)P(B)$, does $P(A|C)P(B|C)=P(A,B|C)$? Intuitively, it seems like this should be true, but I don't know how to prove this formally.
I am working on a project where there are 2 variables to monitor, say sales (actual) and projected sales (target). The sales can be volatile in terms of target achievement. 1️⃣ Case Like there can be sales which achieves the target for say first two months, but then it doesn't and again it does... this way my sales v...
My colleagues and I argued about the point estimate's accuracy. They said that "The point estimate will tend to be accurate if the sample size exceeds 30." While I am saying no, "The point estimate is always a subject to error as we will never know the population value" Which is the correct one?
I have some data that I believe comes from the binomial distribution. I also have some old data from a past-experiment that I would like to base my prior beliefs on. The old data observations are: $$6, 5, 4, 2, 2, 1, 5, 4, 5, 1 $$ I want to base the mean and variance of a beta prior on these observations. Now, I could ...
I'm trying to apply reinforcement learning to learn the optimal stepsize in every gradient descent step. Currently I'm only considering simple quadratic problems of the form f(x)=x'Qx with Q diagonal and condition number 10. I'm using the SAC implementation of SB3 in Python. However, even when trying to overfit to one ...
The discrete Fourier transform (DFT) is widely utilized in computer engineering, and its formula is as follows: $$X(k)=\sum_{n=0}^{N-1}x[n]e^{-i\frac{2\pi}{N}nk},$$ where the result $X(k)$ refers to the Fourier coefficient and it reveals the amplitude and phase at each frequency. I try to apply DFT or FFT to financial ...
Our data is like this: Participants could choose one of four parties at baseline and at follow up (Germany has many political parties...). So the table for the raw data looks like this: For one analysis we want only to look at people changing from A or from B to C or to D. Our hypothesis is that more people from A cha...
I have a hard time interpreting a coefficient from a fixed effect logistic regression, especially in the case where no observation has this value in a given group. Consider this model, where we regress mpg by gear and fix by am. fe <- feols(mpg ~ factor(gear) | am, data = mtcars) OLS estimation, Dep. Var.: mpg Observa...
Some clarifications to my question: The data I have available for use is: (a) historic data of features and ground truth on 60-minute interval, (b) real-time data of features on 60-minute interval, (c) real-time data of ground truth on 15-minute interval. The use case is in energy yield forecasting, where we want to i...
An online training course involves 100 videos, which people watch one per session, starting with 1 and finishing at 100. People drop out of the course, having completed N sessions, and watched videos 1 thru N. If the rate at which people drop out has either an exponential or power law distribution, what is the expected...
I am working on a research paper exploring the differential effect (or interaction) of financialization on the housing conditions of the population according to tenure status. For this purpose, I decided to perform a multilevel analysis with the R package glmmTMB. The variables of interest are "precahabcat" (a measure ...
There are several models for speaker verificaiton task (wavlm-ecapa / xvector / ...). Some of those model where trained with AAM Softmax loss, which gets the number of labels as input. When training speaker verificaiton task, we would split the data to train and validate (i.e different speakers in train set and differ...
I want to estimate the expected return of three different distributions. So there is this game I play, which has a function where you invest in a marketing campaign. There are three different types: Type $1$, Type $2$, Type $3$. All three distributions are given "estimated" ranges, but values can occur outside of these...
QUESTION I am studying the structure of experiment data sets, and I want to propose a rule that I call the "transitive property of nested predictors". The general idea is that… if there are three predictors: A, B, and C and if B is nested within A and if C is nested within B Then… C is nested within A My question i...
I am trying to analyze my data using survival analysis in R and I am curious about how to identify my data. My research is an 11-month longitudinal study, and me and my colleagues collected data for almost every 2 months (wave 1-7). Only wave 5 and 6 were 1 month apart, but all others were 2 months apart. As I understo...
I have a data frame D1 in R with a dependent binary variable Response (0/1) and a set of covariates like age and gender. I want to know how "typical" everyone's Response is given their age and gender. I also have another, large data frame D2 with the same variables, which I can use to predict what is "typical". I fit a...
I'm currently looking at three specific questions of a feedback survey and have been tasked with finding out the characteristics of the lowest scorers, to see if there are any patterns or common characteristics of people who score low on these items. These characteristics are demographic variables (age, sex, education,...
I want to build a many-to-many LSTM and I need some guidance on how to prepare the data that I have for such a model. My data frame consists of subject_ID (dance couple), Time (in s, time step in a song when the move happened, so from 0s to 3min), Behavior (dance move name). The data would look something like this: I ...
I'm working on DEG dataset and I've done Pearson correlation to prepare my dataset for downstream analysis (co-expression network), so this isn't an exploration phase. When I do pearson on R using Hmisc I get P and R values. I'm trying to use these p-values to make sure that the correlation value r is significant, but ...
Let's say I have N vectors, all of length L. Each vector is binary, such that they comprise of 0s and 1s whereby a 0 represents an 'absence' and 1 represents a 'presence' of an element denoted by its column. For example, think of two vectors that represent two shopping baskets. Which groceries are in each? Let's say we...
I am currently working on an unsupervised anomaly detection project and facing a challenge regarding the validation of the model's performance due to the absence of ground truth labels. I am using Isolation Forest, LOF and Autoencoders for anomaly detection. The dataset comprises very sparse high dimensional tabular da...
I'm a bit unsure about a current project I'm concerned with. I have an outcome of interest, say $y$, and a main predictor, say $x$, which both are continuous. I have multiple measurements per subject of $x$ and $y$, at different timepoints. Apart from that, I have some other covariates, which should be included in the ...
I am looking at using a cox proportional hazards model to look at migration after disasters. I have two disasters at T1 and T2 (which are two years apart). I created two models looking at the risk of exposure in the 18 months following the disaster to see if disaster exposure was associated with changes to the risk of ...
In the famous Liang and Zeger 1986 paper on GEEs https://www.jstor.org/stable/2336267?seq=9, they sketch a proof using the standard m-estimator arguments: (unstated) regularity conditions + first-order Taylor expansion + somehow a vanishing remainder in probability (covered by regularity conditions) + routine convergen...
General case: to build a model of market for further quality estimation of our algorithms. (Predicting optimal price, demand prediction etc.) Current approach: take two features of a product - price and demand, represent it as a time-series. Next step I'm trying to "get rid of" time dependance for this series — by "sub...
Given a sample $x = (x_1, \ldots, x_n)$, define $x_{(-i)}$ as the sample values excluding sample $x_i$. That is, $$ x_{(-i)} = (x_1, \ldots, x_{i-1}, x_{i+1}, \ldots x_n). $$ Now given estimator $T(x)$ of parameter $\tau(\theta)$ based on the sample $x$, Lehmann and Casella (in the 2nd edition of Theory of Point Estima...
I'm a newbie in topic models. From my understanding, topic models like latent dirichlet allocation (LDA) (without empirical Bayes on hyperparameters) performs variational inference to approximate the posterior, and really it's not related to parameter estimation. Should I, then, fit an LDA on training set, fix the topi...
How could I generate time-to-event data from a piecewise exponential model with a binary covariate in R? Could someone point me to some R packages and/or walk through how to code this from scratch?
We have contractors submitting tasks of different complexities (High/Medium/Low) and we would like to audit them. Considering the auditing resource availability, we have to sample the submitted tasks and perform auditing. I am planning to adopt "ISO 2859-1: Sampling procedures for inspection by attributes" and use the ...
To predict interest rates I am using CPI, fed funding rate, yearly average housing prices, and interest rate. I have all my data set up to what year it is, for example, 1971-01-01 has a CPI x, IR x, FED rate x, and price x. I guess what I am trying to see is if I can use the dates not just as an index but to predict fu...
I have been trying to cluster a scatter plot that has a triangular graph, ideally the proper clustering plot should have a linear form, as shown below: I tried using Spectral Clustering: and Gaussian Mixture Model: But my the desired clusters is not achieved, I am wondering if there are other clustering forms that c...
The simple linear regression model is given by $y_i = \beta_0 + \beta_1x_1 + e$ It is my understanding that it can be rewritten in matrix vector form as $\vec{y} = X\vec{\beta} + \vec{e}$ where $X$ is the design matrix and $\vec{y}, \vec{\beta}$ and $\vec{e}$ are vectors of the observed $y_i$, true coefficients $\beta_...
I have a dataset that has both bad and good data. A sample of these two datasets are as below: Bad ID badness protection% 100 50 5 200 30 100 300 60 20 Good ID badness protection% 101 0 0 201 0 100 301 0 50 I want to infer something that says if the protection % is low, badness score...
I am proposing unsupervised training using python and graph neural network. I am using (SAGE) as main GNN layer, tanh as activation function and SGD optimizer with learning rate = 0.05, momentum= .9, weight_decay=0.01 my loss curve is showing this result, why it does not converge smoothly and instead it oscillates? doe...
Context Imagine we measure two outcomes $\mathbf{Y}$ and $\mathbf{Z}$ that are real vectors. We also have the following covariates $G,T, X_1,\cdots,X_k$ for a given integer $k>1$. $G$ represents a group and can take either the value $0$ or $1$ and $T$ is the time and it is a categorical variable with several possible l...
How would I calculate the probability of getting a royal flush with 2 player Texas holdem poker. A single randomly shuffled 52 card deck, 2 players (p1 & p2) are sequentially dealt 4 cards i.e. p1 gets card 1, card 3 and p2 gets card 2, card 4. Then 3 cards are placed on the table (Flop), followed by a discarded card, ...
In random forest, cross-validation is necessary? or can I use all the data for randomforest model? If I use 10-folds, how can I make the best model? can I just pick one best fold?
One of the outputs of XLSTAT for Partial Least Squares Regression PLSR is a plot showing VIP (Variable Importance for the Projection) and, as I understand, the confidence interval at 95% of each VIP under the form of black vertical lines for each variable, as shown in the figure below coming from https://help.xlstat.co...
Diff in diff question: Can you do difference in differences if the pre-treatment outcome is a different measure to the post-treatment outcome? For example, in Education, imagine there is a new programme that occurs in eighth grade and is rolled out to some areas/schools. If you want to use attainment as the outcome var...
What does it mean that 'The SVM hinge loss estimates the mode of the posterior class probabilities'(Elements of statistical Learning p.427). The decision function f(x) assigns to the positive class(+1) if it is greater than 0 or if it is less than 0 to the negative class(-1) but how does that relate to the posterior c...
I'm running a mediation analysis where I'm testing if information sharing mediates the relationship between integrity and innovation. The data was sourced using surveys with the survey being on a likert scale. Now I did the model fit using CFA in SPSS AMOS, and tested for composite reliability, convergent and discrimin...
I have $Y$ that is a gamma-Poisson distribution with mean $\mu$ and $\kappa$ is the overdispersion. I'm trying to obtain fisher information but i don't know how to solve expected value of trigamma function, $\psi'(\kappa + y_i)$ in the formula below. The observed information obtained for k is: $$ -\sum_i \left[\frac{y_...
I am currently working on a project exploring the risk factors of liver cancer using electronic health records. Originally, we planned to use a matched case-control design due to the limited number of liver cancer cases. In addition, it allows for a more valid comparison of risk factors and baseline characteristics bet...