instruction stringlengths 9 38.7k |
|---|
Actually, I read many articles and blogs that EM converges to local maxima can someone help me that it converges to local maxima always? Can we get a global maximum?
|
Let's say we have a dataset, and we run KMeans with k clusters.
Is it possible that during the execution of KMeans the loss first decreases and than increases until converges to a value?
At first, I thought the loss would only decrease, however after some measurements on a personal implementation, for a particular data... |
Hello I wanted to know whether logistic regression can be used if X and Y are both binary. I am aware that the sole condition for logistic regression is that Y is binary, however Im not sure how to interpret it if X is binary?
Also do you think this is a good strategy? Or is Chi square to be preferred in such cases.
Wh... |
I'm trying to make an OLS regression on Excel on those 2 values :
Y X
4 2
5 3
According to wikipedia definition, R^2 = SSR/SST
Here if you compute the regression without intercept, you get B1 = 1.77, B0 = 0. So the predicted Y are :
yPredicted[0] = 2 * B1 = 3.53
yPredicted[1] = 3 * B1 = 5.30
The residual (y - ... |
I try to find a package in R to fit Gumbel distribution by Block Maxima Approach using maximal likelihood function (see here)
$$
G(x; \mu , \sigma)=\exp[-e^{-\frac{x-\mu}{\sigma}}].
$$
The block maxima approach is that we have $n$ iid random samples $X_1, X_2, \dots, X_n$ from $exp(1)$ (the limiting distribution of ext... |
I am testing differences in gene expression across four time-points and between treatment and control. In total, 50 individuals were recruited for the Treatment Group and 58 recruited for the Control Group.
The way the study was (or should, let's say) design was to measure the same individuals in the four time-points a... |
In almost any textbook introducing the topic of frequentist statistics, null hypotheses of the form $H_0: \mu=\mu_0$ or similar are presented (the coin is unbiased, two measurement devices have identical behavior, etc.). Classic statistical tests such as the $Z$ or $T$ tests are then based on rejecting these null hypot... |
It feels like this should be a no-brainer but I just can't see it. I collected employee satisfaction data in year 1 and year 2. I cannot connect subjects across years because I did not assign or manufacture an ID for each person, but I know that some people answered in both years, some answered only in year 1 and som... |
From the book "Bishop- Pattern Recognition and Machine Learning" Page 31. Can you help me derive the equation (1.68) from equations (1.69), (1.70) and (1.71).
Please explain every step for the solution if possible.
|
I have a logistic mixed-effects model with multiple predictors:
y ~ (x1 + x2 + x3)*x4 + x5 + (x1 + x2 + x3 | id), family = "binomial"
I would like to know whether the interaction between, let's say, x1 and x4 (both continuous variables), is statistically significantly different from the interaction between x2 (also co... |
Suppose I have a Poisson process. Suppose I am given the probability, $p$, that I will observer up to $n$ events. How can I subsequently calculate the implied value of the Poisson parameter?
I am looking for the rate parameter $\lambda$ as a function of $p$ and $n$
$$
\lambda = f(p, n).
$$
What is $f(p, n)$?
|
I am trying to calculate whether the difference between the two benchmarks is statically different or not.
The input is req/sec of a HTTP Server and I'm using scipy.stats.ttest_ind to calculate the p-value.
A1 = [
4670, 4646, 4612, 4618, 4646,
4609, 4623, 4629, 4566, 4628,
4582, 4636, 4621, 4574, 4624,
4563, 46... |
I'm reading up on different ways to implement the Simulated Annealing algorithm. MathWorks's implementation for MatLab was the first time I had come across the concept of reannealing during simulated annealing. As I understand it based on that documentation, the simulation runs a number of times until ReannealInterval ... |
this is a rather simple question but I noticed that the linear regression on 1 variable fitted with poly() gives different results if poly is not used. If I were to use poly() how can I convert back to the original variables?
For example:
First, define data
x = seq(50, 275, 25)
y = c(335, 326, 316, 313, 311, 314, 318, ... |
Suppose I have a mixture of two Beta densities say $f_1 = \text{Beta}(1,1)$ and $f_2= \text{Beta}(1,\beta)$ where $\beta$ is unknown. The sample $X_1,....,X_n$ is observed based on latent Bernoulli variables (unobserved) $Z_1,...,Z_n$ such that $X_i|Z_i=0 \sim f_1$ and $X_i|Z_i=1 \sim f_2$. If $P(Z_i=1)=\alpha$ (unknow... |
I have a non-central chi variable $r$ with the distribution,
\begin{align}
p(r) = \frac{r^3\lambda}{(\lambda r)^{3/2}}\exp\left[-0.5(r^2 + \lambda^2)\right]I_{1/2}(r\lambda)
\end{align}
I'm looking for the following expectations.
\begin{align}
E\left[\frac{1}{r}\right]; \quad E\left[\frac{1}{r^2} \right]
\end{align}
In... |
I have a VAR model for forecasting in which there is a particular variable $X$. The time series for all the other 7 variables stretches back to 1980 and ends at the third quarter of 2023. Now, $X$ does not have an observation for the third quarter of 2023. So, $X$ is missing an observation for the latest and last data ... |
I'm creating a univariate regression where the explanatory and response variables have a non-linear relationship.
import matplotlib.pyplot as plt
import numpy as np
import statsmodels.api as sm
x = np.array([314.4, 960.5667, 357.0667, 507.2, 811.6667, 476.2333, 681.7667, 723.8666, 943.8333, 388.7, 730.2667, 126.7, 173... |
Assuming $\mathbf x_1$ and $\mathbf x_2$ are eigenvectors of matrix $\mathbf A \in \mathbb{R}^{2\times 2}$, there is $$\left(\mathbf I-\mathbf x_1\mathbf x_1^\top\right)\mathbf A\left(\mathbf I-\mathbf x_1\mathbf x_1^\top\right)\mathbf x_2 = \lambda_2 \left(\mathbf I-\mathbf x_1\mathbf x_1^\top\right)\mathbf x_2.$$
(Da... |
When using a neural network for multi-class classification, there are situations where it is useful to estimate the uncertainty of the network's predicted class. One leading method for estimating uncertainty is Monte Carlo dropout, as introduced by Gal et al..
Let $f(y|x)$ denote the softmax output of a neural network... |
I am a bit confused about calculating the third zero-centred statistical moment for the function f=X/Y (X and Y are normal distributions), assuming I can calculate the third and all the lower mean- and zero-centred X and Y moments. Am I wrong in imagining it would be a formula similar to the uncertainty propagation one... |
I hava the following model
$$y=X\beta+u$$
where y and u are $(n\times 1)$ a matrix with full column rank and $\beta$ is an unknown $(k\times 1)$ vector of parameters.
$E(u)=0$ and $var(u)=\sigma^2 V$ where V is $(n\times n)$ symmetric and positive definite non diagonal matrix
And $u_t=\phi u_{t-1}+v_t$ and $u_t=v_t+\t... |
I estimated a 2PL model obtained for some dichotomous data presenting answers of 12 "yes/no" questions from about 200 individuals. Now I want to calculate the confidence intervals for the factor loadings of all items. I used the mirt package to estimate my model which also offers profile-likelihood CI's (PLCI) for both... |
I am trying to interpret this journal article table-
It's rho is called an "estimated true score correlation" how is that different from a classic beta coefficient? And is a value of -.29 and SD of 0.21 treated in the same way that it is not significant at the 5% level?
https://psycnet.apa.org/doiLanding?doi=10.1037/0... |
What would be an appropriate method for meta-analyzing a set of five ecological dissimilarity matrices to generate an overall 'pooled' effect size? I have five ecological monitoring datasets that each recorded community structure through time at "control" sites and "treatment" sites (some have shared sites, others do n... |
I am trying to understand Ansary-Bradley test variance. Suppose n+m is even number then I know that $E(X)= \frac{n(n+m+2)}{4}$ and that $Var(X)= \frac{nm(n+m+2)(n+m-2)}{48(n+m-1)}$. So I want to show that $ Var(X)= E(X^2)-E(X)^2=E(X^2)- \left(\frac{n(n+m+2)}{4}\right)^2=\frac{nm(n+m+2)(n+m-2)}{48(n+m-1)}$. However I d... |
What is a principled approach to validating samples generated from rejection sampling actually follow the target function?
I am looking for some thing more than a simple histogram + density plot.
Setup:
I have a target density function $f$ and a proposal function $g$. From this I generate samples $y$ using my rejection... |
If we consider the two following estimators $$\hat{\mu_1} = \frac{\bar{X_1}+\bar{X_2}}{2}$$ $$\hat{\mu_2} = \frac{n_1\bar{X_1}+n_2\bar{X_2}}{n_1+n_2}$$ where $X_1, X_2$ are samples from a normal distribution $N \sim N(\mu,\sigma^2)$ with size $n_1$ and $n_2$. I need to compare the estimators, in order to do that, i m... |
All 80 participants performed 12 binomial trials (0-failed, 1-success) for the manipulation condition and 12 binomial trials for the control condition.
My database is something like this, but with more rows and columns:
Subject control_trial1 control_trial2 ... manipulation_trial1 manipulation_trial2 ...
1 ... |
I have the European TTF GAS spot Price time series from 31/12/1990 to 31/10/2022:
https://docs.google.com/spreadsheets/d/1Iu84-oFtv3-ybmp72IJ_s1DfcTG_TDu7/edit?usp=sharing&ouid=117791817408001078818&rtpof=true&sd=true
I downloaded it from Word Bank:
https://www.worldbank.org/en/research/commodity-markets
I would like t... |
I know that you reject the null at the 5% significance level. But I read someone writing that they reject at the 95% level. I assume the confidence level. But can you technically say that?
|
I did a mean differences test, the t-test gave me a p-value of 0.034 and a regression test gave me significant differences as well. But when I plot my data with a boxplot, I see that the medians are very similar between groups.
Is my analysis correct or could I be wrong? Are there really differences between the groups ... |
I am curious about the relationship between the arithmetic mean and the (generalized) mediant. I took $10^4$ samples (each of size $n=3$) of $\operatorname{Round}(X_i,\text{decimals}=3)$ where $X_i \sim \mathcal{N}(0,1)$ and are independent. For each sample I computed the arithmetic mean and the (generalized) mediant, ... |
If the p-value suggests significance, can the test statistic give any more information? I.e., can you use the test statistic to tell if some of the significance is more significant than other parts?
I ran Mann-Whitney U tests and these U's are, overall, far higher than any other U's in my analysis, even for other tests... |
I am conducting both constrained and unconstrained analyses on the same species abundance data. For the constrained ordination, I ran the RDA (redundancy analysis) on log x+1 and hellinger transformed species abundance data. For the unconstrained ordination, I am using NMDS. I initially did the nmds using raw (non tran... |
I'm new to statistics and probability, and I'm dealing with a question about the Poisson distribution. The following is given :
The question is what is the statistical model, and this is the answer for the question:
I dont have the full solution so I'm having some trouble trying to make sense of this. Why is this the... |
Can we say that the weight vectors are the representations of the data samples that is being used to train the Self-Organizing Maps?
|
I'm trying to clear up the calculation of the gradient and Hessian of a loss function in an article that I am currently reading. The loss function is given by
$$\ell(\beta)=\sum_{i=1}^{N} e^{-y_{i}{{x}}^{\top}_{i} \beta}$$
where $x$, $\beta$ are vectors of the same length, say $p \times 1$ and $y_{i}=\pm 1$ Now, let $X... |
TL;DR: Models with nested categorical factors in Statsmodels lead to singular matrices and incorrect results.
I am trying to specify a nested model in the Python Statsmodels formula API to describe the following simple dataset from Rasch (2019) 1
A1
A1
A1
A1
A2
A2
A2
A2
A3
A3
A3
A3
B11
B12
B13
B14
B21
B22
B23
B... |
I am trying to find a good method to test the null hypothesis(H0) on two unpaired samples. Those samples come from two different HTTP Servers and the unit I'm using is req/30s (requests concluded in 30 seconds).
Even a well-established server is expected to have a standard deviation of 50 requests. I have tried to use ... |
In the book All of Statistics by Larry Wesserman, the author says "Let $X$ be a random variable and let $\mathcal{X}$ be the range of $X$. We test a hypothesis by finding an appropriate subset of outcomes $R \subset \mathcal{X}$ called the rejection region". Then the author proceeds to say that $X \in R \Rightarrow$ re... |
I would like to have a clear understanding of what exactly is a likelihood function in Bayes' Theorem, and why isn't considered a probability. As well as the distinction between the likelihood in discrete and continuous distribution.
Bayes' Theorem:
$$ P(m|D) = \frac{P(D|m)*P(m)}{P(D)} $$
Where m is the parameters of t... |
I have an ordinal dependent variable, named A (small, medium, big) and independent continuous variables (C, C1, C2 and C3) highly correlated between each other. For example the sum of the variables C1, C2 and C3 is equal to variable C. Also, when C1 increases, either C2 or C3 will decrease or vice versa.
Can I perform ... |
If my mean has a measurement uncertainty, is it necessary to add that onto the confidence interval? Since the equation for confidence interval is x±ts/√n.
|
Help calculating Inter-rater reliability in a complex online survey (free text).
The questions are free text. We have now coded the potential answers. Examples:
1.) Hobbies (Time in nature, mind-body practices, arts)
2.) Expectations about 5-MeO-DMT ceremony (Psychedelic experience, feeling oneness with others, relief ... |
I want to run a simulation where I determine what the optimal number of samples are to derive a reliable estimate.
Suppose I conducted a pilot experiment where I measured the average of user ratings for different products. For each product I collected data from 20 users.
Now I want to run a simulation where I determine... |
I'm learning 2 way layout ANOVA.
$$
X_{ijk} = \mu + \alpha_i + \beta_j + \gamma_{ij} + u\\
u \sim \mathcal{N}(0,\sigma^2)
$$
The total sum of squares can be decomposed as followings
($*$-index indicates the average about itself).
$$
\sum_{ijk} (X_{ijk} - X_{***})^2\\
= \sum_{ijk} (X_{ijk}-X_{ij*})^2 + (X_{i**}-X_{***})... |
I am running some Monte Carlo Simulations on Matlab. I am wondering if running more Monte Carlo Simulation trials and taking the average value of these trials is the same as running a single trial with the same total number of samples? E.g. Running 10 trials with 10,000 samples in each trial and taking the mean of the ... |
I need to predict ED50 at the inflection point and ED50 at 50%. I am not sure the ED50 (intercept) value calculated by the R library 'drc' is ED50 at the inflection point and ED50 at 50%. Can someone explain what is the difference between both, and how to calculate the other parameter since one of them is predicted by ... |
I selected the p,q order for ARMA model based on AIC. The AIC suggests that the best order is ARMA(5,5). Although the coefficient is significant for AR 5 it is not significant for AR 1 and AR3 in the mean equation. Is this normal or should I change the order?
|
Someone: "To study causality, you need some exogenous variation, that moves the system"
I wonder why we need the exogenous variation. What's this exogenous variation? I totally forget everything about econometrics, gradually picking it up now.
May I have some intuition behind the relationship between the proof of causa... |
Suppose that we conduct a simulation study, and the model that generated the data is the following Gaussian Mixture Model.
$$f(x)=\pi_{1}N(x;\mu_{1},\sigma_{1}^{2})+\pi_{2}N(x;\mu_{2},\sigma_{2}^{2})+\pi_{3}N(x;\mu_{3},\sigma_{3}^{2})$$
Now, in order to estimate the parameters $\left \{ \pi_{i} \right \}_{i=1}^{3},\lef... |
Assume I have a model (linear regression, neural network, etc) in the form $g(\theta)$ and I assume that my data is generated according to $f(x; g(\theta))$ (eg $f$ is the pdf of a normal Gaussian random variable and I am parametrizing the mean $g(\theta)$ with my model).
I then optimize my model by maximizing the log... |
I'm working on a fairly large dataset (5e5 samples in a 22 dimensional space); I'm reducing the dimensionality of this dataset with PCA.
Since a lot of variables are cross-correlated, I group the variables that are highly correlated and then I collapse them in one variable by projecting them on thier first PC [1].
I wa... |
The question
Is it possible to justify the use of regression diagnostics such as F-tests or the AIC for the analysis of deterministic computer experiments?
Background
One way to analyse computer experiments is by building surrogate models. The unknown function $f$ is approximated by a nice and explicitly known function... |
I already learned the basic model of LSTM, for example, layers, cell state, gates, and so on.
However, I am still slightly confused about how the whole thing is done; I want to simulate LSTM step-by-step by hand calculation, like Neural Networks from Scratch by sentex.
Is it possible for me to do it?
If yes, is there a... |
I have a hard time to understand why a error term is included when you split a regression equation into n equations (see below).
Lets assume this simple series. Which refers to salary and house price in four regions with data from one household in each region.
Which will look like this if you draw a trend line.
Here, ... |
I have tried hard but cannot solve the below exercise. Any extra hint or solution will be appreciated!
Given the below stationary series:
\begin{align*}
y_t=\frac{L-\phi}{1-\phi L}\varepsilon_t,
\end{align*}
where $L$ is the lag operator, $|\phi|<1$ and $\varepsilon_t\sim WN(0, \sigma^2)$. If we know $y_t$ is a ARMA($p... |
I have a dataset of online Reddit posts for unemployed individuals in two neighboring U.S. states, where unemployed workers in a given state received higher unemployment insurance UI benefits than the other (i.e. my treatment variable), and I am trying to test if receiving higher UI benefits causally correlated with mo... |
I am having difficulty clarifying in my mind how item intercepts in Confirmatory Factor Analysis or SEM manifest, and how they are graphically represented in an IRT ICC plot. I understand that multi-group CFA for polytomous variables is mathematically equivalent to an IRT graded response model.
Crucially, I would like ... |
In the paper Extreme value theory based on the r largest annual events
(page 32), the idea is that he wants to fit the Gumbel distribution using a dataset. In this dataset, we have the largest ten values. He wants to compare if we will get a better estimate of the parameters in Gumbel using the ten largest values than... |
For example, say it is rare that your roommate eats cereal, however, one day you see an empty bowl with milk stain and later in the day you saw some cereal crumbs. You now conclude that most likely your roommate ate cereal. But the question is can you now say well its "bayesian-like" given the new observations?
|
I am training a neural network for multiclass classification.
I want to combine a custom loss function with another more generic loss.
I've been simply adding it, and it works quite well but towards the end the though the custom loss is weighted more heavily because it has a bigger magnitude.
I've done something like l... |
I'm trying to perform a Two-sample McNemar's test on my data, but I was not able two find any R package implementing the method. I'm familiar with the simple McNemar's test function mcnemar.test(), but it's not sufficient for what I'm trying to do.
The Two-sample version of the test is described here : Feuer, Eric J., ... |
I have a dataset where the dependent variable is a success probability ranging from 0 to 1. I cannot use the regular linear regression to model because linear regression does not restrict the output range. One idea I come up with is using logit function to map it into real number sets, but I do not know whether it is a... |
I have data about 40 stores described by 50+ continuous variables in terms of customer behaviour (types of purchases, demographic attributes, etc). I want to build a simple regression model to explain the profitability of stores based on what we know about the rest. So I:
Removed variables with many missing values
Rem... |
It is not totally clear to me what are the relationships between Pearl, Rubin and Lewis causal models and their philosophy/view of events. Can anybody please explain them to me?
|
I want to run a regression analysis where my dependent variable is the number of cars registered and my independent variable is the percentage discount given. I am not sure how to use a percentage discount as an IV?
Do I just use the percentage as it is, eg. 35% would be 0.35 or is there another way to do this?
It woul... |
In the Metropolis-Hastings algorithm, acceptance probability is given as
$$
\alpha = \min \left( 1,\frac{f(\theta^{'}|y)q(\theta|\theta^{'})}{f(\theta|y)q(\theta^{'}|\theta)} \right)
$$
which simplifies to
$$
\alpha = \min \left( 1,\frac{f(y|\theta^{'})f(\theta^{'}) q(\theta|\theta^{'})}{f(y|\theta)f(\theta) q(\theta^{... |
Hello I have a problem interpreting the results of my mediation analysis (Baron and Kenny)
Path a between my IV (X) and M is positive and significant.
Path b between my Mediator and DP(Y) is also positive and significant.
Path c, the direct path between my IV(X) and DP(Y) is negative and significant.
Now when I add my ... |
the subject of my problem is related to cluster analysis. Specifically, with SPSS I am conducting a cross-validation procedure based on splitting the sample data into two independent halves (subsample 1 and subsample 2) of an original sample of cases.
In the first half (subsample 1), I performed a hierarchical cluster ... |
When reporting a positive correlation, I typically see things worded in the positive sense of the term... For example, for a positive correlation between eating vegetables and health outcomes you typically read something like: eating more vegetables was linked to better health outcomes. But would it be just as fine to ... |
I am studying the maximal likelihood method to get the estimators. I read the following sentence and I am confused about that
The standard deviation of the sampling distribution of estimator $\hat{\theta}$ is called the standard error denoted by $se(\hat{\theta})$. Since this measures the extent of variability in the ... |
I have to estimate conversion rate of visitors of a website for the next day.
The forecasted value has several input parameters:
Website
is Weekend/Workday (Yes, No),
Month (1-12)
Week of the year (1-52)
I have historical data in a table like this
Website
Weekend/Workday
Month
Week of the year
Clicks
Orders
Conve... |
When building a multiple regression model with categorical interacting terms, not all combinations of categorical interactions are shown in model output. This occurs because these terms drop out. Say we have the following multiple linear regression model with the from the iris dataset in R:
$y = \alpha + \beta_1X_1 + \... |
I am reading Generalized Additive Models by Simon N. Wood. I do not have a very strong formal background in maths and statistics, so this question might be too trivial. However, I am well versed in R.
I just finished the first chapter of Simple Linear Models and started with the exercise to grasp things well. In one of... |
Consider I have a regression model and I want to identify predictor variables that have a significant effect on my dependent variable. (or improve the fit).
I can fit a model with all parameters and do a stepwise backward elimination based on AIC, BIC, Ftest, or else or do LASSO.
No matter what, I obtain a model with r... |
Currently reviewing some problems in my ML class, and I came across this problem:
You estimate a ridge regression model with some data taken from your robot, and
find (using cross validation) and optimal ridge penalty $\lambda_1$. You then buy a new sensor which has noise with $1/4$ the variance (half the standard dev... |
I'm looking to run regularized negative binomial regression over my data. I'm currently working in R using glmregNB (page 34 here) and am able to fit a model, but I'm not quite sure how to interpret the output. The model tries 100 different values for lambda (the penalty weight term, if I'm not mistaken), but how shoul... |
In my main analysis, I observed that people had better overall performance (0=failed, 1=success) in the manipulation condition than in the control condition. This was a within-subjects design.
This was the model I used:
fit <- glmer(performance~condition + (1|id), data = df, family=binomial())
In the descriptive analy... |
As a toy example, I have measurements from a sample of classes, measuring the proportion of black students in those classes. I wish to compare this to the proportion of black children in the US to determine whether classes tend to have a greater or lesser proportion of black students than would be expected from their p... |
I feel bad asking for help without a specific understanding.
My dataset is to understand how medication(n=10) and genome (in the form of mutations, n=40)affects the subject's depression (in the form of a HAMD score)
My dataset is in the form of n patients where the patient has x number of biweekly records. Each record ... |
I am using wireless data(I-Q data) to do regression task, and I just use the amplitude of that data as input. The backbone of the network is 1 Conv-BN-RELU layer, 4 ResNet Blocks and a fully connection layer, the loss is smooth-L1 loss. But the network's train loss and validation loss become very low and the loss at th... |
I recently learned about DAG-Directed Acyclic Graphs while reading econometrics-related papers. So far, I am used to Structural Equation Modeling for Psychology and Education studies, and DAG looks very similar to the path model analysis, like a structural model without a measurement model. When I searched the differen... |
Hello. Can anyone help me with interpreting these plots? I would like to know what assumptions of the linear model are not being met and what method should be used to fix the problems. I think there is a problem with heteroscedasticity? Not sure about linearity either. Thank you!
|
Say I have a dummy variable $X$ (e.g., gender) and that units are divided into groups. I want to compute the average value of $X$ in each group. To achieve this, we can estimate the following linear model via OLS:
$X_i = \sum_{g = 1}^G Group_{i, g} \, \beta_g + \epsilon $
with $Group_{i, g}$ a dummy variable equal to o... |
In most CNN guides max pooling is explained and it is just mentioned that also average pooling exists. Why is max pooling preferred over average pooling? Average (or even median) seems to make more sense to me?
|
I would like to compare the evolution of scores on a math test between two groups in a longitudinal manner. I have a panel of students that we tested in June, at the end of the year, and then in September, at the beginning of the school year.
I am trying to find out if the vacations have a differential effect according... |
I have the same features and target variable in different countries (features are the same but the values are different). I would like to select the best features with the constrain that they are the same in all groups(countries in my case).
I wanted to use Lasso for that but I don't see how I can force it give the sam... |
I am reading about the reparameterization trick from here.
It states
$\boldsymbol{\epsilon}\sim p(\boldsymbol{\epsilon})$, $\textbf{z}=g_\theta(\boldsymbol{\epsilon},\textbf{x})$, and
$$\mathbb{E}_{p_\theta(\textbf{z})}[f(\textbf{z}^{(i)})] = \mathbb{E}_{p(\boldsymbol{\epsilon})}[f(g_\theta(\boldsymbol{\epsilon},\textb... |
I need to compute the distance between two continuous distributions. However, I have no idea as to what kind of distributions they are. I have a discrete approximation of the distributions. That is, the support is divided into multiple bins and the area of the pdf corresponding to each bin is given. Thus, the values I ... |
Dear StackExchange Community,
I am working on the codes by https://rpubs.com/rsayed/573439 to "measure the volatility spillovers and connectedness" using Diebold-Yilmaz Methodology (https://github.com/rhameysayed/Spillovers-and-Connectedness/blob/master/Connected__Spillover.Rmd).
QUESTION
But I am facing a problem with... |
In my thesis I want to compare the frequentist and bayesian approach, specifically in doing a multinomial logistic regression. I have had only a few lectures on Bayesian statistics during my bachelors, so I have watched lectures and read a lot of stuff in order to better comprehend this approach to statistics.
I have a... |
I have some count data, and have used poisson regression to estimate the time trend. An intervention is implemented at a certain time, and I have allowed a step-change and a change-in-slope at this time. I am trying to work out how to report the size of the step-change.
Here is some example data (this is R code):
d <- ... |
I'm working through the Regression and Other Stories (ROS) textbook and it's not clear to me how Gelman etal. would like a reader to answer question 4.3 (which I summarize below):
Two basketball shooters. Shooter A has an accuracy of 30% while shooter B has an accuracy of 40%. They each take 20 shots. What is the prob... |
I am working with a type 3 ANOVA + lsmeans. I was wondering why sometimes the standard error of all factor levels have the same value?
This is my dataset. var, SW, trt are my factors. RG is my metric y-variable.
trialdata<-structure(list(var = c("A", "A", "A", "A", "A", "A", "A", "A",
"A", "B", ... |
I am trying to pre-process data following a statement in a paper.
They said
for the normalization, each dataset is normalized on a per channel basis with a sample range from -1 to 1 and a mean value of zero.
$X_{rescaled} = a+(b-a)\frac{X - min(X)}{max(X)-min(X)}$, following this, it can rescale data $X$ into an arbi... |
This question is inspired by the discussion here. The background is that often point null hypotheses like $\mu=0$ are tested, $\mu$ being some effect of interest in some suitably parametrised model, and people argue that in reality $\mu=0$ precisely will often not occur, but in terms of interpretation $|\mu|\le\epsilon... |
I need to analyze some data derived from an experiment in which I'm comparing two groups (independent factor) at three different time points (first repeated level) but, for each of these time points I'm measure time bins (5 bins per time point).
So, in other words I have two levels of repeated measures.
How can I analy... |
Suppose we want to tune the hyperparameters of an algorithm. We perform $k$-fold cross validation and we found the optimal hyperparameter values, lets say $p^*$. Nevertheless, we don't have a separate test. Can we report the average error from folds as an estimate of the generalization error?
Based on this Question we ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.