instruction stringlengths 9 38.7k |
|---|
I have modelled count data through the use of some covariates, using as link family the Poisson distribution. Then, I've predicted expected counts for an external dataset not used to train the model, but where the values of the covariates were available.
In such a dataset I have also the observed counts. For this reaso... |
I currently have a dataset and am trying to find the best multiple-linear regression model that answers my research question. The given dataset has 6 independent variables which I am going to be using for my predictors. However, I am having a little bit of trouble on whether or not my approach would be correct:
I plan ... |
If $X$ is a random variable from the uniform distribution on the interval $(\theta, 2\theta)$, how would one construct a 90% confidence interval for the method of moments estimator of $\theta$?
The answer should be in the form:
$$
\frac{\bar{x}}{a±\frac{b}{\sqrt{c*n}}}
$$
Where $a,b,c$ are constants and $n$ is the numb... |
I am asked to calculate the AUC-ROC for a classifier on a test set. Then I must take bootstrap samples of this test set and calculate their AUC-ROC. Lets say that I will perform $n$ bootstrap samples. Therefore I will compute $n$ AUC-ROC.
What I can't get is the interpretation of the confidence interval.
I am thinking ... |
I want to train an anomaly detection model for intrusion and fraud detection. I have several features I know are correlated with sketchy behavior. However, those features are "directional" and anomalies should only be considered relevant if the feature value is high.
For example, if velocity of transactions was a featu... |
I have two variables, which is Tomato farmgate price and retail price. When I use VECM, both variables are endogenous. However, there can still be a response variable (ex. when you put the variable first in eviews VAR, it will be counted as the response). My concern is why is ECT significant in both cases where I use t... |
Suppose I want to get a model, such as a neural network, to correctly classify pictures of cats and dogs and I know that the test set contains around $1\%$ of cats and $99\%$ of dogs.
My intuition is that if I have very few training data, it would be better to use a training dataset that is highly unbalanced. This is b... |
Sex
DiabetesNOTPresent
DiabetesYESPresent
Female
50
55
Male
124
70
So I have this chi-squared test that I performed. My result was statistically significant. The data relates to heart failure in patients at a certain hospital. How would I interpret this? Please correct me if I'm wrong but...
My finding i... |
I am trying to derive the probability distribution of $Z=Z_1^2 + Z_2^2$. I am doing this in the following way,
$$ \begin{align}p(Z=x) = &\int_0^x p(Z_1^2 = p)\times p(Z_2^2 = x-p) dp\\ \Leftrightarrow ~ &\int_0^x p(Z_1 = \pm\sqrt{p})\times p(Z_2 = \pm\sqrt{x-p})dp \\ \Leftrightarrow &\int_0^x [2p(Z_1 = \pm\sqrt{p})]\ti... |
my regression is relatively simple. I have a dependent variable, age (A), and its values for 8 types of employees (T) for 6 years (Y). I run it in R and get some meaningful results, which show how A depends on T, controlling for the year. I can also see some changes over time. My problem is that I do not quite know how... |
I have a very large dataset D (>100 million samples) with attribute/feature set F (<100 features). I need to create a sample set S such that the mean error between the feature averages of S (Fs) and some given array of target feature values (Ft) is minimized. We do not have any other information about the target data (... |
What's the difference? Exogenous vs. Endogenous identifiers.
|
Say I have an exponential distribution with parameter lambda λ.
Is there a way to generate 100-500 pre-computed values that when summed, have the same variance and mean as the exponential (and the same distribution). How can I:
generate these values?
prove that they fit an exponential distribution?
One possible solut... |
In Murphy(2007), equation (10)
Why did the author ignore the term containing $s^2$.( Here, $s^2$ denotes the variance of the of the observed data).
From the looks of it , it doesn't seem like the term is actually constant yet the author has dropped the term. Any help is appreciated
|
I have read some of the existing non-linear correlation analyses such are Maximal Information Coefficient (MIC) and Distance Correlation, both of them don't tell us about how the correlation is shaped (such as sinusoidal or polynomial). Is there any approach to know the shape of non-linear association between two varia... |
I have a sample dataset of semi-finals of a swimming competition and there are multiple categories in which swimmers can participate. I want to do a hypothesis test (two-sample) on this to check if the result time differs in different categories.
But in the sample there are some swimmers who participated in more than o... |
I am trying to learn LSTM that is applied to sequential data.
I am referring to following study material available here: https://its-ml.de/index.php/plattscaling/
Its given that:
sequence_length = 50
batch_size = 200
epochs = 100
nb_features = 25
Can somebody please let me know what does Batch size and epoch signifies ... |
I'm doing some exploratory data analysis in Genstat, and tried running correlations relating a number of variables to my variable of interest (VOI). First, I just ran a subset of the variables, and got one set of results. Then I ran all the variables at once, to produce a heatmap correlation plot for visualisation. I n... |
Let's assume I want to use linear model for repeated observations. There may be gaps at some intermittent times or visits.
When there is a gap in the mid of the study follow up, for example:
ID T0 T1 T2 T3
1 OK OK -- OK
2 OK OK OK OK
3 OK -- -- --
4 -- -- OK OK
then how the ... |
When using LightGBM in classification problems it is possible to use monotonic constraints. In binary classification problems the interpretation is straightforward: "The probability of class (say) A must be a monotonic function of feature X".
But how does LightGBM implement monotonic constraints in a multiclass classif... |
I am trying to understand if my reasoning is correct about these two methods. Faced with a situation where it is impossible to get both methods to fail to reject the null hypothesis, which should I trust or choose?
For example, you have a vector of means from a sample. After production of another large sample, you want... |
I am looking for the proper statistical terminology to express the fact that one estimation task maybe intrinsically harder to solve than another task. Intuitively, I would characterize this property by the discriminative performance that can be achieved by an optimal classifier trained on infinitely many training data... |
From this example, I'm trying to fit a model with three different odds ratio by combining centers(1,2,4,7),(3,5,6) and 8. Would it be possible to fit the model with three different odds ratio?
|
My setting is, I want to simulate a data set in two conditions, e.g. control and disease. I want them to share mostly the same correlations except some should be different to simulate a "signal" between the two conditions.
So I'm trying to simulate two correlation matrices (i.e. they have to be positive semidefinite, s... |
I'm studying the Statistical Rethinking 2ed book and trying to write the codes to Stan (I'm using pystan). And stuck on how to write the model below in stan.
This problem is described in the book page $172$ and $173$ - RCode $6.16$
Generating the data:
# number of plants
N = 100
# Initial simulation of heights
h0 = np... |
Consider the following unrestricted linear ECM:
$$\Delta y_t=\mu+\beta_1 y_{t-1}+ \beta_2 x_{t-1} + \gamma \Delta x_t +\epsilon_t.$$
Now, suppose we have the estimated coefficients ($\widehat{\mu}, \widehat{\beta}_1, \widehat{\beta}_2, \widehat{\gamma}$) and their variances. The long-run coefficient for $x_t$ is define... |
I have a number of individual F1 score samples and right now I am measuring the average F1 score across this group. However, I would also like to present a confidence interval on it. Its a continuous value between 0 and 1 but which formula should i use? I know each F1 score has its own confidence interval based on Wils... |
This is a follow-up question to Test three-way correlation.
I'm working on gaze data in triadic interaction. A sample of the data looks like this:
df
# A tibble: 9,860 × 3
Duration aoi_dur Gaze_alt
<dbl> <int> <int>
1 1703 1039 0
2 1703 498 0
3 2010 310 0
4 ... |
Suppose I have a probability density function $\pi(x_1, \ldots, x_n)$, which is the density of a vector-valued random variable $X$ in $\mathbb{R}^n$. Assume that $\pi$ is strongly log-concave, i.e., the function $E(x_1, \ldots, x_n) = - \log \pi(x_1, \ldots, x_n)$ is strongly convex. This implies that $\pi$ possesses a... |
Let $(Y_i, X_i)_{1\leq i \leq n}$ be i.i.d. such that $Y_i = (Y_i^A, Y_i^B)' \in \mathbb{R}^2$ and $X_i = (X_i^A, X_i^B)' \in \mathbb{R}^2$. Suppose that
$$
Y_i^A = X_i^A \beta_A + \epsilon_i^A,
$$
$$
Y_i^B = X_i^B \beta_B + \epsilon_i^B
$$
where $\epsilon_i = (\epsilon_i^A, \epsilon_i^B)'$ are i.i.d. with distribution... |
I'm wondering if there's a clean way to quantitatively find the "baseline" of a data set, or more specifically, a threshold below which the majority of samples are clustered. For the example below, I have horizontal lines plotted for the outliers (upper inner fence), 99th percentile, and 99.9th percentile (red, purple,... |
I am trying to understand what variance is, I already know the "official" definition
"Variance is the average squared deviations from the mean"
But I am trying to give it a visual entity.
I get to this conclusion through this logic.
Given this formula that represent variance :
If an Xi is way far from the mean, then i... |
I'm trying to model the risk of diabetic retinopathy as a function of time between screening appointments. The outcome is interval-censored because we only know that the event occurred between the previous screening $T_{1}$ and the next one $T_{2}$ . Each appointment is accompanied by a number of covariates (that can v... |
This question is question 12 from Problems 10.3 from Rohatgi's An Introduction to Probability and Statistics.
Of 25 income tax returns audited in a small town, 10 were from low and middle income families and 15 from high-income families. Two of the low-income families and four fo [sic] the high-income families were fo... |
$\newcommand{\ol}[1]{\overline{#1}}\newcommand{\szdp}[1]{\!\left(#1\right)}
\newcommand{\szdb}[1]{\!\left[#1\right]}$I am studying Design and Analysis of Experiments, 2nd Ed., by Dean, Voss, and Draguljic. In the context of a one-way ANOVA, Exercise 3.8 reads as follows:
Problem Statement: For the model in the previous... |
I am currently trying to run a linear regression model to identify the effect of several explanatory variables X on a response variable Y. My advisor asks me to scale the continuous explanatory & control variables by standardization or normalization. He anticipates that it will improve the regression results (no detail... |
I am sorry if this question is confusing, but I am stats newbie!! I am trying to simulate a composite variable which takes values ranging from 0 to 40. The composite variable is made of the sum of 8 questions which could take values between 0 and 5. I am aware that I cannot use rnorm, since it will also give me negativ... |
I am currently studying statistics and I have come across these terms about missing data mechanisms; MCAR, MAR and MNAR. I have a dataset with exactly one missing value and I can only think of that this missing value is MCAR.
My thought is that is the following:
It can't be MAR as we can not determine any pattern of mi... |
Given a sample $X_1,...,X_N$. If $X_i \overset{idd}{\sim} F$ which will be the distribution of sample $Y_1, ..., Y_N$ where $Y_i=F(X_i)$ and why?
|
I am trying to solve the matrix completion problem with proximal gradient method: $$\min_{||X||_* \leq \theta} \frac{1}{2}\sum_{(i, j) \in \Omega} (X_{ij} - M_{ij})^2$$ or in terms of the projection operator: $$\min_{||X||_* \leq \theta} \frac{1}{2} ||P_\Omega(X) - P_\Omega(M)||_F^2$$
Now, I know how to solve $$\min_{\... |
I'm trying to run a logistic LASSO regression using the HDM package in R (hdm::rlassologit), but because my dataset is very large with almost a billion observations, any attempt to build it into a matrix to feed into the function crashes the R session.
I can successfully use glmnet to run a logistic LASSO with observat... |
In my study, I want to investigate the influence of job skills on psychology. Job skill, as an exogenous latent variable, is composed of 3 categorical variables (V1, V2 and V3 here). Psychology, as an endogenous latent variable, is composed of 4 categorical variables (V4, V5 and V6 here).
V1-V3 are nominal variables (1... |
How can I calculate the probabilities of a negative binomial distribution given that I have the mean and variance (and also the set of random variables used) already available to me? I am looking to generate plots using these two parameters. Any python code or guidance on the approach would be hugely helpful.
|
I'm getting the warning In cor.smooth(R) : Matrix was not positive definite, smoothing was done, but what is it in this case? Can I get away with that?
code:
library(psych)
## note: Q11 and Q15 have reversed scales (thus, -1)
psych::alpha(PBQuest,
keys = c(1, 1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, 1, 1,... |
I am exploring using GP to approximate the value functions in some dynamic programming problems. Since all my data points are generated by myself, I can always train the GP with a larger dataset. However, I found that after reaching a certain threshold, adding more data points is not helpful for me to reduce the RMSE o... |
Based on the causal diagram below, where:
Y1 is the outcome in the post-intervention period,
Y0 is the pre-intervention outcome,
X is a Yes/No healthcare intervention, and
Z1 & Z2 represent various confounder variables (diagnoses, geography, etc.).
Shouldn't Y0 be excluded from the counterfactual model estimating the... |
I have a dataset describing age of wine in 3 classes of quality.
> ages
class age
1 class1 <10
2 class1 <10
3 class1 <10
4 class1 <10
5 class1 <10
6 class1 <10
7 class1 <10
8 class1 <10
9 class1 mid
10 class1 mid
11 class1 mid
12 class1 mid
13 class1 mid
14 class1 mid
15 class1 >60
16 class1 >60
17 class1 ... |
I am comparing the predictive power of two regression models. RMSE gain is $13\%$ using a full model compared to reduced one on the test set. I do not want to compromise on model complexity hence wondering if $13\%$ is significant enough to use full model.
Correction: RMSE for full model is $.13$ whereas for reduced on... |
I am reading Elements of Statistical Learning, specifically section 5.2.2, an example on the South African Heart Disease dataset.
The idea is to model the logit of the conditional probability of the output as linear in the basis representation. Specifically, we have
$$\text{logit}(P(Y|X))=\theta_0+\sum_{i=1}^p h_i(X_i)... |
I have been trying to figure out the difference between validation and test set used in the machine learning studies. In almost all places, I found that I have to split the dataset into three parts (ie. 50/20/20) ratio to obtain the training, validation, and test sets, respectively. However, I have a question that whet... |
CUPED (Controlled-experiment Using Pre-Existing Data) is a variance reduction technique created by Microsoft in 2013 and widely used in technology companies. let Y is the target metrics and X is pretreatment covariate, T is treat variable(to simplify the discussion, we assume that there are only two treatment group, T ... |
I am forecasting using VECM and I plan to do it on train and test split data. My data is 132 monthly observations. My VECM is lag 3 with unrestricted constant. All diagnostic test are passed.
I plan to do test and train on my data with 70% 30% split. However, when I use this model on my train data, there is no cointegr... |
I have the following random variables $X$ ann $Y$ following respectively $N(0,b)$ and $N(0,c)$
$Z=\dfrac{(X+a)}{Y}$ with $a$ a real number.
What's the expectation of Z, i.e $E(Z)$ ?
UPDATE : sorry for this missing element : in my case,$X$ and $Y$ are 2 joint Gaussian distributed with a correlation coefficient $\rho$.
|
I am wondering how padding affect transposed convolution, especially that a higher value for the padding makes the output smaller.
In the formula the term is -2 * padding.
So probably it is a substraction left and right, but how could I imagine it?
|
Given this Bayes net, how do I show that R and F are independent? Every "proof" I have attempted seems to involve the assumption that P(F) and P(R) are already independent.
|
I am trying to find a way to do a mediation analysis between a within-subjects IV and a DV.
I have found the Baron and Kenny approach and path analysis, but I am guessing both apply for a between-subjects design.
I have also found a paper discussing a within-subject mediation analysis using R, but I was wondering wheth... |
Imagine, we have speed data of car and we would like to detect, if car speeds up or down more than it should.
Do I want to just overfit my model, so the outlier (higher or lower speed) would lead me to higher residual easing the process of outlier detection?
Edit: To clarify, training data have no outliers.
|
I am trying to make a stratified cox reg analysis in R studio, where I want to see the differences in exposure to MT divided by gender.
I used the following code:
coxph(formula = Surv(START_AGE, TIME, STATUS) ~ MT + strata(SEX),
data = sample1)
In the output, I only get HR for MT, but I want to see the effect of M... |
I have a excel sheet with 100 independent variables and 1 dependent variable
Now I would like to run stepwise regression using SPSS with it considering pairwise interaction between them to.
As it may be difficult to create all interaction columns manually
How to run a stepwise regression with interaction it considering... |
According to page 33 of Targeted Learning: Causal Inference for Observational and Experimental Data written by Mark J. van der Laan, when the distribution of exogenous variable $U$ is such that, for each $s$, $A_s$ is independent of $L_d$, given $Pa(A_s)$, then the g-formula is given as
$$P(L_d=l_d)=\prod_{r=1}^RP(L_r=... |
Let's say I want to perform a logistic regression (binomial) as :
X ~ P1 + P2 + P3 + P4 + P5
where X is binary variable (0 or 1) and P1, P2, P3, P4, P5 are proportion of cell type ( e.g. P1 = proportion of T-cells ; P2 = proportion of B-Cells, etc..). The sum of P1, P2, P3, P4 and P5 is 1 for each observation.
Can I p... |
I was looking for a way to convert the p-values returned by a hypothesis test.
In the general scenario, we consider p < 0.05 to reject the null hypothesis and more than 0.05 to fail to reject it. But when it comes to communicating with the end user, it is very important to "somehow" translate such values into the range... |
I am computing multiple comparisons of the mean of an unbalanced design using estimated marginal means. I would like to see the significance level of the differences between treatments for each genotype, for a confidence level of 95%, 99% and 99.9%. However, when I compute the following code:
lm_height <- lm(heigh... |
I have downloaded the grid world project form this link. I have executed the project multiple times using:
python gridworld.py -k 20 -a q -r -0.2 -s 90
I have noticed that the reward of the terminal states are changing with time :
The grid world at time t -->
The grid world at some later time -->
First of all, I am... |
Looking at IMDb scores (dependent) and movie genres (independent), and coding genres to binary dummy variables (action yes=1, no action=0, drama yes=1, no drama=0, etc.). Dramas are highly popular movies with more movies than others listing drama as a genre. Drama p-value is significant with linear regression and ANOVA... |
How can i do the parameter's estimation with nakagami distribution with fisher scoring ? i've problem with derive the log likelihood for the variabel of m.(i attach the picture with screenshot file)
|
I am calculating the absolute deviation from the mean of a strictly positive set $\{x_1, x_2, \ldots, x_n\}$ like:
$$\left| x_i - \bar X\right|$$
My analysis makes it appropriate to work in logs because I care about (relative) percentage changes, like:
$$\left| \ln(x_i) - \ln(\bar X)\right |.$$
The idea is to understan... |
I know that a random variable $S_t$ with known statistics $E(S_t)$ and $V(S_t)$ comes from the truncation (sub-sampling) on the interval $[0, +\infty]$ of a random $normal$ variable $S$ with PDF $N_S$ of statistics $E(S)$ and $V(S)$. I don't know $E(S)$ and $V(S)$ and I want to retrieve them.
I also know that the value... |
I have the gender composition for thousands of boards (there is no sampling involved. The data set contains all boards). Boards are consisted of different number of male and female directors. So, to fix things, boards are clusters, and within each cluster there are two groups of male and female directors. What I want t... |
I am currently writing a report from the summary screen of a Linear Mixed Modeling and trying to reference a value of "<2e-16" under Pr(>Chisq) under Fixed Effects.
What is the name of this column? In other words, if I were to write without using the "Pr(>Chisq)" symbol, what else can I call it?
Thank you for your help... |
I know that for ARIMA to run, the series first needs to be made stationary using differencing. But stationary series are not predictable. So, how is this happening actually?
Quote from Stationarity and differencing:
In general, a stationary time series will have no predictable patterns in the long-term. Time plots wil... |
I am working with a data set that has missing values in both the outcome (for both the treated and non-treated units) and the predictors. Overall, these missing values represent a small portion of all observations (1-10%, depending on the predictor/cross-sectional unit), but it is enough to create errors when I attempt... |
I am having trouble with this segmented regression as it requires two constraints and so far I have only treated single constraints.
Here is an example of some data I am trying to fit:
library(segmented)
library("readxl")
library(ggplot2)
#DATA PRE-PROCESSING
yields <- c(-0.131, 0.533, -0.397, -0.429, -0.593, -0.778, ... |
In GLM analysis, is the null deviance of a model the same thing as the deviance of a null model?
|
Given:
The amount of a claim, $X$ is uniformly distributed on the interval $[0,\theta]$
The prior density of $\theta$ is $\pi(\theta) = \frac{500}{\theta^2}, \theta > 500$
Two claims, $x_1=400$ and $x_2=600$ are observed. The posterior distribution is
$$f(\theta|x_1,x_2)=3\bigg(\frac{600^3}{\theta^4}\bigg), \theta > ... |
I have estimated an ARCH(1) model using a skew-$t$ distribution. The results summary is:
I am wondering how to get an estimate for the autocovariance given the parameters. Assuming mean zero, I am getting:
\begin{aligned}
X_{t+1} &= \omega + \alpha X_{t} + \epsilon_{t+1} \\
\text{Cov}(X_{t},X_{t+1}) &= \mathbb{E}[X_{t... |
How would one code the following issue:
The columns represent the k groupings from the k cluster algorithms. The rows are the N(N-1)/2 pairs of data points. If an algorithm groups a pair together (i,j) = 1 and 0 otherwise. This results in a binary matrix of size N(N-1)/2 x k. Agreement occurs if algorithms both group a... |
I have two conditions indoor and outdoor and I show one half of the participants first a picture of meat and then a picture of vegan food and the other half first a picture of vegan food and then a picture of meat.
The dependent variable I measure is what they want to pay for it (willingness to pay). My question is wha... |
Besides comparing the 1st moment, 2nd moment and 3rd moments, are there any other ways to demonstrate that two samples share the same distribution?
Perhaps use MLE and see if the parameters are similar? (Comparing parameters might become arbitrary though).
|
I have tried googling this, but all results lead me to F-tests for model selection specifically for linear regressions (or even other non-model selection F-tests). Maybe I'm missing the right vocabulary and/or conceptual basis for a better search.
Suppose I have a sample of $\{X_i\}_{1\leq i\leq n}$ known/assumed to be... |
Say I have a set of data in the form [x_i,y_i] where x_i is the independent variable and y_i the dependent variable.
[x_i,y_i]
[58,600],
[84,84],
[114,5000],
[122,5000],
[104,1060],
[106,500],
[46,7100],
[74,5000],
[42,5000],
[86,650],
[114,650],
[128,1000],
[128,200],
[58,50],
[60,20000],
[58,3],
[54,50],
[94,500],
[4... |
I am looking for a not terribly complicated solution to deconvolute a series of overlapping distributions. The data may be noisy and I am considering using R's density function.
x <- c(rep(5,10), rep(15,10), rep(25,10))
plot(density(x))
I would appreciate it if someone could suggest how to break the result down into
... |
From searching around, I see that independent variables in logistic and linear regression do not need to be normally distributed, but I haven't found any information about negative binomial regression.
Is there any need for independent variables to be normally distributed in negative binomial regressions?
|
I have a highly left skewed variable (see plot) in a linear regression model for inference. Transforming right skewed data is rather easy by applying the log, for lewft skewed I could not find a suitable transformation which still lets me easily interpret my estimated coefficients so I thought about applying log((-1)*... |
I have a dataset ("mort") containing two variables in R. The predictor variable is Treatment (categorical, 4 categories A, B, C, D) and the response variable is mortality (denoted as 1 for died and 0 for survived). I am interested in the question, "does mortality rate differ significantly between treatments." I'm tryi... |
I have a bayesian network as illustrated above and I want to calculate probability for $P(x|z).$ I am applying the formula:
\begin{align}P(x|z) &= \sum\limits_{y} P(z, x, y)\\&= P(x) \times[P(z|x,y) \times P(y) + P(z|x,\neg y) \times P(\neg y)]\end{align}
However I'm getting the wrong answer. It seems like I'm still m... |
Suppose $x,y$ are IID samples from a Gaussian distribution in $\mathbb{R}^d$. The following seems true:
$$2\ \mathbb{E}\left[\langle x, y\rangle^2\right] = \mathbb{E}\left[\|x\|^4\right]-\mathbb{E}\left[\|x\|^2\right]^2+2\ \|\mathbb{E}x\|^4$$
Is this a well known identity? How do I prove this?
notebook
|
PREMISE
Suppose we have an urn with $N$ balls, with $m$ white balls and $N-m$ black balls. At every iteration, a ball is chosen at random. If a white ball is chosen, we add an extra white ball and remove a black ball, so that there are always $N$ balls. If a black ball is chosen, then we simply put it back in the urn. ... |
I am running a Logistic Regression model on a very upsampled data (upsampled by repeating certain observations). It appears that the expected predicted probabilities of majority class for certain cuts in the data I use for training are not equal or close to the actual proportions of majority class in the same cuts i.e.... |
How to derive from formula 2 to 3?
|
Here is the link of my previous question. How to forecast a time series which is generated by accumulating data of every five minutes and reset to 0 by the end of the day
I am working with a seasonal data of which period is 288. Thanks to @Stephan Kolassa, I did find sarima can fit the data well. But since the predicti... |
Here is the problem:
Given $X, X_1, X_2, \ldots$, non-negative random variable with finite expectation and $X_n \to X$ pointwise and $Y_{n,K} = \min(X_n,K)$, we are asked to see if
a) $\lim_{K \to \infty} \lim_{n \to \infty} E(Y_{n,K}) = E(X)$
and
b) $\lim_{n \to \infty} \lim_{K \to \infty} E(Y_{n,K}) = E(X)$.
For the... |
For purely educational purposes, my goal is to implement basic Transformer architecture from scratch. So far I focused on the encoder for classification tasks and assumed that all samples in a batch have the same length. This means, I didn't care about any masking.
However, now I want to support masking. I like to thi... |
Currently attempting to interpret the results of my forecast using an ARIMA model that was applied to time series data (Dataset below). The forecast attempted is for a year into the future. The data was fitted to an ARIMA(1,0,1) model after using auto.arima to see what the best model would be.
To give a little backgrou... |
Something is not performing as expected with PyMC. I'm trying a simple Beta-Binomial conjugate prior model, trying to recover known parameters.
Control data
from scipy.stats import beta
import numpy as np
import seaborn as sns
def find_ab(x, search=range(2, 22)):
avg, score, best_a, best_b = 1000, 1000, 1, 1
fo... |
This is a question I have been trying to look into.
Consider Linear Regression - depending on how the model parameters (i.e. "beta" regression coefficients) are estimated (e.g. Ordinary Least Squares, Maximum Likelihood Estimation), we know that the model will have certain statistical properties.
For example, we can pr... |
What is the autocovariance of a GARCH process with a constant mean?
|
Is the autocovariance of an ARMA-GARCH process the same as that of the ARMA part of that process?
If this is too difficult/cumbersome to show, analysis of a special case like MA(1)-GARCH(1,1) or AR(1)-GARCH(1,1) would still be helpful.
|
Our TA in our stats class told us that when working with regression models, it is generally unadvisable to create a new predictor variable from a "lagged regression variable" (unless you are ready to consider very complicated regression models like "dynamic regression models").
As an example, suppose there are some stu... |
If I used arima(data, c(1,0,1)) in R software and get this result:
How should I write the equation for $ARMA(1,1)$ or $ARIMA(1,0,1)$?
Is the following correct?
$$
y_t=18.7083+0.8672y_{t-1}+0.4752\epsilon_{t-1}+\epsilon_t
$$
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.