instruction stringlengths 9 38.7k |
|---|
Which is the
$E(x_1 \exp(a_1 x_1 + a_2 x_2 + \dotsm + a_n x_n)$ when X is an n-random vector distributed multivariate normal (0, $\Sigma$).
|
I want to run an A/B test with two machine learning models M1 and M2 (called treatment groups T1 and T2), and I have a control group C without using machine learning model.
Is there a specific name of these A/B test with two treatment groups and a control group?
How do we show that M1 is really better than M2? E.g., u... |
A source of confusion that I often come across relates to when people want to use categorical data, where the number of categories is greater than 2, in a linear regression (simple or multiple) and think that they must manually code dummy variables in R representing the categories while following the rule of n - 1 to a... |
I'm currently trying to understand the Bootstrap method. I have a rather simple question. Say I have my original set S of size N and wish to create B bootstrapped samples of size R. Hastie et al. states in 'The Elements of Statistical Learning' ,p. 249, that
"The basic idea is to randomly draw datasets with replacement... |
I am studying Link Prediction using Node2Vec refering to a tutorial on the web. The following equation is what I don't understand. Why is it this way?
x = [(n2w_model[str(i)]+n2w_model[str(j)]) for i,j in zip(data['node_1'], data['node_2'])]
Can somebody explain what the above equation means?
|
I'm currently trying to fit a vector autoregression model to my data set with 4 numerical variables and 1 categorical variable.
To the best of my knowledge, the way to do this is by one-hot encoding the categorical variable, which I have achieved by pandas.get.dummies in python.
However, as I'm fitting the model and tr... |
I was reading some papers and I found some parts are tricky to understand.
Assume I have price data , what does it mean to calculate the conditional mean of the price data given yesterday price ? does that mean the price is known? I know to calculate the expectation of the price I sum all the prices then divide them b... |
As per the textbook, OLS should fail when using colinear covariates. On their LinearRegression() documentation, sklearn states:
When features are correlated and the columns of the design matrix
have an approximately linear dependence, the design matrix becomes
close to singular and as a result, the least-squares estim... |
I was reading about different variants of backtesting in time series- expanding window & rolling window. I could find in texts about when to use which, but still I'm sort of unanswered.
Here's what I've read-
Expanding (recursive) window is useful when the series has a strong seasonal pattern and stable trend as in thi... |
I would like to quantify the uncertainty of a Random Forest binary classifier.
The idea that popped in my mind was to fit the Random Forest 100 times with different seeds. Computing the variance of the forest's output on data in a validation set, I can then estimate the variance of the model.
Notice that the technique ... |
I have a student with a known ability level and a set of items with an estimated difficulty. The probability of a student getting an item correct follows an 1 parameter logistic model (also known as 1PL or Rasch model) p(y=1) = logistic(item_difficulty - student_ability), which can be modeled, and parameters estimated ... |
Vladimir Vapnik wrote:
“When solving a problem of interest, do not solve a more general
problem as an intermediate step. Try to get the answer that you really
need but not a more general one.”
Vapnik wrote this in the context of transductive learning, but the principle could also be applied to statistical pattern rec... |
Let's say I have a vector $x$ on $n=250,$
(in R)
x = rnorm(250)
The quantile of $\alpha=0.01$ is :
quantile(x,0.01)
1%
-2.700463
Now is that theoretically right to estimate the bootstrap quantiles of the quantile function at any confidence level ? For example I am using the BCa method described by Efron in ... |
I am new to VAR/SVAR and microeconomics.
I learn (from here) that a k-dimension p-order SVAR can be written as $X_{i,t}=f_i(X_t^{-i},X_{t-1},...,X_{t-p},\epsilon_{i,t})$, where $i$ indexes the number of variable, $t$ indexes time, $X_t=\{ X_{1,t}, X_{2,t}, ..., X_{k,t}\}$ and $X_t^{-i}=X_t\setminus \{ X_{i,t} \}$.
I kn... |
Given a montly time series, my objective is to provide my client with the next 12 point forecasts along with a yearly forecast. To obtain the yearly forecast, I simply sum up the 12 points forecasts. However, I don't know how to estimate the prediction interval associated with this sum.
Any ideas on how to obtain a pre... |
I am wondering about the chi square test and what will give me more reliable/better results.
I have four categories
Aa
Ab
Ba
Bb
I want to test if these four categories are in a 1:1:1:1 ratio, however; I also can add up the Ba+Bb and Aa + Ab categories and test if these follow a 1:1 ratio. Which test is more accurate?
|
I'm trying to solve a problem where I need to find two deming style regression models onto two different data sets of equal dimension who's coefficients(A,B) satisfy the following criteria with respect to a third model (C).
A dot C + B dot C =0
I'm really not even sure where to begin with a problem like this, I'm prett... |
I have a simple transition model I am trying to use to predict the probability of two states.
$$
\begin{bmatrix}
p_{1,t+1}\\
p_{2,t+1} \\
\end{bmatrix}=
\begin{bmatrix}
p_{11} & p_{12} \\
p_{21} & p_{22} \\
\end{bmatrix}
\begin{bmatrix}
p_{1,t}\\
p_{2,t} \\
\end{bmatrix}
$$
I compute $p_{1,t+1},p_{1,t+2... |
[6, 3, 7, 11, 5, 3, 8, 7, 2, 6, 9, 13, 10, 4, 3]
So I'm going through some revision for stats, one of the questions asks to find the trimmed mean of the above data. I've worked it out but my answer does not match up with the Memo, my working is such:
Order in ascending order: [2, 3, 3, 3, 4, 5, 6, 6, 7, 7, 8, 9, 10, 11... |
Let's say we have the following regression
$Y = \alpha + \beta X + \gamma W + u$
the way I interpret $\beta$ is "the effect of $X$ on $Y$ keeping $W$ constant".
Now let's say that I have panel data, and I want to control for unobserved heterogeneity, then I add individual fixed effects to the previous equation. The int... |
Can I use correlation between the training data as features, and if possible how will I test the test data with the model coefficients
I will try to explain more
If the training data are
X = [X1, X2,....., Xn]
and Xi = [Xi1,Xi2,....., Xi100]
where X are the training data and Xi is one sample of the data
and
K = [Xcorr... |
I have different models, predicting a vector $\boldsymbol{v}\in\mathbb{R}^3$. Now I would like to compare the performance of these models against a baseline vector $\boldsymbol{b}\in\mathbb{R}^3$, for example from an experiment.
So far, I used the cosine between the normalized vectors and the magnitudes separately, but... |
I have plotted this data, and to me there appears to be a clear relationship between the variables (sediment accumulates when wind direction is between 150 and 250 degrees). Is there a appropriate method to quantify this non-linear relationship? Perhaps some kind of distance correlation? And is there a good way to visu... |
I have the following data
mydat <- read.table(textConnection('
study treatment exposure responders
A 5 277 22
B 1 1251 211
B 5 625 8
C 5 477 36
C 7 236 6'), header=TRUE)
... |
I am familiar with Inverse Propensity Weighting (IPW) for the estimation of causal effects, and recently, I came across the 2016 paper by Chernozhukov et al. on Double/Debiased Machine Learning. From what I can see, both DML and IPW make similar assumptions over the causal structural equations: is there any reason why ... |
Let $Y$ be a real-valued random variable with a distribution equal to that of $|X|$ where $X$ is Gaussian with mean 0 and variance $\sigma^2$. Is $Y$ a subgaussian random variable? This Related question. was asked, but I don't follow the comments-- in particular, we can't directly apply the characterization of subgauss... |
Lets Say, here is our train and test function where we train and test the model.
def train(all required variables):
for input, target in train_loader:
out = net(input)
loss = criterion(outputs, targets)
loss.backward()
optimizer.step()
acc = Accuracy(out, target)
def test(all re... |
A sample is considered adversarial if it drastically changes classifier's confidence $\in [0,1]$ when given as input. For example, if a spam/ham binary classifier considers some input $X$ to be 0.9 spam, then an adversarial input $X + \varepsilon$ (for some carefully crafted noise $\varepsilon$) may change the confiden... |
I have a data set with a significant amount of missing data and that missing data is not random.
I decided to change these NA values to 999 and apply a Tobit with right censoring after a cut-off point at the maximum recorded values. I'm questioning whether this is an appropriate application of a Tobit regression. Runni... |
A biologist colleague of mine posed the following probability (with replacement) question to me. Based on his language (English is his second language), it's not clear to me how to proceed. When pressed for a clearer explanation, he is unable to clarify. Thus, I am asking here on CV.
Now for the question...
There are t... |
I have just created my first mediation model using sem() with the lavaan package in R. I am using a bootstrapping with 5000 resamples and BCA to calculate the confidence intervals at a 0.9 level.
However, now I face difficulties in interpreting my results, as I get non-significant p-values (>.1) for the indirect effect... |
I have this data:
structure(list(age = c(62.84998, 60.33899, 52.74698, 42.38498
), death = c(0, 1, 1, 1), sex = c("male", "female", "female",
"female"), hospdead = c(0, 1, 0, 0), slos = c(5, 4, 17, 3), d.time = c(2029,
4, 47, 133), dzgroup = c("Lung Cancer", "Cirrhosis", "Cirrhosis",
"Lung Cancer"), dzclass = c... |
I'm trying to create an R script that calculates a 5% and 10% trimmed mean and SD. I uploaded the data on Google Drive in order to enable replication.
My attempt using already existent commands:
library(xlsx)
library(chemometrics)
df <- read.xlsx("output.xlsx","Sheet1")
varb <- 'age'
test <- df[[varb]]
trimm <- 0.1
lo... |
I am struggling to find an example which has 2 random variables (say L1 and L2) with same VaR but different Expected Shortfall.
|
Consider the regularized empirical risk minimization problem L(x) + λ * r(x), where L(x) is the empirical risk, r(x) is the regularizer, and lambda is the regularization hyper-parameter.
I have 2 cases (where λ1< λ2)
L(x) + λ1* r(x) where x1 is the minimizer meaning that L(x1) + λ1 * r(x1) ≤ L(x) + λ1* r(x) for any x
... |
I am using a random forest regressor and I split the independent variables with shuffle = True, I get a good r squared but when I don't shuffle the data the accuracy gets reduced significantly. I am splitting the data as below-
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25,random_state=rand, ... |
Consider a Gaussian Process $GP(0,k(x,x'))$ with zero mean and bounded, continues covariance function $k(x,x')<c,\quad \forall x,x\in\mathbb{R}^n$.
Are the sample paths of this process (almost surly) bounded on $\mathbb{R}^n$? If yes, why? If not, what additional assumption is needed?
Thanks for your time!
|
I have a time-series dataset that has 120 missing rows due to consecutive network issues and I am trying to impute these values using MICE in Python. As the source of missingness is a total disconnection, all columns are missing from those 120 rows.
First, I am trying to identify if it is MCAR or MAR. As missingness is... |
I know a couple questions have been asked on this site that are similar, but they were slightly different from mine, and the answers don't seem to apply to me directly. I have the following simple table that has the percentage for each category in my sample. And I have made the corresponding bar chart. I haven't put an... |
Let's say I'm running 100 statistical tests. Some of them are t tests, some are ANOVAs (and for each ANOVA subsequent post-hoc t tests should a significant result be obtained), some of them correlations, and so on... Given the large number of tests I want to apply BH Procedure to control false discovery rate. My questi... |
One claims that the life time distribution of its Everyday light bulbs
is exponential with mean 1000 hours. If you test a random sample of 4 light
bulbs and find that the average life time is 900 hours, do you have significant
evidence against the this claim? Set up an appropriate hypothesis testing
problem. Use the no... |
Can we use $y * \operatorname{sgn}(\hat y)$ as a loss function in linear regression where $\hat y$ is the prediction and $y$ is the target value, or is there any other loss function close to this which can be used?
|
I have some timestamped data (four groups) and I am looking to find a way to find which of the three is moving more closely with the purple one? Is Pearson correlation is the best approach, or there is a better way to do this?
I am not checking the dependency, these are four different metrics coming from different sour... |
I have 4 groups with independent samples :
Female Control
Female Treatment
Male Control
Male Treatment
When I compare Control to Treatment within the same sex, I find that Female Control to Female Treatment is significantly different whereas Male Control to Male Treatment is indifferent.
I'm confused about two things:
... |
From the source https://xgboost.readthedocs.io/en/stable/tutorials/model.html I guess that the mean-squared error is optimized subjected to a constraint of minimum loss reduction. It appears like optimization using Lagrange multiplier to bear solution $\Sigma w^2_j = \gamma T$ but why the $\gamma$ in https://xgboost.re... |
If the outcome of a data generating process is always a 0 or 1, is the variance of the sample npq? Or is this variance formula only applicable when the data generating process is as simple as 'draws from a binomial distribution?
For example, let's say I have a process that draws two random numbers between 0 and 1. If t... |
I am very new to statistical analysis. Is it problematic when the predictor variable in a regression analysis can take on negative as well as positive values? I expect that there is a negative correlation between my DV and IV, whereas the IV can take on negative as well as positive values. Does it change the interpreta... |
I have model with 1 covariate. I would like to run y values from gam in another model. I used nb(log=link) in gam model. Because I used nb and link log in gam, do I need to back transform to use output from predict.gam() to match real values? I would like to run predicted in another model and to compare with other real... |
I already referred the posts here and here but they are different and doesn't answer my problem.
I am currently working on a binary classification problem with random forests, neural networks etc.
During assessment of the model, I generated the below KS-statistic
While I understand that KS-statistic indicates the sepe... |
Let's say that we have a dataset of a single vector :
xx <- c(1.99, -0.424, 5.61, -3.13, -2.24, -0.14, -3.32, -0.837, -1.98, -0.120,
7.81, -3.13, 1.20, 1.54, -0.594, 1.05, 0.192, -3.83, -0.522, 0.605,
0.427, 0.276, 0.784, -1.30, 0.542, -0.159, -1.66, -2.46, -1.81, -0.412,
-9.67, 6.61, -0.5... |
I have some pre-existing data, which was collected by my predecessors. For the data I typically would conduct a Multivariate General Linear Model. In this data I am collecting information about patients (city, diagnoses), and I want to see if these two factors interact with dependant variables (recovery time, mortality... |
I can compare 1 success out of 25 attempts vs. 2 successes out of 25 attempts, but with a proportion of time, it seems more complicated to me. Let me explain. I want to compare two groups, one where there is 1 success out of 25 observations, the other where there are 2 successes out of 26 observations.
In my case these... |
Let $Y$ be a random variable with distribution belonging to a minimal regular exponential family. Let $\eta $ denote the scalar-valued canonical parameter of the exponential family and let $A$ be the log-partition function of the exponential family. $A$ is strictly convex and infinitely differentiable. It is well-known... |
Mode collapse is a known issue in generative adversarial networks (GANs) whereby the generator only learns a subset of the real data distribution. In those cases, it only outputs variations of a small number of images. For example, in the MNIST handwritten digit dataset, the generator might only learn to produce 7s and... |
I need to compare more than 2 groups, each containing discrete data (more specifically, integer numbers between 1 and 9). Shapiro-Wilk tests come back as significant for most groups, meaning the data is--unsurprisingly--not normally distributed. My question is what is an appropriate statistical test to compare the diff... |
I have a nuisance factor that introduces a lot of variation in my data. I want to know how many levels of this factor I need to include in my blocked design to get a power level of, say, 90%.
As an example, let's say I'm measuring the mass of mice, and I see a lot of variation between mice from different lineages. So f... |
Is there a way to extend following univariable asymptotic regression model to include additional variables?
$$
Y = Asym + (R0 - Asym)* e^{(-lrc * T)}
$$
$Asym$ = maximum attainable value of $Y$
$R0$ = initial value at time 0 (Intercept)
$lrc$ = rate of $Y$ increase while $T$ increases
How would I extend this model ... |
I'm experiencing difficulties with running a mixed model in SPSS (version 26).
My experiment is a 2x2 factorial design in which we provide light and/or larvae to chickens. I have individual (continuous) measurements from behavior tests as outcome parameters. There are no repeated measures. But since the chickens are ho... |
According to this source, the survival function is defined as
$ S(t) = e^{- \lambda \cdot t} $
while, according to this source, the number at time $ t $ of radioactive atoms is
$ N(t) = N_0 \cdot e^{- \lambda \cdot t } $
which is quite the same, or? In general, survival analysis is described as
Survival analysis is a ... |
Let $Y = X \beta + e $ be a regression model, where $E[e|X] = 0$ and $E[e^2|X] = \sigma^{2}$. Does this mean that $e$ is independent of $X$?
If so, how to prove it? If not, are there some counterexamples?
|
I have a convenience sample, and want to show readers how biased it is relative to the population it's taken from. It's absolutely certain that the sample is biased, and I want to give readers as many details as possible regarding the bias.
Some parameters of the population are already known (e.g. distribution of gende... |
I conducted an experiment in which I am trying to model the relationship between my response weed_coverage [%] and the predictors soil moisture [%] + treatment + distance. Weed_coverage and soil_moisture are continuous, treatment and distance are categorical with 2 levels each. I measured soil moisture on 5 dates, at 7... |
I'm working to understand the relationship between the weekly return of a stock and a set of productive factors through time. As productive factors, I'm considering weekly returns on the price of energy variables (oil, natural gas,etc), metals (iron ore, tin, etc), agro (wheat, corn, soy,...), freight costs, labor indi... |
I'm having trouble understanding how to interpret the results in this particular situation.
The research topic is to understand how different cat species (Cats 1-3) get infected by a specific parasite.
In the table above, the base category is Cat1. The p-value for the intercept is high, so we cannot conclude Cat1 has ... |
Context:
I want to measure accuracy, precision, and recall for individual raters. Each rater completes a variable amount of labels, for ex. rater A may complete 500 in a given time period while rater B may complete 800.
I want to sample a fixed number of labels from each rater to measure their performance.
My confusion... |
In 2019 a research paper was published measuring the association between cougar attacks on humans using the Fisher's Exact test between 1924 to 2018 [1]. There were a total of 74 attacks reported from 16 different states."The most common activities victims were doing at the time of attack were hiking (n=20, 35%), perfo... |
I am struggling to understand continuous variable entropies and mutual informations for 2 or more variables. Consider 2D normal distribution $\rho(x,y)$ defined as follows
$$X\sim\mathcal{N}(0, \sigma_x^2)$$
$$\epsilon\sim\mathcal{N}(0, \sigma_\epsilon^2)$$
$$Y = X + \epsilon$$
Then the covariance matrix of $\rho(x,y)$... |
I am interested in the use of modern causal inference methods to research the association between a (non-genetic) exposure, and endogenous molecules and/or health outcomes (high-dimensional data). I came upon the work of Prof. Mark J. van der Laan and his group in the USA, and it seems that it's probably what I need (b... |
I'm currently doing an undergraduate stats module and we're being asked to calculate the response rate and many people are conflicted by whether or not the excluded outlier data would constitute as a non-response.
Personally I do not think that it would constitute non-response as technically, they did respond.
However,... |
I have a dataset from which I am taking a set of descriptive statistics as follows:
The value measured is productivity of a firm for each of the group at different quantile (I use Stata command: table group_var, c(p10 p25 p50... ).
The below is repeated for two subsets of the main data (I have two sets of descriptive s... |
I have a question related to the count model.
I am trying to understand whether pickup and drop-offs influence road crash. Therefore, I have road crashes aggregated at the census tract level as my dependent variable (Y). Independent variables range from PUDO (Pickup & Dropoffs), Tot_VMT, which can be split into Tot No... |
For this question, I begin by explaining my factor model, and then ask how to theoretically motivate factor scores given my setup. I would also be very grateful for clarification about any mistakes I may be making in setting up my factor model or explaining factor scores, as I'm not an expert in this area.
Model Setup
... |
I was reviewing a ML notebook when part of the EDA looks at the cardinality of categorical variables.
As the notebook was prepared there was no strange result, but what if an attribute has a very high cardinality. For example, if a Dataset of 10000 rows has a cardinality of 5000, that is 50% of the size of the data.
Se... |
I want to evaluate how the cultivation of a particular crop has impacted several socioeconomic variables at the municipality level. I have a map that identifies the municipalities where this crop can be grown (due to climate, etc. they are all located in the same area) and data for the last 15 years of where the crop h... |
I have a dataset of 2 variables (called x with shape n x 2 values of x1 and x2) and 1 output (called y). I am having trouble understanding how to calculate predicted output values from the polynomial features as well as weights. My understanding is that y = Xw, where X are the polynomial features and w are the weights.... |
I am studying an example where a Poisson model is applied to the Homicide Victims dataset. The dataset contains survey results of 1308 people who where asked about the number of homicide victims they knew. The dataset includes the response of a person (the number of homicide victims he/she knows) and his/her race. The ... |
About 12% of males are colorblind. A researcher needs three colorblind men for an experiment and begins checking potential subjects. What is the probability that she finds exactly 3 or 4 men in the first 7 trials she examines? The average number of colorblind men out of sample size of 7 is equal to 0,84.
if sample zize... |
I'm designing a biological experiment wherein the sample size is very limited, as each sample is very hard to get. Moreover, I need to have 4 independent groups, each receiving a different treatment.
I only really care about 2 comparisons: group 1 vs group 2, and g3 vs g4. My power analysis indicates my sample size is... |
I have regression coefficients, Logistic Regression to be precise, of 7 continuous and 2 binary (1 or 0) flag variables. The continuous variables are scaled using just the standard deviation of the individual variables to interpret them as the change in the probability of the response variable with 1 std. dev. change f... |
I need to calculate the AUC for a Cox regression model. SAS is giving me a time dependent AUC as below. How do I report this for the paper?
Thanks!!
|
I am following one country (USA) over time (2005-2010). In this time series analysis, I want to put a year or a time fixed effect to take into account the variation in the outcome that takes place over time and that is not attributed to my other explanatory variables. However, everytime I run the regression without yea... |
Suppose we fit a statistical model to time series data with lots of "sites". If we produce a (p)acf plot to check for autocorrelation, do we need to do one for each of our seperate time series in the model i.e. for each site? I'm not sure how this could be done with e.g. thousands of sites. I have noticed that one can ... |
I perform a lot of bioassays in which I score mortality not on individuals, but on groups of individuals as a proportion (the denominator, i.e., number of trials, is known):
Sample Data:
library(tidyverse)
library(betareg)
dataset <- data.frame(treatment = rep(c("a", "b", "c", "d"), each = 5),
suc... |
I have this data frame (reproducible):
## structure(list(age = c(62.84998, 60.33899, 52.74698, 42.38498
## ), death = c(0, 1, 1, 1), sex = c("male", "female", "female",
## "female"), hospdead = c(0, 1, 0, 0), slos = c(5, 4, 17, 3), d.time = c(2029,
## 4, 47, 133), dzgroup = c("Lung Cancer", "Cirrhosis", "Cirrhosis", ... |
In a dataset with 5 variables, how many percent of variance of the dataset can each variable explain at most?
|
In bayesian linear regression for example, we may specify a model as:
$$y_i \sim N(\beta_0 + \beta_1 x_i, \epsilon^2) \\\\
\beta_0 \sim N(0, \tau_0^2) \\\\
\beta_1 \sim N(0, \tau_1^2) \\\\
\epsilon \sim N(0, \sigma^2)
$$
The posterior can be constructed as
$$
P(\beta_0, \beta_1, \epsilon|y) = \frac{P(y|\beta_0, \beta_1... |
I have a time series of crop area that looks like below-
I have other parameters- profit, interest rate, crop prices, and dollar value, and I believe that these parameters can predict the area value. I checked the spearman correlation between crop area and all x variables, the correlation was good and significant.
My ... |
What I'm doing now is ranking each model within each metric and summing the ranks. Whichever model has the lowest sum I am considering the best.
Perhaps it would be clearer if I used an example
There are 5 models. Model A, Model B, and Model C, Model D, and Model E. There are 3 evaluation metrics. A rank of 1 is the be... |
My problem is as follows:
Let $X_1,\ldots,X_n$ be a random sample from a $N(\theta,1)$ distribution, and consider testing $H_0: \theta \leq 0$ versus $H_1: \theta > 0$. Let $\Omega = \{\mathbf{X}: T(\mathbf{X}) > c \}$ be the rejection region, where $T(\mathbf{X}) = \frac{1}{n} \sum_{i=1}^{n} X_i$. Find the value of $... |
A lot of tutorials use pipeline with GridSearchCV. Example here.
pipeline = Pipeline([( "scaler" , StandardScaler()),
("rf",RandomForestClassifier())])
parameters = {
'n_estimators':[1,10,100,1000],
'min_samples_split': [2,3,4,5]
}
grid_pipeline = GridSearchCV(pipeline,parameters,cv=5)
gr... |
I would like to know if the effect of a predictor varies over time.
So for example if the effect of "pred" on "dv" changes over the course of the "time" variable.
library(data.table)
library(tvReg)
time <- rep(1:100, 100)
dv <- rnorm(1000)
pred <- rnorm(1000)
d <- data.table(time, dv, pred)
I've heard of the tvReg p... |
Suppose $\frac{1}{n}\sum_{i=1}^n \hat{\theta}_i^2 = O_p(a_n)$ and $||f(X)||_{\infty}$ is bounded.
What is the big $O_p$ of $\frac{1}{n}\sum_{i=1}^n (\hat{\theta}_i f(X_i))^2$?
The way I understand this is because $||f(X)||_{\infty}$ is bounded (i.e., uniformly bounded), then the square of $f(X)$ is bounded too. Therefo... |
Aggarwal's 2021 ICML paper "Label Inference Attacks from Log-loss Scores", seems to argue that the answer to the question in the title is "YES". The paper claims that, given predicted probability values (such as from a logistic regression or neural network) and the log-loss calculated from those predictions and the tru... |
I'm really at a loss as to what this is called, so please tell me if this is a duplicate and I'll be happy for the question to be deleted if that is the case (though I likely will still have follow-ups to ask). If the title can be phrased more clearly, please give me suggestions as well!
Basically, we have some data th... |
Sometimes continuous data is of the type that would result in Simpson's Paradox findings if groups were simply aggregated. (See, for example, "Example #2: Baseball" on this page https://www.kdnuggets.com/2020/09/simpsons-paradox.html.)
In that type of situation, would analyzing the data using a 2-way ANOVA always avoi... |
We fit a line or a hyperplane to a set of points. We project the points onto the hyperplane. The sum of squared distances of the projected points to origin is equal to the eigenvalue. Why is that?
|
I am curious why KL divergence is the standard measure of (dis)similarity used in VI while it is not even a proper metric (asymmetric and does not satisfy triangle inequality).
|
Suppose that I can observe $\Sigma_1$ (r x r), and $\Sigma_2$ (r x r)= $A \Sigma_1 A'$, for some arbitrary (r x r) rotation matrix $A$.
Is it possible to recover $A$ in any meaningful way?
|
In time series analysis, I've read two main ways to achieve stationarity.
difference (or log difference)
normalize with mean 0 and std 1
What are the main differences between the two and how should a modeler pick between them?
|
My dataset is a collection of items with numerical features, and each of them has a score assigned to it as label.
My goal is to predict the ranking/order of the items, so the score prediction accuracy is less of concern, as long as the ranking by predicted socres are correct.
My question is, is there a good metric to ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.