instruction
stringlengths
9
38.7k
I am implementing a market survey question and would like to know the minimum sample size needed to report the results with 95% statistical significance. Not sure if this is relevant, but here is a little more info about the survey. The question is a select one type question (with 4 possible responses; yes, no, someti...
Could you please help me in interpreting the model diagnostic plots? I feel there is a problem with the scale-location plot?
Suppose you have an array of n normally distributed numbers whose values are initially unknown(and the probability parameters are unknown too). You must choose one number and you want it to have maximum value. You examine the numbers one number at a time. You may only choose a number right after it is examined(that is ...
Suppose we have a population composed of 100 elements. Also, imagine we have a character with three categories A, B and C with proportions of 40, 40 and 20 in the population, respectively. We draw a sample of 10 elements with replacement while a) order matters and b) order doesn't matter. Is it possible to count the po...
Some media websites have a collection of descriptive tags paired to every image or video, which are intended to help users filter their searches. Such data are observational, so I would limit an analysis to exploring the properties of a (large) sample without inferring causal effects. Rather, I am interested in hypothe...
Suppose the true dgp is $$ x_i \sim d_1(\theta_1), \quad i=1,\ldots,N $$ where $d_1$ is some probability distribution with parameter(s) $\theta_1$, but I wrongly assume $$ x_i \sim d_2(\theta_2). $$ Now suppose I do (numerical) maximum likelihood estimation of $d_2$. I obviously cannot recover $\theta_2$ consistently, ...
I have a classification project on an imbalanced dataset (HomeCredit Kaggle dataset) and I have chosen Ridge Classifier (sklearn's implementation) as the most efficient both in terms of time and in terms of my performance indicator (ROC AUC score). The initial dataset is widely imbalanced (0.92 TARGET = 0, 0.08 TARGET ...
I have a dataset on green-up days pan-Arctic and relate this to weather variables. I therefore want to use a linear mixed effect model where region (e.g. Alaska, Yukon, Northwest Territories, Eastern Siberia etc.) is the random effect, and weather variables are fixed effects. I am looking for, how the weather influence...
I'd like to maximize the sum of Mutual Information between a RV $X$ and $K$ out of $N$ possible RVs $Z_i$. $$ \max \sum_{i \in K} \text{MI}(X, Z_i) $$ However, when I unfold the sum I get $$ \sum_{i \in K} \text{MI}(X, Z_i) = \sum_{i \in K} \text{H}(X) - \text{H}(X \vert Z_i) = K \cdot \text{H}(X) - \sum_{i \in K} \te...
Suppose we have two models; model A and model B. Model A outperforms both AUC ROC and AUC PR to model B. However, when we compare the two models with their optimal threshold values, model B outperforms in both the F score and ROC. In this case, which model should I pick? (I'm in the medical diagnosis field.) Thanks a ...
I have a cancer dataset with two groups of patients, those who responded to the therapy and those who did not. I run cell type enrichment analysis, to get an idea of the cellular structure for each sample. Now I want to know, is there significant difference between those two groups. Like for example, is there a signifi...
In a current modeling work, we only use facilities with the secured portion % in the range of 70-100% (the range can be from 0-200%). These facilities (in the 70-100% secured percent range) are used for computing the average loss of facilities. Facilities with a secured portion not in the range of 70-100% are not consi...
the internet seems full of people looking for a way to account for non-independence of samples when using the PERMANOVA method as implemented in the functions adonis or adonis2. If there is anyone here who could point me to a solution, that would be great. My design is very simple: 2 groups randomly assigned, measured ...
Let's say we have two random variables a and b, which are correlated. Will their cumulative sums (A and B) be correlated too? I find it logical that corr(A,B) = corr(a,b). I am bit rusty in my statistics so I am not sure if this very trivial or I am missing something...
I am doing a report on the complaints made to the municipality by the people of an italian city. I'm doing the part of the analysis where I try to understand where people complain the most. The municipality provides data for 90 statistical areas that they have divided up. In the dataset on income per statistical area, ...
I am building a Marketing Mix Model in PyMC and am not sure how to interpret the posteriors, especially those with half-normal priors (sigma=1). I’ve chosen this prior because media could not have a negative effect on the revenue. After sampling, the posteriors for some beta’s look like this: Is there a non-zero effec...
My hypothesis is that the wording of a particular yes-no question affects whether people will answer "Yes" or "No", such that Wording 1 is more likely to be answered "Yes" than "No", and Wording 2 is more likely to be answered "No" than "Yes". Here are the results of a survey: Yes No Wording 1 70 30 Wording ...
I used the code below to create the random variable x1 and binary variable y, and fit the regression with y and x1. My questions are: Why regression coefficient estimates are not close to 2 and 10 (the values I setup)? Why the warnning "did not converge"? Thank you very much in advance for any thoughts! n=1000 x1=rno...
Model selection (best subset selection) in linear regression is quite important in many applications. Among the methods belonging to different frameworks such as information criterion, hypothesis testing, and cross-validation, is there any way to tell what method is the best? Or if someone can direct to some literature...
I have two samples: Sample A = businesses that have not received a grant Sample B = businesses that have received a grant Ua = population mean of survival rate for businesses in A Ub = population mean of survival rate for businesses in B na = sample size of A nb = sample size of b sa = standard deviation of survival ra...
Chebyshev's inequalities: Let $X$ be a random variable with finite expected value $\mu$ and finite non-zero variance $\sigma^{2}$. Then for any real number $\delta > 0$, $$ \Pr[|X - \mu| \geq \delta\sigma] \leq \frac {1}{\delta^{2}}$$ There is a tight example in wiki, $X_c$ is a random variable with $\sigma = 1/c$: $$ ...
It is known that Fisher exact test assumes that all 4 margins of 2 by 2 table are fixed. $\chi^2$ test does not impose restriction on sampling design beforehand in general where I mean $\chi^2\sim\sum |Observed-Expected|^2/Expected$ or derived from likelihood. Q: Should sampling/experiment design fix 4 margins in advan...
If I fit a regular linear mixed model to my data with lmer, I get a pattern of residuals that, at a glance, looks to me to deviate from Gaussian in two ways. The residuals are obviously very heavy-tailed, and there are a lot of discussions on Cross Validated of how to address heavy-tailed distributions. But, for exam...
I'm not sure if I understand the relationship between deep ensembles and Bayesian interpretation well. can you tell me if i am right or wrong? Suppose I have an ensemble of L neural networks trained through the maximum likelihood principle to predict for each point $x_i$ the mean $\mu(x)$ and the variance $\sigma(x)$ ...
I am looking to train a normalizing flow, specifically a Masked Autoregressive Flow model. However, this model leads to high variance on lower dimensional, less complex data. I am using a neural network to parameterize the scale and shift components of the MAF. I think we need to smooth the loss surface, i.e., the log ...
I have the following library(data.table) library(forecast) testdata<-fread("https://raw.githubusercontent.com/deanm0000/SOexamples/main/testdata.csv") If I run: summary(auto.arima(testdata$y, xreg=as.matrix(testdata$xreg))) Series: testdata$y Regression with ARIMA(1,0,0) errors Coefficients: ar1 inte...
I'm training a Lidstone Model with different n-gram sequences to see witch one is the best (2-gram, 3-gram, 4-gram, etc) in the same text database. When I give all these models an unseen text sample from the same database and ask for the perplexity of the n-grams contained in these text, witch perplexity should I expec...
Of course ANOVA can be used with a continuous y and a categorical x. If on the other hand my y is categorical and my x is continuous, is using ANOVA still valid? Or is multinomial regression my only option? My (superficial) understanding would tell me it is, as ANOVA is comparing a continuous variable acoss groups defi...
I was solving the following problem 2.27 from Statistical Inference by Casella-Berger. 2.27 Let $f(x)$ be a pdf, and let $a$ be a number such that if $a\geq x\geq y$, then $f(a)\geq f(x) \geq f(y)$, and if $a \leq x\leq y$, then $f(a) \geq f(x) \geq f(y)$. Such a pdf is called unimodal with a mode equal to $a$. (c) S...
I have a pretty simply-looking question on the parameter estimation. hope you can help me. I have a biased coin and I want to decide if the probability of head $p$ is bigger or smaller than known probability $p_0$ (and this I want to guess correctly with high probability, say 99%). If I draw say $100$ samples, it is ...
Explanatory item response models add predictors of the $\theta$ "ability" parameter. However, these predictors are always observed covariates. Sometimes, one may want to include latent variables as predictors, such as a different dimension representing a different type of ability. This is the item response theory equiv...
I have a table of 3 binary variables whose joint probability is given. a b c p(a,b,c) 0 0 0 0.192 0 0 1 0.144 0 1 0 0.048 0 1 1 0.216 1 0 0 0.192 1 0 1 0.064 1 1 0 0.048 1 1 1 0.096 I see that there is a joint probabilities formula for 3 variable $P(a,b,c) = P(c|a,b)P(a,b) = P(c|a,b)P(b|a)P(a)...
Suppose I have 3 real-valued random variables, $X, Y, Z$ and their pairwise correlations, $\rho_{XY}, \rho_{YZ}, \rho_{XZ}$, and I am tasked with finding a 2d function $f$ such that $f(X,Y)$ has higher correlation with $Z$ than either $X$ or $Y$ alone. That is, $f$ should be such that $\rho_{f(X,Y),Z} > \rho_{X,Z}$ and...
I recently came across the following distribution $$ \Pr(X\le x)=e^{\tfrac{1}{a}-\tfrac{1}{x}}\left(\dfrac{a}{x}\right)^{\tfrac{1}{a}},\; 0\le x< a, $$ and the cdf is 0 for all $x\lt 0$ and 1 for all $x\ge a$; here $a\gt 0$ is a parameter. Is this distribution a special case of some known distribution family, and if so...
How do I calculate the probability someone will win a game from the perspective of the house? Say I run a casino with 1 game: dice rolling. Any player who rolls the same number as I do on a single dice is a "winner". Winners will split the prize evenly. The 1 player case is easy. The probability a player will roll a gi...
I want to calculate the ICC for data that have different scales. When I calculate ICC 1 way method with and without normalization data, the result is totally different. Do I need to normalize the data before computing the ICC? Here is example of my data
I have two independent random variables, $Y$ and $X,$ where $Y$ is a random variable with a Gaussian distribution and a zero mean.  $X$ is a random variable with a Gaussian distribution and a zero mean.  I then create a new random variable: $$Z = Y+Y*X$$ Is there any way to determine the PDF of $Z$ and how can I comput...
I'm using a Grid Search CV to find optimal hyperparameters for an SVM. I want to use the best combination of hyperparameters and evaluate model performance using those hyperparameters. Can I just use the average accuracy given by the Grid Search CV as a metric for model performance? I've looked at SE Post as well as SK...
A hypothetical statistical hypothesis test that can be used for any type of hypothesis is conducted by drawing a random number between 0 and 1 and rejecting the null hypothesis if it is less than 0.05, what are the type I and type II errors of this test? Type I error = Pr(reject H0 | H0 true). Now, Pr(reject H0) = 0.05...
I came across an evaluation metric to test whether a predicted rank is good, especially the top k items. But I don't know what it is called or where it is used, which makes my discussion of this metric very limited. Suppose we have 5 items, A, B, C, D, and E. Their corresponding values leading to the above rank are [ 1...
A textbook example of a time series is the Box and Jenkins Air Passenger data. In R you can get it with the command data(AirPassengers). It has the number of international airline passengers each month from 1949 till 1960. Is there anywhere to download the true number of international airline passengers in 1961? I wa...
I am trying to figure out if there is a way that we can perform some statistical test to check the interaction between two independent continuous variables and a dependent variable in R. I have three variables course completion rate, interaction coefficient of participants, and sentiment scores. I want to check if ther...
How is AR(1) autocorrelation defined / parameterised when using a R {glmmTMB} GLM? I have read through Kristensen and McGillycuddy's vignette (https://cran.r-project.org/web/packages/glmmTMB/vignettes/covstruct.html) and understand the Gaussian case, but I don't understand how it's implemented within a generalised line...
Suppose we are living in a frequentist world and want to compute confidence intervals on some quantity that is a complicated function of the parameters $q_1 = f(\Theta)$ (i.e., there's no closed-form solution that would let us re-express this in terms of one of the parameters $\theta_j = g(\Theta_{-j}, q_1)$. The clas...
I am running a logistic regression on STATA with binary response variable, and 2 predictor variable that are discrete, as such one is in % (but takes only 2 values strictly i.e., 5% or 10%) and another takes value strictly from 1 to 10. My goal is to identify the relationship between these predictor variables and succe...
This may seem like a very basic question, but is something I have become more confused about the more I read. Say I have a dataset with morphological measurements of various plant traits (e.g. leaf length and width, plant height, etc) from several different sites. These values are all positive and are continuous number...
I've been reading into how to minimize objective functions and I am curious about the following, I have a model $y=X \beta +\epsilon$ where $E[\epsilon|X]=0$ and $Var[\epsilon|X]=\Sigma$ where $\Sigma$ is not diagonal and is a covariance matrix. $\beta$ can be estimated by least squares to get, $$\hat{\beta}=(X^T \Sigm...
I have several categorical predictors: experimental_group [A,B] # medicated/not factor1 [i,j] # task conditions factor2 [x,y] # task conditions And I need to predict: percentage of choices of 4 categories [c1,c2,c3,c4] in N trials My professor suggests ANOVA: % ~ category But this feels wrong. And I also want to ch...
I have responses from 30 patients for 4 independent variables. ind_var1 has 2 levels, ind_var2 has 3 levels, ind_var3 has 2 levels and ind_var4 has 4 levels. No groups in the dependent variable. So the matrix for independent variables is 2X3X2X4. Each patient is measured for all the combinations. So I chose the repeate...
A is significant B is not significant A x B is significant Do I say that (1) There exists a significant moderation effect. In other words, the effect of B on the dependent variable significantly depends on A? or do I say that (2) There exists a significant moderation effect. In other words, the effect of A on the depen...
I am running a meta-analysis where we are using the ratio of means (RoM) effect measure as the data we are using compare the two sides of the body (i.e. left and right). All RoM calculations are completed by escalc function in metafor r package, based on Friedrich 2008. Most studies we are concerned with will report a ...
The Elements of Statistical Learning exemplifies a notation (which I have occasionally seen elsewhere) that I would like clarification on. From page 18: $$\operatorname{EPE}(f) = \int [y - f(x)]^2 \color{red}{Pr(dx,dy)}$$ I would have understood $\color{blue}{dG_{X,Y}(x,y)}$ or $\color{magenta}{g_{X,Y}(x,y) dx\ dy}$ wh...
I have a dataset which has temperature measurements for every minute in a certain time period. I want to focus on 10 minute intervals and determine whether two adjacent 10 minute intervals differ significantly. Now this is fairly simple to do, but first I want to find out how big the difference should be for it to be s...
The book "Pattern Recognition and Machine Learning" by Christopher M. Bishop says in page 248 ... for softmax outputs we have: $$\frac{\partial y_k}{\partial a_l}=\delta_{kl}y_k-y_ky_l.\tag{5.76}$$ Note that in the original book, the index $l$ is printed as $j$. This typo was pointed out in the errata and fixed above...
We know multiple linear regression has the equation $$ Y_1 = \beta_0 + \beta_1x_{11} + ... + \beta_k x_{1k} + \epsilon_1 \\ Y_2 = \beta_0 + \beta_1x_{21} + ... + \beta_k x_{2k} + \epsilon_2 \\ \dots \\ Y_n = \beta_0 + \beta_1x_{n1} + ... + \beta_k x_{nk} + \epsilon_n $$ Where we try to find the $(\beta_0, \beta_1, \...
In a paper I am reading, they define the negative binomial as the following: random variable $X$ has a negative binomial distribution with parameters $p \in (0,1),k \in \mathbb{N}$ if $$\mathbb{P}[X=t]=\begin{pmatrix}t-k \\ k-1\end{pmatrix}p^{k}(1-p)^{t-k},$$ for all $t \in \mathbb{N}$. I haven't seen this form for the...
In page 249 of Christopher M. Bishop's book "Pattern Recognition and Machine Learning", it is said Again, the implementation of such algorithms can be checked by using numerical differentiation in the form $$\frac{\partial y_k}{\partial x_i}=\frac{y_k(x_i+\epsilon)-y_k(x_i-\epsilon)}{2\epsilon}+O(\epsilon^2)\tag{5.77}...
I have data of 5794 subjects which were followed for 22 years, for a total of 18729 events (e.g., stroke, myocardial infarction, coronary heart disease death, etc). Additionally some of those subjects had ultrasound examinations at 5 and 11 years. Let's say I want to study fatal strokes and limit the study to 5 years s...
In my textbook, it states the following about skewness. The relative position of the median to the mean of a distribution can be identified by the skewness or vice versa. If the skewness is positive, this means that it is more likely to observe a value above the mean than below the mean. Therefore, the median is more t...
This is the equation for Focal Loss. The loss is an extension of weighted cross entropy, and aims to balance the impact of majority of easy negative class samples. The α parameter is a weighing term which weighs the loss of class 1 by α, and class 0 by (1 - α). In the paper they give the value of α equal to 0.25. My q...
I have a dataset comparing two different treatment groups with several performance metrics (PM) expressed in percentage (see below). The Mann-Whitney U Test is the most appropriate test (discrete data, not normally distributed). When I run my script (see below), many of the p values are coming out at the same value. Th...
I am quite new in linear mixed-effects models, and trying to figure out how to properly design my model according to what I want to show (especially with the nesting and random effect). I am reading several tutorials and examples in forums, but it’s still a bit confusing. My several attempts ended up obtaining very dif...
I understood the purpose of likelihood ratio test. However, I am confused by the table below from a published investigation. Clearly the author compare a nested model (VMNS) and a full model (VMNS + tumor differentiation) in C-index, and likelihood ratio test chi square. Now the question is: I know how to do a likelih...
I'm reading about Kingma's reparameterization trick (section 2.4.4) for changing the random variable $z$ for another random variable $\epsilon$, and I don't understand the calculation of the density function $q(z)$. In the simplest univariate Gaussian case, $q(z) = N(z,\mu, \sigma^2)$ is a Gaussian, and we wish to rewr...
I have a list of stock returns (say computed from the historical data) and would like to resample the historical return distribution. Naively doing bootstrapping means the samples are iid. I'm particularly interested in correlation between consecutive returns (a large return should be more likely to be followed by a la...
I've read about this historical case before so I thought it would be very easy to Google, but after a few dozen queries that come up with nothing relevant I'm ready to punt. The story goes like this. There is a war on (maybe WWI?) and for strategic reasons the government wants to avoid disseminating useful informatio...
When using IPW with a binary outcome, the results after IPW are not bound between 0 and 1. I am using IPW to get doubly robust scores. $$ \mu + \frac{D_i(y_i - \mu)}{ps_i} $$ where $\mu$ is the predicted outcome, $D$ is the treatment indicator, $y$ the observed outcome, and $ps$ the propensity score. What are approache...
I have 2 groups that have completed several Likert (1-5) surveys and I want to test if there is a significant difference in the responses between the 2 groups for each survey. However the number of responses vary between the 2 groups, where group 1 always has many more responses compared to group 2. This is often rough...
I am an epidemiologist and recently our team receive a data from nursing homes in our city. We have weekly data for each elderly person for about 3 years during their stay in nursing homes. The response variable of interest is flu infection (binary). There are many different covariates (some time-constant such as gende...
I'm working on a project where I have to perform MCA and MFA. My dataset contains the following data (for context). Also I created some extra variables: WeightTried* for each lift, that has the absolute value to remove the negative values Lifted*? for each lift, that is Not lifted if the lift was < 0 and Lifted otherw...
In the typical difference-in-differ rences design with multiple time periods the periods concerned are equal e.g. days, months, years. What, if any, are the implications of having time periods of different duration e.g. $t_1$ ~ 5 days, $t_2$ ~ 10 days, $t_3$ ~ 1 day etc? For instance, say we have data of the following ...
I was reading the book "Introduction to Statistical Learning - 2nd ed" and I can't understand the derivation of equation 6.15 on the page 247. This question is similar to Introduction to Statistical Learning Eq. 6.12 and 6.13 but the answers there weren't satisfactory. My approach was to use the modulus definition to ...
I'm running a chi square test on some categorical values pertaining to race, and whether different racial groups participated in a clinic. As there's about a dozen different races in this data, I bucketed them down to 'White', 'Black' and 'Other', just for the purposes of testing (as the correlations indicated most of ...
I have this bivariate distribution and I would like to tell if it is in the exponential family: $$f(y_{i},d_{i}|\theta_{1}\,\theta_{2}\,p)=\left(\left(\frac{1}{\theta_{1}}\right)\exp\left(\frac{-y_{i}}{\theta_{1}}\right)\right)^{d_{i}}p^{d_{i}}\left(\left(\frac{1}{\theta_{2}}\right)\exp\left(\frac{-y_{i}}{\theta_{2}}\r...
I have $N$ numbers from uniform random distribution. Now I have done a transformation on these $N$ numbers as: each $x$ is converted to $\frac{(x-\mu_N)}{\sigma_N}$. Where $\mu_N$ is the mean of $N$ numbers and $\sigma_N$ is the standard deviation of those $N$ numbers. Does the converted distribution follow a normal di...
For example, let me suppose that I have 100 thousands of geospatial data in my dataset, and I want to extract certain group that which is the most crucial. So I decided to do clustering and pick 'one cluster that seems to be most appropriate for my purpose of analysis' in the visualized result. Let me call this 'target...
I have a variable that takes the value of 5% or 10% throughout the data set. Is it okay to transform this variable into a dummy variable such that 10% (high) = 1 and 5% (low) = 0. I am running a logistic regression (binary response variable) and I want to know if the probability of event success i.e. y=1 decreases when...
I have a model $Y = f(X) + \epsilon$ where $\epsilon$ is independent of $X$ and $\mathbb{E}[\epsilon]=0, \mathbb{E}\left[\epsilon^2\right]=\sigma^2$. Show that $$ f(X)=\mathbb{E}[Y \mid X] $$ This is my attempt at the proof: $$ \begin{aligned} & E[Y \mid X] \\ &= E[f(X)+\varepsilon \mid X] \\ &= E[f(X) \mid X]+E[\varep...
I am currently looking into the dickey-fuller test but seem to not understand something fundamental. To understand the test better, I created 4 time series: cons, lin, r1 and r2. How these are generated can be seen in the code below. While r1 pulls samples from N(0,1), r2 follows the definition of a random walk. These ...
Assume I have an ARMA(p,q) weakly stationary process with the error term $\epsilon_{w}$ such that $\epsilon \sim WN(0,\sigma^2_w)$, can either be gaussian or non-gaussian. The covariance matrix,$M$ is built based on the auto-covariance function of the ARMA(p,q) process in the form of $\sum \sigma^2_w K$ where the proce...
In Bayesian/variational neural networks one often uses the Evidence Lower BOund (ELBO) as the objective function to optimize with respect to the model parameters. That is if $D=\{y_i,x_i\}_{1\dots n}$ is the set of our training data, $\{y,x\}$ is a new data point, and $w$ represents our network weights/parameters, then...
Consider the following setting: There's a time dependent biomarker X and the outcome of interest is death. Time 0 (t_0) for each patient is their entry into the study. For simplicity, assume I fit a time-varying Cox model and estimate absolute risk using conditional survival probabilities over a time window w. The mode...
Let $x_{t}, \omega_{t} \in \mathbb{R^{d}}$ The Hamiltonian Monte Carlo says this: Deterministic: it relies on the Hamiltonian dynamics so given an initial state, at any time $t$, specified by the position and momentum $(x_{t}, \omega_{t})$, the state $(x_{T}, \omega_{T})$, of the system at a forward time $T$ can be de...
I feel like this is probably a really stupid question but I'm having issues finding the answer. When I think of reliability, normally I think of several items on a test that are compiled into some kind of sum score, with which the individual items are tested with a reliability coefficient like alpha, gamma, or omega. H...
Let $y_1, y_2, \ldots , y_N$ be arbitrary real numbers and suppose a process of simple random sampling without replacement that selects $n$ out of $N$ elements. Then suppose that these $N$ elements are embedded in an asymptotic regime, indexed by $h \in \mathbb{N}$, whereby (1) the original set of $N$ real elements is ...
I am running one-way ANOVA for my research data, and I'm meeting all the assumptions except Homogeneity of variances. Am I allowed to run the Kruskall-Wallis test, as it's the non-parametric test for one-way ANOVA, or are there any other statistical methods I should use?
if I was thinking to design test for a control and 3 treatments or variants looking at a 0 dollar value for control and then 5,10 and 15 dollar amounts for completing an assignment, would a normal t-test be fine or anova? I am a little confused as ANOVA states to compare to each other but here I just want to see which ...
I know how to conduct a sample size calculation comparing two independent means in a randomized controlled trial. However, I am confused by the following situation. There are 2 groups: intervention (IG) and control (CG). The outcome of interest is a severity score (0-100, the higher the worse). The baseline score in bo...
I am running a model with an interaction term and I am unsure of the interpretation even after reading the other questions here in the forum. My model looks as follows: Where roi is the return on investment, logfreq is the log transformed trading frequency and treated is the binary treatment variable. My interpretatio...
i was reading this paper https://arxiv.org/pdf/1807.00263.pdf in which Kuleshov gives a definition of a well calibrated neural network in a regression task I would like to ask one thing: why does he makes a special cases for when $x_t,y_t$ are i.i.d. realizations of random variables $X, Y \sim \mathbb{P}$? when we d...
Here in my country it's time to choose a president. So some institutions make surveys about how many votes (in %) the candidates are gone get in the poll day. The population is about 200 million peoples, but to make these surveys about 2000 people are asked their opinions. How it's possible to predict the result of the...
I would appreciate some help interpreting and inferring outputs from aov() in R, and understand what the next step is in the analysis. Background: I am working with AOV() in R and I will do an analysis of variance where the main purpose of the study is to investigate the influence of storage conditions on the flavour o...
In the equation R is the decision region and C is the classification. I don't understand how did he go from probability to integral!
Suppose $\{X_{1},\ldots ,X_{d}\}$ is a sequence of independent random variables, each with finite expected value $ E[X_{i}]$ and variance $ \text{Var}[X_{i}]$. We define $$s_{d}^2 = \sum_{i=1}^{d} \text{Var}[X_{i}].$$ If for some $\delta >0$, the following Lyapunov's condition holds true \begin{align*} &\lim_{d \to...
$X$ is a random variable defined in a sample space $c$ is a constant $\in R$ (real numbers).
I am trying to figure out the correct specification of random effects (specifically an interaction varying across levels of a random effect) when moving from a linear mixed model to a GAMM. I am working on brms which uses lme4/mgcv syntax respectively. Suppose we have experimental plots in a 15x2X10 design, where each ...
I'm trying to evaluate my change point detection algorithm based on F1 score[1] defined as follows Let $\mathcal{X}$ denote the set of change point locations provided by a detection algorithm and let $\mathcal{T_1}$ be the set of (single) human annotations. For a set of ground truth locations $\mathcal{T}$ we define th...
I'm reading a blogpost about VQ-VAE, and it says there that: If we are working with a 1-d signal like audio, casting the problem into an autoregressive form is very simple: just predict the next latent in the 1-d sequence encoded from the audio. This approach assumes that the encoder is configured such that later late...
Conceptual Question: Suppose a banker wants to run regression on S&P 500 companies to see if they make more returns than the last year on average daily return basis. He runs on dummy variables for each company. Suppose the model is $R_i=\beta_0+\beta_1 k_{1i}+...+\beta_{500} k_{500i}$ where $R_i$ is returns on a daily...
I'm reading about Variational auto-encoders, and in section 1.8 they describe a latent variable model $p_\theta(x,z)$ where x are observed and z are hidden variables. They say that the marginal distribution over observed variables for a single datapoint is $p_\theta(x)=\int p_\theta(x,z)dz$. They proceed to say that th...