instruction stringlengths 9 38.7k |
|---|
I have some time-series data showing the monthly counts of hospital admissions. It has both a long-term trend (increasing) and seasonality (highest in summer). I am trying to measure the magnitude of the seasonality (i.e. how much greater is the rate of admission in summer than in winter?).
Here is some sample data (th... |
I have trained an object detection deep learning model on many different types of cars (shape, color, car model variations etc.). I'm just using a single class "Car" for all the different types of cars. I am deploying this model on mobile phones. The accuracy of my model that I have achieved so far is quite good enough... |
I have been advised to log2 transform my independent dietary variables which are intakes of vitamin D and energy intake (kcal).
My research question is whether vitamin D intake affects inflammatory scores, and I adjust for energy intake and other covariates.
I have normalised these inflammatory scores using Box Cox and... |
I'm using the R-package strucchange (https://cran.r-project.org/web/packages/strucchange/strucchange.pdf) to test for structural changes in different time series.
As far as I understood the method sctest() in the strucchange package (to perform the tests for structural change) has implemented the double maximum test ("... |
I have 16 time series: A, B, C ... P.
And I am trying to use Vector Autoregression model to capture the relationship between A and other series.
But when I use VAR, I found that the model relies too much on the past values of A.
So I want to remove past values of A from the model.
I want to describe A only using series... |
Suppose you have a joint probability distribution with M variables, each sampled from a set of cardinality N. Now, suppose you want to marginalize one of the variables. My guess right now about the computational complexity of this is O(N^(M-1)). My thinking is that you have to go to each entry P(x,y...z) and add up ... |
Let us take this $\operatorname{AR}(p)$ equation
$$\left(1 - \sum_{i=1}^{p} \phi_i L^i \right)X_t = \mu + \epsilon_t$$
as an example.
When $p=0$ I read this to mean
\begin{align*}
\mu + \epsilon_t &= \left(1 - \sum_{i=1}^{0} \phi_i L^i \right)X_t \\
& = \left(1 - \phi_1 L^1 - \phi_0L^0 \right)X_t \\
& = X_t - \phi_1 L^... |
I've fitted a negative binomial model with language (Tamil and French) as the IV and number of prolongations (count) as DV and number of words in each language as an offset (random effect). The question I'm trying to answer: on average, are there more occurrences of prolongations in one language than the other? My outp... |
I have an outcome variable that is bimodal, this is because in about half the sample is measured from 0 to 5, and half the time from 0 to 7.
Because of the different scales, I have decided to normalize this variable, but the normalization is particular; I discuss it below.
In my study, there are two people who are asse... |
I am just beginning to learn about ARIMA and have been interested in using linear regression with ARIMA errors (I have been reading through these sections in FPP), and have some questions:
Are you building the ARIMA (or SARIMA) model on the residuals of the linear regression model during training, or on the values of ... |
When I look at textbooks on classification and machine learning, many of the examples focus on data that is often twisted up such as to avoid linear separation. I have an example picture below. The common description of the classification problem is that data can be twisted in this manner, and hence kernel methods or r... |
I have the data like below.
I woud like to fit Weibull (or Gamma) distribution without multiplying each case in the interval (what fitdistrplus requires). Does anyone know smarter method?
|
$R$ gives "NA" for the p-value when I try to run Kendall's test with an "exact p-value" flag set on a larger data set (n=170 seems to be the cutoff). Is this just a computation problem or something deeper? Spearman's test with an exact p-value flag set returns a p-value.
cor.test(sample(1:200),sample(1:200),method='ken... |
how will a content-based recommendation system recommend after a sudden change in taste of user??
what will the system recommend to new users without any data about them available in content-based filtering?
|
I'll try to explain better. I sampled a LogNormal random variate and I extracted 12001 and 12002 samples (with same initial seed for Random Number Generator). In the first case the half width of confidence interval (for mean) is 0.36633536625893326, while in the second case the width is 0.36636953704150527. Comparing t... |
I have data such that each data point, xi, is a multidimensional time series, with each feature, p, having 10000 time stamps.
xi = [pi0(0), pi0(1),… pi0(9999)], [pi1(0), pi1(1),… pi1(9999)], ….
I want to use dynamic time warping to calculate the distance between each pair of points, but I need to standardize the values... |
I am reading this tutorial about Variational Inference, which includes the following depiction of ELBO as the lower bound on log-likelihood on the third page. In the tutorial, $x_i$ is the observed data and $z_i$ is the latent variable.
Let me first ask a quick clarification question. ELBO is defined in equation (4) a... |
Let's say I have a "data" matrix $X$ of $N$ rows and $p$ cols with $N \gg p$. Now PCA with $L$ components can be formulated as
$$
X_L = \underset{Y:rank(Y) = L}{\text{argmin}} ||X- Y||^2_F,
$$
where $Y$ is taken to be an $L$-dimensional approximation of $X$.
It's known that $X_L = X W_L W^T_L$ (see here e.g.) where $... |
When applying the R fucntion SuppDists::FitJohnson() to data, the Johnson distribution parameters are automatically calculated, as in the example below. Although I don't fully understand how the estimation is carried out, I assume the parameters are optimized based on the data input.
set.seed(123)
x = runif(1e4)
SuppD... |
Quick question related to maximizing the likelihood as loss function for NN.
In case of regression, by assumption we have that the data is composed by Gaussian noise... however, the wider the noise, the more uncertain should be the prediction.
In "normal" model, we assume homoskedasticity, and the variance becomes just... |
I'm trying to work on this heart disease dataset by doing binary classification using RPART trees on data that has a hard unbalance, only 8% of the instances are positives.
When it comes to pruning I was trying to apply the 1-SE rule to select the right amount of splits. This is how my printcp looks (some rows are cut)... |
I am trying to assess the inter-rater reliability for 5 raters about 36 questions. My variables are ordinal.
Am I doing something wrong? Or what is the meaning of negative values?
|
Suppose I have iid random variables $X_1,\dots,X_n$ and some parametric function of $\theta,$ $f_{\theta},$ which is linear or nonlinear in $\theta$ (I am more interested in the nonlinear case, but if the linear case has been studied but the nonlinear case has not, I would be interested in the linear case as well).
Is ... |
Given the following task:
You feed an image $I$ with the dimensions $200\text{x}200\text{x}3$ in the convolutional layer, which consists of $12323$ kernels $K$ each with the size $40\text{x}40\text{x}3$. What dimensions of the output $O$ do you expect?
The formula for calculating the kernel is in my understanding the f... |
I want to fit data points by linear segments. The summed squared orthogonal distance of the points to the fitting lines shall be minimized, preferably using weights for the data points and for a wished number of breakpoints. How could this be implemented? Is there a solution in Python?
I am aware of the piecewise OLS r... |
I am a student looking at the annual growth for a species and trying to determine if there is a difference between the growth back in time (with time divided into different time groups (30 IDs/25% of the test samples per group)) compared to a reference (recent) group. The data includes 120 test samples (with data colle... |
I'm reading this interesting blog post explaining Diffusion probabilistic models and trying to understand the following.
In order to compute the reverse process, we need to consider the posterior distribution $q(\textbf{x}_{t-1} | \textbf{x}_t)$ which is said to be intractable ' because it needs to use the entire datas... |
This is a 2 part question regarding a multi-class classifier based on a neural network that is expected to predict whether the input image has a cat or a dog. If shown something different (like a man), it shouldn't predict either cat or dog.
Q#1:
Should I train the model with examples that don't contain cat or dog so a... |
I understand that If I add an infinite number of variables the limiting standardised distribution is standard normal. This comes from CLT
I also understand that the summation of independent Poissons is Poisson with a rate parameter equal to the individual rate parameters of summand distributions
These two prima facie s... |
I believe there are several types of residuals which can be defined for a glm e.g. "response", "deviance", "pearson", "working" etc.). Which one(s) of these should I use to test for autocorrelation after fitting a model with a binary response e.g. logistic regression, logistic mixed model etc.?
Further explanation...
I... |
Currently, I am going through Hyndman's book to learn more about time series (I use the 2nd version with the forecast package). I have trouble understanding the "correct" way of evaluating multiple (let's say 5 different) time series models. I can think of 3 different ways, and I am not sure which is the correct one:
... |
How does Abundance or Relative abundance (Chemistry) differs from statistical frequency? Or it is just another term for statistical frequency in context of chemistry?
Update: here are some example
Sciencing
LibreText
Wikipedia
etc.
Are they just statistical frequency? if it is statistical frequency then is it for sampl... |
I was using pairplots and I'm stuck in understanding the pair wise relation between those features that have vertical or horizontal lines in the pair plots.
(Image source - source)
The correlation between say experience and age is pretty clear. I'm trying to interpret feature 'sex' with other features like 'age', 'edu... |
I have been reading Section 6.2 (page 96) of this manual, where a procedure called "fully modified least squares" is discussed, and was developed on a paper of Phillips and Hansen (1990)
. The idea as I understand is that given an estimated cointegrating relationship, say:
\begin{equation}
y_t = \dot{\beta_0} + \dot{\b... |
I recently had a conversation with a college of mine and this question popped into my mind and I am unsure how to solve it.
Let's say I have 100 variables.
Some of the variables have a pairwise relationship but most of them do not and are just random.
My question is what amount of correlation can I expect that is just ... |
Recently I attended a conference in which one of the authors was talking about the mechanical relationship between variables "X" and "Y" (I don't remember exactly the variables) and possible sources of endogeneity. I searched a lot on the net for the meaning of the mechanical relationship between two variables, but I f... |
I have the following mixed effect model;
penicillin_model = lmer(yield ~ treat + (1 | blend),
data = penicillin)
Treat contains 4 categories and blend contains 5 categories, am I correct in thinking that there are 9 parameters in my model? (one as the intercept, 3 fixed effects and 5 variances)? or... |
I am using Mahalanobis distance for outlier detection. Sometimes my dataset only has 1 feature, sometimes many more. I believe the univariate Mahalanobis distance should be equal to the z-score of the data (i.e. the standardized values), but the numbers from this sklearn function are consistently larger than expected.
... |
I was going through an article on Towards Data Science page on interaction Terms. The author used two predictors: Investment1 and Investment2, he then wrote the multiple linear equation with the interaction between Investment1 and Investment2 as below:
$$
ROI = \hat{β}{_0} + \hat{β}{_1}\text{Investment1} + \hat{β}{_2}... |
I know that fully convolutional neural networks can be used for classifying images of arbitrary sizes.
I would like to use some pre-trained fully-convolution neural networks for extracting features in a dataset with images of different sizes. Where can I find such a network?
Best regards
|
I got some survey data, in which the respondents answered various questions about environmental conditions on a 1-5 Likert scale. The respondents are also assigend to a household by an household ID. So e.g. there are 1 person living in household A, 3 persons in household B, 2 person in household C, 1 person in househol... |
I am not a mathematician or a statistician. But, I think the question I have is related to statistics. I will start with a made up example.
If I can grade apples into,say four grades from 1 to 4, one being the best and 4 being the worst. Now, I get two random samples of apples from two farms. The first sample has grade... |
I've been working around Zero Inflated models. The data that I have, however, shows overdispersion so I am using a Zero Infalted Negative Binomial to model counts considering exposure.
The end goal that I am trying to reach is simply to show the expected value of children who consume a specific medication, considering ... |
I am drawing samples from my posterior, $P(x,y|z)$, using Gibbs sampling. When I sample $x$, I use a Metropolis-Hastings step. My question is whether I am allowed to use a proposal distribution for $x'$ that is conditioned on the current sample of $y$ ($Q(x'|y)$)?
My intuition tells me that this is reasonable and the a... |
How to interpret this? How to determine the number of lags?AC Plot
|
I have a dataset with daily temperatures for every country in 4 seasons: Spring, Summer, Fall, and Winter.
I wish to group(cluster) countries with similar temperature trends across the 4 seasons. I am aware of basic clustering techniques, but clustering across categories seems new. Is there a package or any previous wo... |
I have p-dimensional data and I need to determine if that data has significant modes or if it’s clustered in any way. Here p=50, (dense embedding), we have n samples and p <<< n.
What are some ways to do that? I can think of creating sample covarince matrix of 50*50. Not sure how to analyze that full matrix (eigenvalue... |
I am from the life sciences field (neuroscience research) and I am reading a journal paper about the formation of dendritic spines. In their experiments, they count the number of protrusions along dendrites and compare them across the different experimental conditions.
In one of the figures of this journal paper, they ... |
I came across this interesting preprint which has the potential for solving a number of problems I'm having with asymmetric t-distributed data. So I tried implementing it.
The pdf and cdf work great, but I am having numerical stability issues when attempting to make draws from the resulting distribution. On pp. 6 the a... |
So I’m working on pixel-level assessment of chest x-ray images from the NIH Chest X-ray dataset. The diseases labels on the images are a set of z different categories (i.e. Pneumonia, effusion, etc…). I’ve already been analyzing the histograms of images per each category, but then I wanted to go through all the histogr... |
Suppose I have a large (~10M) group of games, played by a large (~100K) group of players. Games are 1v1 and scored, so each player has a rating (analogous to chess in these regards; the real dataset is this).
Player rating distribution is kinda normally distributed, but the rating of players in games is biased:
Strong... |
Which is the correct way to describe the conditional probability distribution of X conditioned upon Y where X = a, Y = b
$$P_{X \mid Y}(a \mid b) \tag1$$ or $$P_{X \mid Y}(a,b) \tag2$$
What is the difference between the two? I have seen (1) written at places. But, $P_{X \mid Y}()$ is a function in x and y. So I don't s... |
I would like to simulate some predictors to test the parameter estiamtes in different situations, but I have no idea how to do this. I have already had an available response data (Y). How to do this if we have already known the parameters and the intercept for the predictor which need to be simulated.
Suppose the targe... |
I have data which is non-linear, heteroscedastic and is spatially autocorrelated. The predictor and response are continuous variables. Quantile regression accounts for the heteroscedasticity but I am not sure how to account for the autocorrelation. As one of the assumptions for quantile regression is the independence o... |
I thought of a situation where we are given a random variable $X$ that has a Cantor "rescaled" distribution. That means that for a parameter $p>0$, $X$ has CDF $F_X(x)=C(\frac xp)$. This CDF has no derivative so $X$, a continuous RV, has no density. How do we define the maximum likelihood estimation (MLE) in this case... |
I have a dataset made of categorical variables and a binary outcome. Responses about the variables and the outcome were recorded at time 1 and time 2. The data is imbalanced between the two outcomes (10:3) at time 1, and more so at time 2 (40:3).
Does it make sense to create a logistic regression model using the time 1... |
I'm trying to compute the following integral over the unit square $I^2=[0,1]^2$:
$$
\int_0^1\int_0^1 |u-v|dC(u,v),
$$
where $C(u,v)$ is a generic bivariate copula, which should be equal to
$$
1-2\int_0^1 C(u,u)du
$$
(see the paper https://www.degruyter.com/document/doi/10.2478/demo-2014-0004/html).
I've tried to split ... |
I am currently running a chi square test and my values from the hypothesised model are
65.387 on 24 df and I want to compare the results to another nested model which values are 28.535 on 8 df (28.535-65.387 =-36.852). However, my chi square difference is negative. Does this mean I cant run the test ? It is handwritten... |
I'm trying to solve this question but I'm not sure about my thinking.
So I think what I need to compute is : $$P[\text{rolled the 6 sided die} | \text{got numbers 1 and 5}]$$
I tried to do it with the following formula : $$\frac{P[\text{rolled the 6 sided die AND got numbers 1 and 5}]}{P[\text{got numbers 1 and 5}]}$$
... |
class googleNet(nn.Module):
def __init__(self, latent_dim=512):
super(googleNet, self).__init__()
self.model = torch.hub.load('pytorch/vision:v0.10.0', 'googlenet', pretrained=True)
#freeze paramters (trains faster and keeps weight values of ImageNet)
for params in self.model.parameters():
para... |
I have a question on interpreting interaction effects: I've read a lot of posts with similar problems but not with the exact same one, so I hope someone can help. Huge thank you in advance!
In a first model, I have two independent variables A and B which have a statistically significant coefficient on my dependent vari... |
This question: Difference between Cohen's d and Hedges' g for effect size metrics
shows there are at least two different interpretations each of both Cohen’s D and Hedge’s G, one of them in common (the one with weighted pooled standard deviation calculated using weights proportional to n-1, where n is the sample size).... |
I am confused trying to understand the difference between two ways of executing an EFA in R that I previously assumed to be completely equivalent. First, I make some data up:
A <- sin(1:15)
B <- A + sin(2*(1:15))
C <- A + sin(3*(1:15))
D <- 0.5*A + sin(2:16)
E <- D + sin(2*(2:16))
test.data <- data.frame(A,B,C,D,E)
An... |
I am trying to compare variances across models, am i correct in thinking that in a normal GLM the variance is equal to the dispersion parameter. So is my dispersion parameter is 40.1 my variance is the same value?
|
Suppose we have a multivariate Gaussian distribution $X \sim \mathcal{N}(\mu,\Sigma)$ where $\mu=(\mu_1,\mu_2,\dots,\mu_n) \in \mathbb{R}^n$ (the posterior of a conjugate Gaussian prior perhaps). Is it possible to obtain closed form expressions for the $(1-\alpha)$ credible region of $X$ (e.g. for $\alpha=0.05$) ? Simi... |
I have got some data about movie directors and number of cuts per minutes in their movies. I whould like to verify if there is any relation between this two variables. I have tried looking at the mean values of the data grouped by director, and it seems to me there could be something interesting. However, the number of... |
The wikipedia page on rank-size distributions claims:
"When any log-linear factor is ranked, the ranks follow the Lucas numbers, which consist of the sequentially additive numbers 1, 3, 4, 7, 11, 18, 29, 47, 76, 123, 199, etc."
I can't find any sources for this claim. What is the relationship between log-linear distr... |
I'm reading a paper where (simplifying):
$Y_{i} = \beta_\theta \theta_i + \beta_x X_i + \epsilon_i $,
$\epsilon_i \sim N(0, \sigma_\epsilon^2) \perp (\theta_i, X_i) $, and $\beta_\theta$ and $\beta_x$ are fixed constants, and $\theta_i$ and $X_i$ are jointly normally distributed such that:
$\begin{pmatrix}
\theta_i \\
... |
We compute confidence intervals to estimate the true population mean of either a sample (when population standard deviation is unknown) or an entire population (when population standard deviation is known). But I wonder why, if we are given an entire population, why don't we calculate the average of that population ins... |
Adapted from digital dice by Paul Nahin. I've been struggling with this for a few days.
Question: A restaurant employs 5 dishwashers. In a week they break 5 dishes, with 4 breakages due to the same individual. What is the probability of a single dishwasher smashing at least 4 of the 5 plates.
Attempt at solution:
There... |
I'm using Monte Carlo to estimate some quantity $V(x)$. To get an approximation of $V'(x)$ I would use the following
$$
V'(x)\approx\frac{V(x+h)-V(x-h)}{2h}
$$ so I can simply evaluate it with two estimations and get the approximation. My question is, given the standard errors of $V(x+h)$ and $V(x-h)$, what should be t... |
Suppose I have a bag of marbles containing blue and red marbles. I guess/predict that my chance of drawing a red marble is 60%.
If the actual distribution turns out to be 80% blue/20% red, how can I best quantify the accuracy of my initial prediction?
Is it possible to restrict such a quantification to a range between ... |
Background
I'm teaching an intro stats class in our social / health sciences department and I'm finding myself tripped up on something I'd always taken for granted: namely, the claim that survival analysis methods (from Kaplan-Meier to Cox models) "account for" censored data, and that this is one of these methods' cent... |
I'm trying to conduct a "mini" meta-analysis on a series of 6 studies I've conducted. With regards to the mini meta itself, I've used the steps outlined in this article (and the associated excel spreadsheet for calculations): https://www.researchgate.net/publication/309411119_Mini_Meta-Analysis_of_Your_Own_Studies_Some... |
I fitted 2 models with a python package (curve_fit function from scipy.optimize) one linear and one nonlinear. I want to compare those 2 models.
I compared those to model by calculating the AIC using the definition given in (p.63 Burnham Anderson Model Selection and Multi-Model Inference Springer 2002), namely:
$$
AIC ... |
I want to check the proportional hazard assumption. I used both test using cox.zph() in R and schoenfeld residuals plot using hggcoxzph(). I want to know if the plot is fine and how I can interpret it. From the test p-value is not significant which is good, but how about the schoenfeld residuals plot?
|
In my regression model, the dependent variable has just a range of 96-100 with a mean of 99.73. My questions are:
1.) (How) Does this affect the quality of the linear regression model?
2.) What would be a reasonable way to take this into account?
Thanks in advance!
|
Suppose a discrete random variable $Y$ takes $k$ levels of different values $y_1,y_2,...,y_k$. Let $P(Y=y_k):=p_k$.
Suppose we have $n$ i.i.d. samples of $Y$, my question is:
How can we compute the ePMF? What's the MLE estimator $\hat{\mathbf{p}}$ of the distribution parameter $\mathbf{p}:=[p_1,p_2,...,p_k]$?
What's ... |
I have the following problem: I have a simple linear model with 3 independent variables.
Var1 has 10 categories, Var2 has 6 categories, and Var3 has 3 categories.
Rate ~ Var1 + Var2 + Var3
model1 <- lm(Rate ~ Var1 + Var2 + Var3, date = Data)
I need put a constraint on the model so that the coefficients of the last t... |
In financial application, someone might make use of machine learning techniques in stock price prediction, e.g. LSTM. In general, before training the model, in light of the model robustness, some practitioners might select MinMaxScaler to transform the whole series of stock prices.
However, the MinMaxScaler could resul... |
I want to control multiple confounders in my data, and I have noticed that including the propensity scores as a variable in the model gives good performance after propensity score matching. I know that including the covariates in the model after propensity scores matching is an established method called doubly robust m... |
Let
$$ R_{i}(t) \sim \mathcal{N}(\mu_i, \sigma_i^2), $$
denote the one period return distribution for asset $i$, from which we observe the iid samples $\{R_i(t)\}_{t=1}^{n_i}$. The MLE sample mean and unbiased sample variance are given by $\hat{\mu_i}:=\frac{1}{n_i}\sum_{t=1}^{n_i}R_i(t)$ and $\hat{\sigma}_i^2 := \tfra... |
Suppose that we have two random vectors following joint normal distributions:
$$X=[x_1,x_2]'\sim N(0,\Sigma_X)\quad \textrm{and}\quad Y=[y_1,y_2,y_3]'\sim N(0,\Sigma_Y).$$
In this setup, I am wondering whether the following random vector follows a joint normal distribution:
$$Z=[x_1+y_1,\;x_2+y_2,\;x_2+y_3]'$$
Here is ... |
For my thesis, I am comparing the differences in habitat selection of little owls between 2005 and 2022. For both years I have little over 100 presence points (value 1) with a buffer of 50 meters around them to account for location errors. I created around a 1000 random pseudo absence points (value 0) with the same buf... |
I am a conservation biologist and I am creating a new index to classify species extinction risk. The index ranges from one to zero, with scores closer to one representing a higher extinction risk. Due to the distribution of the data, the calculated values are always very skewed: few species have a value close to one an... |
I have read a description of R package and find the following:
"Evaluate the density of the fitted model at (2.747, 0.1467, 0.13, 0.05334)".
I do not understand what the author mean by evaluate the density, and what are the nubmers to evalue the density at?
What is the benifit of evaluating the density function of a fi... |
I have a total of 18 mice, 9 from Healthy group and 9 from Sick group. Since I have a very poor sample size I would like to use boostrapping or permutation test.
Is there a way to conduct a boostrapped or a permutation wilcoxon rank sum test in R ? thus obtaining a boostrapped p-value or p value from permutation test
F... |
I am working on a model where some of the numbers need to derive from various data points.
I want to confirm if the churn rate can be calculated by the following formula:
Churn Rate = 1 - Retention Rate
Is there some good reference around it as most of the google search leads to a definition and does not fully explai... |
I am working on a time series regression problem applied to finance. I am interested in predicting the price change of a stock and how much will it change by.
I have framed this as a regression problem using MSE as my loss function. This gives good MSE accuracy. I would like however improve on the directional accuracy ... |
I am trying to find out if I can use ARCH/GARCH models. To my knowledge, to use ARCH/GARCH models you should have autocorrelation and this correlogram should not be a white noise. How can I know if this is a white noise or not?
|
I'm attempting to model my dependent binary variable using only a single continuous independent variable with "duplicate values", but I'm not sure if this counts as a "repeated measures" scenario. I ask because the dependent variable isn't being repeatedly "tested" (because each "outcome" is an independent observation ... |
I am trying to summarise and visualise three attributes in R:
Patient_Age, Patient_Deprivation and Hospital_Time.
I am trying to summarise the time patients spent in hospital by deprivation(scale 1-5) & Age. I also calculated the covariance and correlation. If I want to summarise the total time (diffr_days) by Age and ... |
I am interested to calculate the pseudo-r-squuared for a zero-truncated poisson mixel model (using glmmTMB). The r.squaredglmm (package MuMin) gives a message that it can not calculate pseudo-r2 for zero-truncated poisson. Is there an easy work around or quick-and-dirty alternative?
|
In Least Angle Regression (LAR), the coefficient $\beta_k$ is updated every $k$th step with:
$$
\beta_k=\beta_{k-1}+\lambda( X_\mathcal{A}^TX_{\mathcal{A}})^{-1}
X_{\mathcal{A}}^T(y-
X_{\mathcal{A}}\beta_{k-1})
$$
The book says that this update moves the coefficients to the direction of $\beta$ derived from least squ... |
I have data made of vectors $\textbf{x}$ and $\textbf{y}$. I want to predict $\textbf{y}$ with $\textbf{x}$ and a set of hyperparameters $a_{1, ..., 3}$ to be fitted with a linear and a nonlinear model using a python package (curve_fit function from scipy.optimize):
Linear model (in x):
\begin{equation}\label{equation_... |
I commented to a colleague that we could improve our measurement of treatment effects by ensuring proper randomisation into treatment and control groups by balancing the treatment and control groups on variables we thought could influence the propensity to take the action we are trying to measure.
His response was that... |
I ran a linear regression model with 15 features in R. 5 of them are categorical features (converted to factors and first category dropped for each of them). 10 are continuous features (already scaled).
When i ran the summary function, the t-test statistic for continuous_H is not significant. However, when I ran anova ... |
Given a multi-label classifier, e.g. multi-label image segmentation, what are some typical strategies/libraries to help tune the class label threshold in order to maximize some metric, such as F1-score?
For example, a brute force approach would be to do a grid-search over threshold values over some test data, however t... |
I have the following model which i am trying to write the mathematical equation for.
model;
mod = lmer(test ~ IQ + ses + (1 | Class), data = pupils)
I have the following equation for it but not 100% sure im correct, would anyone be able to confirm or point me in the right direction please;
Example of my equation wit... |
I'll try to summarize my situation as best as I can first.
I'm doing a project in which we're trying to do a prognostic model on a specific disease to determine the risk of an outcome happening to adults based on clinical manifestations of the disease when they're children. All of this using Cox regression. Now, my onl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.