instruction stringlengths 9 38.7k |
|---|
I have 10 years of health (number of cases of health outcome, such as asthma cases) and population data, but am using the data cross sectionally because the exposure data are also cross-sectional (due to how the exposure data were collected). The health and population data are both age, sex and geography specific.
I am... |
I have learned a lot from @dimitriy answer in this post: Propensity Scores Weighted DID
I am currently utilizing the triple difference estimator for estimating treatment effects (please see the paper about this estimator at https://academic.oup.com/ectj/article/25/3/531/6545797). I am interested in applying kernel-weig... |
One of the assumptions of ANOVA, and basically any parametric hypothesis test, is that the population (or each population group) should be normally distributed. But we learn in most stats classes that the violation of this assumption becomes less relevant (or less affected) as the sample size gets large.
In t-tests for... |
If we have a VAR process:
$\begin{align}
\mathbf{y}_t = A_1\mathbf{y}_{t-1} + \dots + A_d\mathbf{y}_{t-d} + \boldsymbol{\epsilon}_t, \quad t \in \mathbb{Z}
\end{align}$
With the stability condition met:
$\det(I - A_1z - \dots - A_d z^d) \neq 0$ for $|z| \leq 1$
Do we know that the process is then geometrically ergodic... |
I have a log-likelihood function with two parameters: $\mathcal{l}(\theta_1,\theta_2)$.
When I run a simulation, the maximum likelihood estimator $\widehat{\theta}=[\widehat{\theta}_1,\widehat{\theta}_2]'$ yields a reasonable value for $\theta_1$ and an over-estimated value for $\theta_2$.
For example, if the true $\th... |
I have 2 normally distributed variables $X_1$ and $X_2$.
$Y_1 = aX_1 + bX_2$
$Y_2 = cX_1 + dX_2$
There is no $\epsilon$.
ie.
$Y_1 = aX_1 + bX_2 + (\epsilon=0)$
$Y_2 = cX_1 + dX_2 + (\epsilon=0)$
I wish to know if $Y_1$ and $Y_2$ are correlated.
I may use the formula to find the covariance of $Y_1$ and $Y_2$:
$cov(Y_1,Y... |
I have a sample from some population of 0s and 1s and need to estimate the posterior of the proportion of 1s in this population. But the catch is: for each observation in the sample I only have probabilities of the observation being positive.
If I had true labels for each observation I would just go with $ Beta(1+num\_... |
I'm trying to estimate y, how likely a quantity is to increase/decrease by x1% using historical data. This part is pretty straightforward. I check history for how many times that quantity has increased by x1% or more historically, then take the number of times it increases by x1% or more and divide by the total of time... |
I did an experiment on small tree branches with closed buds were a box containing 30 branches was monitored 3 times per week for the presence of leaves. The number of branches that have reached a developemnt stage was written down and when all branches had leaves the experiment was stoped.
my data is as below:
response... |
Is it possible to take the average of information criterion like the AIC?
For my model comparison, I have 24 different models. I use 4 different GARCH models each with 6 different distributions for the innovations. Now I have calculated the information criterion AIC to find the best in-sample fit. Now my question is if... |
I am running some least squares linear regression on nonlinear data. I considered linearising by taking the log of both the IV's and DV and also by only taking the log of the DV.
Both linearise the data fairly well (R^2>0.95), with loglog performing slightly better. However when I check for heteroskedasticity using the... |
I have three questions about multivariate normal imputation using R package jomo. I modified the example in jomo to illustrate the questions:
library(jomo)
Y <- JSPmiss[, c("english", "ravens")]
X <- JSPmiss[, c("cons", "sex")]
set.seed(1569)
imp1 <- jomo(Y = Y, X = X, nburn = 1000, nbetween = 1000,
nimp... |
I have a panel dataset and I want to test cointegration between 2 variables. I cleaned the missing values and set my data frame as required but I don't know and can't find how to interpret the outcome from the Pedroni test on R,
the outcome looks like this:
And why do I have NaN in some cases ?
(I already read the doc... |
The following is an interview question:
A certain highway has two lanes in my direction. Whenever traffic moves, if I'm in the left lane I switch to the right with probability 60%.
If I'm in the right lane I switch back to the left lane with probability 80%, because it's supposed to be faster.
Over the long term, what... |
I'm training a binary classifier using time series cross-validation and a rolling window approach, resulting in $k$ test sets. I want to construct a cumulative uplift curve to evaluate the model.
I've considered simply pooling all the test sets together, but that could result in the same customer appearing $k$ times, w... |
I am planning on running a natural experiment (difference-in-difference) on some UK Local Authority level mean obesity prevalence data. Sample size is limited by a number of factors and it is therefore unlikely we will identify a statistically significant effect.
I would like to identify the minimum sample size I would... |
When reviewing lecture slides for the proof that $\hat{\beta_1}$ is linear in OLS-regression my teacher posted the following on the lecture slides:
$$\hat{\beta_1}=\frac{\sum(X_i-\bar{X})Y_i}{\sum(X_i-\bar{X})^2}= \sum a_iY_i \text{ where }a_i= \frac{(X_i-\bar{X})}{\sum(X_i-\bar{X})^2}$$
But when I look at the sam... |
I want to do Bayesian inference for a model function for which the likelihood cannot be explicitly computed, which is why I turned to Approximate Bayesian Computation (ABC). In particular, I am using the sequential Monte Carlo (SMC) algorithm.
I am currently evaluating the approach by generating synthetic data from par... |
I have run a PCA from which I have extracted 4 components. Each component will be used in a multilevel model as the outcome variable. The four model will have the exact same predictor variables, 4 predictors of interest and age and gender to adjust for. ID is a random factor.
My question is how do I have to correct for... |
I wanted to conduct a Wilxocon signed rank test but stumbeld upon two questions that I am unable to solve on my own. I tested 2 types of interfaces for a software with the same ten people. I want to compare if there is a difference between using these two interfaces. Each person answerd the same ten questions for both ... |
The independence gap is defined as
$$\phi_{X_1, \ldots, X_n}(x_1, \ldots, x_n) \triangleq F_{X_1, \ldots, X_n}(x_1, \ldots, x_n) - \prod_{j=1}^n F_{X_j}(x_j)$$
where $F_{X_1, \ldots, X_n}(x_1, \ldots, x_n)$ is the joint CDF over random variables $X_1, \ldots, X_n$ and $F_{X_j}(x_j)$ is the marginal CDF over the random ... |
This may be a trivial question and apologies if it's been answered elsewhere.
I'm aware that violating the GM assumption of observations being independent, such as with clustered data, can result in estimates no longer being BLUE and that the correlation between observations within a given cluster (i.e. the intraclass ... |
If I have a max-pooled convolution layer of dimension (5,5,4), means 4 no. of 5x5 feature maps, what will be the shape of the flattened vector after applying flattening operation ?
Is it (100, 1) in shape ?
|
The CA Secretary of State has historical records on ballot measures starting in 1912, and we're attempting to calculate probabilities for the 2024 ballot measures based on the historical average. Over more than 100 years, ballot measures, once qualified and put on the ballot, succeed 35% of the time. Since a ballot mea... |
I have a dataset with about 70 continuous numeric variables. I have about 80 samples which divide more or less equally into two groups. I want to figure out which of these variables is most strongly associated with the groupings so that I can focus on just a few of these for further analyses.
The main problem is that t... |
Say I have a dataset that consists of 1,000 integers between 1 and 365 that represent days of the year a certain event happened. I am trying to figure out how I could calculate summary statistics of the distribution while respecting the fact that the data are cyclic (i.e. 1 and 365 are neighbors). I specifically want t... |
This is the formula :
$E[(Y−f^2)]=σ^2 +Bias^2[f^]+Var[f^]$
What i cant understand , the expectation is over the training Set for a fixed $x_0$ , thus the
$E(ϵ^2) =E(ϵ(x_0)^2) = ϵ(x_0)^2$ and not $σ^2$ because for a given $x_0$ we have a unique ϵ and this term is not random anymore because any change in the data... |
I'm part of an online community that raffles away prizes, typically with 30 or 40 spots in a raffle. The numbered chips/balls are placed into some type of hopper, and pulled out one at a time (random/controlled/etc). The rules are pretty simple: you can buy as many spots as you'd like, and the last out wins the prize (... |
I'm currently training a CNN + regression model that does the following
input: $ \dim x = (L, 2), \text{where} \ x_i \in (-0.1, 0.1) $
output: $\dim y = (M), \text{where} \ y_i \geq 0, y_{i-1} \leq y_i$
The basic architecture is (each step with ReLU activation) :
input $\rightarrow$ CNN1(3x2) $\rightarrow$ maxpool(2x... |
This has probably been asked before, as this is (I think) a fundamental theory of statistical theory, but I don't know what it is called, hence I have not yet found an answer.
Consider a box which produces random numbers.
The observed values are $x_i$.
If we have a total of $N$ observations, we could add them together.... |
I have presence-absence data for 53 wildlife species at 60 different sites. I am a bit confused as to whether a PCA would be appropriate for this sort of data. If so, is there a specific R package I need to use, and do I need to standardize the data considering it's just 0's and 1's? If not, what other data analysis op... |
I have a linear mixed effect model that I built using longitudinal country level data to help me predict TB incidence based on country level diabetes prevalence, HIV incidence, prevalence of malnutrition, and income per capita. I found my model diagnostics improved drastically when I log transformed TB incidence, HIV i... |
This draw of lottery, based on 7/39 numbers stirred a lot of debates, and an obvious anger of general public here in Serbia. I ran all kinds of scenarios in my head about what really happened here (or nothing special at all, which is possible too). So, the lottery is 7 out of 39 numbers. If you have a ticket with all 7... |
Suppose I have a population of size $n$ in which each element has a probability $p$ of being sick. By sampling this population without replacement, how many elements would I have to sample in average (expected value) to find all the sick ones?
Simulating this in Python, when $n=100$ and $p=0.5$, the expected value is $... |
I have a list (freq) of letters with the following frequencies:
L V Q I
0.61764706 0.29411765 0.05882353 0.02941176
The entropy of this list is: -sum(freq * log2(freq)) = 1.3387
I would like a statistic similar to entropy that takes into account a pairwise "similarity" score of th... |
I want to compare two contingency tables A and B with the same structure (same columns and rows). My first idea was to use chi squared distance $\sum_{i=1}^{p}{\frac{(O_i-E_i)^2}{E_i}}$. But, some cells $E_i$ are equal to zero.
Have you some ideas to deal with that problem or another distance metrics without this issue... |
I want to perform a meta-regression based on the mean changes from baseline values.In one of the studies, the standard deviation has not been mentioned. How can I impute the value of the missed standard deviation? Can I take the pooled standard deviation of other studies as the standard deviation of this study? Or shou... |
I can't seem to find a way to get relative risk (instead of odds ratio) in R via glm() function. However, the equivalence seems to be glm() with poisson family and log link, which I suspect will yield the relative risk (or relative proportion, depending on the problem) when the coefficients are exponentiated. Is this c... |
My model is dealing with survey data for a mixed-effects logistic regression model. All of my variables in the model are categorical (most are binary). What can I use in R to assess the multicollinearity assumption?
Model:
mixed_model_one <- svyglm(Sick ~ Wash_Binary + Food +
MotherEducation + Vaccination + Sal... |
I am referring to the derivative of the binary cross-entropy loss function for logistic regression. Using back-propagation, the derivative of the loss function L with respect to z is a - y, where a is the output of the sigmoid function given z. Here, z is the polynomial that takes the parameters w, data values x, and b... |
Background
Denote the forecasted value by a Time Series ML Model as
\begin{align}
\hat{y}_{t+\tau} \, (t, \tau)
\end{align}
where $t$ is the current time-step, $\tau$ is the time-step ahead. The subscript $t + \tau$ is the corresponding forecast time-step.
For time series forecast ML Models, we have a hyper paramet... |
I created a sample with 10000 normally distributed numbers. Subsequently, I used the Kolmogorov-Smirnov test to check if they are indeed normally distributed, and it turned out that they are not. How is this possible?
Below is my code.
data <- rnorm(n=10000, 5, 2)
ks.test(data, "pnorm")
And this is the answer:
Exact o... |
For instance, The two groups are like the following:
* T-2 means the 2nd record of patient 'T'. The orders don't matter.
Group A (N=40000 or 1000):
A-1
A-2
A-3
A-4
B-1
B-2
C-1
Group B (N=2000):
A-5
A-6
B-3
Any records of patient C may not exist in Group B.
I want to confirm that whether there is significant differenc... |
I have normalised my input features and target variable using the quantile transform by sklearn. The Q-Q plot of one of the feature after normalisation is given as below. Is this feature normalised? Can I use it for training the cnn model?
|
Suppose I observe an outcome $Y_i$ for a binary policy $Z_i$ with random assignment and no spillovers such that $Y_i(1),Y_i(0) \perp Z_i$. I run the regression
$$
y_i = \alpha + \beta z_i + \varepsilon_i
$$
to get the average treatment effect of the policy $E[Y_i(1)-Y_i(0)]$. However, the dataset I have at hand was col... |
I was trying to simulate the Central Limit Theorem in R. Unfortunately, even in large samples (e.g., 80), the Anderson–Darling test could not recognize normality. Therefore, I wrote the following code to see when the p-values become large enough so that the null hypothesis is not rejected.
The results were quite peculi... |
I am running a logistic regression. Two variables are transformed for linearity with the logit of the outcome.
var1<-w^(-0.5)
var2<-t^2
m1 <- glm(Dep ~ var1 + var2, family=binomial())
If plot probabilities in ggeffects, the variables are on the transformed scale.
library(ggeffects)
library(car)
p<-ggpredict(m1, terms... |
I'm modeling a pure premium with glm and using an offset term equal to log(exposure).
My question is, in R, what does predict.glm(fit, train, type="response") return?
-The cost amount? and in this case i have to divide with exposure to get the predicted Pure Premium
Or the Pure Premium by supposing the exposure is alr... |
In my company, I stumbled upon a piece of software whose purpose is to correct with fresher data some future forecasts made by a complex system.
To formalize a little bit: there's a forecasting model $x \mapsto f(x)$ which is trained on a dataset $\mathcal D$ to forecast an underlying process $y$. There exists a freshe... |
I am currently working on a machine learning model using scikit-learn. In my case, I have 12 input features and 21 output targets, and I am using MLPRegressor to fit my data. However, I noticed a difference in the R2 score when using two different approaches: 1. Only MLPRegressor and 2. MLPRegressor in combination with... |
For a handful of store locations, I have data on each entrance and exit time.
I have counted the total num of people at a store at any given minute.
I am trying to find out the values for which the store is full/crowded, given that I do not have the area of the store nor an official limit of the max headcount.
An assum... |
Suppose there are $n=100000$ locations. At each location,there are observations of dependent variable $Y$ for 30 years. That is, we have time series data and this data have $100000$ rows and $30$ columns. We developed a model, and want to assess how well our model performs. With our proposed model, we also estimated th... |
To describe this issue, we consider the following 2 models:
m1 <- lm(disp ~ drat, mtcars)
m2 <- lm(disp ~ drat + factor(cyl), mtcars)
drat is a continuous variable. cyl is a categorical variable with levels '4', '6', '8', and I treat '4' as the baseline, so there will be 2 dummy variables $D_1$ for cyl=6 & $D_2$ for c... |
The goal is to calculate the reliability of a process. Here reliability is defined as follows:
Definitions and tests I used
Let $X$ be a random variable that is equal to $1$ when no defect is present on a fabricated piece and is equal to $0$ when a defect is present. Then, the reliability $R$ of the process is the prob... |
I am trying to carry out a meta analysis with proportions in which I calculate the % of patients
with response and/or remission (measured with the same scale) to a treatment at determinated time points (week 8, week 16, month 6 and month 12). That is, I have two correlated outcomes measured at each time point.
By using... |
I am wondering about whether there might actually be different ways to simulate data for say a Gamma GLM, which in turn relates to what might be the parametrization that the glm function uses for the Gamma family.
If one wants to test a Poisson GLM with say a log-link, the way to simulate the data is relatively easy as... |
We are currently working on a project involving multiple datasets reanalyzed with the same pipeline, where all data points (patient feature) have been filtered at 1% False Discovery Rate (FDR). As part of our analysis, we aim to combine these data points lists while controlling the number of false positives resulting f... |
I am trying to replicate a deep neural network from this notebook, which works with the French MTPL dataset. The NB is in R and mine is in Python.
The dataset contains policy entries with the same features but different claim number and exposure (target value). The NB says,
...we split the dataset into train and test.... |
I am attempting to create a surrogate model for a chemical process simulation that includes flash separators and a heat exchanger (please refer to the photo). Based on my research into similar projects, I have identified the inputs and outputs as indicated in the photo. The process involves 9 chemical constituents, res... |
We have $X=Y+Z$ where $Z$ is a standard normal and $Y$ is a random variable with $p(y)$ as its density. $Y$ and $Z$ are independent.
The conditional probability $p(x|y)$ is obvious to be $\mathcal N_x(y, 1)$, a normal with mean y and deviation one. My question is what is $p(y|x)$?
According to $Y=X-Z$, $p(y|x)$ should... |
Given this categorical cross entropy loss function $-\text{sum}(y * \text{log}(\hat{y}))$, where $y$ is a one-hot word vector and $\hat{y}$ is a vector of class probabilities, this loss function will ignore the model predictions where $y=0$.
For example, let $y = [0, 1, 0]$, and $\hat{y} = [.7, .6, .2]$
Then
$$
-\text... |
Introduction. Recalling that:
The frequency is the number of observations of a specific outcome.
The relative frequency is a proportion of all observations (frequency / total observations).
A "frequency distribution" or "relative frequency distribution" is a way of displaying observed samples from experiments.
A "prob... |
I am having some trouble understanding what approach I would use to validate a new set of definitions versus the "gold standard" to detect disease positivity. For example, if I wanted to say participants in a cohort are COVID+ if they meet criteria A, B, and C (the new definition). Then compare those results to the "go... |
I am trying to plot my p-values and make Manhattan plots, using the mhtplot.trunc from the gap library. Reason for using this package is that my p-values are too low to be plot in R (below e-308), and R just gives me the zeroes instead of real p-values when I pass this threshold. I need these plots to be accurate since... |
I've collected the perceptions of brands in a survey and transferred them to another data set containing these brands.
The variables to operationalize brand perception are masculine (6 items) and feminine (6 items) brand perception, which are quantitative variables and vary from 1 to 7. I investigate the interaction ef... |
I am trying to generate random numbers (weights) using Monte Carlo simulation using R. I would like to have 10000 simulation replications, generating weights for 13 variables. I am trying the following code
mcrep = 10000 # Simulation replications n = 13 ... |
I am attempting to conduct a longitudinal analysis on a dataset with one independent variable and five dependent variables. We aim to determine whether the independent variable can predict changes in the dependents. However, the independent variable is only measured once at the baseline.
Is it possible to use the linea... |
I would like to calculate the probability that a yes/no vote among 3000 voters ends up in a tie - assuming voters cast their vote randomly.
Applying the principle of favorable_cases/total_cases I calculate that the total_cases are all the possible ways the people could vote, therefore all permutations of 2 elements by ... |
Good evening, everyone.
I am a software engineer and I am studying the VAR model and its advantages and disadvantages. Specifically, my question is the following: is it possible to use VAR to predict the cost of a variable (e.g., the cost of a service) based on some predictors, such as income, customer age, and locatio... |
I have a question about the interpretation of the sensitivity analysis I obtained by R's tgp package (https://cran.r-project.org/web/packages/tgp/vignettes/tgp2.pdf) as can be seen below. The relation between the six inputs and the model response are shown below.
The influence of the parameters on the response is clear... |
In a hidden Markov model, I can't get my mind around why I can't sample the full hidden state $\vec x$ using only a forward sampling algorithm.
Let $\vec y$ be the observed data and $\theta$ the model parameters. Let each time step $t$ be an independent realization so that $p(\vec y|\vec x, \theta) = \prod_t p(y_t|x_t,... |
I have a question about the interpretation of the sensitivity analysis I obtained by R's tgp package (https://cran.r-project.org/web/packages/tgp/vignettes/tgp2.pdf) as can be seen below. The relation between the six inputs and the model response are shown below.
The influence of the parameters on the response is clear... |
Let's imagine that we have created and estimated a posterior with a beta prior and binomial likelihood function. The posterior is given by $p(\mu |D) = Beta(2,99)$. Now, I want to do inference with that model. But the number of trials has changed and I want to know the probability of having 3 success from 40 trials. Ca... |
I am interested in the comparison of Pearson correlation and Euclidean distance as measures of similarity between data points. Suppose I have 4 data points, w, x, y, z, in a multidimensional space, where w is a very extreme outlier and x, y, z are highly similar to each other. For the correlation measure, I assume that... |
I am still unsure why we must use cross-validation here to validate the model, or it may be unnecessary.
Is it correct to use like indicated below? or do we have to combine it with hyperparameter tuning?
X_train, X_test, y_train, y_test = train_test_split(X_new, y, test_size=0.15, random_state=iteration)
skf =... |
I wasn't sure how to phrase this question, but yeah.
My CNN (code here) keeps getting up to an accuracy of around 66% until it stops learning anymore. It just keeps fluctuating around the 66% range. I've been tuning hyper-parameters, but I just can't get it to work. Can anyone help?
|
Are there accepted techniques for selecting variables in causal inference (not prediction) where the number of variables exceeds our sample size, making a standard OLS regression impossible?
Assume treatment, outcome, and covariate variables have been carefully selected with a causal diagram, based on subject area know... |
I'm trying to understand the main appeal of Bayesian methods & whether they are indeed capable of offering more than regular frequentist methods. The thing is my impression is that by default the prior should be 'uninformative' (i.e. Objective Bayesian movement). And I've heard doing this gives you similar results to f... |
I am trying to make a classifier that predicts whether a patient is diabetic or not. I am working on this data set. While doing EDA, I found that in the column of smoking_history, 32887 rows out of 100000 rows have the value no_info (the distribution is shown below). How should I deal with this category in order not to... |
Lets Y= f(X)+ ε be our model , we assume that f(X) is linear with this form B0+B1X and ε is a random variable with mean=0 and std σ
i have read that the estimation of this standard deviation is RSE.
RSE = (RSS/n-2)^1/2
how do we came up with this estimation ?
|
Hello I was reading about no pooling and partial pooling.
I understoond that a mixed model is using partial pooling approach when we talking about hierarchical data.
Is it correct to say that fixed effect model is using no pooling approach?
|
I am planning to do a joint model for longitudinal and survival data, with multiple time-dependent/time-varying continuous variables.
However, I am having trouble re-formatting my dataset to be in a long format.
My data currently includes the following relevant variables:
Study ID
Follow up A – Number of days to the ... |
I am modelling a tabular dataset and getting better results with a DNN than XGB or linear regression models. The literature tells me this shouldn't be the case. Are there any specific instances when DNNs should outperform gradient boosted decision trees and/or regression methods? These data have a large number of highl... |
I'm working with some observational data and wanted to assess the effect of variable (D) on outcome (Y) after controlling for a vector of covariates (X). As the data is observational, I wanted account for as much selection as possible, so I employed (augmented) inverse probability of treatment weighting. After doing so... |
I have 2 nominal independent variables (2*2 design), and 1 binary (yes/no) dependent variable. I want to see if is there a significant difference between the numbers of No in these 4 conditions. What analysis should I use?
|
By reviewing the existing relevant questions I could not find the answer to this specific question.
I have created blocking variables with the one-hot method (n - 1 binary variables for n categorical variables corresponding to different sources of data). Then I performed LASSO regression with cross-validation on my dat... |
Background
The almost-disjoint gap (ADG) is given by
$$\mathcal{D}_{\mu} \left( E_1, \ldots, E_n \right) \triangleq \mu \left( \bigcup_{k=1}^{n} E_k \right) - \sum_{k=1}^n \mu \left( E_k \right)$$
where $\mu$ is a measure and $\{ E_k \}_{k=1}^n$ are elements of a suitable $\sigma$-algebra. When the ADG equals zero we k... |
I am doing a study using Statistical Process Control and have to calculate the standard deviation. I am aware of a number of ways to do this.
The first method is using the sum of squares (classic method).
The second method is using the sum of squares but the denominator is replaced by n-1.
The third method is using the... |
My coworker and I were discussing this. He insists that PCA only makes sense just when you know at least one variable is linear combination of the rest but I think it can be applied whenever there are variables that are dependent on the rest, not necessarily through a linear relationship.
|
I'm working on my masters dissertation. Please help me this is my very first ever quantitative research and my submission deadline is very soon and my brain is literally melting into soup :(
1- Data skewness and normal distribution
I have two categorial nominal variables which is gender and Instagram usage frequency, b... |
I am reading the double-machine learning paper by Chernozhukov et al. (2018), in Example 1.1. the authors consider the partially linear model:
$$Y = D \theta_0 + g_0(X) + U, E[U|X, D] = 0\\ D = m_0(X) + V, E[V|X] = 0$$
and then they're saying:
"A naive approach to estimation of $\theta_0$ using ML methods would
be, for... |
I want to perform a multilevel glm model. I have a continuous non-negative outcome variable (not count data), with many 1 values, second most common value at zero, and then a right tail of positive values (picture attached below).
I assume that tweedie distribution is the most suitable distribution for my data. Am I ri... |
I am trying to calculate the sample size for my next experiment.
I have done a pilot study with 16 participants and made a mixed model using lme4 as below.
m <- lmer(choice ~ I_D_gen + (A + B + C |sub), data = df)
Here, 'choice' is binomial(1,0), IE is continuous, and all random effects are condition informations cons... |
My SARIMA gives the following result but my acf and pacf plot shows a different story. Is it because of heteroskadiscity of the model also my model has a seasonality of 365 days how do I handle it?
|
Suppose I have hormone levels from multiple subjects over a 24 hour period. I know that the underlying hormone level is periodic - eg the hormone is gradually released every 60 minutes, leading to a peak and then a trough. And this pattern should be pretty much the same for each subject. However, the magnitude of the p... |
Let's be straightforward to my case. I'm building a matchmaking system where it produces groups of players. Each player has a weight that is obtained from his/her skill and experience. A group is good if it has low difference among its members' weights (meaning their weights are close to one another). I calculate the w... |
I have a Cox model with time dependent variables as follows, where ibd is a categorical variable with 3 levels.
However, I am not sure why there is a NA for regression coefficient in the last level of "ibd". When I reorder the levels, it is still the third level that is NA.
Call:
coxph(formula = Surv(adm_start, adm_end... |
I am making S-N curves and I have trouble.
Assume I have a formula
$S=f(2N)^b,$ where $f$ and $b$ are constants for which I want to calculate PI and CI, $2N$ is a dependent variable, $S$ is independent.
Measured data is in log log distribution.
Standard procedure is to use linear regression in form Y=b0*X+b1 so after l... |
###############################
# Zivot-Andrews Unit Root Test #
################################
Call:
lm(formula = testmat)
Residuals:
Min 1Q Median 3Q Max
-4626 -835 -11 877 4014
Coefficients:
Estimate Std. Error value Pr(>|t|)
(Intercept) -78.2937 150.3974 -0.5... |
Is there any known activation function that is like a leaky ReLU but also has its growth capped at the top once it reaches one through linear growth? I mean something like this.
I need this for performing a comparison (checking if one element is smaller than the other, 1 if true, 0 if not), but I don't want the gradie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.