instruction
stringlengths
9
38.7k
I am reading an article on the effect of income on energy choice (e.g., choice between traditional sources such as charcoal and modern ones such as electricity). The authors instrument income with rainfall, the intuition behind which I understand (i.e., b/c of both reverse causality and OVB issues). What I don't unders...
Suppose that I have N items that were rated by a first group of annotators on a scale from 1 to 5 (each item was rated only once). I want to compute an inter-annotator agreement score using Fleiss kappa, so I take a subset of the N items and ask different annotators to rate the items again. So, in the end, each item in...
I have a dataset which looks like this > train year OECD_ind steel_ind_2 freight_ind target 1: 2006 1.000000 1.000000 1.0000000 1.0000000 2: 2007 1.035426 1.133137 2.2235587 0.7303400 3: 2008 1.094234 1.177008 2.0097157 1.6466652 4: 2009 1.216508 1.249144 0.8228253 1.0142539 5: 2010 1.30...
I am trying to understand how I can test whether the factor loadings (Beta) in CAPM for different stocks are statistically different between each other. I.e. I have 3 stocks with different CAPM betas. How can I test that those 3 betas are statistically different between each other? Do you have an approach to do so and ...
I have an expression of this form $W_i = a * X_i * (1 - Y_i * (1 - Z_i))$, where $a$ is a constant, $X_i \sim Bernoulli({p_x}_i)$, $Y_i \sim Bernoulli({p_y}_i)$, and $Z_i \sim N(\mu_i, \sigma)$ Background: So, I have three models for X, Y and Z, and these are models for probability of survival, probability of death, an...
I'm currently writing my first empirical term paper and would like to model the following relationship. I'm mainly interested how government spending, which regions are mostly only eligible to if their regional gdp falls below a certain threshold, affects regime approval. The latter is measured as a binary variable in ...
I have a time series data (5000 entries) of a vector quantity. (i.e. 3 components, which are recorded after every fixed time interval of 240 seconds). I want to calculate the Autocorrelation function of this quantity $\langle \vec{A(t)}\cdot\vec{A(t+\tau)}\rangle $, where $\langle\cdot\rangle$ denotes the process of av...
What are some algorithms for determining the seasonal frequency (or equivalently, the length of the seasonal period) from the values of the time series alone? That is, the values of the time series are given, but the time stamps are missing. However, we know the data has been sampled at equal time intervals. (Further n...
Let $X_1,...X_n$i.i.d.~$Pois(\theta)$ with unknown $\theta>0$, I want to find the UMVUE for $g(\theta)=\theta^2$. I know that $T(x)=\Sigma_{i=1}^{n}x_i$ is complete and sufficient for $\theta>0$. $\mathbf{E}_\theta[T(x)]=\mathbf{E}_\theta[\Sigma_{i=1}^{n}x_i]=\Sigma_{i=1}^{n}\mathbf{E}_\theta[x_i]=n\theta$ $\mathbf{E}_...
Let us say we have a cheater's six-sided die, which we can assume to be unfair with an unknown probability distribution. We want to know the most likely roll with this die, and so we roll it $N \gg 6$ times and find that the frequency of rolling a 5 is higher than the frequencies of other rolls. How can we quantify our...
I have the following preset; A data frame on the format as follows: df <- data.frame(prevArrivalTime = c(1676193057, 1676193112, 1676193180, 1676193277, 1676193358, 1676193469, 1676193581, 1676102575, 1676102613), hours = c(1, 2, 3, 1, 2, 3, 1, 2, 3)) dummy <- model.matrix(~factor(hours) - 1, data = ...
TLDR: I need to determine the minimum sample size for measuring the energy consumption of code. Hello, I'm trying to determine how many samples (N) I need in an experiment to be confident that my data's mean and standard deviation are representatives of the population. Note, I'm not well versed in statistics, hence wh...
What is the base for the logarithm used in the cross entropy loss (while doing multiclass classification's backpropagation)? Is it e, 2, or 10?
I want to compare the medians of an interrupted time series, for example, years 2019-2020 with 2021-2022. The data is not normally distributed and the distribution of the data is not similar. Would quantile regression be appropriate here? Should I expect to see similarities between mood median test and quantile regress...
I am interested in understanding the asymptotic distribution of Likelihood ratio (LR) test statistic for model specification. I am focusing on the case in which the null hypothesis is of the form (i.e. to assess model specification): $$ \mathcal{H}_0:\theta_j=0, \qquad \text{For any} \; \theta_j \in \theta \\ \mathcal{...
I would appreciate if you could let me know to conclude about the modified Diebold and Mariano test when our alternative hypothesis is less? How about greater? library(forecast) forecast <- ts(c( 96, 99,102, 96,105, 99, 99,103, 98,106)) observed <- ts(c( 96,101,107,108, 93,103, 99,105,103, 98)) forecast2 <- ts(c(105, 9...
The definition of the hypoexponential distribution (HD) requires that: $$f(x)=\sum_i^d \left(\prod_{j=1,i\neq j}^{d}\frac{\lambda_j}{\lambda_j-\lambda_i}\right)\lambda_i e^{(-\lambda_ix)},\quad x>0 $$ is well-defined, which imposes that all $\lambda_i \neq \lambda_j$. As such, it seems to impose a significant limitatio...
I am estimating a time series 2SLS, ECM model, for electricity consumption. The system has a demand equation: The price is endogenous in the demand equation, and therefore, I also estimate a price equation using instruments: A paper I have been reading makes an interesting point about this setup. The price function ...
Suppose that we have observations $x_1,\dots,x_n$ for some process. We want to fit an AR(k) model to these observations. I do not understand why the naïve OLS approach to estimate our AR(k) coefficients would be inappropriate when the process has a unit root. From some simulations it seems to recover the coefficients n...
I am working on a project with a call center. Long story short, I am analzying the data revolved around the incoming calls to this call center in order to eventually use a queueing model. A queueing model is one which you provide with certain values such as the average service time of calls (average value of how long c...
One of the benefits of DAGs is that they openly state the causal assumptions a researcher is making, allowing for greater transparency. This is nice in theory. However, in practice, the DAGs I have personally created are a tangled web of nodes and arrows. Visually speaking, when the complexity of a DAG increases, I fin...
I am trying to predict a binary outcome. My sample size is very small (n=160) and has a high-class imbalance (80:20). All the variables are highly correlated, and the dataset is high dimensional (the number of variables is 96, and the minority class has 32 samples only). Can I only use repeated or nested cross-validat...
I would like to know how small of a beta coefficient my meta-regression is powered to detect. Thank you for any help.
I have a continuous response variable (leaf length), which has been repeatedly measured in 45 experimental plots over several growing seasons. My goal is to properly estimate at which day of the year (DOY) certain events happened in each year (e.g., the passing of 20% or 80% of annual leaf growth). I fitted different s...
I am trying to model data $\{Y_t,Q_t\}_{t=1}^T$, where the model is parameterized by $\theta$. $Y_t$ is a quantity where the model prediction can be solved in closed form, $\hat{Y}_t(\theta)$, where the model prediction of $Q_t$, $\hat{Q}_t(Y_t,\theta)$, can only be simulated via Monte Carlo. The simulation results in ...
In R when you run anova on a multiple regression you get a table like this Analysis of Variance Table Response: y Df Sum Sq Mean Sq F value Pr(>F) x1 1 9.56 9.56 2.4237 0.13160 x2 1 28.24 28.24 7.1591 0.01273 * x3 1 1201.42 1201.42 304.6223 7.081e-16 *...
Two characteristics are tested on population elements $X_1$ and $X_2$. We assume that $X = (X_1, X_2)\sim N_2 (\mu, \Sigma)$ where $\mu$ and $\Sigma$ are parameters. The sample size is equal to $20$. It was calculated that (for the sample) $$ \bar x = \begin{bmatrix}0 \newline 1 \end{bmatrix} $$ $$ s = \begin{...
So I am using HistGradientBoostingRegressor (scikit learn) to predict temperature values. After training and testing, the model seems to provide predictions that stagnates after certain values even if the actual values go beyond those values (see following Figure). Is this a limitation of the model or am I missing som...
In our lab we have developed a non parametric permutation test which assesses whether a feature $f:G\to \mathbb{R}$ respects a given symmetric binary relation $A\subset G\times G$. Regard $A$ as being equipped with the uniform distribution (except for points on the diagonal, which are discarded). Then $f(A_1),f(A_2)$ a...
I am working with a normal model $X \sim N(0, \sigma^2(\theta))$, where $\sigma^2(\theta) = \frac{1}{e}\cos^2(\theta)+e\sin^2(\theta)$. My goal is to estimate $\theta$ within the range $[0, 2\pi]$. My desire is the point estimation of $\theta \in [0, 2\pi]$. However, the maximum likelihood estimator is not consistent b...
I am trying to grapple with the following question as I self-study from the chapter on probability in my quantum mechanics textbook (Ballentine's Quantum Mechanics: A Modern Development). Unfortunately, it has been a long time since I've studied probability and my memory is hazy. A source emits particles at an average...
DEoptim is described as DEoptim implements the Differential Evolution algorithm for global optimization of a real-valued function of a real-valued parameter vector as described in Mullen et al. (2011) <doi:10.18637/jss.v040.i06> I am wondering about the following case: if we have parameters that live on vastly differ...
I have two linear regression models predicting the same outcome with the same data, but the predictors are different and the sample sizes slightly vary due to missing values on some predictors but not others. One model has an R^2 of .41 and the other an R^2 of .10. I want to say that the first model explains significan...
What is the conditional $\operatorname{Var}(XY|Y)$ given $X$ and $Y$ are independent? Is it: $$\operatorname{Var}(XY|Y)= Y^2\operatorname{Var}(X|Y) = Y^2\operatorname{Var}(X)?$$
This exercise document ask the following question (page 25): Your assistant, A, builds a decision tree to investigate which variables have a significant impact on response time. The variable day, when used as a categorical variable, is deemed important by the tree-based model. A knows from experience, and from testing...
I want to predict using residuals. Let's say we used regression of J against H (assume all positive values), giving us residuals (Jres) that express, in theory, J, with the effect of H removed. We then regress those residuals (Jres) against another variable (K). We get a slope and intercept (let's say it is significant...
During my statistics course, we studied bootstrap and its operational principles. We explored the potential application of bootstrap in cases where we have limited knowledge about the distribution. Specifically, we utilized this technique to approximate certain statistics such as the variance of the mean. However, I en...
If I have three variables: $x$ $y$ $z$ ...how would I go about calculating an "adjusted $z$" measure that has the variation in $z$ that is explained by $x$ and $y$ removed?
Suppose $(X_n)$ are iid with mean $\mu$ and variance $\sigma^2$. Then by CLT $\sqrt{n}(\bar{X}_n-\mu) \overset{D}{\rightarrow} N(0,\sigma^2)$ and use delta method we can get the asymptotic distribution for $\bar{X}_n^k$ that is $\sqrt{n}(\bar{X}_n^k-\mu^k) \overset{D}{\rightarrow} k\mu^{k-1}N(0,\sigma^2)$, where $k \in...
I have a sample of stroke survivors, I'm trying to determine if there is a difference in age group (<59, 59, 60, >60) as to whether they are employed or not (yes, no). I'm unsure which hypothesis test I need, I'm considering Kruskal-Wallis, Pearson's Chi-squared, and Chi-squared test for trend. I believe the data fills...
I've heard that ensemble methods have been used to mixed effect on time series models. Their biggest issue is that they cannot predict something they haven't seen before, so they struggle trends, whereas they're a bit better equipped for seasonality. My question is, is there any research in predicting the slope between...
Consider a model of the probability of a binary, yes/no-type of event. The event is infrequent, say it happens only once every thousand times. In that regard, the prior probability of the event is $0.001$. Consequently, if a predictive model like a logistic regression predicts a probability of $0.05$ given a certain si...
I know that my 95% confidence interval can be calculated for a proportion using: $$ 1.96 \times \sqrt{p(\frac{1-p}{n})} $$ where $p$ is the proportion and $n$ is the number of trials. But if my data is collected in a series of datasets (say, annual data collections), does this change my $n$? For example, if my data is ...
I have a control group and treatment group and the treatment is introduced in the second phase after time point t. But the treatment can be different types at different time points after time point t. Let's suppose we have 3 different types of such treatment. Here are some examples of the data: Subject a in the treatm...
I have a data which can be classified into two groups. As you see, Figure(a) shows that they are easily classified into group A and B. However, sometimes they are overlapped and it is impossible set a line between group A and B. Figure(b) shows that two groups are overlapped. Fortunately, I have a group A's single dist...
I want to compare three versions of the same count response variable using Poisson regression. Can I make comparisons based on how significant the predictor coefficient is, and can I put the results in the same plot? The significance of the coefficients in each model suggest (or so I'd like to think) that grass richnes...
Likelihood function: $$L(\zeta) = \zeta^{\alpha} \exp\left[\zeta\sum_{i=1}^{\alpha}(x_i - x)\right]$$ Prior function: $$p(\zeta) = \frac{1}{(\sqrt{2π}σ_\zeta)} \exp\left[-\frac{(\zeta-\zeta_0)^2}{(2σ_\zeta^2)}\right]$$ I am trying to find the log posterior of $\zeta$ Bayes Theorem: $$\log(posterior) \stackrel{\log}{\...
Holt-Winters forecasting equations for quarterly observations are $\alpha_t = \alpha.\frac{y_t}{s_{t-4}} + (1-\alpha) . (\alpha_{t-1} + g_{t-1} )$ $g_t=\gamma.(\alpha_{t}-\alpha_{t-1})+(1-\gamma).g_{t-1}$ $s_t = \delta.\frac{y_t}{\alpha_{t}} + (1-\delta) . s_{t-4}$ The prediction formula for k period ahead at period T ...
I understand the concepts of Bayesian linear regression and regular neural networks separately, but I cannot wrap my head around how to combine both. In a general setting, lets say I have a (deterministic) regular neural network, and I would like to build a Bayesian linear regression on the top of it and train them tog...
We commonly fit regression models to estimate the conditional expectation function $\mathrm{E}(Y|X=x)$. We fit models by minimizing a loss function (e.g. sum of squared errors) on the training sample. An intuitive motivation for this is that we want a model which minimizes said loss function on the population, but sinc...
I'm running ANCOVA. My dependent variable is is IQ, and one of my covariates is sex. I know that to perform ANCOVA you should be thinking that there exists a linear relationship between your dependent variable and each of your covariates. I'm wondering if I even have to bother with worrying about the linearity assumpti...
I have two datasets having values : s1 = [25 ,75, 25, 75, 25, 75, 25, 75, 25, 75] and s2 = [46.24, 73.16, 27.13, 74.30, 25, 72.52, 53.15, 75, 40.15, 69.86] Pearson correlation coefficient = 0.90 and Spearman correlation coefficient = 0.90 (calculated using python library) How correlation coefficient is 0.90, because ...
I want to compare the antiviral effect of different drug concentrations to the untreated control. The highest concentration of my drug reduces the infectious virus titer from 5.2 E6 to 3.3 E2. However, the effect is very suprisingly not significant after performing an ANOVA and a Dunnet´s post hoc test. I assume that t...
I want to perform a regression where my independent variables all sum to 1. The independent variables are proportions of money invested in different categories. What I have done: When checking the vif of the regression I get an error that 'there are aliased coefficients in the model', which means I have a multicolinea...
Suppose i have a panel data with 2 time periods (pre and post events), how would i test for parallel trends assumption under a DDD framework?
Let's say I am running a survey, where I want respondents to answer a yes/no question. With probability t the respondents answer truthfully. If they answer truthfully, they answer "yes" with probability p1. If they decide to lie, they answer "yes" with probability p2. I would like to know the variance of the process de...
My goal is to create a visualization of the strength of the McFadden's $R^2$ of a (multinomial) logistic regression, where McFadden's $R^2$ is $1-\dfrac{LL(M_1)}{LL(M_0)}$, involving the ratio of the log-likelihood of the fitted model ($M_1$) to that if an intercept-only model ($M_0$), analogous to $R^2$ in linear regr...
I want to compare the predictions of two theories A and B to some experimental data. The theories predict some quantity $y$ as a function of some other quantity $x$ by some analytical formula $y_A(x)$ and $y_B(x)$. Importantly, there is no fitting parameter. I have a series of experimental data $\{X_i,Y_i\}_{i=1,\ldots...
I am a complete novice in this but just trying to have a go. I have a dataset which has the number of birds in my garden each day for one month in June 2020 and June 2021. I would like to see if there is a significant difference in my total. As far as I can work out, a two-tailed t-test with equal variances would work ...
Consider the bivariate probability distribution of $(X,Y)$. The Spearman correlation coefficient of $X$ and $Y$ is given by $$\rho_{X,Y} = \frac{\operatorname{Cov}(R(X), R(Y))}{\sqrt{\operatorname{Var}(R(X))\operatorname{Var}(R(Y))}},$$ where $R$ is the ranking function. Let $f$ and $g$ be two measurable functions, and...
Below I have an example data set in which I'm modeling the time-to-event given two fixed-effect factors a and b, and a random-effect id representing a specific system. In the data, y is my response and it can be censored, complete == 0. Since there is censoring I'm using survival modeling specifically survival::survreg...
I was wondering if you can suggest a statistical test that can be applied to this sort of dataset. I am staying away from machine learning techniques as the dataset is small, and due to the aggregated data values might not benefit for ML techniques I have users, list of stores a users visits and number of items he buys...
I want to report the CI for metrics like F1 and AUC. I'm a bit confused on when it's better to bootstrap it, or when to use a formula. For F1 there are several works that estimate the variance and derive a (symmetric) confidence interval, like: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8936911. Similarly for AUC the...
My dependent variable is a count variable that takes on the value 0 in most cases (80%) so I am applying a Negative binomial regression model. Depending on the exact model specification my independent variable of interest is significant at 5% or 1%. My model has a total of 16 predictor variables and no interaction term...
Problem In several applications in surveys, it would be helpful to be able to generate a set of $R$ $n$-dimensional variates with the following properties: Has mean vector $1$ Has a specified variance-covariance matrix ($\Sigma$, a positive semi-definite matrix, with rank $\leq R$) Is nonnegative Some First Thoughts ...
I have difficulty understanding Appendix B2 on this article (you can directly go to Appendix B2). I'm trying to understand why the authors of the paper changed the distribution from $ x,y|a$ to a composition of expectations over $x | a$ and $y|x,a$ as follows: $ E_{(x,y|a)}[f(x) -y] = E_{(x | a)}[f(x)E_{(y|x,a)} - E_{(...
Suppose we have a set A , we split into multiple disjoint subsets ai We only have access to the ai sets , is there a way to compute the ECDF for the set A without looking at it ? If for example we have ECDFi on ai and we average them , do we have guaranteed convergence ? We can not just combine all the subsamples for m...
I have a sample of 20 drugs defined by about 30 parameters. I would like to run a "unique-ness" test to see whether one of the drugs is unique in any way relative to the other 19 parameters. Does anyone know how I could go about doing this? Thank you for any help.
I have come across the term "component-wise" in the literature, and I am curious if this means that a model does perform variable selection. And not having this, mean it doesn't perform variable selection. More specifically, I am currently exploring boosted trees, specifically those introduced by Friedman in his 2001 p...
I am quite a newbie in R and even more so in Bayesian regression. I have fit a stan_glm binomial model with 1689 observations, 12 variables and two interaction terms. All predictors are categorical. One of the main predictors suffers from quasi-complete separation. I also followed the procedures detailed in Gelman, Hi...
Let's say a variable fits a ratio measurement level and is also normally distributed (for example, height). Why is it possible to do a linear transformation on such a variable if the only transformation which is allowed on ratio measurements is multiplication or division?
The canonical way to do the test is to perform the spherical harmonic transform of the empirical distribution and then check that the power spectrum decays, but this is presumably fairly expensive. Is there some more efficient way (I am currently most interested in $S^2$ in $\mathbb{R}^3,$ but certainly something that ...
Let's say I have a time series and I am taking the first differences and training a model to output the predicted 95% quantiles of these first differences at future time horizons. If this was just a normal forecast and not a quantile forecast, I could just convert back to my actual forecasted values by cumulating my f...
Given: $$A\sim \mathrm N(\mu_1, \sigma_1)$$ $$B \sim \mathrm N(\mu_2, \sigma_2)$$ $$C \sim \mathrm N(\mu_3, \sigma_3)$$ $$X_1 = \alpha_1 \cdot A + \beta_1 \cdot B + \gamma_1 \cdot C$$ $$X_2 = \alpha_2 \cdot A + \beta_2 \cdot B + \gamma_2 \cdot C$$ $$Y = A$$ A, B, C and have known pairwise covariances / correlations. Ho...
I'm working on a modeling problem where I can define a score function that looks a lot like a binomial likelihood, but the model isn't really binomial. I'd like to use profile likelihood to estimate confidence intervals and covariance for two parameters of interest, among many other nuisance parameters. But I don't hav...
I have a dataset coming from a psychological experiment where each participant is rating faces of 5 different emotions presented randomly. So the emotion category is a within-subject variable and DV is reaction time. For the between-subject, I have two grouping variables: having gene X and having condition Y. I would ...
I am trying to find the "best" model for a binomial GLMER using AIC in R. Here is the equation: Survival~Age+Group+Age:Group+Age^2+Age^3+(1|Year)+(1|Individual) Where Year and Individual represent temporal differences and repeated measures, respectively. I am trying to determine if Age:Group, Age^2, and/or Age^3 are go...
In my problem, I have a condition in which I need to compute the joint distribution of two dependent distributions. The first distribution is normal and the second one is beta distribution. How can I get the joint distribution function of these two distributions? Any help would be appreciated. Update Actually, I am tes...
I was reading tidymodels and got confused about mlp() function's description from help section. it says from R help file, mlp() defines a multilayer perceptron model (a.k.a. a single layer, feed-forward neural network). This function can fit classification and regression models. I am confused how a multilayer percept...
I have an experiment where we obtained blood tests (glucose, hemoglobine, leukocytes…) of different patients who were in hospital for a certain infectious disease. Depending on the day the patient was admitted in the hospital there is a probability that the patient had a different strain of the disease (strain A, B or ...
Hypothetical scenario. Let's say I'm running 6 separate ANCOVAs. My independent variable in each is field of study (3 groups: science, humanities, and business). For each ANCOVA my dependent variable is a different measure of IQ measured on a continuous scale (e.g., verbal score, math score, reading score, etc). In eac...
I'm reading a meta-analysis about how well cognitive-behavioral therapy (CBT) works for treating depression in adults. The study uses a statistic called Hedge's g to measure the treatment's effectiveness. I'm learning about this statistic for the first time, and as I understand it, it's inversely proportional to the we...
In regression models, usually a (descriptive) indicator of an interaction effect can be plotted via a plot with x-axis with the potential interaction variable (e.g., gender) and the outcome variable on the y-axis – if the outcome is continuous. Else, a 2×2 table should give a hint to interaction effects. In Cox models,...
I've the following dataframe: https://drive.google.com/file/d/1IxwI52nIdolzL9wzbxiDmu5NGR5eoukX/view?usp=sharing I'm wondering the best statistical analysis to investigate the relationship with the size of the colony perimeters and bacterial strains mixed with treatment variation. The hypthesis being that the perimeter...
I have (x,y) values where x are integers that range from 0 to 843, and there is only one y value per x value. And then I have a set S, which are (x,y) values. If an element of S is selected, it should add up to the y value of the corresponding x in the above (x, y) values. I want to select a subset of S, that would mak...
I have a Tobit model of the form: Yi* = latent variable; Yi = censored (observable) variable; Yi* = β0 + β1*Xi + ϵ where ϵ is a random variable normally distributed with mean of zero and variance of σ2. To facilitate the notation I will use μi = β0 + β1*Xi. The correlation between the Yi and Yi* can be written as: Yi =...
given a joint distribution of 2 variables $P(X,Y)$, is the cdf of the Y-marginal distribution equals to the Y-marginal of the cdf of $P(X,Y)$?
Suppose $X$ and $Y$ are two independent folded normal variates. Define : $$W = \frac{X}{Y}$$ How can we find the cumulative distribution function of $W?$ I will be highly obliged for any suggestions/links/help
I am modeling the seasonal occurrence of a species at different sites (count data). I am specifically trying to identify potential drivers of the seasonal pattern. To this end, I have selected a number of environmental variables and I am planning on using the gam() function in mgcv to fit hierarchical GAMs allowing var...
I have a dataset with patient data in a psychiatric hospital. Some patients had more than one stay, so the observations are not completely independent. I therefore used a multilevel model (in R with glmmTMB) with the patient cases als level 1 and the patients as level 2. The model contains random intercepts for patient...
I need a gut check here... I'm trying to run an A/B test where the baseline metric is a conversion rate that is close to 1 - somewhere in the 80-85% range. And so when I run my sample size calculation - i believe i'm just doing a Two Proportion Z-Test - the required sample size is very low, like a few thousand. This do...
I am writing a bachelor thesis on the evaluation of value-at-risk using GARCH models. To estimate the parameters for the GARCH models, I explained that we can do it with maximum likelihood as shown in the picture and that theta can be the parameters we want to estimate, but my teacher wants to know what is the maximum ...
Problem: I have a set of samples from a continuous distribution (multivariate), call this set $W$. I have another set of samples from a different distribution $X$. I want to sample from $W$ (with replacement of course), call this $V$, such that the PDF of $V$ is as close as possible to that of $X$ (from a KL divergence...
Consider a kernel density estimate of a continuous, non-negative random variable defined over the unit circle with no discontinuity between 360 and 0 degrees. Unlike in the most common KDE implementations that use a Gaussian distribution (such as Seaborn's kdeplot), apparently distributions of a polar nature should use...
I have constructed a simple neural network model, for a classification problem, with 10 target classes where an input (with some number of features) is to be classified to only one of the 10 classes. The input data that I am provided with is just features as numbers (and their target classes) - there is no context behi...
I'm thinking about a statistical problem and I would be grateful if you could give me some hints of how I could address this problem: I have data of n insurance companies and for each insurance company I have: The number of buildings per postal code (here let's assume the vulnerability of each building is the same and...
I have data where each observation is a region within a country, and each observation falls into one of two large groups (each group makes up half the dataset). Each group corresponds to a seven-year funding period for a fiscal transfer program, and my independent variable is the percentage of total allocations that a ...
Consider an experimental setting where we observe outcomes, binary treatment, and some covariates $(Y,D,X)$ in Rubin's Potential Outcomes Framework. If the treatment assignment mechanism is completely random (e.g. flip a coin for each individual), then we may assume unconditional unconfoundedness $$ Y(1), Y(0) \perp D ...
I have a plot of ROC curves for about 5 models. The curves are overlapping, as shown in the attached figure. Is there a way to still call out the differences between these models in a research paper using a ROC curve, or do I present the AUC values in a metrics table? Note: when you break the axis and for example use ...
I'm new to neural networks, and in almost everything I'm reading, the activation function recommended on the output layer follows a specific pattern: If the network does binary classification (1 output node), use sigmoid If the network does multiclass classification (>1 output nodes), use softmax If the network does r...