instruction
stringlengths
9
38.7k
I'm having a little trouble justifying something in my head and was hoping someone could provide some intuition? I understand for LSTM models or models that maintain some state about a sequence that training auto regressively makes sense to help a model learn to manage its context and states. What I am struggling with ...
As I understand it, random effects are good for repeated measure designs where a random intercept, for example, represents deviations from an over-all trend. Given data with many grouping factors, however, what if the repeated measure aspect isn't at the lowest / observation / subject ID level, but "higher up" in the g...
I'd like to work out $\operatorname{Cov}(\cos(2U), \cos(3U))$ where $U$ is uniformly distributed on $[0, \pi]$. I believe this involves computing $\mathbb{E}[\cos(2U)\cos(3U)]$. If so, then I first need the joint density, which I'm stuck on. I can work out the density of $\cos(3U)$; this is similar to this question. $f...
For a statistical analysis of a medical treatment I want to use an LMM (linear mixed model) and am quite unsure on how to do that correctly, in particular in SPSS (which is the license I have obtained for this analysis). For simplicity I renamed every parameter to an intelligible example which conveys the same problem ...
Now I have 3 models to find what economic factors have an effect on gold price: ARIMAX model ARCH/GARCH model VAR model What is the tool to find the best model? In linear regression, we can calculate goodness-of-fit to decide what is the best one but in a time series model what is the tool to find that?
Let's say we want to stack 2 base models: an XGBoost regressor and a deep neural network by linearly combining their predictions as w1 * XgBoost prediction + w2 * DNN prediction We not only have to learn these models (the weights of the DNN and the stacked linear model, tree splits for the XGBoost model) but also the h...
In comparison with rejection sampling, for independent M-H algorithm, if there is a constant C such that$$f(x)=\frac{p(x)}{\int p(x)dx} \leqslant Cg(x)$$ for all x, then the acceptance rate is at least 1/C whenever the chain is in stationary; namely, \begin{align*} \mathbb{P}(U\leqslant \alpha(X, Y))&=\iint \min \bigg\...
As an example, my problem is something similar to this: Lets say that you open 10 chests and each chest has a 30% chance of having an item. Calculate the confidence interval for the number of items found. 95% confidence, use Student t distribution if possible. I was using the formula $s(p) = \sqrt{p(1-p)}$ for estimati...
I was reading this introductory material and on the 5th page, it describes the dual form of the least-square solution (with ridge regression) as $$A(aI + A^\top A)^{-1} = (aI + AA^\top)^{-1}A$$ for a $T\times n$ matrix $A$, identity matrix $I$ and a scalar value $a$. According to the materials, I'm assuming that $T$ is...
Assume a K dimension VECM model for cointegration analysis $$\Delta y_t=\Pi y_{t-1}+\Gamma_1\Delta y_{t-1}+...+\Gamma_{p-1}\Delta y_{t-p+1}+u_t$$ The Johansen approach for maximum eigenvalue test or trace test or maximum likelihood estimation, all requires the eignen values $\lambda_1,...,\lambda_k$ of some matrix. For...
I have a panel dataset (26880 observations) of individual decisions ($y_{it}$, a categorical variable) which depends on signals ($x_{it}$). I am trying to find out how many past signals individuals are taking into account when making decisions. Importantly, I have three treatments, which in principle should affect how ...
I have an hourly time series that I want to forecast. Prior to modelling it, I tested it for random walk. The ACF and PACF plots for the time series are as follows: Since the PACF has a high value at lag 1 and ACF is decreasing linearly, I wanted to check its 1st differentiation for white noise to figure out if its a ...
I am running analyses using metafor, looking at different scores between two groups. All of these are using raw mean differences (so rma(yi = MEAN_DIFFERENCES, sei = STANDARD_ERRORS). A co-author suggested we also provide standardized mean differences, so I computed means, SDs, and group Ns for each analysis and passed...
The specific task is to draw 5 random samples in the range of 0 to 90 with a minimum disstance of 7 between each sample. I performed 1 million runs with respect to the conditions. The first image shows, how often each value was drawn. I was aiming for a uniform distribution, which is clearly not the case. I tried sever...
I've been trying to find a mathematical explanation for this. Note, I'm talking about the "classic" Cox-PH, not the extensions given after to incorporate interval/left censoring. In this paper it is claimed that: "Incorporation of interval censoring into the proportional hazards model does not enable canceling of the ...
This may sound like a rather odd question but I have stumbled upon a distribution of means that resembles a normal, but I am not sure whether it is possible to prove that it is indeed one or not. Here is the setup. Suppose I take a sample of $n$ independent and identically distributed random vectors/variables $ x_1, x_...
Currently we have models where $y^{pred}_{i} \sim N(\beta_1 x_i + \beta_0, \sigma^2)$. Is it possible to create a model with non-constant variance $y^{pred}_{i} \sim N(\beta_1 x_i + \beta_0, e^{\beta_3 x_i + \beta_2})$?
I have some questions regarding how varimax works. I read that given an n by k matrix A, the k by k orthogonal matrix B maximises the varimax criterion, which measures the difference of these 2 terms: $$\frac{1}{n}\sum_{i,j}[AB]_{ij}^4$$ $$(\frac{1}{n}\sum_{i,j}{[AB]_{ij}^2})^2$$ The varimax criterion maximises high a...
What is the correct way to calculate support? I have seen two different ways and I'm confused as a result. One way (say first approach) is explained https://en.wikipedia.org/wiki/Association_rule_learning according to which support = number of times an item occurs/total transactions = frequency/T where T is the total n...
In the highly cited paper "The Emerging Field of Signal Processing on Graphs", the authors defined graph singal for a graph of N vertices as a vector of length N, with each element of the vector corresponding to a scalar value associated with one of the N vertices. Graph Laplacian is then defined as shown in the screen...
Consider a simple two-way fixed effects model: \begin{equation} y_{it}= x_{it} \beta + \alpha_i + \delta_t + u_{it} \end{equation} where $x_{it}$ is a row vector of regressors of size $K$, and $\alpha_i$ denotes the unobservable individual-specific effects, $\delta_t$ denotes the unobservable time effects, and $u_{i,t}...
I'm not sure if this is a statistical problem, but I suppose it's a frequent problem involving using statistics, so I ask here anyway. Hope it's on-topic. From the book Smart Pricing: How Google, Priceline, and Leading Businesses Use Pricing Innovation for Profitability: Although music is a very risky business, we fou...
Background I have two Empirical distributions, both derived from social media data. The first represents a broad sample of ~4.8 million posts and the number of followers each post author has. The distribution looks like this: The second is a smaller sample of 1020 posts that were specifically recommended to me. The di...
I am trying to proof why the two lines of the following expression are equal. I found it in one of the books on machine learning $$ \begin{align} \operatorname{Cov}[\mathbf{x},\mathbf{y}] &= \mathbb{E}_{\mathbf{x},\mathbf{y}}\bigl[ \{\mathbf{x} - \mathbb{E}_{\mathbf{x}}{[\mathbf{x}]}\} \{\mathbf{y}^{\mathrm{T}} - \math...
I have a question about the inclusion/exclusion of certain covariates in a 2SLS model. My concern is that my instrumental variable, Z, influences Y through two pathways: X1 and X2. If I am interested in isolating the X1 effect, is it sufficient to include X2 in the second stage equation, but not the first? Can this ...
I've been asked by a reviewer to provide effect sizes for pairwise, planned comparisons. In the experimental design, I have one fixed factor with three conditions (Consistency). Passage & Subject are random effects. I would like to report Cohen's D for three planned comparisons (Consistency 1 - Consistency2; Consistenc...
Classification problems have the benefit of being discrete, so it's easy to calculate how much information your model has. For example, in LLMs your training data has inputs $\mathbf{x}_i$, a list of previous tokens, and some distribution for the next token $\mathbf{p}_i$. The entropy is $$H = -\sum \mathbf{p}_i^T\ln \...
Introduction I'm studying importance sampling and I'm trying to figure out by myself, with a couple of examples, what are the main benefits with respect to standard Monte Carlo integration. I'm not sure if I have correctly understood the theory and if I my examples are correct. Moreover, I've found an implementation pr...
I'm a beginner at stats and only need to understand the basics. I've learned simple, logistic and Poisson regression and am trying some problems. I have a set of count data which have been averaged across repeated samples to create a data set of mean counts (so not whole numbers) for each experimental plot. The distrib...
I am currently working on demand forecasting. During my research online I came to know about methods used to classify demand which helps us to focus on series which have better forecasting ability etc. So, the classification of demand happens mainly based on Coefficient of Variation (CoV), Average Demand Interval (ADI)...
I'm currently running a test to compare the performance times of our new and old machines. Working with a substantial dataset—over 50,000 records—that leans toward the new machine being faster. Previously, I conducted a similar test but lacked clarity on certain technical aspects. Consequently, I opted for the Mann Whi...
I am an absolute beginner in this sector. Currently learning supervised machine learning from Course era under the instruction of Andrew Ng. I am on my 2nd week in the 2nd course of that sequel. I am actually confused about the back propagation. I understood the theoretical stuff of back propagation which is basically ...
I have data with a continuous longitudinal outcome and one of the covariates is a categorical longitudinal variable. Both of them have missingness and were collected at the same time. So this means if the outcome is missing, the covariate is also missing. My questions are the following: If there is missingness in the ...
I was solving one quiz question on Coursera and I found an interesting question. If you double the value of a given feature (i.e. a specific column of the feature matrix), what happens to the least-squares estimated coefficients for every other feature? (assume you have no other feature that depends on the doubled fea...
I'm having trouble identifying what statistical model or methodology is suited for my application. My situation is as follows: I want to create a stock trading agent that trades a single stock-cash pair based on quote data it receives over time. For simplicity: If the agent is holding only cash, their available action...
For a linear regression, one way to estimate the range of a prediction for a new observation is to calculate the prediction interval for the new observation. What if, instead, the squared residuals were regressed against the initial predictors? Would that be another way of estimating the variance for a new observation?...
I have two arrays representing the independent and dependent variables in a certain experiment (1000 samples). I would like to know the functional relation between them. Specifically, I would like to decide between these two options: A logarithmic relation: $y = a * log^b(x) + c$. A power relation: $y = a * x^b + c$. ...
I'm looking to find out whether an attitude differs across income quartiles. My supervisor has mentioned dummy coding and regressing the quartiles against each other, however, I'm sort of at a loss as to how to do this. Would I just include the variable whereby each respondent is coded into a quartile as a predictor in...
In the table-1 third row it is being mentioned. Why is it $O(n/k)$? Take for example 1d convolution of 2 over 9 tokens with stride $1$. It won't be $n/k$ or $9/2=4.5$ rather it would be roughly $n-1$ or $8$. The paper did not mention about stride, so I assumed it would work for any stride. From paper: (link) A single ...
I am currently reading through the paper: Estimating Regression Parameters Using Linear Rank Tests for Censored Data - A.A. Tsiatis, Annals of Statistics 18(1): 354-372, 1990. https://projecteuclid.org/journals/annals-of-statistics/volume-18/issue-1 and I am trying to verify a seemingly simple equality statement howeve...
I want to analyse a age structure of my sample. However, I was not given the ages themselves and instead had to establish them using multiple methods with various coefficients of determination (not every method could be used on every single analysed sample), with some of the methods being run twice to check its replica...
I have a dataset witch consists of several years fish counts in a trap that is used to catch downstream migrating individuals. The trap is usually emptied daily, but sometimes the interval is longer (2-6 days). I refer to this interval between sampling as "trapping period". I expect that all of the fish moving downstre...
My office leadership is interested adopting “quantile time series forecasting”, the idea is query the model to predict the 5th, 25th, 50th, 75th and 95th percentiles of an RV given features such as previous observations, covariates, etc. My questions are about feasibility: Are there x independent models, one for each q...
I am quite new to statistical analysis, so this question might seem a bit obvious. My problem is the following. I have performed a simple linear regression between two sets of values without uncertainty, resulting in a regression equation of the form $$ y = ax+b. $$ I have calculated the uncertainty in the slope, $\del...
I explore centrality measures for graphs and discretized regions. The data array (for given point) is all distances from this point to the boundary of region. At the beginning I used standard deviation of this array as measure of centrality of point (the smaller deviation, the more centrality). But recently I've found ...
I have an array of values of MGF (it is evaluated at some points). The plot of it is shown (blue curve): . Is it possible to find PDF knowing MGF in such form? I tried to fit MGF with some curve (you can see that blue and red (approximation) curves almost coincide), however, the error when I calculate pdf from the fitt...
A quick question. My intention is to analyze some numerical data across several categories (treat this as ANOVA, if you wish, but I'm going to focus on simple effects) that are "just numeric", but not specifically counts, not binary categories, not necessarily "always-skewed left or right". Let's say it's about data th...
I am working on a hierarchical time series forecasting on which I am using reconciliation methods. The problem is the circular dependency between two hierarchical time series as shown in the diagram: We have two hierarchical time series X (red) and time series Y (blue). In this example, we annotate the bottom-level ti...
Can you introduce bias by treating longitudinal data as a repeated cross section? Suppose I have two data sources measuring the same variables. The first is a balanced panel dataset $\{y^{long}_{it},X^{long}_{it}\}_{i,t}$ where each individual $i$ is sampled every year $t$. The second is a repeated cross-section $\{y^{...
SYNTHESIS METHODS (eligibility for synthesis) 13a • Describe the processes used to decide which studies were eligible for each synthesis. My study aims to compare Internet Delivered Mindfulness Based Interventions with Treatment as Usual or other Active Interventions delivered face-to-face for cancer patients undergoin...
I have a mixed effects model that I'd like to simulate random effects from using a MVN approximation (sampling from the predictive distribution). My question is what is the advantage of simulating random effects by 1) simulating both fixed and random effects using the joint variance-covariance matrix (then just pluckin...
A reviewer asked for either Bayes Factors or effect sizes for pairwise, planned comparisons in linear mixed modeling. In the experimental design, I have 30 participants, one fixed factor (repeated measures) with three conditions (Consistency). Passage & Subject are random effects. In response to the reviewer, I have co...
This might be such a trivial question for you, but please bare with me as I don't have background in statistics. So I am curious about corpus linguistics, and especially in this case how corpora is used to prove the Brevity Law, also known as Zip'f law of abbreviation. Simply put, this theorem postulates that the short...
I will preface this by saying I am not a trained statistician, so please be gentle. I am using R to construct a cumulative incidence function curve for a single-arm evaluation at multiple timepoints of interest. The outcomes of interest is 'Event' with 'Death' as a competing risk (and the third option being 'censored')...
I imagine a scenario where two teams play each other having historical win percentages. Team $1$ is quite good and wins $60\%$ of its games. However, team $2$ is really good and wins $90\%$ of its games. When the teams meet, what is the probability that each team wins? I tried to solve this using a multivariate approac...
I'm using a BART model (Bayesian additive regression tree) to predict the relative risk of an outcome (21,384 observations) controlling for 388 features and I'm getting a really poor actual vs. fitted value plot unlike any I've gotten before in other models with different outcomes. DV = logged relative risk + 1 of ren...
I have a small data where there are 3 groups (A,B,C) and 5 participants from each group. All of those participants are measured 6 times on each of 7 different exams, so each participant get 6*7=42 scores in total. A simple linear mixed model was built mylmm<-lmer(score ~1+group+exam+group*exam+(1|participant), data = m...
I got the following question in a quiz, and it seems that my answer is not correct. I don't understand why: Why is there a residual connection around each attention layer followed by a layer normalization step in the in the decoder network? The answers: To help with the interpretability. To speed up the training, and...
I am studying a daily dataset from a game which contains informations about the peak of players from 2013-2023. This is my first try applying decomposition to see how time series components behaves. Later I would like to perform a forecasting using some models, I have applied the ADF test and it revealed the series as ...
I'm a B.S. Math graduate who likes to (attempt) to teach myself statistics on my own time because I can't afford a masters degree. It really bothers me when I can't understand at a fundamental level how and why something works and so in this post I wanted to provide every single step in how coefficients are derived usi...
I am planning a staggered difference-in-differences analysis examining the impact of a change in health policy at the county level. The policy was implemented at different times in different counties, and in many counties not at all. I have data for many counties, with only a small fraction having ever implemented the ...
I am reading Wooldridge's econometrics textbook. He provides the following example: Suppose we have a regression model relating wages to gender and education level. wage = b0 + d0 female + b1educ + u For the gender variable, we can create a binary variable in which female = 0 and male = 1. The textbook stated that we s...
I am trying to work on building an variational autoencoder in Keras, with an input shape of X= (1,32) and Y= (1,16). I made 2 models, one for the prediction of Y, and the second for reconstruction. The reconstruction train very well, however, the predictor cant predict the Y correctly. I am working in biology field, ...
I am trying to build a regression model to explain variations in mortgage volumes using variations in different mortgage rates. To account for the drastic change in macroeconomic environment: from near zero rates to positive rates, I have used a weight variable to give more weight to the more recent observations relati...
I have the following question: Suppose we have a set of 10 numbers (1, 2, ... , 10), each with a certain probability tagged to it. Is it true that the highest possible variance is achieved when 1 and 10 each have probability 0.5 while all other numbers have probability 0? If that is the case, how do we prove this cla...
Overview I was trying to fit a cox proportional hazard model to look at interactions between two time-constant covariates, both of which are factors. I parameterized the model in two different but equivalent ways, but parameter estimates from the models were somehow different. I wonder what went wrong. Please see below...
I have this problem that I found on the paper I'm reading. In that paper, it is given that random variable $X = \sum_{i=1}^n X_i$, where each $X_i$ is Bernoulli with parameter $p=1/6$ and they are i.i.d. The bound on its tail probabilities are given using the Chernoff bound with $\mathbb{P}[X \leq \lambda_0 np] \leq e...
I asked the same question on math stacks: MathStacks:, and some user suggest to ask it here for better insight. So this question has found interest in many research problems, but there have been no concrete findings. I want to pose this questions here and take some feedback on how we can solve it. So lets assume you ha...
As a result of a PCA analysis with some initial correlated variables $X_1,..,X_k$ we often do a plot of the loadings to intepret the principal components: PLOT 1: Plot of the loadings: We call $v^i,i=1..K$ the principal components (so that $v^{i}\cdot v^{j}=\delta_{i,j}$). Indicating the components with a lower index $...
Are "factor loadings" (orthogonal rotated) in exploratory factor analysis (EFA) correlations or standardized regression weights? For instance in r, the factor loadings are very high, if the correlations of the variables are strong (but not exact the same as the bivariate correlations), and the standardized regression w...
I'm thinking about a problem from a recent project, where a neural network is used to detect some particular events- so basically it is a binary classifier (yes/no). We have a lot of data and want to somehow very roughly estimate a required sample size for further data collection. Usually I would consider learning curv...
Consider a simple linear regression model: $$Y=\beta_0+\beta_1 X +u$$ Here, we can consider an estimator that does not use any data: $$\hat{\beta}_1=0$$ That is, regardless of the observed data, the estimated value is always zero. Then, we can write the estimator as a linear function of the observed dependent variable:...
I have a log-likelihood function with four parameters, out of which the variability of the likelihood with two parameters is extremely smooth. It suggests that the derivative is small for large ranges of these two parameters. Although I know there is a maximum, I have never achieved it through any optimization (local o...
I have hourly historical temperature curve for a month say January. I also have a monthly peak and a monthly mean forecast for March 2024 (two values). Using this - How can we get an hourly forecast curve - such that the mean and peak is the same as the prediction. A simple transformation would also work. I thought of ...
I'm currently working on a machine learning project where I am creating new features related to the ratio of bytes sent and received in a communications network. However, I'm facing a challenge: when the number of bytes received is zero, the ratio calculation leads to infinite values. This is problematic for my machine...
$$ is a positive random variable (potentially unbounded) with $0 \le \mathbb{E}[X] = a < 1$. Since $\phi(x) = \frac{1}{x}$ is a convex function, we can use Jensen's inequality to derive a lower bound: $\mathbb{E}[\frac{1}{1 + X}] \ge \frac{1}{1 + \mathbb{E}[X]} = \frac{1}{1 + a}$. Is it possible to derive an upper boun...
I have a large dataset (>3000 cases) with results of serological tests. Based on these results i want to calculate the weighted prevalence of the disease. The data is categorical (0 = disease absent; 1 = disease present). 12 cases have the disease. After weighting by inverse selection probability based on the populatio...
I'm reading contradictory information on the internet and wanted to get some thoughts on a statistical approach to use. I'll use a fictional example for the sake of easy interpretation. I have a set of eight different dichotomous variables that represent presence or absence of a symptom. For example, 'Pain' (yes/no), '...
I have data that represents the measurements of the concentration of PM particles in the air at different times (every hour of every day from 2018 onwards), and I am supposed to test whether the rules for the lockdown of COVID have any statistical significance. The data is split into three sets (measurements from March...
Different questions here deal with the problem of whether to include main effects in interaction models, for example here, here and here (for the opposite problem, omitting interaction coefficients where there are interaction effects in the DGP, see here). But I have found that the general suggestion to include the mai...
I am looking for a sufficient imputation method for missing observations in my zip code level data, using R. I have a random sample consisting of households which live in different zip codes within one city. My goal is to use this sample to synthesize an "artificial" census for this city. Unfortunately, the households ...
Assuming a Gaussian likelihood, $y \mid x, w \sim \mathcal{N}(w^\top x, \sigma^2)$, the variance of the least squares estimate $\hat{w} = \mathrm{argmax}_w p(y \mid X, w)$ is $\mathbb{V}[\hat{w} \mid X, y] = \sigma^2(X^\top X)^{-1}$. On the other hand, the distribution $p(w \mid X, y) \propto p(y \mid X, w)$ (the "post...
I'm a medical oncologist and had some doubts concerning the stats behind clinical trials design. My question concerned the use of log-rank vs. univariable Cox-regression to compare the survival curves between two groups. Assumed the proportional hazard assumption is met, why i see clinical trials performing the log ran...
I would like to assess the multivariate normality of the structural equation model (SEM) in Mplus. I have a few questions regarding this matter: How can I examine multivariate normality, specifically Mardia's coefficient, in Mplus? Could you provide the current recommended threshold for Mardia's multivariate coeffici...
The Ledoit Wolf paper "Honey, I Shrunk the Sample Covariance Matrix" presents the formulation for the shrinkage intensity parameter estimate in Appendix B. The formula for a weighted covariance matrix is shown in the answer to this question, and an exponentially weighted covariance matrix would use weights with an expo...
An independent variable is endogenous if it is correlated with the error term (source). In the regression framework, this may happen (only?) in case of omitted variables, simultaneity, or measurement error in the dependent or independent variable. A proof that these cases lead the independent variable to be correlated ...
I am doing some reading on kernel mean embeddings. In particular I am reading the survey paper by Muandet et al. On page 27 (Section 3.1) the authors begin a gentle introduction to kernel mean embeddings based on Dirac measures $\delta_{\mathbf{x}}(\cdot)$. Of course we have the familiar property that $$ \int f(\mathbf...
.002 is the median and 0.009 is the average moderation effect size in psychology, based on Aguinis et al. 2005, Effect Size and Power in Assessing Moderating Effects of Categorical Variables: A 30 Year Review, J. Applied Psychology, 90 94-107. I mean, the effect is so small i can't not figure out how it could be of any...
I learned that the deviations are squared for a number of reasons. (1) They make all values positive. Otherwise the sum of the deviation would be zero. But why not just take the absolute value of the deviations? (2) To conserve the unit. If our data were units of meters then by squaring the deviations and then taking t...
I have to simulate a simple sensor, which has 3 standard deviations defined in spherical frame : sigma-azimuth, sigma-elevation, sigma-distance. When I simulate a detection, I compute a noisy position using these standard deviations. Then I have to compute the position and the accuracy in a cartesian frame centered on ...
I have a question concerning the calculation of indices, such as the Shannon index, Inverse Simpson, etc., at a specific taxonomic level (e.g., family level) using a richness table of that particular level. For instance, if we have a count table where rows represent subjects and columns represent families, how can we d...
Say that I compute a two-sided confidence interval. For example say I compute a confidence interval for a binomial proportion with significance level $\alpha$ as lower, upper = conf_interval(count=95, trials=100, significance=$\alpha$) If I only use the lower bound than I can call instead lower, _ = conf_interval(count...
I have a DNA methlation data for 32 samples. For each sample I have DNA methylation avaialble for >10000's of cpg bases (ie C nucleotides on DNA). I also have gene expression data from which I have estimated tumor proportion of each sample. I am trying to regress tumor proportion against DNA methylation loci's. I inten...
Definitions: Sorry for the ad hoc terminology -- comments or answers that provide pointers to standard terminology would be much appreciated. For simplicity I'd like to restrict discussion to real-valued random variables. "mean-parameterizable model" - a statistical model $\mathcal{M}$ (family of probability distributi...
I have three separate glmer models investigating the individual and household-level risk factors of malaria infection in three different spatial locations: 1) outside the forest, 2) at the forest fringe, and 3) inside the forest. The explanatory variables are a mix of continuous, binary, and categorical variables. The ...
I have been unable to find a non-matrix notation formula to calculate prediction interval for a weighted least squares regression. For OLS, I have $$y = \hat y \pm t\times \sqrt{\left(\textrm{MSE}\times(1 + 1/n + (x-\bar x)^2/\sum (x_i-\bar x)^2)\right) }. $$ I even have the prediction interval values from R but canno...
This might be a silly question, but it's got me stumped. I am trying to estimate the number of bad actors in a system. Let's suppose we have 100 users, and some percentage of them are bad actors. In our system, the users are generating clips, say everyone on average generates 100 clips. The bad actors will, some percen...
I understand that $\theta$ is the true distribution parameter (great explanation here). I also know that $\hat\theta$ is an estimator of the true $\theta$ (so for example, MLE is an example of $\hat\theta$). But sometimes, I also see $\theta^*$. What does it denote, and what is its relationship to $\theta$ and $\hat\th...
I'd like to generate model an ARMA(1,1) process with a mean of zero and a standard deviation of sigma where I specify the ARMA parameters phi and theta. How can I adjust the value of sigma in the draw from a gaussian dist'n so that the output has the correct standard deviation? In an AR(1) model the adjustment to the s...
Let $\left(Z_1, \ldots Z_n\right)$ be an i.i.d. sample with common probability mass function $$ p_Z(j)=\vartheta^2 I_{[j=1]}+2 \vartheta(1-\vartheta) I_{[j=2]}+(1-\vartheta)^2 I_{[j=3]} $$ Find a UMP size $\alpha$ hypothesis test for $H_0: \vartheta=1 / 3$ versus $H_A: \vartheta> 1/3$. Give an explicit formula determin...