instruction stringlengths 9 38.7k |
|---|
I am working on a research problem in which I compare an ARIMA, a lightGBM and an LSTM model across different hierarchical levels in a sales forecast setting (similar to the M5 forecasting competition scenario). Before I elaborate further on my setting I want to be upfront with my question:
How can I use the same valid... |
I don't know if this is the right forum to ask this, but anyway.
I don't have enough yearly data to perform a study on. Suppose I put weights on my monthly data to transform the monthly data into yearly data so the monthly data is now yearly frequencies instead of monthly frequencies.
Is it possible to assume that thes... |
Consider the following regression:
$$Y_i = \alpha + \beta X_i + \epsilon_i.$$
I have to test the following hypothesis:
$$H_0: \alpha = \beta = 0;$$
$$H_1: \alpha \geq 0, \; \beta \geq 0, \quad \alpha \;\text{or}\; \beta \; > 0.$$
In other words, I want to test the null hypothesis that both $\alpha$ and $\beta$ are equa... |
I am trying to figure out what $E[E[X|Y]|X]$ equals to. Could it be further simplified?
My initial guess is that it should be equal to X. However, I have no clue if it is correct.
I know $E[X|Y] = \int xf(x|y)\,dx$ and $E[E[X|Y]|X] = \int \int xf(x|y)\,dx f(y|x)\,dy$, but I am stuck here.
|
Consider a hypothetical world in which only three variables exist: X, Y and Z. X causes Y, but Z also causes X and Y (refer below). Assume that this model is complete, and no others factors exist in this world.
Consider an individual who observes measurements of X and Y only. On plotting the results, they find that th... |
The question goes like this: Use Jeffreys prior for Bernoulli distribution and find the prior for $\eta$ where: $$\eta(p) = \left(\frac{p}{1-p}\right) $$
So $\eta$ here is some kind of a transformation on the Bernoulli parameter $p$, and I know that Jeffreys prior $\pi(p)$, for Bernoulli distribution, is:
$$\pi(p) = \s... |
I have some data from a trial where I have two groups of patients (20 with ongoing disease and 20 without disease).
Both groups have some continuous data at three time points from a subjective outcome measure (on dizziness).
I would like to know whether the resolution of the disease has an effect on the subjective outc... |
I have a very general (and probably also quite naive) question: Let's say I have arbitrary data points in {x, y], when I plot all these and fit and/or filter them (with filter I mean something like a Chebyshev-filter, high pass and the like) and I use the fit or filter afterwards for further invesigations.
Would I risk... |
I am confused about the possibilities to predict the mean using quantile regression forests. In my understanding, quantile regression enables the prediction of the probability distribution, i.e. the prediction of quantiles. Some studies, however, use quantile regression forests to predict the mean in addition to the p... |
Given a symmetric positive definite matrix $\bf \Sigma \in \mathbb{R}^{n \times n}$, I want to find a matrix ${\bf \Gamma} \in \mathbb{R}^{n \times n}$ and a vector ${\bf m} \in \mathbb{R}^n$ such that if ${\bf X} \sim N(\bf{m}, \bf{\Gamma})$, then the random vector $\bf{Y} = (\exp(X_1), ..., \exp(X_n))$ has covariance... |
Consider a hypothetical discussion about a Lotka–Volterra experiment involving foxes and rabbits:
> Ernie: Species is categorical.
> Bert: In fact it is bimodal.
> Ernie: Can you specify the units of the axis you claim species is bimodal?
> Bert: Sorry no, because it is bimodal along several axes.
Ignoring whether ... |
Currently, I am trying to run the multinomial model Age = Gender to investigate the effect of Gender on the probability that my study animal belongs to a particular age class. I am not necessarily interested in the model parameters, but more in the model fit estimates. More precise I am interested in whether:
Estimates... |
I am reading a paper named "Clinical scoring system to predict hepatocellular carcinoma in chronic hepatitis B carriers" and confused about how to construct the prediction score by weights of significant variables.
The paper said :"A simple risk score was devised by using significant variables obtained from stepwise m... |
Given high-dimensional Monte Carlo samples $\bf{X_1},...,\bf{X_N}$ from a probability distribution $p({\bf x})$ in $\mathbb{R^d}$, I want to estimate a rectangular highest-density credible region for $p({\bf x})$. That is, I want the smallest-volume hyper-rectangle (or "box")
$[{{\bf l}, {\bf u}]=\{{\bf x} \in \mathbb{... |
I was comparing results that I generated in R for complex survey analysis using the survey package to results from SPSS using the complex samples analysis add-on. The sample size is large ~ N=5500
This is the R code:
svy <- svydesign(ids = ~cl1+houseID, strata = ~strata_study, weights = ~wt, data=data_in,nest = TRUE, ... |
Can someone help with a sample size analysis question?
Study design:
I have a sample randomly assigned to answer 1 of 5 different questions that vary in difficulty (1 - Easy -> 5 - Hard). The question is true/false question (binomial).
I plan to conduct a chi-square test of independence to see if there's a relationship... |
A binary logistic regression outcome variable is defined with reference to an age criterion. The binary outcome is 'Early death'=1 -- meaning the person died (in a follow-up observation period) before reaching age 65. All subjects have the same observation period. At the start of the observation period, the age of all ... |
Suppose I observe random $y_{i,1}, y_{i,2}$, and I wish to estimate the correlation between them.
However, the $y_{i,j}$ are observed subject to some sample selection criterion.
That is,
there are some observed covariates $x_{i,1}, \ldots, x_{i,k}$ and an unobserved variable $z_i$ such that
we only see the $y_{i,j}$ if... |
I have longitudinal data across several time points. At each time point, participants completed an online test up to 3 times (i.e., measurements were completed 1-3 times at each timepoint). The number of times a participant repeated the test was optional, with participants generally completing the test more times at ba... |
I am looking for help on correlated systematic errors, and their meaning. I have some quantities $x,y,z$ which determine a function I need to calculate. These 3 quantities are determined by a measurement, and the uncertainties on the measurement translate into an uncertainty on the function they are used to calculate.
... |
I have data that consists of multiple variables. One of those variables, let's call it A, is categorical. The rest of the variables (i.e., B1, B2, ..., B12) are count data. I want to determine whether A affects any one of the count variables. To do this, I implemented the following procedure in R,
for (i in colnames(Co... |
If I am running a regression of the following form:
$y_{i,t} = \mu_i + \beta_1x_{i,t} + \epsilon_{i,t}$
Where i indicates group, t time, and $\mu_i$ are a set of fixed effects for each group, and x is my independent variable of interest.
Say I estimate this model to control for time invariant characteristics. Now, if w... |
I have conducted exploratory factor analysis with psych and confirmatory factor analysis with lavaan (following the code on ch 15 of this book: https://doi.org/10.1515/9783110786088) on a dataset. Everything seems fine with the analyses, the model fit is good (I am adapting a previously used scale to my dataset), and a... |
If I have a set of $N$ independent samples from a probability distribution $P(X)$, $X_i\sim P(X)$, then I know from the central limit theorem (assuming the distribution is well behaved) that the moments of the sample distribution $\overline{X^k}\equiv \frac{1}{N}\sum_i X_i^k$, will each individually be normally distrib... |
I have the output (shown below) from the GLM with Gamma(link = "log").
The outcome (dependent variable) is strictly greater than 0, and the group variable (predictor) is binary (either 0 or 1).
In this case, is it right to conclude as follows?
Group 1 reduces the mean outcome by a factor of exp(-0.04) = 0.96.
The ex... |
Let's suppose
$$E\left(\frac{1}{x}\right)=\int_{0}^{\infty}{M_X(-t)dt}$$
Could you please help me to find
$$E\left(\frac{1}{x}\right)$$ where
$$X \sim\textrm{Gamma}(\alpha, \beta)$$ and $$E(X) = \alpha\beta~?$$
|
Let's say that medication A significantly increased the patients' health on average, but so did medication B (for independent sets of patients).
Obviously both medications increased the health of the patients on average, but is there a statistical test that could test whether the increase of one of the medications was ... |
I’m looking at a data set where 15 properties undertaking new management practices are sampled over three seasons. Measurements taken include variables such as vegetation cover and canopy cover. Quadrats have been randomly allocated across these properties, and the number of quadrats per site is related to property siz... |
I'm new in NN and my math is not that good. I try to do manual calculation using NN model. I already know and try to calculate the feedforward and backward one by one using the formula. but when I try to calculate the backpropagation in matrix form, I am confused how to write it, especially in dE/dV. I have NN with arc... |
The Fisher information is given by
$$J(\theta) = -E\left[\frac{d^{2}\log p(x | \theta)}{d\theta^{2}} \bigg|~\theta\right]$$
To consider the Fisher information for a binomial parameter:
Let $p(x | \theta) =\binom{n}{x} \theta ^{x} (1 - \theta)^{n - x}$ where $\binom{n}{x}$ is the binomial coefficient.
The log likelihood... |
I created boxplots for 5 traits to show the spread of true age for each variant of each trait in both samples between 2 observers:
A professor suggested that I should use scatterplot of Price vs Kim with symbols representing certain age ranges. Would this be a better choice?
|
I am struggle in the variance associated with angle variance. For example, I have
$$\theta= \operatorname{angle}\left(\frac{1}{N}\sum_{n=1}^N r_n e^{i\theta_n} \right),$$
where both $r_n$ and $\theta_n$ are independent variables.
Now how can I obtain the variance associated with $\theta$?
|
My question is related to the autocorrelation present in the mean-model (which is an ARMA process), which will be used in a GARCH model. Is it ok to have autocorrelations in the residuals of the mean-model, given that it will be used in a GARCH model, which by robust standard errors takes care of the residuals in the v... |
My model generates numbers, say x= 0.2719094. In the output, this is supposed to be an integer (that follows Poisson distribution, which is accounted for in the generation) mostly 0s, some 1s and a little of 2+. My idea is to round this x= 0.2719094 to one of the 2 closest integers with uniform weighting. These numbers... |
I have some confusion around what the null hypothesis should be for an A/B test. When we decide to do an A/B test and proceed to perform a sample size calculation. Let's say we work with the following assumptions, a conversion baseline of 2% and a relative MDE of 50% (80% power, 5% alpha, 1 sided test) and use somethin... |
I have begun studying survival analysis and am using R packages survival and survminer. Verbal descriptions of statistical concepts can be “sloppy” and I’m trying to understand these concepts using crystal-clear language. I’ve worked through a Cox Proportional Hazards model example using http://www.sthda.com/english/wi... |
In a reflective measurement model, the number of degrees of freedom is calculated according to the number of information (covariances / variances) minus the number of parameters to be estimated (factor loadings, variance of the latent factor, error variances of the manifest variables).
See Eoin's example below. Here I ... |
I would like to use slope values in PCA. The problem I face is that the slopes I calculate per group could be within different ranges of values. We know that it is important to normalize your data before PCA discussed here: Why do we need to normalize data before principal component analysis (PCA)?. So my groups could ... |
Question: "Is there a difference in hearing quality between the left and right ears?"
I'm testing for a difference in an interval variable (1-12 scale, hearing quality in each ear) between two paired samples (left ear/right ear).
Both samples have a highly skewed distribution (suggesting Wilcoxon).
However, a histogram... |
I'm fairly new to statistical analysis, but was told to use a multilevel model for my research purpose. I am interested in investigating whether attitudes on the EU integration are different for left and right wing individuals in countries with stronger and weaker welfare state. For this I would like to use an interact... |
Given $X_1 ... X_n \sim \textrm{Exp}(\lambda)$, I found the MLE : $$\hat{\lambda} = \frac{1}{\bar{X}}$$
Now I need to find confidence intervals for: $$\eta = \lambda \cdot \log(\lambda)$$
To do so, I need to find the standard error for $\eta$, but first, I'll need the standard error for $\lambda$, and I found that via ... |
I have seen many links about MA for batch normalization but nothing answered my question.
In Batch normalization, you get means and variance for each mini-batches in the training process. And the default process, you calculate through the moving average.
Those mini-batches are chosen randomly so there is no higher prio... |
Let $X \sim \mathcal{N}(\mu, \sigma)$ be the model for a normally distributed population,
described by the probability density function $f_{X}(x; \mu, \sigma)$.
We can denote $\mathbf{X} = (X_1, X_2, \ldots, X_n)$ a random sample of size $n$,
and $\mathbf{x} = (x_1, x_2, \ldots, x_n)$ is a particular sample.
We know th... |
It can be seen that the following random variates have the same distribution:
$\frac{X_1 + X_3}{X_2 + X_3}$, where $(X_1, X_2, X_3) \sim \text{Dirichlet} (\alpha_1, \alpha_2, \alpha_3)$
$\frac{Y_1 + Y_3}{Y_2 + Y_3}$, where $(Y_0, Y_1, Y_2, Y_3) \sim \text{Dirichlet} (\alpha_0, \alpha_1, \alpha_2, \alpha_3)$
$\frac{Z_1... |
What is the multivariate distribution of $(X_1, \ldots, X_n | X_1+ \dotsm + X_n = y)$, given $y$ and that $X_i$ is (otherwise; without being given $y$) unconditionally independently normally distributed with mean $\mu $ and standard deviation $\sigma$?
And, to the task at hand: How do I simulate random drawings of $X$ ... |
I am performing $K$-means clustering on a dataset consisting of $n$ observations and $d$ variables, and I'm trying to determine the optimal number of clusters. Is there a test that can determine the statistical significance of adding another cluster?
I have considered the $F$-test with the following $F$-statistic
$$ F ... |
Assuming we have three random variables $X$, $Y$, and $Z$, and we want to estimate a least squares regression plane of the form $Z = a + bX + cY$. We do not know the individual observations, but we know all the means $\mu_X$,$\mu_Y$,$\mu_Z$, variances $\sigma_X^2$,$\sigma_Y^2$,$\sigma_Z^2$ covariances $\sigma_{XY}$,$\s... |
Andrew Gelman recommends placing weakly-informative $N(0, 1)$ priors on unknown parameters fitted in Stan and often does so in his own models. In Stan, the Normal distribution is parameterized by the mean and the standard deviation (not the variance).
I'm looking to fit a binary logistic GLM with at least 8 predictors.... |
Suppose that the discrete random variable $X_{n}$has a geometric distribution given by
$$f_{X_n}(x_n)=P_n{(1-P_n)}^{x_n}$$ where $$x_n={0,1,2,3,}$$ and $$P_n\ =\ \frac{\lambda}{n}$$ for $0<\lambda<n$. Find the limiting value of the moment-generating function of $Y_n= \frac{X_n}{n}$ as $n\rightarrow\infty$ and use this ... |
I'm running into a problem after trying what I thought would be a simple analysis. I have 47 sites where I measured a variety of habitat characteristics (canopy cover, habitat type, percent of bare ground, elevation, etc.). The habitat type consists of 4 categorical variables, canopy cover is continuous, and then there... |
I was watching Veritasium's Would You Take This Bet? video. In a part of the video Derek asks people whether they would accept the bet in the case of each true guess for flipping the coin the person would win $10$ dollars and for each true guessing this $10 $ dollar will increase twofold as $10+20+40$... etc. But for e... |
I'm using PSM with an Epanechnikov Kernel and a bandwith of 0.06.
I'm confused about which observations are matched. I thought it was (broadly) like a wheighted radius matching, where every control observation within a 0.06 propensity score distance from treatment unit T1 receives a weight and is matched.
But some sour... |
Assume the following linear relationship:
$Y_i = \beta_0 + \beta_1 X_i + u_i$, where $Y_i$ is the dependent variable, $X_i$ a single independent variable and $u_i$ the error term.
According to Stock & Watson (Introduction to Econometrics; Chapter 4), the second least squares assumption is that data should be i.i.d.
I... |
I am analyzing an anomaly event of daily stock returns. For many different stocks (>1000), I do some analysis to identify a day where I observe this anomaly.
To evaluate the effect of this anomaly, I am comparing the distribution of returns during a fixed period (e.g. one year) before and after the event date. For exam... |
Hi I'm trying to spatially analyse two point patterns in relation to each other: macrophage cells and tumour cells. The images I have generated coordinates from shows that the macrophages group towards the tumour cells but my graph from the imhomogenous L-cross type function shows the opposite. I don't know where I'm g... |
I am not really sure how to describe it with the correct mathematical terms. If there are any questions, I will try to explain further.
I have several instances of a group of proportions. One could say I have several pie charts, where each pie chart has the same kind of pieces (classes) and the pie's pieces always sum ... |
I want to calculate the sample size $n$ for a two-sided t-test with the following values:
alpha = 0.05
power = 0.8
effect size = 0.8
This is the code I tried in Python:
n = statsmodels.stats.power.tt_ind_solve_power(effect_size=0.8, alpha=0.05, power=0.8)
print(n)
This is the code I tried in R:
result = power.t.test... |
Let's assume that there exist a table ("Table A") with several rows and columns.
Each cell of the last column shows the sum of all values of the respective row, each cell of the last row the sum of all values of the respective column.
Let's make an example to be clear. The actual tables I have are of 19 rows and 7 colu... |
I am running binomial GLMMs in R to determine whether species presence (binary) on a hydrophone is different between seasons (i.e. spring, summer, fall, and winter) and photoperiods (i.e. day, night, dawn, and dusk). My models include a temporal autocorrelation structure with Group given as a single value since I am us... |
I try to use the definition of sufficient statistic to prove that
Suppose that $X_1,\dots, X_n$ is an iid random sample from $X\sim \mathrm{Bernoulli}(p)$. Show that $T=\sum_{i=1}^n X_i$ is a sufficient statistics for $p$.
The definition of sufficient statistics is that if the conditional joint distribution of the sa... |
Let $L(\theta;X)$ denote the log-likelihood of a model and I maximize the following to estimate $\theta$,
$$
\arg\max_{\theta}L(\theta;X)+\lambda\theta^2
$$
If $\lambda$ is 0, then the asymptotic distribution of $\theta$ is normal under suitable regularity conditions. What is the case when $\lambda$ isn't zero? I think... |
I conducted a survey of N=88 students.
I asked a question:
'What type of goal setting do you prefer?'
A: online
B: paper-based
C: no preference
Responses
A: 58
B: 9
C: 21
I will display this result in descriptive statistics, but I want to check for the probability this result in favour of online goal setting came about... |
I am studying forward-backward algorithm following the wikipedia page. I have little background in statistics and have managed to understand (hopefully) most part of the algorithm. However the scaling factor introduced in the Forward probabilities section is confusing me.
It says from the second last equation that the ... |
I have been pretty confused about maximum likelihood as expressed by my question here. But this question is not about MLE.
It occurs to me my confusion may have been because the likelihood function does not return likelihood. It returns probability density ( if I understand correctly).
So why is it called the likelihoo... |
I was wondering if it will violate any assumptions of linear mixed effects (LME) models if I were to include interaction terms between the covariates and IVs in my model.
For example, the model that I would like to specify would be:
model 1: lmer(DV ~ A / (B*C) + cov1 + cov2 + cov3 + cov4 +
B:cov1 + B:cov2 + B:cov3 + ... |
I am training an vanilla 5-layers LSTM. My task is trying to compare two models between without (baseline) and with the additional features (compared model). However, I found out that the compared model only surpass the baseline in a certain way of fine-tuning.
For example, I set up learning rate as 0.01, the compared ... |
In the regression model
$$y= x'\beta + u, \quad x = (1, x_2,...,x_K)$$
with
$$E[u |x]=0,$$
we know that it implies: $E [u] = 0$ and $cov(u,x_j)=0$, for $j=1,...,K$.
I think that the reciprocal is not true. Thinking geometrically, they seem equivalent, but I can't come up with a counterexample!
Do you have a counterexam... |
I have temperature-related time daily time series. I plot the time series and found that the plot have seasonal variations. Thus I differenced the series.
When I did Dickey-Fuller test for both temperature and differenced temperature using ur.df, the results say that both time series are stationary.
Dickey-Fuller test... |
Suppose we have three features $x_i \sim N(0, 1)$ for $i=1,2,3$. We then use Bayesian linear regression with interpolant $f(x, w) = wX$, such that we model y as $N(f(x, w), \beta)$, i.e., with a Gaussian likelihood. Then we set a zero mean isotropic gaussian prior on the parameters $w$ such that this prior is infinitel... |
Consider the following latent variable model for a potential Elo rating with additional player type.
Each player has a performance level $r$ and a playing type $\theta$. Assume that a game between two players can be modelled as follows
Compute the difference in playing styles $$d_1 = \frac{\theta_1 - \theta_2}{2 \pi} ... |
As far as I remember, it is possible to convert a multinomial logit model into a binary logit model using restrictions on parameters.
For example, suppose we have three alternatives, say A, B, and C.
Then, the choice probability in a multinomial choice model is
$$\Pr[J=A|W]=\frac{1}{1+\exp(\alpha_b+W'\beta_b)+\exp(\alp... |
A proportional hazards model $\lambda_i(t|x_i) = \lambda_0(t)\exp\{x_i^T \beta\}$ can be approximated using a piece-wise constant hazard, where the duration is partitioned into intervals and the baseline hazard is constant within each interval. In these notes, for example, it is shown that the death indicators $d_{ij}$... |
I have 5 years 15 min interval of electricity demand time series with a datetime index and a target variable. Don't have any other data to use. I'm curious about your experiences. In general how far is it possible to accurately predict the 15 min electricity demand? Our client wants 1 year prediction, but as far as I ... |
For any given value of x, say $X$, the distribution of y is called a y-array. Which is of course the conditional distribution of y given that $x = X$, which looks like:
$$\bar{y}_X = E(y|X)$$
which will be a function of X, and vary with it. However, what does it mean to say - by considering the x-array for $y = Y$, we ... |
Is there any theoretical work on how to measure posterior collapse?
One can measure decoder output, but it is not clear if the degradation (if any) happened due to posterior collapse or due to failing to match the data distribution. Therefore I'm interested in measuring "how informative latent variable z is". Thank you... |
I am having some doubts related to the PAC learning. I understood the main idea, but with the explanation found in the book "Understanding Machine Learning" I couldn't understand some ideas. The author starts by defining some sets, being H the possible models, h the selected model, D the true distribution of the data i... |
I'm running into a problem after trying what I thought would be a simple analysis. I have 47 sites where I measured a variety of habitat characteristics (canopy cover, habitat type, percent of bare ground, elevation, etc.). The habitat type consists of 4 categorical variables, canopy cover is continuous, and then there... |
Inspired by Richard McElreath's "Full Luxury Bayes" in his Statistical Rethinking course, I wanted to implement a "Full Luxury Bayesian Marginal Structural Model".
Briefly: MSMs are a two-step model for the average treatment effect. First, you regress the (binary) treatment $A$ on confounders $X$; second, you compute t... |
Suppose I fit a generalised linear model with a binary response on multiple predictors with a logit link. When calculating the inverse of logit, I have the following exponential formula:
$$\frac{e^{\theta}}{1+e^{\theta}}$$
I have been taught that $\theta$ can be represented by the following $\beta_0+\beta_1x_i$, suppos... |
I know that theoretically stacking multiple linear layer does not make any sense, as multiple affine transformations are no more powerful than a single one, however I heard many DL practitioner saying that multiple linear layer speed up the learning of a network
However, I found no documented case of this in the litera... |
The plot below models a sample of departure delays of flights, the x-axis is minutes delayed. The mean is about 10 (red line) and std is 36. The distribution has a very long tail (some flights are 800 minute delayed). The blue line is a fitted normal (mean=10, std=36) and the purple distribution is a shifted Poison (su... |
My team is conducting propensity score matching with 1:1 nearest neighbor replacement for a case-control healthcare study.
While we're obtaining match rates of 80-90% with good covariate balance, we have noticed a handful of treatment subjects are matched to 20+ controls.
Is it acceptable to manually trim the number of... |
I am trying to recover the formula of my regression model. I build the polynomial regression model using glmer(optionval ~ nt1 + nt2 + nt3 + section:(nt1+ nt2+ nt3)+(nt1-1|participant.id),...). "nts" are time based natural polynomials generated using poly(..., raw=TRUE) and "section" is a categorical factor consisting ... |
I have taken hourly-based wind power data, by taking its periodogram after making it stationary in R. It gives me four seasonal patterns at periods of 24, 12, 08, and 06, as shown in the figure below.
Is it possible to have sub-hourly seasonality in my wind power data?
The data is given as follows:
|
I would like to perform multiclass segmentation on DRR(digitally reconstructed radiographs) by using Unet network. For binary segmentation, unet works well (dice score over 0.93)
What I’m trying to do is multiclass segmentation to segment multiple bones.I looked the topic up on Kaggle and different sources, but those b... |
I tried looking for my specific question, but I only found partially related questions here, here, and here. I think my question is much simpler than what was asked and answered in these queries. I'm working through Statistical Rethinking by McElreath and there is a portion where they explain grid approximation for Bay... |
I'm working on an unassessed course problem,
The file Pas-mile.txt contains the monthly numbers of passenger miles travelled on US airlines for each month between January 1960 and December 1977. Find an ARIMA model for the series, carrying out appropriate diagnostic checks.
I've put the data at the bottom of this pos... |
Propensity score matching techniques can be assessed and compared with covariate balance metrics like the standardized mean difference (SMD).
However, SMDs don't account for varying matching rates.
For example, how would you compare Matching Technique A, which achieves 95% matched rate but low covariate balance (SMDs i... |
While studying univariate time series analysis, I got curious about how I can apply the AIC metric to determine the appropriate order for an ARIMA model.
As far as I've investigated, in many texts ARIMA models assume the error terms to be white noise, not Gaussian white noise, which means that there is no distributiona... |
I am using the utilities package in R to conduct the DES for a forecasting project. My problem involves forecasting the service requirement for patients. On average five patients get admitted to the ward daily and there are 46 beds in a ward.
In order to do this simulation I have set K=46 (since I believe K = users/tot... |
I am computing forecasts with ARDL models of different lag length across both dependent and independent variables.
Regardless of the lag lengths, the actual observations for the dependent variable lag the forecast values consistently by one time period (a quarter in this case).
What could be a possible explanation for ... |
Update prior to posting
So I had just finished writing my post and got suggested "time series segmentation" for my tags. Then I looked it up and it seems like it is the thing I need to do. I did some reading just now and found some options such as Hidden Markov Models as well as a python toolbox (seglearn) that seems l... |
I'm currently submitting a paper about elements in soil solution. Reviewers told me to justify the conclusion by the data, and I need some of your unlimited knowledge.
Here is a plot of $\textrm{Al }$ present in soil solution over $6$ years. My conclusion to be supported is that during winter (trees dormancy, the purpl... |
Suppose we have a posterior sample of parameter $\theta$ obtained by fitting some Bayesian model to $n$ data points.
In black is the empirical posterior density and in red is a normal approximation to the posterior.
Is there a way to write the normal approximation to the posterior in terms of $n$?
(My goal is to have ... |
I have fit a GAM with two continuous independent variables and one discrete covariate with two levels ("gray" and "brown"). All variables are scaled and the model runs fine:
mod3 = gam(cont1 ~ disc1 * cont2 * cont3 +
s(cont2, cont3, by=disc1, k=4),
data=data_so)
summary(mod3)
Family: gaussian ... |
Some context : I work on insects and most of our tests are mortality assays : we subject groups of insects, in replicates (usually 5-6), to insecticides and record the mortality 24h later. Since we prepare our own assays, we include one or two susceptible strains in each one : those strains should have a 100% mortality... |
I wonder who first suggested and defined weak stationarity, and which paper it is. It seems that many paper using it as given, but I'm just curious of how it is defined and proved, and the discussions over the definition.
|
I'm trying to determine whether it's appropriate to use the Cochrane-Armitage trend test on this set of data? I don't have any specific hypotheses I need to investigate, just to choose an appropriate test to look for a significant difference.
I've attached the contingency table. There is an observed trend in the latter... |
I have the following problem:
Here is my approach:
With the activation function: $F(x) = x^2 + 2x + 3$, we can calculate the activation of the two units of the second layer by: $a_1^2 = F(w_{13}\cdot x_1 + w_{23}\cdot x_2) = F(2\cdot 1 + (-3)\cdot (-1)) = F(5) = 38$
$a_2^2 = F(w_{14}\cdot x_1 + w_{24}\cdot x_2) = F(... |
My current work involves asking subjects from different groups to pronounce multiple words, and I am interested in understanding the relationship between word duration and groups.
In R syntax, this can be expressed as:
Duration ~ Group
However, since there is a random effect on the durations that is unique to each subj... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.