instruction stringlengths 9 38.7k |
|---|
I have tried to search from a few sources, but I did not see any one of them specifically talking about this issue. For example This blog post seems to imply that the embedding used in transformer is learned separately (in other words fixed during transformer training.
As is the case in NLP applications in general, we... |
I am trying to estimate a model from Camerer, Ho and Chong 2002 p151.
$i$ is individual, $t$ is time
$j\in m$ which is action set
$s, a$ are two types of individuals
$s_i(t)$ is chosen action by subject $i$ in period $t$.
$P$ is probability.
$$
A^j_i(a,t)=\frac{\phi N(t-1)A^j_i(t-1)}{N(t)} +\frac{[\delta+(1-\delta)I(s^... |
Thanks for your time handling my issues.
I have several time series models to be improved for the same data set.
Time series regression
The first model incorporates only 5 time stamps, whereas we can use 9 time stamps, under the purpose of capturing 'recent' trend.
The model is currently defined by regression model, ... |
I have the following problem: I have a text which needs to be annotated with named entities. I have two annotators who have annotated the text twice. How can I calculate if the change in the number of annotations (first annotation round vs second annotation round) is statistically significant?
The concrete numbers are:... |
I have used forwards binary logistic regression to determine which predictors are significant in classifying patients into two clinical categories. Three significant predictors were identified. Could I create an overall score for each patient based on B value obtained in logistic regression and as follows
Score = B val... |
A ROC curve has particular meaning about how the sensitivity and specificity change as the classification threshold changes for two groups of data. The x- and y-axes both range from zero to one, and the curve is weakly increasing.
We want our ROC curves to be above the $45$-degree line, but terrible performance can res... |
Consider the following gatekeeping strategy (for the sake of simplicity, let's assume that family $F_i$ has only 1 hypothesis, $H_i$),
Hypothesis $H_1$ is tested at the 5% significance level,
If $H_1$ cannot be reject, then stop
Otherwise, $H_2$ is tested at the 5% significance level,
And so forth.
Why/How does this ... |
If I have a biomarker time-dependent variable sampled as a whole time serie, instead of few repeated measurements, and I want to fit a joint model to predict time-to-event as a function of the time-dependent biomarker, does it make sense to add a AR(1) covariate (i.e., the response variable itself lagged back of a peri... |
I have monthly time series data on stock prices from January 1990 to August 2023. I tend to use walk-forward validation to compare the forecasting performance of ARIMA and LSTM models on this time series. I split the time series as follows:
Sub-training: January 1990 to December 2020
Training: January 1990 to December ... |
I have conducted a survey and would like to assess whether men compared to women differ in their attitudes. At a glance, the means differ quite much, which is why I wanted to prove it statistically.
For this reason, I conducted a Mann-Whitney test, as my dependent variables are ordinal and the distributions are non-nor... |
I am working on a statistical learning exercise that requires some knowledge of convex optimization which I am unfortunately lacking.
Consider the linear regression model
$$y_i=h(x_i)^\top\beta+\epsilon_i \quad i=1,\ldots,n$$
where $\varepsilon_i$ are random errors. Consider a symmetric, positive definite kernel $K(x_... |
I need to assess the effect of different treatments on a crop. I am using a completely randomized block design with 4 treatments and 4 replicates for each treatment. The variables I need to measure are:
The percentage of infested plants
The percentage of infested leaves in infested plants
These measurements are perfo... |
I have two sets of N-dimensional measurements following each other with a certain time gap in between. Let's name those sets $A$ and $B$, respectively. All observations have constant Gaussian white noise characterized by the covariance matrix $R$.
The process is well-modelled in a linear Kalman filtering sense, i.e. de... |
I'm working on a Bayesian analysis of a coin-toss scenario and have a conceptual question to clarify my understanding.
Background
Given a uniform prior on the probability that a coin lands tails over $[1-b,1-a]$ (and therefore, the probability of landing heads is uniformly distributed over $[a, b]$), with some sample e... |
I am using Stata for my analysis. I am analysing a numerical variable over a categorical one (with 3 groups). After confirming they are normally distributed, I did a one way ANOVA test. But Bartlett's test showed me that the variances are not equal. What should I do next?
Do a Kruskal-Wallis test?
Should I perform a mu... |
For 2 x 2 between-subjects design: I have 227 responses to a 4 condition group questionnaire online. I used a G*Power 3.1 calculator assuming power 0.90 and alpha level 0.05 and to detect medium effects (f = .25) and determined that I need a sample of 206. One group has only 201, the rest have more. Does this mean I on... |
I have two p-values from independent test which I wish to combine. I do this using fisher's method, but I get some results that I don't quite understand. If I have two p-values, and combine them, this can result in a larger p-value than one of the original ones:
from scipy.stats import combine_pvalues
p1 = 0.25
p2 = 0... |
I am a beginner in using glmm, I have a question about which structure to test "within individual and within context". I have collected vocal data on 12 different individuals (animals) in a "before/after" setting. I want to test if there are differences in vocal parameters before and after within individual while also ... |
So I ran a multi-level model using the nlme/lme4 R packages. Testing the assumptions, I found that level 1 as well as level 2 residuals are not normally distributed, also there's heteroscedasticity on level 1 and 2. Additionally, level 1 and level 2 residuals are not independent from each other.
I did some research on ... |
I am wondering if there is a statistical procedure to test if two proportions from a multinomial are equal. For instance: I take a sample of animals in a reserve in South-Africa and count the number of each animal. I find that there are 200 zebras, 180 antelopes and 750 other animals. How to test if the proportion of z... |
I collected data on fixation count metrics (also called number of fixations) via eye-tracker technology on a sample of 120 participants. The fixation count was calculated on certain AOIs (areas of interest) in a video: some AOIs are larger (e.g. the logo), other AOIs are smaller (e.g. a company's website).
However, I e... |
I am working on a regression model, trained with a finite dataset. The algorithm that I use is a LightGBM, but I think the solution I am looking for would be algorithm-agnostic in essence.
I suspect that at evaluation time, some of the predictions of my model are off because it is extrapolating too far away from the ex... |
Given some standard assumptions, the test statistic
$$
\frac{\Delta\bar{X}}{\sigma/\sqrt{N}}
$$
is normally distributed if $\sigma$ is known and t-distributed if $\sigma$ has to be estimated from the sample. The difference of the distributions is most pronounced for small sample sizes and in the tails (which are fatter... |
I am running a log-linear regression model, using the Fatalities data set, where estimated regression is an outcome variable (Fatalities) and contains fixed effects for the year and state. I am taking the log transformation of the Fatalities variable (numeric number of vehicle fatalities and have a question on 1) the i... |
Background
This is a follow-up on my last post.
I have a GAM of presence of a bird species from a large dataset. There are over 400 sites in my data, where each site corresponds to a unique observer. Site-level variation is the biggest source of variation in the data. There are 30+ years of data, and 20,000 rows.
My ma... |
The Agricolae package in R contains a function HSD.test which performs Tukey's HSD. This function has a parameter unbalanced, which is described as:
TRUE or FALSE. not equal replication
My usual understanding of an unbalanced test is one with different sample sizes in each treatment. I am having trouble understanding... |
In Applied Logistic Regression by Hosmer, Lemeshow and Sturdivant (2013), the formula for Cook's distance in a logistic regression is given as,
$$\Delta\beta_j = \frac{r_{sj}^2h_j}{1-h_j}$$
where $r_{sj}$ is the (internally) studentised residual for observation $j$, and $h$ is the leverage value. However, in R I believ... |
I am designing a study that has the objective of assessing if working memory varies throughout the day (morning vs. afternoon). I will measure 5 components of working memory with 5 cognitive tasks. The same group of participants will complete these tasks in a morning session and an afternoon session.
Our participants w... |
My dataset compares the impact of 2 shoes at 3 speeds on a dependant variable. When it comes to post hoc pairwise testing I would look at
shoe1 vs shoe2 at every speed
speed 1 vs speed 2; speed 2 vs speed 3; speed 3 vs speed 1 for each shoe
Would i apply Bonferroni 2 times for the first set of 3 and 6 tests, or one t... |
I am new to statistics and recently learned about ISO guidelines for Accuracy & Precision and Uncertainty & Error. I have tried to plot a graph for what I have learnt including all the parameters of a measurement.
I just want to know that my graph is correct or not according to defination of ISO?
I am very sure about t... |
I have 2 continuous variables $(x,y)$ for a dataset $n=186$ that has a strong, positive linear relationship ($m = .46, R^2 = .96, p<.05$). Within this dataset I have 3 different habitat types (B,F,S) for which there is an $x$ and $y$. I have computed individual linear models for each habitat type and the slopes are sli... |
Newbie with linear mixed modelling here. Need some advice/help on my problem detailed below.
Dataset below with assessments taken at different visits: baseline (visit=1), and then at 30 days, 60 days and 90 days post-baseline), and the following variables:
DISEASE - the outcome, is an ordinal variable with 4 levels (1=... |
I got this graph for my loss.
As you can see the distance between the two graphs is so much!
Can we say it shows bias is large and it's underfitting?
Is this thing that I just said true or isn't true? So what's the reason?
Sorry if my question isn't good. I'm super new in this field and couldn't find an answer.
|
I want to analyze the relationship between the dependent variable "Knowledge_index" (va numeric variable ranging between 0 and 1, both inclusive) and several independent variables (type “factor”, including "Age", "Gender", "Place_birth", "Residence_time", "Education" and "Professional_sector".
str(data$Knowledge_index)... |
Does anyone know the assumptions of a mediation- I can't find a clear answer anywhere! Should I consult regression assumptions?
I am only doing a simple mediation x > m > y using the mediation package on r.
Any help is appreciated. Thanks!
|
Let $f(s) = \sum_{i=1}^p \beta_i \phi_i(s)$ such that $f: \mathbb{R}^2 \mapsto \mathbb{R}_+$ and the $\phi_i$ are splines (B-splines or Thin-plate splines) and suppose we are interested in $W\subset \mathbb{R}^2$ and we have a fixed partition of $W$, $\{C_j\}_{j=1}^m$. I'd like to find the coefficients
$$
\int_{C_j} ... |
My problem involves comparing the performance of machine learning models to how good each model's recommendation is.
The way I'll design the experiment is as follows:
I'll send out a form to multiple people.
Ask them which model's recommendation they like out of the four options.
Store the data somewhere.
Do statistic... |
I don't have any colleagues who I can ask about this so I must turn to my colleagues on Cross Validated.
I am fitting a stacked adaptive elastic net regression and am having some trouble understanding some output. The model performs k-fold cross validation across 100 candidate values of lambda, the L1 regularisation pa... |
I'm considering including vehicle incident data paired to date, however the most extensive data for the region I am interested in does not have dates. I would like to include it in a multivariable forecast with one of the variables being "number of incidents". The dataset is ICBC Reported Crashes if you want to look in... |
Suppose we have two randome variables $X$ and $Y$, with joint distribution $f(x,y)$. $X$ and $Y$ are independent if and only if the marginal distribution of $X$ is the same as the conditional distribution $f(x)=f(x|y)$.
My question is, if for some reason, the expression $f(x|y)$ does not contain the term y, does that i... |
I have a pool of 20-ish quantitative studies that report odds ratios for a particular outcome (e.g. homelessness) but most studies will also report a few more outcomes. All of these studies report the multivariate odds for lots of predictor of these outcomes. I have narrowed down the predictors and outcomes that I am i... |
I am currently attempting to determine the order of integration for a nonstationary time series of the Federal Funds Rate (https://fred.stlouisfed.org/series/FEDFUNDS - Monthly, 1990 to 2004, 168 obs.) in R, and am using both the ADF and KPSS tests (using the adf.test() and kpss.test() commands).
When I test the undiff... |
Problem to solve
We have a vector of random variables $\textbf{X}=(X_1,X_2)$ issued from a bivariate normal distribution. In particular, $\mu = \begin{bmatrix} 2 \\ 3 \end{bmatrix}$, $\Sigma = \begin{bmatrix} 2 & 1\\ 1 & 2\end{bmatrix}$. Find the conditional PDF, $f(X_1|X_1 + X_2 = 5)$.
Approach so far
Main objective: ... |
I was confused regarding fixed effects regression model. Suppose I have a panel dataset with data on firms across several years. Introducing firm fixed effects and estimating deviations from means (average of each firm across time period) is algebraically the same. But what if one of my predictors in a binary variable.... |
I want to analyze the effect of interest rate to exchange rate with VAR. After some unit root and stationarity tests (ADF, PP, KPSS), all of the exchange rate time series are I(1) series, whereas interest rates are I(3) series (the attached graph shows the interest rate series).
Is it still possible to use VAR with th... |
Given an ordered sample set A = {X_1... X_n}, from an unknown non-uniform distribution. Given two params $\mu$ and $\sigma$.
Select a subsample set B = {X_k....X_k+m} such that the sample mean of B is $\mu$ and its standard deviation is $\sigma$.
m < n; Combinations of $\mu$ and $\sigma$ may return no subsample.
The M... |
We are running a fixed effects regression to investigate the effect of different variables on weekly healthcare consumption. The data is comprised of several thousand time series, where each time series contains the weekly spending of a unique patient across the same year, so we have 52 observations per patient. Some p... |
If I had repeated measures of the units in my sample, is it always preferable to analyse as is and account for these with a method such as GEE or a multi-level model - because of the gain in information -, or are there times when it is better to average within unit and analyse the data cross sectionally?
Thanks
|
Edit: I am trying to produce a model in R in order to analyze the relationship between several variables. I am looking at the relationship between behaviour and dispersal of a population. Each individual has four independently produced behavioural scores (between -25 and 25) and five different measures of how they ha... |
If I run the following r code:
m_train = lmer(y ~ x * z + (1|x), data=data)
anova(m_train)
Are the resulting F statistics one-sided or two-sided?
Thank you very much in advance!
|
I proposed the following binomial model, with the glmmTMB library, because I want to evaluate if there are differences between the proportions of infection by a given parasite for different communities, the number of dogs in the environment and, as a random effects variable, I propose the families, which are nested in ... |
I'm analyzing the results from an epidemiological study, where I have a sample of 2k persons with their respective ages and whether they were detected with a disease or not by different technologies. Those with the outcome of interest are a small number, around 10 individuals.
I would like to estimate the mean of such ... |
DLNM centers the basis variables at the mean of the continuous variables. The value at which the variable is centered becomes the reference. How do I change the centered/reference value? As per the paper https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3191524/ , cenvalue option enables the change in centered value and ... |
We have collected data from n patients, with each patient having one eye treated and the other untreated.
We would like to see if the treated eye progresses differently to the untreated eye using biomarkers measured from each eye.
Currently, I am using the model:
lmer(biomarker_change ~ days + treated_yn + (1 | patient... |
I am using Grid search for an SVM-RFE predicting a binary outcome with 33 features.
X_train, X_test, y_train, y_test =
train_test_split(df[df.columns.difference(['label'])],
df['label'],
test_size=0.2,
... |
I am a bit confused about the numerator of the t-statistic in a paired t-test. I know it's the mean of the differences between the samples, but is it the mean of the absolute differences or mean of the signed differences? When I google'd this, the top few links seem to provide examples that suggest it's the mean of the... |
In the original [MC Dropout paper][1], the variance is calculated as the sum of two contributions, an sample variance (over the multiple forward passes), var$(y)$, plus a term quantifying the inverse model precision, $\mathbb{1}\tau^{-1}$, where $\tau=\frac{pl}{2N\lambda}$ with $p$ the probability to not drop out, $\la... |
Q-function approximators based on neural networks tend to overestimate the Q-function. Accordingly, reinforcement learning algorithms such as Soft Actor-Critic (SAC) and Twin Delayed DDPG (TD3) use two separate critic networks which have single scalar output per sample and take minimum of their predictions to compensat... |
There exists multi-collinearity in the model. As a result(may be) the accuracy of Naive Bayes model is less than logistic regression model(model is built with the help of PCA). So, is there any method to build Naive Bayes model in the presence of multi-collinearity?
|
I attempted to perform t-sne on some variables: Probability (%) of dying between age 30 and exact age 70 from illness (all)', 'Suicides per 100000 (all)', 'social_support', 'birth_health', 'freedom', 'generosity', 'perception_corruption', 'government_confidence', 'percent_internet_users', 'GDP_per_person', 'gini_report... |
In a language like Ancient Greek, verbal forms are marked for voice (active/middle/passive). Deponent verbs are verbs that exist only in the middle (or passive) voice, but appear to have an active meaning, e.g. ἔρχομαι 'come'. Suppose I have the impression that there are relatively many deponent verbs with a certain fe... |
I have proportional data to which I have fit a logistic regression (i.e. fractional logistic regression). The statistician in our group wants me to provide a c-statistic for the regression.
My understanding was that the c-statistic was equivalent to the AUC, which evaluates the performance of the model for binary class... |
i am investigating smoking exposure (0,1) and caries outcome (count data, 0-28). I am using a negative binomial hurdle regression model (considering excess zeros in outcome) for my analysis
Model 1:
caries@~ smoking@5years+ + alcohol + education
I also have a smoking variable at 1 year. Knowing that if I include it in ... |
I guess my question is related to these ones: Choosing among proper scoring rules, The performance metric used in prediction is different from the objective function to train the model, but I'm still puzzled...
I've been taught that the proper way to perform regression is to find the parameters by maximum likelihood. T... |
I've created a predictive model which is based off a historical dataset and has 20 independent variables as the dataset set is comprised of completed projects, so have full information and dataset of the project. In the future, when used to predict outcomes, only 14 variables will be available as the project will be at... |
I am considering the following censored regression model. I have a question about my R code.
Then I obtain likelihood function as follow.
Then i obtain log-likelihood function.
##Data Generation#################################################
set.seed(123)
n <- 1000; u <- rnorm(n);x<- rnorm(n,0,sqrt(2))
y_star <- 1... |
Many a times it happens that you get comprehensive data at a group level and you have to compare one group against another but you don't have the data points separated. In these cases, how do we get standard deviation/standard error calculated from only the mean of the group and sample size? Is there any proofs availab... |
Suppose $(X_n)_{n\ge 1}$ is a sequence of independent Exponential random variables with mean $1$. I am trying to find the distribution of $\min_{j\ge 1}(X_1+X_2+\cdots+X_j)/j$.
Simulation suggests the distribution is uniform on $(0,1)$.
Define $S_j=X_1+X_2+\cdots+X_j$ and $Y_n=\min_{1\le j\le n}\left\{\frac{S_j}{j}\rig... |
I'm currently working on a thesis on patent citation networks.
Most approaches are based upon the hypothesis that the degrees, specifically the in-degrees (forward citations) follow a power-law distribution, thus making the network scale-free.
For some datasets this is true (e.g. herbicide patents), but for other it is... |
I am looking to determine whether patient's total number of prescriptions (RxTotal) differs by membership within 3 possible groups (ie run an ANOVA), and if so, to determine which groups differ (ie run multiple comparisons). My data is non-normal (Shapiro Wilk p<.0001) and the groups have unequal variances (Levene p<.0... |
Recently, I have encountered Hypergeometric function $\,_2 F_1\left(\frac{1}{2},\frac{x+1}{2};\frac{3}{2};-z^2\right)$ in the context of order statistics.
In particular, I am trying to evaluate an integral $n(n-1)\int _{-\infty }^{\infty } (F(d+z)-F(z))^{n-2} f(z) f(d+z) dz $, where $F(y) = \frac{2 e^y \ _2F_1\left... |
I have multiple economic indicators as covariates such as employment rate, gdp growth, average wage, etc. I want to estimate each of them's effect on travel demand. I was thinking of two steps:
Make a DAG based on their relationships
Make each of the economic indicators one at a time as treatment variable and the rest... |
After using the Shapiro-Wilk test for Bivariate Normality, I found different values of p. For the ones which were p<0.05 I used Spearman and the ones which were p>0.05 I used Pearson. Is it the other way around? Just tell me right or wrong.
|
I have a dependent variable measuring some event, say for each person, I have them in a dataset for a certain amount of months until they die, and they exit the data set. I define my dummy variable = 1 in the month and year in which they die. I want to see if there was a particularly high probability of death in a spec... |
I have a simple multiple linear regression model with an interaction term, and I would like to construct a standard error to support interpretation. My goal is to construct a standard error for an estimate of the sum of coefficients β1, β2, and β3. Suppose the dependent variable Y is income. Suppose X1 refers to gender... |
In short: is there an alternative expression for posterior on weights in a linear model, that works with no observation noise?
In Rasmussen & Williams "Gaussian Processes" they consider a linear model:
$$\begin{aligned}
y & = \mathbf{x}'\mathbf{w}+\varepsilon\\
\mathbf{w} & \sim \mathcal{N}(0,\Sigma_... |
I have vegetation cover (%) data [0,1] that includes 0's and 1's that I'd like to model with a beta GAMM, but don't understand the method for doing so. I've read that if the data includes 0's and 1's this makes it a "zero- and one- inflated model" which it involves adjusting eps within the family argument, but the inst... |
We have workouts, durations, and difficulties and we want to know how many unique combinations of these items we can form.
Workout
Duration
Difficulty
Strength
10mins
Beginner
Yoga
15mins
Intermediate
Stretching
20mins
Advanced
Biking
Running
Rowing
There are three different ways these optio... |
I'm working with a time series dataset and am interested in normalizing the data using the rolling Median Absolute Deviation (MAD). The true MAD is defined as:
$$ \text{MAD} = \text{rolling median}(|X_i - \text{median}(X)|) $$
However, due to computational constraints, I'm considering an approximation method that uses ... |
I am running a yearlong intervention with students. I will have about 50 in my sample. Students took a pre-/post- mathematics assessment which gives them a raw score. I want to measure their growth on that assessment in comparison to the average growth of students in the school district. Also, students are taking a pre... |
I'm trying to follow B-J methodology for my intervention analysis. My understanding of of the first step is that, one should detrend any systematic trends such as seasonality then determine the lag order by observing the PACF and ACF of the detrended series. But I now have to include a dummy variable for the interventi... |
I work with a labelled tabular dataset of about 1 million observations, with the target being binary. The dataset is heavily imbalanced - about 0.5% positive class.
I have trained a gradient boosting tree-based classifier (LightGBM) to predict the binary class, obtaining a good baseline in terms of precision and recall... |
Is it essential to have the data grouped in a Poisson regression? An example:
I want to know the determinants of traffic accidents in a country through data from two cities. My 3 explanatory variables are the number of young people, gender and the number of cars.
Later I want to know if my model correctly predicts the ... |
I ran HDBSCAN on these coordinates and got some clusters but some are too large. HDBSCAN has a minimum cluster size parameter, but no maximum size. All I want is to intuitively divide larger clusters so that none are larger than a maximum cluster size. Essentially, something that creates the second plot below. I could ... |
Let's consider a true classification problem, that is, one where the predictor makes categorical predictions (not probabilities).
It makes sense to assess the accuracy of such a predictor. However, that accuracy should be given context. The easiest example of this is when there is imbalance: a model can achieve an accu... |
In this post I established that the standard error of cross-validation prediction error is the standard deviation of prediction error across folds divided by the square root of the number of folds. Hence in a lasso regression with 100 candidate values of lambda there will be 100 standard error of prediction errors.
Thi... |
I am trying to compare slopes of a simple model with a polynomial effect in R:
> fit = lm(y ~ poly(x, 2)*w, data = df)
here x is a continuous variable, and w a categorical effect with 2 levels
I tried to do so using sim_slopes from the interactions package, but I get a subscript out of bound error :
> sim_slopes(fit, ... |
We are searching for the best model to represent continuous data of gene expression logFC (Y-axis) across 5 time points (X-axis), where the trend line would follow the mean expression on each day. Additionally, in each day there are two groups of genes: leading edge and the rest.
We have fitted a polynomial model or pl... |
We have two different independent internal function calls for an application module, max of the time taken by two function calls individually determines how much the overall module takes. Individually, both the internal function calls are normally distributed. So, it means for a single execution, time taken by internal... |
How should I interpret the negative relationship between the residual and the fitted value in the plot shown below?
|
A standard problem in classical statistics is to find a good estimator that minimizes a given cost function under certain conditions. Normally we want to require the estimator $\hat\theta$ to be unbiased in every possible value of unknown parameters, that is
$$
\mathrm{E}_{\boldsymbol{\theta }}^{(n)}\left[ \hat{\theta}... |
I want to calculate the relative importance of predictors of a hurdle model, my first choice is dominance analysis. For that I would need a suitable metric of model quality. My first thought is to use a pseudo-R2 like McFadden, but I am not an expert.
Could anyone provide advice on a suitable metric of model quality, t... |
Upon doing a test that compares the effect of imaging versus regular tissue biopsy for cancer that has a prevalence of 90%, we found no true negative and we ended up with zero specificity. The cutoff for positivity in imaging was based on a prior publication, so I can't change that. The 2x2 contingency table (confusion... |
How would one ideally compare fitted survival models with covariates vs. a Kaplan-Meier with a goal of getting an idea of whether the survival model describes the data well.
E.g. in an example like this, you might get the impression that an intercept-only exponential model might be okay:
set.seed(1234)
sim <- tibble(pa... |
Let $X \sim F(;\theta)$ and $Y \sim G(;\eta)$ be two independent continuous random variables. The greek symbols represent the parameters of those distributions. I can easily sample from these distributions.
Let $(\tilde{X},\tilde{Y}) \sim H(;\kappa)$. These variables are not independent. In fact, I know the conditional... |
In a classification problem (let's say of two categories, cat and dog) with a softmax output, does the probability have any physical meaning other than assigning the category to the input based on the higher probability? Putting another way: Can I say that there is X% probability of the input being a cat and Y% that th... |
I am doing a power analysis for an experiment where we will fit a cumulative link model for ordinal regression. But when I do the power analysis, my power for the null effect is between 20% and 30%. It should be under 5% right?
The experiment
We have groups who play a game over 20 rounds, and each round they come to a ... |
So I analyzed my metabolomics data using Mann Whitney U tests and OPLS-DA. My data is super small, with the control group only having 5 samples and the other groups having 10 and 14 samples respectively. Now I am being asked to find out if age, sex or medication have an effect on the differenced I saw. Should I redo th... |
I have run into the same problem repeatedly, namely that model fit increases with increasing model restraints.
I want to compare measurement invariance on a three-factor model (based on previous CFAs for each sub-sample) consisting of nine items with ordinal scores from 1-4 between two groups (adults[N= 29,000] and ado... |
Question:
Given a categorical distribution $C_q$ with parameters $q_1, \ldots, q_K$ with $K > 2$, $\sum_k q_k = 1$, which (new) categorical distribution $C_p$ with parameters $p_1, \ldots, p_K$ minimises the weighted cross-entropy loss?
Research:
The Bernoulli case ($K=2$) doesn't seem to be too tricky. There, we suppo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.