instruction
stringlengths
9
38.7k
I got a formula that is from the slides of class that is: So, because I couldn't fully understand I wanted to look the formula in the web, but I didn't get that one. But instend, its this the formula that it appear. This is a little more easy to comprehend. I've tried to understand the first one, but couldn't. When I...
I had a slightly basic question about variables (particularly in statistics). We would say that “height” is a variable. In my mind, “height” does not just represent different values, like 2, 45, or 75. It represents values + units: 2 feet, 45 feet, or 75 feet. However, when we work with variables mathematically, I beli...
Please comment on the following method: Model was trained on data labeled with 4 classes: header, question, answer an other. Predictions were done on a separate test set, nothing new here. Then samples of every class with predicted probability lower then some threshold (for example 0.6) were assigned to a new class cal...
I apologise beforehand if this is already answered elsewhere, but I have searched for this particular question and didn’t find a post that matched it. I have two logistic regression models: a base model Y ~ X and a full model Y ~ X + Z, for which I computed the pseudo R2. I want to estimate the difference in pseudo R2 ...
Classification accuracy or classification error is a proportion or a ratio. It describes the proportion of correct or incorrect predictions made by the model. Each prediction is a binary decision that could be correct or incorrect which is a Bernoulli trial. The proportions in a Bernoulli trial have a binomial distribu...
Suppose I have a model with an interaction between two dummy variables $$ \begin{equation} wage = \beta_0 + \beta_1 male+ \beta_2 white + \beta_3 educ + \beta_4 (male* white) + \epsilon \end{equation} $$ and that the coefficient for $ \beta_4 $ is significant. Am I able to say that the impact of being white is signific...
I have an index that predicts orthodontic treatment difficulty based on several components each with a different weight (see the attached figure). One of the components that is used in the index is patient's age, where the weight of the age increases as the patient's age increases. For example, a patient younger than ...
We have some nice posts (1, 2 and likely more) illustrating multicollinearity geometrically. Now, ridge regression ($L_2$ regularization) is known to be a remedy of multicollinearity. What is the geometric intuition for that? We have a nice answer 3 that illustrates the geometry of the objective function and shows how ...
Multiple imputation creates $m$ new imputed datasets by taking each missing value and replacing it by analyzing the $m$ imputed values (for example: using the mean). Is there a rule of thumb or a method (and I don't mean to Grid Search) to choose the ideal $m$? I am aware of the trade-off regarding the running time. I ...
I must admit that my general understanding on how to create critical region to test hypothesis against composite alternative hypothesis is still shaky. Therefore please pardon if my question is too trivial. Lets take one example from Likelihood ratio test to determine if average number of accidents has dropped? Here $H...
I'm reading the following chapter on Partial Dependence plots, from the book Interpretable Machine Learning. In this chapter the author states that you calculate the partial dependence of a model on a feature set $S$ by separating the total feature set into two sets $x_S$ and $X_C$, then summing over the $x_S$ feature ...
I am working in the context of opt-in, web-based surveys. Often the desire is for accurate population estimates, and often at a country-wide level. The standard approach at this organization is to define demographic strata and determine quotas for each stratum according to high-quality reference data such as that from ...
I'm studying the asymptotic properties of estimators. Let $\{ \hat{\theta}_T : T=1,2,3... \}$ be a sequence of estimators of the $p \times1$ vector $\theta \in \Theta $, and $T$ is the sample size. Then, by assuming that my consistent estimator has the following asymptotic distribution: $\sqrt{T}(\hat{\theta}_T-\theta)...
I have recently began studying a course on Designed Experiments and am having some trouble understanding some of the terminology. I've looked at some other answers on the site and I think that I am understanding correctly, but would like some clarification (and potentially more detail if there is anything of note). I h...
Suppose we run an experiment with 50 participants. We take repeated measurements from each participant: each undergoes three different treatments during which we measure their reactions (our continuous target variable). A toy example of such dataset could be generated as follows: # Example Data treat_1 = rnorm(50,10,2)...
$\renewcommand{\Re}{\operatorname{Re}}$ $\renewcommand{\Var}{\operatorname{Var}}$We define the discrete random variable $X$ as having the probability mass function $$f_{X}(k) = \Pr(X=k) = \zeta(k)-1, $$ for $k \geq 2 $. Here, $\zeta(\cdot)$ is the Riemann zeta function, defined as $$\zeta(s) = \sum_{n=1}^{\infty} n^{-s...
I have recently started studying Designed Experiments and have have come across non-rigorous definitions of "balanced" and "orthogonal" experiments and would be interested in understanding these concepts a bit better (both in terms of some examples and a clearer definition). According to the book I am using to study th...
I have used paired samples t-tests to compare 3x time-point measurements, A/ B/ C. A and B t(102)=4.988 p=.000 A and C t(102)=4.939 p=.000 B and C t(102)=.346 p=.730 A, B, and C were all significant on the Kolmogorov-Smirnov, so none were normally distributed. My understanding is that this is not a problem due to the ...
In a linear regression, suppose we have $N=500$ observations. Then suppose that I ran a regression of dependent $Y$ against independent $X_1, \ldots, X_p$, where $p=500$ as well. What happens in this case and how would it relate to a residual regression formula? I'm also wondering what's the effect on R^2?
Let $x$ be a random normal variable with pdf $h(x)$ and CDF $H(x)$. Also let $\alpha$ be a constant, and $x^\star$ a variable. I am trying to take the following derivative: $$\frac{d}{d x^\star} \bigg [ \int_{-\infty}^{x^\star} (x^\star-x) dH(x) + \frac{1}{1-\alpha} \int_{x^\star}^{+\infty} (x^\star-x) dH(x) \bigg ]$$ ...
I'm running some regressions with a set of somewhat correlated predictors. Let's call these predictors $x$, $y$ and $z$, and my dependent variable $d$. I'm focused on the effect of $x$ on $d$. I first calculate $R^2_x$ by running a regression using only $x$ as a predictor. I can also calculate $R^2_{full}$ by running a...
How can you turn an expectation $E[A]$ into a conditional expectation, e.g., $E[A|B=1]$, where: A - continuous random variable, $A \in (-100, 1000)$ B - discrete r.v., $B \in {0, 1}$ A and B are DEPENDENT. For instance: I have estimate $E[A]$ out of a fitted estimator but my decision making formula requires $[A|B=1]...
I have intensive longitudinal data about heartbeat rates, movement activity measured by actiwatch, respiration rates etc... collected from about 100 patients at a terminal care. For each patient, data collection starts when one enters to the terminal care and data collection is terminated when a patient pass away, i.e....
I have a larg-ish dataset , ~ 57,000 observations. The dataset is an organisation-level dataset that describes organisational metrics through time. There is a single outcome of interest, cat.norm.cit.impact, which can only be a positive numeric value (or 0), and four main predictor variables: org.name: the name of the...
I'm still confused about equal variance. Is this parabola in my residuals vs fitted plot indicative of equal variance since each fitted value has roughly the same vertical variance as at other values (the parabola is equally thick everywhere)? This residual plot suggests the original plot isn't linear though, right?
Does the coordinate system rotation affect the clustering result? Which approach could be used to eliminate the influence of coordinate system rotation in clustering? Any help would be appreciated!
Some background into my study, I'm looking at the abundance of birds across sites in 5 different vegetation states, using a GLMM. The birds belong to 5 different functional groups and I'd also like to explore whether the representation of different groups differs with state. I've written the following model: Abundance...
As stated in the title, I would like to build an N-dimensional Convolutional Layer as part of a Convolution Neural Network, without doing dimensionality reduction on my data; because I have multiple spatial features. I am a bit stumped as to what the best package to build one would be, or where to start. It looks like ...
I am currently developing a software in C. I have an array (matrix) that contains some coordinate points like this (125 points for now): \begin{bmatrix}x1&x2&x3&x4&x5&...&x125\\y1&y2&y3&y4&y5&...&y125\end{bmatrix} What I would like to do is calculating how linear each group of 5 points are and due to the source of the ...
I have a complicated function that looks like this. $$ L = \sum_{m = 1}^{M} \left|\frac{\sin\left(N\frac{x_m}{2}\right)}{\sin\left(\frac{x_m}{2}\right)}\right|^2 + \sum_{p = 1, p \neq q}^{M}\sum_{q = 1, q \neq p}^{M} \frac{\sin\left(N\frac{x_p}{2}\right)}{\sin\left(\frac{x_p}{2}\right)} \frac{\sin\left(N\frac{x_q}{2}\r...
Greetings! I am analyzing the impact of climate change of wheat crop across 4 districts for the last 30 years. It is imperative to check the stationarity of the panels. I performed LLC and IPS tests. The results showed that the panels are stationary. Now please let me know: Whether I need to perform cointegration test...
I am trying to understand what the difference is between wilcox.test and pairwise.wilcox.test. When we have two variables the output of both functions is the same. Here is some reproducible code: set.seed(7) df <- data.frame(V1 = runif(100), V2 = runif(100)) wilcox.test(df$V1, df$V2) #> #> Wilcoxon r...
I have a control group and a test group. In the test group people are called twice as often as in the control group. The other variable is if the customer said "yes" or "no" to a question. If the customer said "yes" at least once the variable is summarized as 1 otherwise 0. So I have the possible combinations (control,...
I am trying to test a moderated mediation model in which I have gathered data from two groups of participants: managers and staff members. Managers answered the questions on independent variables (let say A,B,C) and the moderator (D), and staff members answered questions on dependent variables (F,G) and the mediator (E...
I'm really confused about a basic test for a binomial proportion. Specifically, the p-value. If $n=20$ with $y=17$ successes, I want the p-value for $H_0: \pi\leq 0.7$ vs. $H_A: \pi > 0.7$. I've seen others say the way to evaluate the p-value is to take the binomial distribution with $n=20$ and $\pi=0.7$, and evaluate ...
I have a mock dataset on cheese intake which shows the intake of cheese (in g, Continuous), the disease type (Categorical), the outcome (Categorical) and the Evidence quality (Categorical, 0 to 3 where higher is better). Qty Disease Outcome E.quality 20 Migraine Positive 0 30 Heartburn Negative 3 10 M...
I am designing an experiment that will include an assay on a 96 well plate and could use some advice on the optimal layout. In our experiment we have 12 biological replicates, and each replicate has been given each of two treatments. We are measuring our primary outcome on a single plate with 4 technical replicates fo...
I've trained a SVM regression model, and noticed a large number of support vectors required. I have found the following discussions where it seems people are concluding that a larger number of support vectors means overfitting: Is a high number of support vectors a sign of overfitting? What is the relation between the ...
As I haven't found the equivelant of the MASS::stepAIC for mixed models (eg in lmer) what I'm intending to do is to find the best lm model using stepAIC and then go in lmer and add the random effects. I'm not confident that this approach is the best but my question is how bad this could be. The code it's like that, # I...
As part of self-study, I'm trying to learn about conditional expectation. Example 5 here presents the problem: "Let $X_1, X_2$ be independent with $U(0, \theta)$ distribution for some known $\theta$. Let $Y = \max\{X_1, X_2\}$ and $X = X_1$. We want to find the conditional mean of $X$ given $Y$." It presents an equatio...
I was asked to run a clustering analysis to assess the validity of labels for a manually labelled dataset. I can simply save the actual labels (4 classes: 0, 1, 2, 3) and run clustering analysis (let's say python sklearn AgglomerativeClustering) on the rest of the data, specifying to get 4 clusters. Now I want to compa...
When fitting a GAM, is there a rule (of thumb) for deciding if $k$ (max number of degrees of freedom for a spline) is large enough or not? How much should edf be below $k'$? And is that an absolute difference (e.g. 1) or rather a relative difference (e.g. 10% of $k'$)? (I am aware of the different methods to optimise k...
Consider the pair of random variables $(X, Y)$ whose density is given by $$f(x, y)=yx^{y-1}e^{-y}1_{(0, \infty)}(y)1_{(0, 1)}(x)$$ I was first asked to find the density of $Y$. This was simple, that's a marginal density and I easily got $$f_{Y}(y)=e^{-y}\cdot 1_{(0, \infty)}(y),$$ so $Y\sim \operatorname{Exp}(1)$. Then...
Currently I am working on three models to predict the personality factors of subjects according to three data sets. All three data sets are exported features from video interviews, i.e. audio features, visual features, and a merged data set (audio-visual). The visual features data set has 571 variables, and the audio 7...
I have a trend stationary data series that does not have a unit root. The data are hourly with about five years of data. I have controlled for the apparent trend in the data using a series of binary variables for each year exclusive of one year to avoid singularity. A reviewer has essentially suggested that I replace t...
A very simple example here would be restaurants with online reviews. On a platform where every resturant might have a different number of reviews with a vote ranging from 1 to 5, which restaurant is the best? Obviously one resturant might have an average vote of 4.9 but only 10 reviews while another one might have an a...
I am analyzing a case/control dataset with a low number of observations (250) and 45 parameters. I have performed lasso regularization and 10-fold cross-validation. I believe I need to run the CV (x) number of times to tune my hyperparameter (lambda) but uncertain how many times this would be. Would I use the average o...
I estimated the linear regression using ols but the errors turned out to be t-distributed with df=3 according to q-q plot, I already know that gauss-markov theorem still assume the coefficients to be BLUE if errors are non normal , but the inference would not be reliable and therefore the significance of the variables ...
Let's say that I want to have a distribution from which there is an equal probability to draw a number between -0.9 and -0.3 and also a number between 0.2 and 0.8. Is there a distribution which allows you to do this? If yes, how is it called and how does the notation look? If not, is there a reason why this is not poss...
Suppose I have a binary outcome $Y$ and two binary covariates $X_1$ and $X_2$ with distribution $P(X_1, X_2)$ which I know. In addition to $P(X_1, X_2)$, I know $P(Y\mid X_1)$ and $P(Y\mid X_2)$. I would like to know how is $P(Y\mid X_1, X_2)$ bounded by the data I have at hand, and possibly know whether there is a nat...
I have a small dataset composed of 800 data points where I need to perform a regression task. I randomly chose 10% of the dataset to be used as validation. The problem is that I am not sure if I am overfitting. I can see that RMSE and MAE for the validation dataset is worse than for the training dataset (as expected) b...
Consider a set of $M$ time series described by $D = \{d^1,\ldots,d^M\}$ where each $d^i$ is a time series of the same length, say $N$. I want to create a plot with the mean time series and the standard deviation. What I initially thought was to compute the mean and standard deviation of the collection of points at each...
I'm trying to predict the survival curves for customers, knowing that for some rare customers after a certain time the survival probability has a jump. Those jumps are due to endings of minimum contract duration. E.g., some customer commit to stay for 6 month. We know that those customers (usually) stay for 6 month. Af...
This question is regarding applying power transformations on input time series. In literature the idea behind applying transformations to input time series is to stabilize variance. But I have seen that power transformations can make time series normally distributed. The question is can we argue that for the special ca...
For a prior of $\sigma^2 \sim IG(0.01, 0.01)$, often recommended as an uninformative prior for the variance parameter in MCMC approaches and other Bayesian methods, which parameterization does this recommendation correspond to? Is it shape/scale or shape/rate? That is, in R, would it be invgamma::dinvgamma(sigma, shape...
I want to model some count data. I noticed that I have some under-dispersion (mean is 1.3, variance is 0.8), so I have seen some threads suggesting a quasi-poisson model. Is it possible to somehow compare these models and establish which one provides a better fit? I believe the quasi-poisson model does not have an asso...
I have several pitch sequences (mini songs), that look something like this when plotted as a pitch profile (piano roll): I've coded each sequence in terms of its constituent interval sizes, and pooled all values together. Below is the transition matrix for interval bigrams, to show whether intervals of a given size ar...
I have a dataset of passwords that looks like this: My goal is to make a graph that accurately showcases the strength of each category so my initial plan was to group the data by category and calculate the average strength like this: then represent the data with a barplot like this one: My problem with this is that ...
I am trying to learn how to calculate Bayesian Coverage Probabilities for the parameter from a Binomial Distribution using a Beta Distribution as a Prior. As I understand, this would go as follows (fix values of alpha and beta): Step 1: Assume a true value of "p" and simulate data points from a Binomial Distribution w...
I have a set of data with measurements of different parts of some different species. Some of these measurements are in millimeters, others are ratios. I am using the software PAST. Does the ranks transformation make sense in order to make data suitable for the subsequent multivariate analysis? It seems possibly the tra...
I know that the Gauss Markov theorem implies that under some conditions, OLS estimates have the smallest variance of all unbiased linear estimators. In particular if I have a model like $ y = \alpha + \beta_1.x_1 + \beta_2.x_2$ then I know that my OLS estimate $\hat{\beta}_1$ has smallest variance and my estimate $\hat...
Statistical Notations confuses me a lot and I get lost easily in following when the authors are talking about random variables vs observations, probabilities, probability density functions or distributions etc. Anyway in Pearl's "Causal Inference in Statistics: An Overview" (2009) I understood the following DAG to depi...
Thanks to @glen_b I am comparing a low range variable's scores (0-4) at three time points - A, B, and C. The scores belong to one group of 102 participants. The three time point score distributions are non-normal. I have used a paired samples t-test, but I have not adjusted for risk of Type I error, e.g. through the us...
I am new to cross-correlation and I'm running an analysis where I'm trying to see if Mentions_t can predict Calls_t at a later date (lags are in days). I got the following results and I am having trouble understanding why my results move in and out of significance so erratically, and what it could mean. Any ideas would...
Hello I have two questions. I am trying to understand this formulas. But I cant understand how the MS Residual is different from the common aleatory error Another thing, I just labeled each value with the with their supposed corresponding formula, it is correct?
I'm working on a pet project with my D&D friends. Let's say I have a dataset of orc voices (people talking like orcs, saying sentences in English but with intonations and phrasing of orcs), elf voices and dwarf voices. What kind of ML models should I use if I wanted to extract what makes a orc voice "orcish" and use th...
I have a set of points (x,y) that were generated from a mixture of two components: one component uses Cartesian coordinates, and the other polar coordinates. For example, with probability $\gamma$ I sample points: $$ X, Y \sim \mathcal{N}(\boldsymbol{\mu}, \Sigma) $$ and with probability $1 - \gamma$ I sample: $$ R \si...
I have a question on the interpretation of joint models of longitudinal and survival data. According to my literature review, (1st) There is model of the type \begin{equation} \begin{cases} y_i(t) = m_i(t) + \epsilon_i(t) \\ m_i(t) = \textbf{x}_i(t)^\top \boldsymbol{\beta} + \textbf{z}_i(t)^\top\textbf{b}_i \\ \textbf...
I am quite new to this kind of statistics, so please be kind to me! I am currently trying to use statsmodels to run an ordinal logistic regression(https://www.statsmodels.org/dev/examples/notebooks/generated/ordinal_regression.html). My dependant variable has three categories (ordered, "proximal" < "transitional" < "di...
I understand that noise in measurement can affect the size of an observed effect. That noise can result in larger measurement error, which can reduce the size of the observed effect. However, I do not understand the mechanism. How can greater measurement error reduce the size of the observed effect? Can someone please ...
When using a machine-learning model to predict a quantity for different sub-populations of different sizes, I'd like to compare the error between sub-populations (e.g. future population per country over a group of countries). I want to quantify the fit of the model. When looking at prediction errors, the absolute error...
I have been trying to derive the autocorellation for a random walk. I obtained the following result: $\rho_k(t)=\frac{\operatorname{Cov}\left(x_t, x_{t+k}\right)}{\sqrt{\operatorname{Var}\left(x_t\right) \operatorname{Var}\left(x_{t+k}\right)}}=\frac{t \sigma^2}{\sqrt{t \sigma^2(t+k) \sigma^2}}=\frac{1}{\sqrt{1+k / t}}...
I'm currently studying a data science handbook in preparation for job interviews, and I came across a question that I think should be simple, but honestly has me stumped. Here's a screenshot of the context: Given the context, there are 2 questions that I'm supposed to answer: Consider the table. What concerns do you ...
My data set is divided into two groups: (1) patients who received physical therapy and (2) patients who did not. Our primary outcome is looking at how long it took them for their symptoms to resolve (symptom resolution). However, the group who received physical therapy initially had "worse symptoms" (based on our post-...
Suppose I regress $y$ on an explanatory variable $x$, so $y= a+bx + e$ where $e \sim N(0,g(x))$. This means the errors are normally distributed but show heteroskedasticity. In my model, $x$ is a binary variable that takes either 0 or 1. Using maximum likelihood, how could I retrieve an estimate of $g(x = i)$ for $i \in...
Suppose that, from a finite population, we estimated the minimum sample size as 1000 to reach our desired confidence level and error. Data was collected using an online survey and the survey remained open after reaching 1000 to increase sample size and get more precise estimates. 3000 questionnaires were collected but,...
Example Suppose that $X_1,...,X_n$ are i.i.d. random variables with density function $$f(x;\theta)=\begin{cases} \frac{1}{\theta}\quad \text{for all}\quad 0\le x\le \theta& \\ 0 \quad \text{otherwise} \end{cases}$$ where $\theta>0.$ The joint density function of $\mathbf{X}=(X_1,...,X_n)$ is $$f(\mathbf{x};\theta)=\...
I have the tail probability of single R.V $Pr\{|X_i|>\varepsilon\},i=1,...,n$. Now I want to bound the tail probability of its mean $Pr\{|\frac{1}{n}\sum_{i=1}^nX_i|>\varepsilon\}$.\ I can do $Pr\{|\frac{1}{n}\sum_{i=1}^nX_i|>\varepsilon\} \leq nPr\{|X_i|>\varepsilon\} $. Can I get better results? I'm anticipating the ...
I am running a PGLMM with a Poisson error distribution in R to evaluate the effect of sociality (binomial) in parasite loads. I want to test for phylogenetic signal in discrete data (e.g counts of parasites in bird species). However, I found several ways of testing for phylogenetic signal on continuous data (phytools::...
In the context of Survival Models (e.g. AFT https://en.wikipedia.org/wiki/Accelerated_failure_time_model), I have usually seen the Likelihood Function written as follows (https://hal-univ-pau.archives-ouvertes.fr/hal-02953269/document): $$ L(\theta, \mathbf{obs}, \mathbf{\delta}) = \prod_{i=1}^n \left( f(t_i \mid x_i, ...
Any help is appreciated. I'm fairly new to statistic and I really don't know how to approach this question
I'm using statsmodels to create an ARIMA(3,0,0) (so basically an AR(3)) model. model = ARIMA(train_data['lnP'], order=(3,0,0)) modelfit = model.fit() These are the coefficient results: ============================================================================== coef std err z P>|z| ...
Say I have the following sequence: Is there a way to get a probability for each point indicating whether it is an outlier or not of the underlining strictly non-decreasing sequence? I suppose the best way would be to find largest strictly non-decreasing subsequence. Once this is found, what statistical tools could I u...
I have run a logistic regression model fit <- glm(y ~ x1 + x2 + x3 + x1:x2, family = binomial(link = "logit"), data = train) The odds ratio for x1, x2 are significant (1.04, 1.18) and the odds ratio of the interaction is significant and 0.99. How is it possible that x1, x2 to increase the probability f...
How to determine the number of clusters from the following plot?
i have imbalanced data consisting of nine classes, and i am planning to collapse them into two classes. i performed stratified (proportionate) sampling between test, validation, and training sets according to the nine classes. Now, when i oversample the training data, should i oversample the nine classes before collaps...
I have groups of samples, where each group has a different number of samples and a different mean. I also know the variance of each group of samples. I would like to compute a sort of "average" variance, that should be something like the mean of my variances. If the groups had all the same number of units, I think I co...
I wonder how to calculate the partial auto-correlation function of the AR(2) process $Y_t = 0.2 Y_{t−2} + \varepsilon,$ where $\varepsilon_t ∼ \text{N}(0, \sigma^2)$? I found ACF as $\rho_h=0.8\rho_{(h-2)}$ where, $\rho_0=1$ and $\rho_1=0$. For computing PACF based on the instruction inpage 69-74 of this link, I think...
This question was posted on Quantitative Finance Stack Exchange a while ago. While it was received positively there and generated a reasonable amount of views, no answers have been posted. Thus I am reposting it here in the hope of finding a larger pool of experts. I am interested in comparing two approaches to obtaini...
Apologies if this has been answered elsewhere, but I couldn't find any answers discussing this specific question. I am lacking some notion on clustering using euclidean vs correlation distance, when applied to a correlation matrix. Say I have N samples, for which I calculated the correlations between them, yielding an ...
Variable 1: Points in the NBA in Year 1; Variable 2: Points in the NBA in Year 2; Objective: Calculate the year-to-year correlation coefficient Let's say the correlation coefficient for the entire dataset is 0.8. However, when I divide the dataset into sub-groups based on position, the correlation coefficients are much...
I just read a paper where they used a log-log regression with log(1+x) as one of the independent variables and log(1+y) being the dependent variable. The only inference from this regression in the paper was that, since the estimated coefficient is positive and significant, the impact of x on y is positive. This made me...
My predictor variable is quantitative, but falls into nine discrete groups (i.e., values are either 60, 125, 200 etc.). I have a responder variable that is quantitative and continuous. I have made a boxplot, and want to test the hypothesis that the average for each box & Whisker (responder variable) increases along the...
I want to transform some data points, which I assume follow an unknown non-standard lognormal distribution, to follow a normal distribution. When I fit the data with a lognormal distribution using scipy, I get a non-zero value for the loc parameter (shift). So I use the following procedure: I fit a lognormal distribut...
I am running a fixed effects negative binomial regression with R using the finegbin() function of the fixest package and received: 228 fixed-effects (1,140 observations) removed because of only 0 outcomes. Can someone briefly explain to me what exactly is meant by that statement? Also, what are the implications for my ...
If you are modeling probability of events (eg classic dice rolls or coin tosses) but want to represent probabilities as normal distributions, how do you propagate the uncertainty from individual events into uncertainty of your final probability? As an example, take rolls of two different 4-sided dice: if you are uncert...
I am reviewing a paper for a journal. The authors propose a new classification scheme. They then try to assess the classification accuracy using some novel predictor data. Standard classification techniques (SVM, KNN, etc) are used. I came to know of a detail of what they did, via the response document that they gave t...
I'm struggling to find a statistically rigorous answer to why it's bad to adjust effect sizes while running an experiment. Let's say I work for a company and we're doing A/B tests. Some engineer has developed a Cool New Feature for our website and she expects that this will make The Magic Number go up by 0.5%. We have ...
I am trying to run a regression between oil price in the US over a 60 year period and REAL GDP. I have run a simple linear regression (I also do not know if this is appropriate or not--should I be running a different type of regression?). -- should I include more vairables, should this be a multiple-regression? In my A...
It is common to use the term "n-fold coin toss" for any type of Bernoulli experiment, although, strictly speaking, coin tossing is only a particular experiment and is the special case p=0.5. As a rhetorical figure, this usage is known as "pars pro toto", i.e., a special case is used for describing a much more general s...