instruction stringlengths 9 38.7k |
|---|
Hi,
The above image is from "Latent Variable Models" by Loehlin and Beaujaean.
Given the model above the structural equation for Y is, Y = cX + dZ + e*XZ + W.
So it's an interaction model.
My question is as follow.
Why is the covariance betwen X and Z (i) included in the model despite the presence of the interaction v... |
I couldn't grasp what it refers to exactly so I would like to understand how we use it:
from MLE, Score Vector is:
$$
S(\theta;y) = \frac{\partial l(\theta;y) }{\partial \theta}
$$
$l$ comes from the log version of the likelihood function and this score vector has an asymptotic distribution with Information Matrix whic... |
I'm confused with the concept "stationarity".
Reference: https://otexts.com/fpp3/stationarity.html
I believe random walk is non-stationary and change (difference) in random walk is stationary. The characteristics of random walk are these below:
long periods of apparent trends up or down
sudden and unpredictable chan... |
Continuing from my previous question here.
Furthermore, I intend to perform the chi-squared test and plot QQ-plots to test the hypothesis $H_0:\lambda=1$. I do not get to see the actual data though; I have only the test result as well as the plot. I want to believe that the data may actually be generated from a geometr... |
I am trying to fit a mixed model for repeated measures. My experiment has subjects divided into two groups, with the dependent variable (DV) measured twice for each subject, like so:
subjectID
time
group
DV
101
pre
subject
24
101
post
subject
85
102
pre
control
32
102
post
control
24
etc
...
...
...
... |
According to adf test, the data set is non stationary but the best arima model is (1,0,2). However, non stationary data set must have d value differ from 0, right?
|
I have been reading around ridge regression and have come across two forms of $\hatβ$ in textbooks. Am I correct in believing that $(X^TX+\lambda I)^{-1} X^TY$ is the same as $RSS + \sum_{j=1}^{p} \beta_j^2$? Also, if they are equivalent, how is the best way to picture this?
|
Basically from what i learned, I can use F-test to test for joint hypothesis. But if we have a regression model $y = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3$ , and the null hypothesis is $\beta_1 = \beta_2, \beta_3= 0$, what test statistics can we use for this simultaneous test?
|
If one variable is correlated to other 73% or between (70% to 75%) does it should be considered as multicollinearity and shall I exclude one of the variable from linear regression model ?
I will be very thankful if you also provide justification of your answer.
|
I am fairly new to (the eye-opening world of) Bayesian inference and machine learning and I am stuck at a inference problem that is important to my current research, where I want to introduce Bayesian thinking into the field.
I want to estimate a the psoterior for a variable V that must remain positive. Now, first i wa... |
Our training data will either be linearly separable or non-linear separable. In both cases the decision boundary is defined by:
$$ f(\mathbf{x}) = \mathbf{w} \cdot \mathbf{x} + b = 0 $$
and we classify them based on the value of $\sigma(\mathbf{w} \cdot \mathbf{x} + b)$. If this value is greater than 0.5 then the we cl... |
I have a small data set which (a) is always positive and (b) is showing a right tail on the histogram. I wondered if it could be log-normal and tested for this, but to no avail. I am now wondering if it is Rayleigh distributed. Is there a standard test (either quantitative or qualitative) that I can use, preferably ... |
Why do anova(lm( )) and summary(lm( )) (in R) yield different p-values for a factor f with two levels?
The model is y ~ f + c, f has two levels (unequal sample size) and c is numeric.
set.seed(123)
df <- data.frame(
y = rnorm(1000),
f = sample(c("a","b"), 1000, replace=TRUE, prob=c(.2,.8)),
c = rnorm(1000)
)
fi... |
I have 3 independent variables (eg - weight, height) and want to predict the change in another parameter (dose) with the change in the independent variables.
The data is collected from patients who are undergoing treatment for cancer. The collected data include the weight, height and other patient parameters. Based on ... |
I have a dataset with skewed distributions describing different samples' total variation. I know these distributions are a sum of a normal distribution (analytical variation, which I know) and a skewed distribution (biological variation, which is unknown). So I am looking for a general solution to approximate the biolo... |
I am given a model and need to calculate the unit-root of $X_t$ but it seems that there is no unit-root.
The model is given: $X_t = (x_{1t},x_{2t})'$
$$\Delta X_t = \alpha \beta ' X_{t-1} + \epsilon_t $$
\begin{align}
\alpha &= \begin{bmatrix}
-0.50 \\
0.25
\end{bmatrix}
\end{align}
... |
I am doing model selection and really confused about why the significance of the coefficient is different from ANOVA, which the coefficient is significant using the summary function, but when I put it into ANOVA, it shows it is not significant. Could you tell me which one should I follow.
Here is my code:
model1 = lm(I... |
Estimating the following model in Stata helped me get the direct effects. This is a set of three models, a beta regression with the final outcome as the dependent variable, and two mediating negative binomial regressions. I've not been able to write the same model using lavaan or mediation packages in R, because lavaan... |
Suppose $p(x) = \lambda e^{-\lambda x}$. However, our probability of observing a given sample of $x$ (denoted $z$) is further proportional to $x$ itself, i.e., $p(z\mid x) = \lambda e^{-\lambda x}$. What is $p(z)$?
In R, I can characterize the distribution empirically:
n = 1e5
r = 0.1
x = rexp(n,r)
z = sample(x,n,repla... |
I've been reading through lots of university lecture slideshows and various websites describing belief propagation. I'm not a math person, so it's really tough to understand the formulas and they don't always seem consistent. For instance, some don't seem to mention conditional probability tables. I've really been tryi... |
Let $Y=a(X-b)^3+\epsilon$ where $\epsilon \sim N(0,\theta^2)$ is independent of $X$.
I know that the conventional regression function of $Y$ given $X=x$ is expressed as
$$f(x)=\mathbb{E}[Y|X=x]$$
What other ways can this regression functions be expressed as?
Namely, is $f(x)=a(x-b)^3$ also a valid regression function o... |
On the BorutaPy GitHub page, the authors state: "We highly recommend using pruned trees with a depth between 3-7" (https://github.com/scikit-learn-contrib/boruta_py). What justification is there for using a depth in this range? I've seen this recommendation reiterated many times by others citing the BorutaPy authors wi... |
Assuming that the design matrix is of full rank, in non-degenerate cases of the logistic regression model, does the maximum likelihood estimator always exists and is always unique?
It would be really helpful if someone could provide an example or a resource link.
|
Going through the top answers in How can top principal components retain the predictive power on a dependent variable (or even lead to better predictions)?, I understand that doing PCA and keeping the top k components may or may not improve classification performance of some supervised learning algorithm. For decision ... |
I have an ANOVA model with 3 effects (A, B, C) with (a, b, c) levels each and 3 two-way interactions (AB, AC, BC). Within each cell there are n replicates. How to calculate number of degrees of freedom associated with each sum of squares, residuals, in particular?
I have two ideas:
It is either the difference between ... |
I'm running a survival analysis on a sample of 26 patients, divided into 2 groups according to certain variables and different times ( because there is censored data). I couldn't perform the log-rank test because of the small sample size, so I'm thinking of performing a Fisher's exact test.
What should be the best test... |
Consider a distribution with parameter $\lambda$ that has density
$$f_\lambda(x)=\frac{x^4}{24\lambda^5}e^{\frac{-x}{\lambda}},x>0$$
Let $X_1,...,X_n$ be $n$ independent random variables drawn from this distribution.
I test the hypotheses $H_0:\lambda=1$ vs $H_0:\lambda≠1$ by using the test
$$\psi=\textbf{1}\big(|\bar{... |
If the predictor $X$ in a simple linear regression $Y = \beta_{0} + \beta_{1} X + \epsilon$ is measured with error, the OLS estimator for the predictor's coefficient will be biased towards zero. What is the corresponding effect on the posterior of $\beta_1$ in a Bayesian setup? Is there (only?) an analog effect on the ... |
I was wondering if there is a fast heuristic algorithm for performing grouped stratified dataset split on a multilabel dataset. Question originally posted on Data Science stackexcahnge here.
Stratification is usually performed to ensure balanced label distribution in train, val, and test splits. This post describes how... |
cox.zph(coxph(Surv(time, DEATH_EVENT) ~ age+anaemia+creatinine_phosphokinase+strata(ejection_fraction)+
serum_sodium+serum_creatinine+hypertension, data=HF))
What exactly am I doing when I am applying strata() to ejection_fraction?
From some research, I've found that stratifying simply creates groups o... |
I am testing for proportional hazards in my model.
Time-Dependent Model
cox.zph(coxph(Surv(time, DEATH_EVENT) ~ age+anaemia+creatinine_phosphokinase+time:ejection_fraction+
serum_sodium+time:serum_creatinine+hypertension, data=HF))
chisq df p
age 0... |
coef exp(coef) se(coef) z Pr(>|z|)
hypertensionPresent 0.417717 1.518491 0.209708 1.992 0.0464 *
age 0.042424 1.043336 0.008693 4.880 1.06e-06 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
exp(coef) exp(-coef) lower .95 ... |
We were studying linear regression:
$$Y = \beta_0 + \sum_i \beta_ix_i + \varepsilon.$$
We were then doing hypothesis tests:
$$H_0\text{:}\; C\beta=0 \\H_1\text{:}\;C\beta \neq0.$$
Under the assumptions that:
Data follows GLM $\mathbf{Y} = \mathbf{\tilde{X}}\beta + \varepsilon$, with rank$\left(\mathbf{\tilde{X}}\right... |
I am trying to understand the difference for training RSS and test RSS for smoothing splines e.g.
$$\hat{g}=\arg \min_g \left(\Sigma_{i=1}^{n}(y_{i} - g(x_i))^2 + \lambda \int [g^{(m)}(x)]^{2}dx \right)$$
for $m\in\{0,1,2,3,4\}$ which one has a bigger training RSS and test RSS, as $\lambda\rightarrow\infty$, and when ... |
I just wanted to verify that this is true.
Say the .95th quantile of a random variable, $X$, is $q$. Then the .95th quantile of $\frac{X}{k}$ is $\frac{q}{k}$ where $k$ is a constant.
I am assuming this property holds.
$$
P(X*k > x) = P\left(X > x * \frac{1}{k}\right)
$$
|
This is a slightly modified version of a programming question that I asked in that forum and was redirected here to get a better sense of the statistics involved.
https://stackoverflow.com/questions/74839826/how-can-i-pass-a-time-series-consisting-of-both-mean-and-se-to-the-predict-funct/74840556?noredirect=1#comment13... |
I have clinical data from about 300 patients with repeated measures/observations of psychological distress over time. Psychological distress is measured as a continuous variable, but could be converted into a binary or categorical variable if necessary. About 60% of patients have only 2 observations and the rest have 3... |
I wanted to write the mathematical equation for my model below. It is a glm that tries to explain the relationship between the sum of observed biomass of several replicas at different observation sites as a function of distance from a given point, plus the random effect of the sites. I also use the Gamma family. I used... |
I am trying to fit an AR/ARIMA model on electricity data on hourly prices during a almost three year period, I am following the guidelines in Hyndman, R.J., & Athanasopoulos, G. (2018) to do this. This post is about understanding the histograms, ACF and PACF, and what the Differencing do to these graphs.
My prices are ... |
I have this study design: two groups (A & B) measured in 3-time points (pre, follow-up & post). I thought that a linear mixed model effect was the preferred option because I do have missing values at random instead of using repeated measures ANOVA. Here is an example of my model:
m0<-lmer(VD ~ Group*Time + (1|ID))#line... |
I have the following pdf with support $x>0$:
$$f_{\mu}(x)=\frac{1}{\sqrt{2\pi x^3}}\textrm{exp}\left(-\frac{(x-\mu)^2}{2\mu^2x}\right)$$
This belongs to the exponential family, and I write this in the following form
$$f_{\mu}(x)=h(x)\space\textrm{exp}\left(\spaceη(\mu)T(x)\space-B(\mu)\right)$$
What I have thus far is ... |
Let $X_1,\dots,X_n\overset{iid}{\sim}F_X$ be random variables. Let $b\in(0,\infty)$, and consider the transformation:
$$
Y_i=bF_X(X_i)\\
i=1,\dots,n
$$
How do I calculate the order statistic $Y_{(n)}?$
|
I'm using scipy's optimize to fit two Gaussian distributions to my data. I expected the posterior likelihood of belonging to the rightmost class to start from 0 before the distributions cross, and go to 1 from that point.
However, the output looks like this,
so the probability of belonging to the second class is high ... |
I am working on some data that I would like to analyze through a generalized linear mixed model regression and a stepwise backward selection of variables directly on that model.
I use the GLMERSelect R package which seems developed exactly for this purpose. In this function, you specify the response variable (responseV... |
Given a softmax output layer, what does it mean to "follow the gradient"? Usually that would consist in "increasing the output" but obviously the softmax has no notion of "increasing the output" since it's normalized
So, I was wondering what actually happens following the gradient of a Softmax layer, and my take is tha... |
I want to restrict values s.t. I get $\theta = (\alpha, \beta) =g(\theta_1, \theta_2)$
with the following restrictions.
$
0\leq \alpha \leq \beta <1
$
I know the correct answer should be $\beta = (1+\exp^{-\theta_2})^{-1}$ and $\alpha = \beta(1+\exp^{-\theta_1})^{-1}$.
However, when I make the system of equations, some... |
I've seen quite a lot of conflicting views on if one-hot encoding (dummy variable creation) should be done before/after the training/test split.
Responses seem to state that one-hot encoding before leads to "data leakage".
This example states it's industry norm to do one-hot encoding on the entire data before training/... |
I have customer purchase history data which has variables like recency, frequency and monetary value.
Like any business, most of our revenue comes only from 20% of the customers. So, our distributions for each of the variables are skewed.
As I intend to use them in k-means algorithm for clustering, I wanted to do the b... |
I am running a probit regression model to test my hypothesis. As one cannot deduce the magnitude of the effect of the independent variables on my dependent one, I have calculated the average marginal effects of my regression.
My problem is, that there are AME in the output table (I used margins(regression) to calculate... |
I have been trying to use nhanes data to do a mediation analysis. The main model is a logistic regression model.
I tried the mediation package first, but it can't use the weights of the nhanes data. I also tried the lavaan.survey package, but it doesn't fit a logistics regression model. Which R package should I use?
|
I am working on the movement of fish from the centre of a protected area to a non-protected area. Based on the article by R. Abesamis, I applied to my dataset a logistic decay $D = 1/(1+\exp(S\cdot (I-d))$ where $D$ is the proportion of biomass in the middle of the reserve, $d$ is the distance from the centre of the pr... |
I am considering a simple decomposition of share prices, in an attempt to calculate idiosyncratic price movements.
Suppose we have a stock with price $S$. Then, one can think about the price as follows:
$$
\Delta S = \beta_1 * \Delta M + \varepsilon_1
$$
Where $M$ represents "market-wide factors" (say the change in the... |
I am trying to find out whether the regime type of states signing international cooperation agreements influence the design of the agreement, more specifically whether the regime type of the members leads to the use of escape clauses. I will solely focus on bilateral agreements, so there are always and only two states ... |
I have to analyse a 2x2 AB/BA crossover study, in which every participant was administered drug A and then no drug at all, or vice versa.
There were two study visits and in each visit the peak glucose values after an oral mixed meal test were taken for each participant.
I am confused about the type of t-test I should u... |
Is there an intuitive way to remember if we get an upper bound or lower bound for a parameter when inverting a one-sided hypothesis test? In Casella & Berger, it is written:
If we have $H_0: \mu = \mu_0, H_1: \mu < \mu_0$ then "$H_1$ specifies 'large' values of $\mu_0$, so the confidence set will contain 'small' values... |
I am currently conducting a meta-analysis about the effect of blood parasites on different fitness parameters of song birds.
Since I have a rather large number of parameters that I want to incorporate, I decided to use a standardised effect size (Cohen's d). Whenever possible I am using the mean+SE or SD of the two dif... |
I'm using Multilayer Perceptron ANNs at the very beginning of my project (it's a binary classification problem). Because it's simpler, I started with Scikit-learn. I got a magic result, with my model classifying correctly 98% of the test set. Now, I want to move to TensorFlow so I can implement other details, use dropo... |
I'm studying machine learning and every book I open I bump into chi-squared distribution, gamma-function, t-distribution, Gaussian, etc.
Every book I have opened so far only defines what the distributions are: they don't explain or give the intuition on where the specific formulas for the functions come from.
For examp... |
I am running a cox-regression model and am struggling with how to define my survival time to event (heart failure) if their time to HF (=1) AFTER they have died? i.e. it is documented they have a case of HF, but this is AFTER the date of death/ this person dies before developing the event.
Variables:
. HF: binary (1 = ... |
Working through a lecture exercise on MCMC methods. I have a dataset containing the outcome of N chess games $-$ in the format Winner, Loser $-$ between M players.
When 2 players $p_1$ and $p_2$ play against one another in game $g$, the outcome is modeled as $y_g = sign(W_{p_1} - W_{p_2} + v_g)$, where:
$W_{p_i}$ repr... |
Hi!
The above image is from "Latent Variable Models" by Loehlin and Beaujean (p.154).
There are two groups: high stressor group and low stressor group.
The image describes the path diagram for high stressor group but basically its the same for the low stressor group.
The triangle 1 was added to compare the means of th... |
I tried applying splines to my model and that increased the p-values for all other variables in my model.
Instead, I chose to categorize my continuous variable, ejection_fraction.
HF$ejection_fraction = cut(HF$ejection_fraction, breaks = c(0, 40, 50, Inf), labels = c("Critical", "Borderline", "Normal"))
finalMod <- co... |
I am evaluating linearity on Serum Creatinine for Cox regression.
It seems to be influenced heavily by 2 points in the middle. Is this okay or should I look into transforming?
X <- HF$serum_creatinine
Y <- resid(reducedMod, type = "martingale")
plot(X, Y, pch = 20, col = "darkgray",
xlab = "Serum Creatine", ylab ... |
I am doing survival analysis and was wondering if there was a name for the following expression:
$$H(t)=\int_{0}^{\infty}{g(t) \cdot S(t) \cdot dt}.$$
It appears to be very similar to the equation for computing the expectation w.r.t. a pdf only with the complementary cdf instead of the pdf.
|
I'm running simulations for a power analysis for a negative binomial GLMM. The dependent variable has a negative binomial distribution and will be measured at five time points. It has two other characteristics I'm not sure of the most appropriate way to simulate. First, it has a maximum possible range of 0 - 128. Secon... |
I applied a logistic regression using the nlmrt package to describe the relationship between biomass and the distance and site variables. I got this result, but I am not sure to understand the p-value of the parameters. Do these results mean that my model describes the variation of biomass as a function of distance in ... |
Following is a normal distribution equation:
$$q(\mathbf x_t\mid\mathbf x_{t-1})=\mathcal N(\mathbf x_t;\sqrt{1-\beta_t}\mathbf x_{t-1},\beta_t\mathbf I).$$
I understand there should be mean and variance in normal distribution. But what is the meaning of this? It contains three variables.
|
Suppose I have data with the following format:
Date_DMY age_bracket Num_Infected Total_Infected Total_Prop_Infected
1/1/2000 30-39 1 1 0.0524
2/1/2000 30-39 2 3 0.1149
3/1/2000 20-29 3 6 0.1657
3/1/2000... |
This is my spline model which does satisfy proportional hazards. I created this due to being advised against categorizing my variable.
I arrived at the variables (without splines) by "backward" stepwise reduction which I heard makes the p-values not valid. Can I still use this spline model despite having some p-values ... |
I have a discrete distribution with cumulative function:
$$
F(x)=Pr(X \leq x) = \frac{1}{(x-1)!}
\left( \Gamma(x,\lambda)-\frac{\lambda^{x-1} \exp(-\lambda)}{\lambda+1} \right)
$$
for $x=1,2,3,\ldots . $
If I am not wrong, if $U\sim \textrm{unif}(0,1)$, then I can get the random data using $x=F^{-1}(u)$. But it is not ... |
If $ X_1 $ and $ X_2$ are $\textrm{Ber}(p)$ random variables, examine the sufficiency of $ T_1 = X_1 + 5 X_2 $ for $ p .$
I have no idea on how to proceed, I tried to use the conditional distribution but I got stuck.
|
Suppose I have short-term forecasts from two univarite regression models of the same time series. I am choosing the models to be as different as possible in structure and assumptions. For instance, one may be an autoregression and the other fits a set of Fourier terms. Both models use only lags or transformed lags of ... |
In linear regression, $y = w_0 + w_1x_1 + w_2x_2 + \cdots$. The intercept term is called 'bias'. Why is it called bias? And how is this different from the 'bias-variance' trade-off?
|
We have a sensor that measures some physical process. As the sensor discretize the data, when reading the signal we should only see the value in discrete steps. For example, when the signal varies from 200 to 400, we will not see all possible values between 200 and 400, but rather values like 200 225 250 ... 375 400 in... |
May I get some of your recommendations on this subset of the more general time series forecasting class of problems?
The reason I need your help is that there's a big number of books that do not address this interesting part of the forecasting problem.
Some of the particularities of STLF (Short-term Load Forecast) is t... |
As stated by Wikipedia, the betweenness centrality of a node $v$ is given by the expression:
$$g(v)=\sum _{{s\neq v\neq t}}{\frac {\sigma _{{st}}(v)}{\sigma _{{st}}}}$$
where $\sigma_{st}$ is the total number of shortest paths from node s to node t and $\sigma_{st}(v)$ is the number of those paths that pass through v.... |
I found the Yuval Shavitt's FAME algorithm but I can't figure out the proof of correctness and how to calculate the median error. It would also be interesting to compare this with the case of continuous random numbers.Thanks.
|
I am a math student who has previously done a handful of regression analyses. But now I'm sitting with a classification problem and it's my first time. I wanted to know the best practices when working on a classification project.
Just like in regression it is common to fit a simple additive regression model, then with ... |
Consider the random variables $Y,X$. Can we always write
$$
Y=E(Y|X)+\epsilon\tag 1
$$
with $\epsilon$ independent of $X$?
Note: from this answer here, we know that we can always write (1) with $E(\epsilon|X)=0$. However, here I am asking if we strengthen the relationship between $\epsilon $ and $X$ to stochastic inde... |
I have a certain population of individuals, each of which produces a certain 1D output described by a random variable $X$. To a reasonable approximation, for an individual, $X$ is normal-distributed with some unknown mean and standard deviation (STD). The goal is to estimate those mean and STD on an individual level. T... |
I've been trying to derive the CDF of the lognormal distribution.
I got this far but now I'm stuck.
$F(x) = \frac{1}{\sigma\sqrt{2\pi}} \int_{-\infty}^x\frac{1}{z}e^{-t^2}dz$
where $t = \frac{\ln(z)-\mu}{\sigma\sqrt{2}}$
so $z = e^{\sigma t \sqrt{2} + \mu}$
$F(x) = \frac{1}{\sigma\sqrt{2\pi}} \int_{-\infty}^x\frac{1}{e... |
Summary: How can I calculate my probability of being truly positive based on a contingency table that has a completely different distribution than the total population?
I was recently confronted with a simple 2 by 2 contingency table that shows the results of a medical trial where D represents the true condition of a p... |
We did a survey for elementary students with items such as...
I like math: Yes, no, I don't know
We have about 40 questions, and we want to analyze differences in respondents answers from a pre-survey to a post-survey. The issue is that we don't know how to classify "I don't know". What are our options for analysis?
|
The UK have an initiative called Premium Bonds. You can buy a £1 bond, and each month there is a 1 in 24,000 chance of winning a cash prize from that bond. The number of prizes given per month for each amount, for all bonds that have been bought, is below (from which you can calculate the probability of your prize bein... |
Hello: I would like to select independent variables from a list of 150 using LASSO. Most of the independent variables are in Likert Scale (1-strongly disagree,..., 5-strongly agree). It is better to use those independent variables' ordinal nature instead of treating them as nominal independent variables.
I have checked... |
I made a model with a splined variable.
coxph(Surv(time, DEATH_EVENT) ~ age+anaemia+creatinine_phosphokinase+
ns(ejection_fraction, knots=c(15))+serum_creatinine+hypertension, data=HF)
This is the code I used to check ejection_fraction's linearity. How can I check its linearity after I've applied a spline?
X <- HF$eje... |
What is the correct definition of bounded probability density function:
$\sup_{x} f(x)<\infty$. If this is the correct definition of bounded probability density function, can you give the example of a "well-known" probability density function which is not bounded?
An unbounded probability distribution has support on ... |
Trying to understand big P,D,Q in sarima better. Could probably ask a broader question to get more info but my first question is making sure I understand at least the seasonal AR term.
With m=12 (monthly data), say the month being forecast is May, would Sarima(0,0,0)(5,0,0) just return the average of the value for May ... |
I am Looking for the Reason That we do not Need Normal distribution on Independent and dependent variables in Logistic Regression, can anybody explain it ?
|
Consider the linear regression model $y=X\beta+u$, where $y\in\mathbb R^T$ and $X\in\mathbb R^{T\times K}$. We make the following assumptions only:
$\mathrm E[u]=0$;
$\mathrm{Var}[u]=\sigma^2I_T$ for some $\sigma^2<\infty$.
$X$ is either non-stochastic OR $X$ is independent of $u$ (my understanding is that this mean... |
I have daily observations of Covid19 data for many countries. More specifically, I have daily observations about new_cases,total_cases,new_deaths,total_deaths,reproduction_rate,stringency_index (represents the stringency of government measures during the Covid19 pandemic) for every country. So, I have 6 times series fo... |
From a course problem:
Consider the regression model, $$y_i=\alpha_i+\beta x_i+\epsilon, \hspace{1em} i=1,\dots,n,$$ with $\epsilon_i\sim\text{N}(0,1/\lambda)$ i.i.d. and prior structure \begin{align}\alpha_i&\sim\text{N}(\mu,1/p) \; \text{independent for }i=1,\dots,n,\\\mu&\sim\text{N}(a,1/r),\\\beta&\sim\text{N}(b,1... |
I am building a Besag-York-Mollie model using a Poisson distribution to estimate the relative risk of infection for neighborhoods in California using R-INLA. I have areal data and my model is as follows:
full.formula <- cases ~ adultpov + f(re_u, model = "besag",
graph = g,
... |
I'm working on factors related to survival of a small size sample (26 patients) for a period of time, this sample was divided in 2 groups (16 vs 10 patients), the events were little (7 in total). I had multiple cases with expected values less than 5.
Please, is it appropriate to use the Log-rank test in this study? If ... |
I have time series data for several sites and I'm interested in looking at whether the changes in covariates at these sites vary in a consistent manner over the time series. I thought dynamic factor analysis might be ideal for this type of question, however, the period of time that data is available for all sites vari... |
My goal is to show independency of factors related to survival of a small size sample (26 patients) for a period of time, this sample was divided in 2 groups (16 vs 10 patients), the events were little (7 in total). I had multiple cases with expected values less than 5. Is it appropriate to use the Log-rank test in thi... |
Regarding the third equation in this answer, I'm struggling to figure out how $ X \beta_\mathrm{PCR} = U\: \mathrm{diag}\left\{1,\ldots, 1, 0, \ldots 0\right\} U^\top y$.
Given $X = USV^T$ where $X$ is $n \times p$, $S$ is a diagonal matrix, and $V$ is $p \times p$, from Wikipedia, $\beta_\mathrm{PCR}=V_k(V_k^TX^TXV_... |
I do not have a strong stats background, so I apologize in advance if this is a silly question.
I'm currently reading about population density for wildlife. I've read a paper that reports the population density of bears as "bears / 1000 km2 of habitat". I am confused by this unit of measurement. I understand that popul... |
Say I have two random variables $A$ and $B$ which may or may not be independent. I also have their $0.95$ quantiles $Q95_A$ and $Q95_B$. What is a valid way to average these densities and obtain valid quantiles?
Example Use Case
I am able to get draws from $A$ and $B$. In reality these random variables are probabilisti... |
I'm so confused regarding the test of CAPM with its hypothesis.
So we have these null hypothesis, right?
H0: α = 0, β ≠ 0
If the estimates of intercept a is something 0.4 and t-stat is something insignificant i.e. 1.2, the CAPM holds and it points out that the intercept a = 0, right?. But beta that measures the market ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.