instruction stringlengths 9 38.7k |
|---|
I was fitting a Cox PH model with BMI as the main predictor, time to death as outcome, and age, sex, blood pressure, heart rate, cholesterol, smoking status, diabetes and use of antihypertensive medication as covariates. I performed the chi2 GOF to test for the PH assumption, and found that sex is a time-dependent/var... |
I am getting a different result when I apply t.test than when I do calculations manually, for a contrast of hypotheses, alternative hypothesis being mean1 < mean2. The observed value, degrees of freedom and p-value is the same, but not the interval and I can't figure what I'm doing wrong.
a <- c(18,2,563,45,35,6... |
Suppose A and B are two propositions and $ A \implies B$ is true.WE know all it means is that B is true whenever A is true. Now consider a situation where we only that A is true with probability ,say,$p.$ The thing I am thinking about is what we can say about $P(B).$ I think we can only legitimately conclude that B is... |
I'm new to microbiome data analysis but what do the percentages on the Axis mean? This plot is comparing two groups (SPF n=8 and ABX n= 4 mice). I can't figure out what these mean. I thought the axis were arbitrary and set to just show the distances as best as possible.
Thank you!
|
There are two items in a task (item A, item B). On each of the two items participant can score success (1), failure (0), or not provide a meaningful answer (NA). Participants with NA on both item are excluded.
I want to test the hypothesis that proportion of successes on item A is significantly higher than on item B. I... |
In his book on adaptive filtering, Sayed mentions a subclass of affine estimators in which not only the predictions y are linearly dependent on the observations x, but x and y are jointly Gaussian. From that, I wonder: in case two random variables are jointly Gaussian, then the optimal estimator E(y|x) (the so-called "... |
I have data distributed as multinomial, with $N= 1,000$ observations divided among $n=10,000$ cells, with unequal probabilities $p_i$, for $i=1,...,n$.
I would like to assess how likely it is that an observed $x$ arose from this distribution. I cannot use the Pearson's chi-squared test, as my expected cell counts are w... |
I have an n x n correlation matrix of random variables. Consider the following example:
What I would like to do is study the behavior of the joint distributions using a t-Copula with, say, 5 degrees of freedom by manually changing the correlations in the bivariate case. For example, changing the correlation between X1... |
I am trying to determine mortality rates for untreated patients from an observational dataset where treatment has occurred (thus blocking the possibility of further untreated mortality). You can't just model this with a CoxPH model and consider treatment as a censoring event due to the coxph prohibition on informative ... |
I've been using a very particular set of closely related metrics to quantify how well two ranked sequences agree with one another. I'd like to know if this way of thinking is well-known and if any of these metrics have a name.
The basic idea is, suppose we have some set of $N$ elements, and we have two different ways t... |
I have a data set that contains coral reef data- count of fish (C_TOTAL), the habitat complexity measurement rugosity (RUGOSITY), and the area of the reef that the data was collected at (ZONE- 5 levels: crest, mid flat, inner flat, outer flat, slope). Here's my data:
structure(list(ZONE = structure(c(1L, 1L, 1L, 2L, 2L... |
I think it's pretty clear to me that average log-likelihood is equivalent to negative cross-entropy for discrete distributions, as shown here:
$$\frac{1}{N}\log\mathcal{L}(\theta) = \frac{1}{N}\log \prod_i q(x_i|\theta)^{Np(x_i)} = \sum_i p(x_i)\log q(x_i|\theta) = -H(p, q)$$
where $N$ is the number of samples, $q(x_i|... |
I'm new to econometrics and was wondering when including an interaction term do I have to put each variable separately as control variables?
I know this is the case for a difference in differences.
Y = a + B1 X1 + B2 X2 + B3 X1*X2 + e
However, I recently read a paper that had this regression equation
ln(imports) = a +... |
I would like to generate synthetic data by specifying their mean, variance, skew, and kurtosis. However, I only know how to generate synthetic data with mean and var.
Here is an example with mean and var:
$$
p(x) = \frac{1}{\sqrt{ 2 \pi \sigma^2 }}
e^{ - \frac{ (x - \mu)^2 } {2 \sigma^2} }
$$
... |
I'm working on a project dealing with transplants and comparing outcomes of first time (primary) transplants with re-transplants. I'm trying to decide which set of variables to include for propensity score matching.
For example, for the category of age, would it be better to match based on age at the time of the first ... |
I'm looking at whether high school start times influence test scores. Currently, I have the individual school start times and the average test scores for around 40 different high schools for each academic school year between 2012-2019.
This is for a school project and I don't have much experience with statistics and am... |
A typical reality: a statistical journal asks me (I cannot refuse or won't get published) to summarize several baseline characteristics and compare them via test across 2 groups, G1 and G2, namely:
age at G1 and G2
gender % at G1 and G2
some clinical parameter at G1 and G2
% of co-morbidities at G1 and G2
... 10 addit... |
I am right now dealing with a large dataset and I have used kmeans and fviz_nbclust in R with wss method to try to determine the optimal clusters in k-means clustering. But as the figure shows, the wss continues to decrease as the number of clusters increases, by quite an amount. I am wondering in this case, what shoul... |
I have data on about 320 people. I am trying to predict their mortality before and after a certain event. I tried to apply a logistic regression model using dead or alive as dependent variable and age-as independent. The problem is that there are several people in some age groups, and out of these groups some survived ... |
I learned from this answer that the correlation $R$ is $\cos(\theta)$ and $\theta$ is the angle between a dependent vector $Y$ and an independent vector $X$, but I learned from this article that the two vectors are normalized (by subtracting their corresponding means) ones.
I believe the normalized ones are correct for... |
Context:
A paper I'm reading uses PDEs to characterise the effects of cancer treatments on the tumour microenvironment. The exact wording used in the paper is:
The predictive power of the [Quantitative Systems Pharmacology] model
was assessed via an external cross validation: the model was used in a
forward-simulation... |
I am looking for popular symmetric positive definite matrices with explicitly known eigenvalues (at least largest eigenvalue) arising as autocovariance matrices in time series (for example). In fact, any positive definite matrix is a covariance matrix.
For example, if we consider the equicorrelation matrix $(1-\rho)I+\... |
I'm a "pure math" probabilist who's been roped into teaching an undergraduate statistics course, despite little experience with statistics per se, and I'm trying to stay one chapter ahead of the students. So apologies in advance if I have mistakes in terminology, notation, etc., or miss things that should be obvious.
... |
My apologies this is a rookie question, I am aware of what ICC(Intraclass correlation) is, and that it measures how strongly subjects in the same group resemble each other. However I am not sure how to estimate the ICC for a set of observation like this.
Id here represents subject Id, each subject is measured for three... |
Commonly when modelling biological systems, some parameters may be from elsewhere or previous modelling fits, and are not being investigated in the current model.
These seem to be equivalent to the ML hyperparameters, in that they are stated prior to model training and are not the purpose of modelling the dataset.
I'm ... |
I'm trying to calculate the gradient of multivariate function g using NumPy.
g = lambda w: -np.sin(np.pi*np.sum(w**2)) + np.log(np.sum(w**2))
gradient = lambda w: ...
the parameter w is a vector, for example, w = np.array([0.5,0.5]). I calculated the gradient like this;
gradient = lambda w: np.pi*np.sum(2*w)*-np.cos(np... |
I'm a bit not sure how to show that MCMC samples are i.i.d. In my opinion the trace plot should behave like white noise model because white noise model has a strong stationary properties i.e. the joint distribution from any lag is the same hence the identical distribution achieve. Is it correct ? And if one see the ACF... |
When obtaining the error estimation of a model over a dataset using k-fold cross-validation, lower values of the error estimation necessarily imply a lower bias? Are both concepts, error estimation and bias, equivalent?
|
I have done sampling using Proportionate Stratified Random Sampling.
The table below shows the proportion of each groups in the sample and population.
This is the formula for Standard Error (Proportionate Stratified Random Sampling)
Standard Error = Z * √(p * (1 – p) / n)
Can someone please help me to calculate sam... |
I am trying to find a dataset of medical images related to tumor/cancer, there should be images different stages of the cancer and also preferably the details about the patient, their medical history, demographics and lifestyle. Please let me know if there exists such a data set.
|
Dunn's test yielded the result that there is a significant difference in revenue between group 1 and group 2 after Kruskal.
In classic one way ANOVA case, if the result is same as above, you see whether 95% CI revenue of the two groups overlap each other in order to figure out "which group is more effective at increasi... |
I think that the threshold on model probability through which one discern positive (y=0) and negative(y=1) class depends on the spread in the training dataset b/w y=0 and y=1.
This question came when I did a random oversample of the minority class for a classification task. The same precision(say 60%) which was coming ... |
I have road accident data from 2000 to 2020 with counts divided into categories like "Junction Type" etc.?
I want to build a prediction model using ML, So which technique should I use Linear regression, Logistic regr...etc
|
Given the following linear regression model as following, with two explanatory variables $x_1$ and $x_2$ and response $y$
$$y_i=a+bx_{i1}+cx_{i2}+\epsilon_{i}$$
We say that $\hat{a}, \hat{b}, \hat{c}$ are the least square estimators for $a,b,c$. I just wonder if we have the sample correlation of the two explanatory var... |
I'm trying to fit a dense neural network based on tabular data input, where the outputs are two separate classification vectors, with one cross-entropy loss function for each.
Example: given a few input features, for a customer that visits a travel website with the intention of buying a train ticket, the model would pr... |
I was handling with data for regression problem, and proceeding pre-processing.
The data has about 6000 samples with 12 independent variables.
5 of them are factor and 7 of them are numeric variable.
However, one numeric variable that seems to be very linear(except weird outliers), but there's about 4000 missing values... |
I have a rather simple question, which however makes my head ache. I have country A and country B. My dependent variable is "Have you participated in training?" and my independent variable is company size (groups). I compiled contingency tables, which show that 34% of workers of small companies and 66% of workers of la... |
Due to non-normality and heteroscedasdicity, I use robustlmm and not lme4 for my mixed effects model. The variables look like this:
ID: subject variable (random factor)
var1: categorical between subjects variable, 2 levels
time: categorical 3 level time variable. time interval between each point is not equal therefore ... |
I am trying to understand the interpretation of these metrics in a multiclass scenario: ROC-AUC and MAUC. Scikit-learn provides an implementation for ROC-AUC score, which can be used for both binary and multiclass problems.
However, some studies such as 2, 3, 4 and 5 suggest averaging class-wise AUC in multiclass.
My e... |
Suppose $f$ and $g$ are real. Why
$$
C(\tau)=(f\star g)(\tau) = \int_{-\infty}^{\infty} f(t) g(t + \tau)dt \tag{1}
$$
and not
$$
C(\tau)=(f\star g)(\tau) = \int_{-\infty}^{\infty} f(t) g(t - \tau)dt\tag{2}
$$
where $f=$ input, $g =$ template/pattern to be matched. $(2)$ properties:
If $g$ is centered at $t=0$, and $f$... |
I have plotted ACF and PACF plots for my data, as I am trying to justify my hyperparameters chosen for my ARIMA model.
The data is energy prices every day, with data taken every 30 minutes (48 points every 24 hours) for approximately a total 1 month in length shown below:
What is clear is that the ACF plot tails off/g... |
Problem statement: Suppose you are deciding between two actions, A, and B, and are testing between two mutually exclusive hypotheses, H1 and H2. If you choose action A, you receive 1 dollar if H1 is true and nothing if it is false. If you choose action B, you receive 2 dollars if H1 is true and lose 1 dollar if it is ... |
I am doing a logistic regression with 8 variables but for some reason the model with the second degree of interaction has a much larger deviance than the nested model without interaction. Because of that the likelihood ratio test for nested models gives me a negative Chi-Squared value and i don't quite know how to inte... |
Can anyone help me in reading the output of the Cox fitter of lifelines? im having trouble understanding it...
basically, im trying to determine which of the model works better:
the first one is run only with one feature - "pam50 + claudin-low subtype"
the other one is run with two features as seen in the picture below... |
I just would like if anyone knows how to calculate the sample size for the data set given the significance level is set at alpha = 0.05 and the power of the test should be 80%. The linear regression is as follows. I would really appreciate any help. Thank you.
x1 = rnorm(n)
x2 = rnorm(n)
z1 = rbinom(n, size = 1, prob =... |
The variance of a Student's t random variable when the degrees of freedom $\nu$ is greater than $2$ is $\nu/(\nu-2)$. In R, when I try to estimate the variance using the usual estimator $$1/(n-1)\sum_{i=1}^n (x_i-\overline{x})^2$$, the estimates seem biased, when $\nu$ is close-ish to 2, like $\nu=2.2$. Here is my code... |
I am trying to apply a linear mixed effects model using the R package 'lme4'. I am wondering how I can incorporate two random effects in my model rather than just one.
I have a dataset where I am trying to asses differences in decay rate of DNA and RNA of multiple species across time using two distinct markers (18S and... |
I've been struggling with this problem, and I think I must be missing some important conceptual step. Imagine we observe $\theta_1 \sim N(\mu, \sigma^2)$, with unknown $\mu$ and known $\sigma^2$ (for simplicity). We will draw a second datum, $\theta_2 \sim N(\mu, \sigma^2)$ (for now, unobserved). (Point of clarificatio... |
Say we have a relationship $ z = Wx$ for a multi layer perceptron where $z$ and $x$ are $n$ dimensional vectors. When we find $\frac{dz}{dx}$ , I would assume this would just be $W$, not $W^T$.
I was wondering where this result comes from - I can't figure out why this makes sense.
|
Say we have the following data:
set.seed(45)
df <- data.frame(A = rnorm(2000, mean = 15, sd = 18),
B = rnorm(2000, mean = 25, sd = 17)) %>%
pivot_longer(cols = c(A, B), names_to = "group", values_to = "time") %>%
mutate(time = ifelse(time < 2, abs(time) + rnorm(1,15,7), time))
I would think tha... |
I wanted to ask a question about Simultaneous Equations Models. Supposed I had the following system of equations:
$
(1):y_1=\alpha+ \beta_1 y_{2}+ \beta_2x_{1}+\beta_3x_{2}+\varepsilon_i \\
(2):y_2=\nu+ \gamma_1 y_{1}+ \gamma_2z_{1}+\gamma_3x_{1}+\mu_i
$
As you can see there is mutual causation running between $ y_1$... |
This is a Time Series problem. I am testing whether I have significance of residues at $lag=3$ using an $ARMA(1,1)$ model. From the $ACF$ plot, the autocorrelation of residues is significant.
The issue is I don't know what dof to use? My understanding is that dof account for the # of parameters I am testing. So if it's... |
In the paper "Physics Informed Deep Learning (Part I): Data-driven solutions of nonlinear partial differential equations" (https://arxiv.org/abs/1711.10561v1), basically this paper uses a neural network to represent the solution of partial differential equations. Training data is the known values on randomly selected d... |
To incrementally estimate the mean and standard deviation of some data one can use an algorithm such as Welford’s algorithm or Bayesian updating by using the likelihood, a conjugate prior and combining them into a posterior (e.g., see here for the equations used for a normal distribution with unknown mean and variance ... |
We have a family of statistical models, with parameter spaces of different dimensions, which we aggregated through standard Bayesian Model Averaging (BMA). Experiments using training and test sets show that the predictive performance of the aggregated model is good, when compared to available alternatives. My question ... |
What would be the most appropriate statistic to use if one wanted to see whether an instructional treatment produced learning gains in a classroom in which all students were tested before and after the treatment? Assume the learning measures are valid, but the pre-test has, say, a score that can range from 0-10 but the... |
I am new to non-paramtric methods.
The conditional probability for classification using KNN is gen by:
$$
P(y=c|x,D)=\frac{1}{K}\sum_{n\in N_K(x,D)}I(y_n=c)
$$
where $N_K(x,D)$ is the set such that $K$ points are included to be nearest to the new point.
The 2 parameters required for the KNN is:
$K$
A distance metric (... |
I'm a student doing a machine learning project. I'm using the Lending Club Dataset 2007-2018 to predict loan default. The original dataset contains over 2 million rows. I want use a sample from it to train the model, since I have limited processing capability. What is the correct way to sample from the dataset?
|
I have a sample which is analysed 5 times. I get an average of these 5 results.
I repeat this test in triplicate to give me three answers which I then find an average of.
My question: should I use the standard deviation of all 15, or just the standard deviation of the final 3 results?
Thanks
|
I'm running an A/B test with 100k+ users per group. It consists of a lot of different metrics, some continuous, some counts... they are highly skewed, with a long tail. I'm mostly interested in the comparison of means.
I'm thinking about switching from the frequentist to Bayesian approach (easier interpretation). I'd u... |
How can I perform multi-label classification without any training data i.e. just using candidate labels like zero-shot-learning? I was able to perform single label classification using only candidate labels (and no training data at all) but not sure how to do the same for multi-label.
|
Right now I am using data in a panel study to investigate couples' dyadic pattern. I am not interested in longitudinal pattern so I want to do cross-section analysis.
However, this panel study contains many missing values in my interested variables, especially in the initial year, sometimes a row is missing husband dat... |
Survival analysis is mainly about estimating the lifetime of nearly anything or even anything:
And Weibull analysis is also about estimating the lifetime:
How are they different (in general) and which should be used when?
|
What is the difference between survreg and survfit?
Survreg:
Fit a parametric survival regression model. These are
location-scale models for an arbitrary transform of the time variable;
the most common cases use a log transformation, leading to accelerated
failure time models.
Survfit: Computes an estimate of a surv... |
This questions deals with the implementation of a convolution layer. First I like to make clear what I understand about cnn's.
A cnn uses filters/kernels to find geometrical features from the input image.
These filters have a pre-defined size, like 3x3x1 (for grayscale images).
Considering the mentioned filter, each n... |
I have a set of observational measurements, each with their unique +/- observational error.
I need to take the logarithm of this set of data. My question is, to include the error bars in the logarithm graph is it appropriate to take the logarithm of the values along with the logarithm of their respective errors?
For ex... |
I'm using the Scipy implementation of the Kolmogorov–Smirnov test to check whether collections of random values are likely to have been drawn from a uniform distribution.
From what I understand, the second value of the returned Tuple from kstest is a p-value indicating the likelihood that the data was generated accordi... |
This is self study.
Given: $y_t = \mu + x_t + z_t$, where $x_t = e_t + \theta e_{t-1}$ and $z_t = \beta z_{t-1} + u_t$. Also $|\beta|<1$ and $e, u$ are independent of each other and are both iid normal with mean 0 and variances $\sigma^2_e, \sigma^2_u$ respectively.
The first part of the question is to show that $y_t$... |
This work is all theoretical and for school, so we were only provided this information to work with, no actual y values. I have a simple linear model I have been asked to translate into a matrix, which is below:
I was also asked to find the XTX, which is also done below.
## c1 c2
## c1 1 1
## c2 1 1
However, I... |
I know, that the median survival time calculated from the Kaplan-Meier estimator is equal to the "naive" descriptive median of the survival time when no censoring in data occurs.
Does it apply also to the other quantiles, like the 3rd quantile? Is this possible that they differ, if no censoring occurs and all subjects ... |
I would like to create logistic model using the OCA STAT Act data in R, however, since this data is a compilation of court appearances since 2020, some defendants may have appeared before court more than once, meaning the observations would not be independent. OCA does not provide data on specific individuals and I do ... |
Suppose we have two instruments (A and B) and we want to meta-analyze whether instrument B has incremental validity over instrument A in predicting an outcome Y. What effect size would be most appropriate in a meta-analysis to quantify the incremental validity of B? I have found two different approaches:
Meta-analyze ... |
I am trying to find out if there is an age-education category difference between people in the number of votes which they use while voting with a multiple vote voting method.
Basically, I am trying to find out if there is a difference between a number of votes used by e.g. high-educated older people and low-educated mi... |
I have a data set, consisting of positive and negative patients (virus infection). If the patient is negative, it has 0 as outcome (y), if it is positive it has a positive value, up to 100. The input (x) values are numeric too and I want to predict the y values just out of the x values. x consits of more than one varia... |
I'm planning an experiment where individuals' choices will be measured. I want to test individuals' choices before and after an intervention. The problem is the individuals are in groups and cannot be separated. This obviously means choices can't be truly independent.
I could include individual as a random effect neste... |
The question is asking us to compare two samples
Sample 1: n=10, p=0.3
sample 2: n=15, p=0.4
I know the normal approximation is valid when n is larger than 30.
However, the sample size is small so I choose a t-test for the test statistics.
Does the normal approximation is still valid for t-distribution?
|
I have 2 resuls from normality testing via Shapiro-Wilk test:
and .
If I understand correctly, both have p > α = 0,05 which indicates that both have normal distribution. So for my next analysis, am I allowed to use paired t-test (i.e. Wilcoxon)?
All other charts shows that it is definitely non-parametrical distributio... |
So I am trying to work out what is the best predictor of a) awareness over environmental issues, b) concern over environmental issues and c) pro-environmental behaviour from a set of sociodemographics (eg. age bracket, political standing, location etc) measured using a survey.
I am using a backward stepwise linear regr... |
I'm working on a problem with a simulation that calculated a linear regression coefficient from some randomly generated data, which was performed 100 times. In other words, I've got 100 randomly generated $\hat\beta$ values. I'm being asked to compute the bias of the average of my estimates, i.e. being asked to find $\... |
Consider i.i.d standard normal variables $X_1,X_2,X_3$. How can I determine whether $U=\frac{2X_1^2}{(X_2+X_3)^2}$ and $V=\frac{2(X_2-X_3)^2}{2X_1^2+(X_2+X_3)^2}$ are independently distributed?
This was part of a multiple choice question, so I am wondering if there is a short argument. I can show that $Y_1=X_1,Y_2=X_... |
I tried to fix my overfitting with randomized search cross-validation. These are my params:
I set 100 estimators but that is irrelevant for the overfitting. I read log2 was best for regressors somewhere. I am not sure about max depth being correct I found that number somewhere on stack exchange saying it was good. I se... |
Be patient, I am not very skilled with cdf.
I seem to have a seemingly simple problem for which I either can't seem to find material about or simply lack the vocabulary for.
Given are N sequential events with their own unique independent cdf that describe the probability of an event taking X minutes or less.
If I want ... |
A hypothetical conversation:
Person A: I am building a forecasting model. It is a logistic regression. All coefficients are statistically significant at the 5% level. I calculated the VIF for the set of predictors in the multiple regression model. I am concerned about multicollinearity.
Person B: Because all your coeff... |
I am really confused... why linear regression is modelling the expected value of response(or conditional expected value)?
If we don't use mean square error as the loss function to minimise, is it still modeling E[Y]?
My understanding is that, we believe, there is a linear relation between X and Y. though in realization... |
Hoping to get some advice for choosing an appropriate model for my data. I have a small data set looking at the level of a particular protein (heat shock protein 70) in individuals exposed to different thermal treatments. There are 5 different thermal treatments with 10 individuals in each treatment. I'm interested to ... |
Say I have a set of 10 values I want to draw 3 values from, uniformly, without replacement. For instance:
$$S = \{0,0,0,0,22.95,0,0,0,19.125,25.5\}$$
With replacement, this seems simple, you just add all the values up and divide by $10$, giving $6.7575$, and multiplying by $3$ you get $20.2725$. However, if you don't r... |
Biostatistics student here hoping for some helpful input.
I am working on an assignment, and have a dataset containing summed disease case counts for a country - one case count per year. I've been asked to use the total case count for each year as my outcome variable. The assignment is asking me to test whether there a... |
In our social sci research we've used Factor Analysis rather than PCA. It would be helpful for us to use a clustering algorithm to group respondents into the most logical factor groups. Kmeans seems to use PCA as the basis for its clustering.
Is there a way to specify factoextra::kmeans() or other package to use FA ... |
I have collected data about users and non-user of e-grocery in two countries (amount of groceries bought online during 12 twelve months, household characteristics, sociodemographics, questions about what situations did or could lead to the use of e-grocery, personal preferences when shopping online regarding payment, d... |
I need to estimate the coefficients of a particular dynamic panel data model.
\begin{equation}
\ln(y_{i,t})=\alpha_0+\beta ln(y_{i,t-1})+\theta_t+ \varepsilon_{i,t}
\end{equation}
Currently, I'm trying to do so using plm package - especially pgmm function. The problem is that the effects parameter accepts only two valu... |
I have species abundances with associations between environmental variables. I realize the RDA will only be able to tell you the strength of the relationship of all the species abundances with the environmental variables but not the nature of the relationship.
Here is an example where the species (red) and site in (bla... |
I am trying to calculate robust and clustered standard errors for Poisson and Negative Binomial panel data estimators. I am using 'pglm' package.
Ideally, I would be able to use the coeftest command from the 'lmtest' package to calculate these SE. However, coeftest does not support pglm objects.
Here is an example of t... |
I would like to assess whether levels of nasal discharge (a continuous, non-normally distributed variable) are different between people who do and do not have a cold (binary variable). Nasal discharge also varies with age and sex, so I need to control for this too.
I initially modelled this in R like so:
glm(ColdStatus... |
I have the models with overdispersion and almost 40% of the data set are true zeros with biological meaning. I'd like to study the temperature (temp) and time storage in days (storage) influence on the insect's development (development), but the storage is temporally correlated. This is a classic zero dilemma case, inf... |
A machine learning model is outputting precision and recall for a two-class classification problem (0 and 1) like this:
Confusion matrix:
[[136 21]
41 6]]
Precision: [0.768 0.128]
Recall: [0.866 0.222]
Accuracy: 0.696
There are two measures for both precision and recall: The first measure for the 0 class and the... |
Here is a PCA example, with environment variables loaded in blue, species in red, and sites in black. I am trying to make two specific interpretations. I want to know if they are right and if there is a formal way of analyzing them further.
Species GAR and ABL lie further along the dbo gradient thanCHE. Therefore, va... |
I want to develop a mixed effect logistic regression in R using likelihood function and compare the results (estimated parameters) with the output of glmer function. I couldn't find a good material for the likelihood formulation. So, just explain my panel dataset and put the code I have written for simple logistic regr... |
I would like to use the following power analysis formula into a python notebook
https://clincalc.com/stats/samplesize.aspx
Any idea which python package would replicate the same results ?
Edit:
I tried the following function from statsmodel module but can't seem to get anything close to the numbers in the webpage. Also... |
Given some residuals, is there any problems with using a least squares polynomial fit to estimate the variance?
The resulting fit looks like this using numpy.polyfit
import numpy as np
poly = np.polyfit(df.VALUES, df.SQ_RESIDUAL, 2)
plt.scatter(df.TOTAL, np.sqrt(np.polyval(poly, df.VALUES)), label='fit')
My goal is... |
I found this to be an interesting post but I want to hone in on the definition of a model.
It defines a model as:
the function (or pooled set of functions) that you may accept or reject as being representative of your phenomenon.
I've likewise seen a model defined as a mathematical artifact that describes a random pr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.