instruction
stringlengths
9
38.7k
Which relative regression metrics exist? What are their strengths and weaknesses? In what case do you use each? --> Bonus point if they are already/easily implemented in Scikit-Learn. I have a regression problem with varying predicted scales. I basically have data from 3 machines (small, medium, big) that I may eithe...
I have been carrying out sieve analysis to estimate the median particle size of a powder. I wanted to check if the data so far followed a normal or lognormal distribution, as I have come across resources on sieve analysis that use exp(mu) to find the median. I have been recording the percentage mass of the powder in ea...
Working on a research project, I have 10 performance scores (scales, ordinates variables) for 100 participants. In addition, I have the age, gender (1/0) and education years of participants as variables. I also have a diagnosis variable, with 4 diagnoses. I would like to find clusters in this dataset, assuming that som...
CrossValidated has many discussions on how unequal variances are not a practical issue for two-sample t-tests when Welch correction is used and on how normality assumptions do not play a role (in Type-1-error control) once we have a large enough sample size (some propose a rule of thumb of $n \geq 30$, some $n \geq 50$...
Say I have a set of predictions $X$ which predict some variable $Y$. The correlation between $X$ and $Y$ is $r$. How can I determine if $r$ is significant? My intuition would be to do a monte carlo type simulation by sampling many random permutations of $X$, computing their correlation with $Y$, and then seeing where m...
I'm working on the same type of data and i want to classify the times series to find clear pattern of use. My data is collected from clients of a telecom company, and we want to detect pattern of the amount of data consumed by clients with their wifi box. So each client have a time series of how much data he consumed e...
I have trained a variational autoencoder (VAE) using Pytorch Lightning to reproduce images. Without sigmoid, reproductions are good. However, some output image values are negative so need to be clipped. With sigmoid the reproductions are poor. Why is the sigmoid causing poor results? Using sigmoid to squash output into...
I am building a multiple regression MLP (Multi-Layer Perceptron), the input is 8 weather variables collected from October-February, and the output is another weather variable. The assumption is that the 8 variables can be used to predict the output variable. Thus far, the accuracy has been exceptional. Suspiciously exc...
I know that there are many algorithms for ML problems where the outcome has 2 categories. I am wondering kwon if there are algorithms that accept outcomes with more than 2 categories, especially in the caret package.
My question is complementary to a previous problem : Bayesian inference on binarized Poisson distribution. I retake the previous notations. Problem description : I am counting the number of balls falling in T boxes. X=[0, 2, 1, 0, 0, 2, 1, 0, 2, 1, 1, 0, 0, 2, 0, 0, 1, 1, 0, 0] $\forall t \in [1, \dots, T], X_t$ is dr...
I have studied Logistic regression and I am still confused about certain things: does logistic regression use linear regression to predict a continuous output, but since linear regression can output values above 1 or below 0 (here we are dealing with binary classification so the output must be between 0 and 1) so to sq...
I have a set of events of type 1, and their start and end times. And a set of events of type 2, and their start and end times. I'm struggling to wrap my head around how I can test whether these two event types are occurring independently of each other, or whether one tends to follow the other (in terms of the times a...
I would really appreciate any advice here on if there are any special parameters I need to use for this example. I am looking at the effect of an analgesic on pain level after ocular surgery. Both eyes receive surgery, but one receives the analgesic and the other doesn't and acts as the control. Would a paired t test b...
Is there any multivariate distribution with a closed form CDF? As we know, if $X_1,\;\ldots,\;X_M$ are i.i.d. type-1 extreme value distributed, $\Pr[X_2-X_1<c_1,\;\ldots,\;X_M-X_1<c_M]$ has a closed form (the multinomial logit probability). Is there any other multivariate distribution with a closed form CDF? (except th...
I am running analyses of longitudinal health data. Each subject has two health measurements—one at age 60, and one at age 80. Subjects are marked as either "healthy" or "sick" at each measurement. Subjects are divided into birth cohorts, based on their birth year (e.g., 1920, 1921,1922, etc.). I want to analyze the inf...
I have an n x n matrix. Each cell contains a value. The matrix is essentially a heatmap. The null hypothesis is that the greatest values would be at the horizontal and vertical midlines of the matrix. Let's say that n is odd. Then, the columns of the matrix would correspond to x = -(n-1)/2 : (n-1) / 2. The rows would c...
I have found an article about stationarity: Variance of a stationary AR(2) model and I have also estimated a model: And I am not sure if I have understood it, is it truly stationary? And if so, could you show me how to derive it analytically?
I was reading about order statistics on Wikipedia [retrieved 29 June 2022]: Apparently, if we have a sample with $k$ elements (e.g., $x_1, x_2, ..., x_k$) and assume a probability distribution for each of these $k$ elements - we can also determine the probability distribution for each of these individual $k$ elements....
Motivation I'm trying to understand and model interactions between binary variables. I'm not interested in the cases of independent variables where $p(\pmb{x})=p(x_1) p(x_2)$. As such, I'm trying to develop a toy model where I can control the degree to which $x_1$ and $x_2$ are correlated, as well as their marginals $p...
I would like to validate my mixed effect logistic model and ordered mixed logistic regression. How we can say that it is valid? For example can we used Stukel’s goodness of fit test or Hosmer-Lemeshow? They are popular for logistic regression goodness of fit test, but how about when data is clustered?
I am running various bayesian path models in r ('blavaan' package). I understand that LOO is a more robust fit index when working with a smaller samples size (and weakly informative priors). I am using LOO-CV (PSIS) method to compare path models; however, I have additional questions. How do I interpret LOO-CV values t...
Suppose that $\beta$ has the following prior $$ \beta|\zeta \sim f(\beta,\zeta) $$ Then I know that the marginal prior distribution of $\beta$ is given by $$ \int f(\beta,\zeta) d\zeta $$ However, suppose that we have the following hierarchical prior model $$ \beta|\zeta \sim f(\beta,\zeta) $$ $$ \zeta|\eta \sim g(\zet...
I'm using R iris data to show my point: pca = prcomp(iris[,-5],scale=F) png('irisNS_biplot.png',600,600) biplot(pca) dev.off() fviz_pca_biplot(pca, habillage=as.factor(iris$Species), addEllipses=TRUE, ellipse.level=0.95, label = "var", col.var = "red", col.ind = "#696969", alpha.var ="cos2", repel = T...
I am analyzing a dataset using a multilevel model approach and have been recommended to look at using crossed random effects due to the structure of data. I've currently been treating my data as 2 levels and nested within each other and having a difficult time understanding if there is going to be a crossed effect. The...
Let's say I run an RCT and then run OLS on $Y_i = \beta_0 + \tau D_i + \varepsilon_i$ where $D_i$ is a dummy variable indicating whether an individual $i$ received the treatment. If I were to take the expectation of $y_i$, would $\tau$ be the ATE or ATT? I understand taking the expectation works as follows: $\mathbb{E}...
A relatively low number of iid random vectors of a relatively high dimension (10,000) are added up together element wise: $$\sum_{i=1}^{n}X_i=Y$$ where $dim(X_i)=dim(X_j)=dim(Y),\forall i,j$ and $dim(X_i)\gg n$ My modeling suggests that $$E \left[\sum_{i=1}^{n}\rho_{X_i,Y}^2\right]<1$$ for the described case. More gene...
In the example from An Introduction to Statistical Learning Book about interpretations of coefficients in existence and regression with quantitative and qualitative variables (Example south, east and west region) in chapter 3, topic 3.3. It is said that there must always be the number of levels -1 as dummy variables wi...
First time poster here, so I apologize for any formatting errors. I recently came across the improper integral ∫xdx from -∞ to ∞ and have had a hard time understanding why it isn't zero. My approach is as follows. lim t ->∞ ∫xdx from -t to t lim t->∞ 1/2(t^2-t^2) lim t->∞ (0) = 0 Where am I going wrong in my reasoning?...
How can one efficiently sample $x \in \mathbb{R}^N$ from a multivariate normal distribution $x \sim \exp(- \frac{1}{2}x^T \Sigma^{-1} x)$ given a normalization constraint $x^T x = 1$? In my application, $N$ would typically be order 10 or 20. If the covariance matrix $\Sigma^{-1}$ were the identity, then the target dist...
I am training a multi-head classifier (based on Resnet18) for a multilabel classification task. The dataset I am using to train the classifier is noisy and to improve the accuracy for the worse-performing labels I am grouping classes by looking at the confusion matrix. Is there a criterium to decide when the accuracy f...
Does $E(X|X\in A)=\frac{E(X\mathbf{1}(X\in A))}{Pr(X\in A)}$ hold? (Here $\mathbf{1}(\cdot)$ is the indicator function). To me it seems that it holds. Here is the proof: $E(X|X\in A)=\int_{-\infty}^{\infty}xf(x|x\in A)dx=\int_{-\infty}^{\infty}x\frac{f(x,x\in A)}{Pr(X\in A)}dx=\int_{-\infty}^{\infty}x\frac{f(x)\mathbf{...
I'd like to show you my rough sketch for scaling up natural gradients to deep neural networks that appears to be easy to automate just like automatic differentiation. I think there must be a flaw somewhere, since natural gradients would otherwise be more commonplace, and I'd like you to point it out. Background Neural ...
I am creating a binary classification model for marketing purposes: which customers are more likely to buy the product, whom should be contacted by the sales. I don't need a model that is good on the entire test dataset, I only need one that works very good on the top 1000 samples because that is the limitation of the ...
We have the following dataset: $$ \begin{bmatrix} x_1 & x_2 & y\\ +1 & +1 & +1\\ -1 & +1 & +1\\ 0 & -1 & +1\\ 0 & 0 & -1 \end{bmatrix} $$ I was asked to find a mapping $\varphi$ to 3-dimenssion such that in the new dimension this data will become linear separable, and find this linear separator. Here is the answer,...
We did an experiment with colors. We compared the value of the CMY of the output color of our experiment against the reference value. We calculated the percent error for each of the color values, and then calculated its accuracy. The percent error was calculated by getting the absolute value of the difference between e...
I am given two sequences and the p-values of NIST Tests for both sequences. Can I use these p-values as a measure of the quality of randomness?
In Betancourt's paper "A Conceptual Introduction to Hamiltonian Monte Carlo", I don't quite see the relation between imposing the stationary condition on the Markov Chain and finding and staying in the typical set. The paper says: "So long as this condition holds, at every initial point the Markov transition will conce...
I would like to ask if 8.780e-13 is greater than 0.05 for significance? I am not sure what is the calculation of this. Thanks a lot!
I have heard about Categorical distribution and Categorical variables in statistics. But what is a Categorial variable? Can both Categorial and Categorical be used interchangeably? Are there specific cases in which we use either of these terms?
I have a small preclinical cohort of mice and want to check the alterations in metabolites measured by mass spectroscopy. Classically the metabolomics data is first log transformed then extreme outliers were removed. Metabolomics data usually involve correlated variables(metabolites). My predictors are genotype (2 leve...
I want to attempt to answer the following hypothesis A continuous scale (measured by an understanding score of 0-2) has a positive influence on consumers’ understanding of an eco-label (understanding measured by a score of 0-12). In other words, I want to prove through a test, that in fact it doesn't really matter what...
I want to cluster data that includes categorical (dummies and variables with multiple categories) and numerical variables (normalised) and a substantial amount of missing values. One reason why I want to use k-prototypes is that it can handle missing values. I've used the package clustMixType to do the clustering in R,...
I read the following: To prevent overfitting we would like to work with as few components as possible". How does the number of the mixture component affect the fit of the model? Is that because the selection criteria, such as AIC tend to select a model with more parameters? or there are other reasons? If yes, what ab...
Suppose that I have two different datasets from surveys in which the dependent variable is measured on different scales and I want to evaluate the effect the survey method (i.e. the measuring scale) has on the outcome variable. Let's say e.g. I want to estimate a regression model where the dependent variable is the hou...
I'm a newbie and learning ML. I've a doubt, normally we know we should increase the size of training dataset or should add more data to reduce variance (fairly understood why). Now variance has inverse relationship with bias, so it means when we're adding more data, we're reducing variance - or we're increasing bias. T...
I'm reading Speagle's A conceptual introduction to Markov Chain Monte Carlo Methds to try to learn the contexts where MCMC sampling is needed (in this case the paper focuses on Bayesian inference). We have the goal of approximating the integral: \begin{equation} \mathbb{E}_{\mathcal{P}}[f(\Theta)]=\int f(\Theta)\mathca...
I have a dataset containing intraday gambling activity for each customer. My goal is to implement an ML model to detect when the risk changes from normal to abnormal during the day for each customer. The problem is not a supervised problem, so I would need to implement some strategy. How can one tackle such a problem?
I have two groups of samples, NGHC (n=14) and NHC (n=87). The result of the samples CO.05 should be 0 or 1. For example, the results can be 0 1 NGHC 11 3 NHC 87 0 This is a subset of my data frame, df <- structure(list(CLASS = c("NGHC", "NGHC", "NGHC", "NGHC", "NGHC", "NGHC", "NGHC", "NGHC", ...
Using the seminr package in R, I have fitted a model based on PLS SEM with several exogenous (latent) variables and one endogenous latent variable (ELV) measured by three indicators. Beyond the usual out-of-sample evaluation commonly done in the PLS SEM framework, I would like to use the model to predict the construct ...
I have two distinct probability density functions, and I would like to find a synthetic measure of how different the two distributions are. Intuitively, it would make sense to me to compute the area between the two curves, as in the example shown below Source: How to visualise the difference between probability distrib...
What is the difference, if there are any, between checking for stationarity in a time series and then in a model (for example an AR model), which is built on that data. I recently encountered that problem reading some literature, where they double checked it, which was quite confusing for me. Can a model be stationary ...
I have a system of three non-linear equations, each with a solution that has error associated with it. It looks something like this: Solving the system of equations should produce an error for the variables x, y, and z, but I do not know how to properly do that. I have seen a few other posts involved systems of linear...
We are working on a recommendation system. Our data comes from varying sources that make it natural to train a model for each source. Now we come to the crux. For each of the data sources we get varying performance for the used model: random forest, ridge regression, association rule mining, xgboost the hyperparameter...
I am trying to rewrite the series $\tilde{R}_{t}=\beta_{2}\left(\sum_{s=0}^{\infty}\frac{U_{t-s}}{\phi^{s+1}}\right)^{2}$ as an $AR(2)$ using lag operators $L$. I expand the series, define $\alpha=\frac{1}{\phi}$, where $\left|\alpha\right|<1$, and use lag polynomials as follows: $$ \tilde{R}_{t}=\beta_{2}\left(\sum_{...
I am learning from an example given by TensorFlow document, https://www.tensorflow.org/tutorials/generative/cvae#define_the_loss_function_and_the_optimizer: VAEs train by maximizing the evidence lower bound (ELBO) on the marginal log-likelihood. In practice, optimize the single sample Monte Carlo estimate of this expe...
this is a question that has been lingering in my mind for a very long time, but came up again in practice and I thought I'd reach out and ask about it. The situation I'm interested in is when you are performing a Null Hypothesis Test and you can generate multiple test statistics with your data. You know, both analytic...
I have a question regarding results from a study and it's probably a very basic question (but I only have a very very basic understanding of epidemiology). I'm looking at what characteristics have a significant association with an outcome from multiple studies, so I have generally looked at results that were found to b...
Let us say we have: Data $X$ Parameter that we are trying to estimate is $\Theta$ The Bayesian estimation method is to Assume a prior on $\Theta$ Sample $x$ from $X$ Use Bayes theorem. Compute the posterior $\Theta\mid(X=x)$ Now, in case a point estimate is to be reported then one way is to report lowest mean squar...
Any observations that are more than 1.5 IQR below Q1 or more than 1.5 IQR above Q3 are considered outliers. However does this theory still hold when a data set is not normally distributed? Outlier detection Formula & Method: https://online.stat.psu.edu/stat200/lesson/3/3.2#:~:text=Any%20observations%20that%20are%20more...
I have a dataset of audio recording of variable length with large std which are heavily imbalanced in terms of total duration per class. So in stratified k-fold cross validation I would like to main the relative total duration statistics for each class but the common stratified sampling methods work using number of exa...
We know that a multivariate distribution $F(x,y)$ can be expressed as copula via $C(F_1(x),F_2(y))$ with $F_1,F_2$ being the marginal distribution. I am trying to construct a multivariate distribution with one property: $F(x,x)=F_1(x)$ for all $x$. Such a property can be rewritten in terms of copula via equation $C(F_1...
I am trying to understand an equation that is used to determine sample size. To do this, I am re-creating the example from a tutorial in R. However, when I re-create the example in R I get a different value. In the tutorial (see image below), the following is provided as an example: (0.098/0.005)^2 = 387. When I recrea...
I have a logistic regression model that predicts the likelihood of an individual getting PTSD after a flood based on their race and gender. The regression is based on a survey of individual flood victims. Simplifying for the sake of this question, let's say that the variables are: race: {1=Black, 0=White} gender: {1=Fe...
I'm working on some simulations in R where I have a time series in the format $$y_t=\mu_t+e_t$$ where $\mu_t$ is a trend function that I have defined as $\mu_t=5*t+4*sin(2t)$ and where $t$ goes from $ \{ 0,4\pi \}$ with $n=100$ datapoints. Generally $e_t \sim N(0, \sigma^2)$ however in this case of these simulations I ...
I've conducted a survey of 20 questions using a 5-item Likert scale in which 10 people participated. In each question, the participants were presented with two versions of a picture and asked to pick the better one. The obvious way to visualize the data would be something like this: However, I'm losing some informatio...
I can't figure out if this belongs in Cross Validated, Stack Overflow, or Academia, but I think this may be a good place to start: Can anyone suggest examples of published prospective/retrospective/cross-sectional research (particularly medical) where it was later discovered an uncaught error/bug in either the authors'...
I have conducted several experiments that examine Reaction Time as the DV. Because I conducted them, I have the raw data for each. It makes sense to me that combining all the data (at the single-trial level) provides more information and thus a more powerful meta-analysis, so long as I specify participant as a grouping...
I have a survey dataset with 200 columns (encoded as numbers) and am trying to reduce the number of dimensions. After applying PCA, I can reduce the number of dimensions but each PC barely explains the variance in the dataset. It requires 150 PC's to explain 85% of the variance, which doesn't really do me any favours i...
The primary data I have are test scores. The test was given to the participants three times, with results ranging from 0 to 10. The participants were divided into two groups (A and B, simply; randomly assigned). I also have several variables about participants' socio-demographic information such as gender and age. The ...
I search this kind of question for a while and I find many discussions involve on counting the number of parameters of a Convolutional Neural Network, but not on the inputs. Using the Fashion MNIST dataset as an example, each black and white image has $28 \times 28 \times 1$ pixels and there are 60,000 images in the tr...
I am trying to implement a Deep Q-Network (DQN) with a prediction network and a target network. Both nets take the state as input and have two output ports each corresponding to a different action. Assume we have two actions $a\in \{a_1,a_2\}$. Let $(s,a_1,r,s')$ be a transition. $\theta_{target}$ and $\theta_{predict}...
I'm attempting to predict a continuous variable as a function of one continuous variable and one categorical variable. This led me to an ANCOVA, but I've violated the homogeneity of regression slopes assumption. My next thought was to simply subset my data by the categorical variable and fit a simple regression to each...
I ran an experiment that was powered enough to detect lifts of 1% on my 2-sample test. Make it really simple: I have two normal distributions and want to compare the means, so I ran a 2-sample t-test over a lift of 0.5%. So they are two scenarios: P-value above 0.05, I reject Null and assume the 0.5% is random. BUT, t...
Suppose 2 independent samples $X_1,...,X_n \sim Exp(\lambda_1)$ and $Y_1,...,Y_m \sim Exp(\lambda_2)$, and are iid within samples. I am thinking about how to make an exact confidence interval for $\theta$ where $\theta = \lambda_1/\lambda_2$. Some immediate thoughts, I can try to come up with a pivotal quantity, such a...
Initially, this was going to be a simple analysis of variance (ANOVA) with a categorical predictor (4 levels) and a non-negative continuous response variable (number of aphids on leaves from four branches of each treated plant). The data are highly zero-inflated. The zeros are are true data points (not missing or NAs)...
Consider the density of the Normal distribution given by $$f(x; \mu, \sigma) = \dfrac{1}{\sigma\sqrt{2\pi}}\exp\left(-\dfrac{1}{2}\left(\dfrac{x - \mu}{\sigma}\right)^2\right)$$ It is obvious that, with a fixed $x$ and $\sigma$, the Normal density tends to $0$ as $\mu \to \infty$ or $\mu \to -\infty$. However, is there...
I am currently working with a small dataset (only 175 samples, 45 features) and have been reading on the proper way to cross-validate my model. I had started with a basic cross-validation using a grid search, but have seen that a nested CV structure is superior as it reduces both bias in the model and model selection b...
I have certain measures of spread (p50, p66, p75, p80, p90, p95, p98, p99, p99.9, p99.99, p100, Median, Mean, Min, Max)as my attributes. Can I regenerate a data distribution from these? Use case: I wish to create violin plots for the above distribution but I cannot do so with just the above attributes
Area under receiver operating characteristic curve (AUROC) is a threshold-independent metric for “discrimination”. It tells you about the model's ability to discriminate between cases (positive examples) and non-cases (negative examples). Is there a mathematical relationship between area under receiver operating charac...
I'm working with the Online Logistic Regression Algorithm (Algorithm 3) of Chapelle and Li in their paper, "An Empirical Evaluation of Thompson Sampling" (https://papers.nips.cc/paper/2011/file/e53a0a2978c28872a4505bdb51db06dc-Paper.pdf). It's a contextual bandit model using a Laplace approximation for regularized log...
I'm researching about direct detection of Dark Matter and came across the -2σ quantile in this paper: https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.121.111302. (Page three at the bottom.) Now, I know that a 2σ quantile is where about 95% of all events are supposed to be. But what is the -2σ quantile? I've r...
I have a dataset of documents from 13 government organisations published between 2000 and 2020. The dataset contains between 18 and 20 million words. I have a measure that tells me how unique a word used in the dataset is to an organisation -- specificity -- and a measure that tells me how fad-like a word used in the d...
I would like to sample from a bivariate conditional distribution $F(y_1, y_2 |X_1 = x_1, ..., X_p=x_p)$, where the distribution is determined non-parametrically. How can I sample from such a distribution?
Would it wrong to say that the definition of null hypothesis is as follows: Null hypothesis is a statistical hypothesis that usually asserts that nothing special is happening with respect characteristic of the population. Someone mentioned that this definition will not hold in some cases. Is it true that the above ment...
Note: I am a bit of a novice when it comes to statistics and data analysis. Reading the chapter on regression to the mean in Kahneman's Thinking Fast and Slow, I came across the following passage: The very idea of regression to the mean is alien and difficult to communicate and comprehend. Galton had a hard time befor...
I want to calculate similarities of the word embeddings. As a basis I took SpaCy german corpus: nlp = spacy.load("de_core_news_lg"). I have approximately 200 thousands words with 300 embedding dimensions. I needed to cluster all my words into clusters(other task) and after some experiments i figured out, that with nor...
Let $X_{t,i}$ denote a martingale difference sequence in the $i$th time at day $t$, where $i=1,\cdots,M$. If $X_{t,i}$ is independent for $i=1,\cdots,M$, the result is straightforward. And I know that the martingale sequences are slightly weaker than independence. So does $E[(\frac{1}{M}\sum_{i=1}^{M}X_{t,i})^2|\mathca...
We have the following dataset: $$ \begin{bmatrix} x_1 & x_2 & y\\ +1 & 0 & +1\\ -1 & 0 & +1\\ 0 & +2 & +1\\ 0 & +1 & -1 \end{bmatrix} $$ I was asked to find a mapping $\varphi$ to any dimension such that in the new dimension this data will become linear separable, and find this linear separator. I really don't know...
I'm studying sensitivity analysis. I know that to use PCC and SRC, linearity and/or monotonic must be assumed. So I'm trying to calculate R² for this, and my question for this is: Can I use GLM to calculate R²? Is there a lower bound on the R² value to assume that the model is linear or monotone? thank you
I understand the bayesian statistics, but I don't see many textbooks approaching the bayesian statistics in a practical way. Some book recommendations on Bayesian Practical Applications would be great. Something like how to apply the bayesian methods in different scenarios like Experimentation - A/B testing Predictiv...
I am studying a time series that has no seasonal patterns and no overall trend. The trend changes rapidly over time and I want to fit a linear regression model to some windows of the series to make short-term predictions. I am aware that for a regression analysis to be meaningful, at least 25-30 points of the past shou...
I want to fit a generalized linear model (logistic regression) to Titanic dataset. In EDA stage I transformed a variable (Pclass) to ordered factor. Before passing data to glm function should I: a. leave it as ordered factor b. transform it to unordered factor or c. transform it to integer?
EDITED: I'm new to GAM's and am looking for some advice on if I can trust my model or not. My dataset (n=200) is examining how a whole suite of environmental variables (15) impact the likelihood of coral bleaching. My data are very positively skewed with lots of zero's (77), because there are many situations where blea...
Suppose we have have 3 variables: Y , X , Z. then we have : Simple Regression : $ Y = aX+b$ Multiple Regression : $Y = aX + bZ + c$ I know that in simple regression we can have a low p-value(showing that there is a relationship between X and Y) and high p-value in Multiple Linear Regression which is caused by collinear...
I am studying the results from a simple Cox PH regression, and I'm curious about the unbiasedness of the estimated log hazard ratios (i.e. coefficients) from the model: Are those estimates universally unbiased, or just asymptotically unbiased (like in logistic regression)? Thanks in advance!
I'm new to using XGBoost and I'm confused about how we should obtain the XGBoost predicted values for each data point. For example, the process for fitting and evaluating an XGBoost model is: # STEP 1: Splitting dataframe between target variable and predictor variables X = df.drop(['Target'], 1) y = df['Target'] # STE...
Relative Standard Error (RSE) is one of the main measures to assess the quality of survey indicators. If only sample data are available, RSE can be computed using estimated mean $\bar{y}$ and estimated standard deviation $\hat{\sigma}$: $$ RSE^{sample} = \frac{\hat{\sigma}}{\sqrt{n}}*\frac{1}{\bar{y}} $$ population = c...
I have two distributions and I wish to understand if the difference of the sum of the elements sampled from these distributions is significative or not. I have set the problem this way: I have $n_{x}$ extractions from $X \sim N (\mu_{x}, \sigma_{x}^2)$ and $n_{y}$ extractions from $Y_{i} \sim N (\mu_{y}, \sigma_{y}^2...
In the AdaBoost algorithm, the contribution of each weak learner is multiplied by a weight $\alpha$ given by $$ \alpha_t = \frac{1}{2}ln\Big(\frac{1-\epsilon_t}{\epsilon_t}\Big) $$ In the Elements of Statistical Learning book, they use the following expression: $$ \alpha_t = log\Big(\frac{1-\epsilon_t}{\epsilon_t}\Big)...
I'm learning about Value at Risk for Investing which got me into statistical questions. Here it's said that For a confidence level of 95%, # of Standard Deviations (σ) = -1.65 x σ And for a confidence level of 99%, # of Standard Deviations (σ) = -2.33 x σ My question is, where do we get the -1.65 from? I've googled and...