instruction stringlengths 9 38.7k |
|---|
I have a rudimentary understanding of statistics so please forgive me for my ignorance with technical terminology and potentially dumb questions.
I am trying to use the function lm() in R to determine whether my principal component scores obtained from a geometric morphometric analysis are being affected by my categori... |
I like to infer the contribution of each rower in a crew boat from a
number of races: 8 rowers are split repeatedly into two boats of 4
rowers each. The race over a distance leads to an estimate of the power
the crew delivered. For example, the 4 rowers Amanda, Cam, Emily and
Cait raced and delivered 711 Watt during th... |
There appears to be some inconsistent handling of lonely PSUs in R's survey package when calling svyglm on a subset of stratified data where the act of subsetting creates the lonely PSU. It appears that the sample size associated with a lonely PSU in a stratum does not change when using the subset.survey.design method,... |
This feels like a very basic question, but I'm feeling stuck on it. I'm writing up a biological assay development/validation study for a method of quantitating multiple organisms from a mixture simultaneously. One of the experiments was set up to be a precision study. Essentially, three users each followed the protocol... |
I am trying to make predictions with a poission model to get the predicted incidence rate per 100,000 of some event. My problem is that when I compare the predicted incidence to the incidence calculated manually they are very different.
counts <- sort(round(rnorm(n=500,mean = 200, sd = 15),0))
group <- sort(round(runif... |
I have a dataset of customer purchase history and whether or not they have churned.
This is live data so for the customers who are still active we don't know if/when they will eventually churn.
I been asked to find the golden/MAGIC number of transactions after which a customer becomes loyal (locked into the business - ... |
I'm trying to plot the following lmer:
mod1 <- lmer(SCORE ~ X1_c * X2 + (1|PARTICIPANT), data = data)
With THIS dataset. (this is a Git link)
However, I can't go past the residual-normality assumption, since no matter what I do, I don't get a normal-distributed residual distribution.
qqnorm(resid(mod1))
qqline(resid(m... |
I am looking for the proper statistic to answer whether which categorical items (from a long list) occur at frequency greater than chance with each state of a boolean variable.
More specifically, I have a long list of medications patients have been taken and diseases they have been diagnosed with. I would like a statis... |
I am slowly getting introduced to A/B testing and holdout testing at my new job. One of the things our A/B testing process stresses on is performing a power analysis before running a test. The common practice I have seen is to use something like the evan miller calculator to perform these power calculations. The one th... |
When performing linear regression it is often assumed that the predictors are independent with Gaussian noise:
\begin{equation}
Y = X\beta + \epsilon \quad
\epsilon \sim \mathcal{N}(0, \sigma)
\end{equation}
If there is collinearity between them, one could instead transform the data to use principal component regressio... |
I am trying to approximate Price-vs-Quantity (P-Q) curve of a dynamic product (think Hotels, Airlines etc). As you can imagine, if you take a hotel property, the price of rooms (assuming the same room category) changes based on demand dynamically. The historical data will have several price points versus quantity remai... |
How to deal with non-uniform data?
There are groups in my data. Samples in the same group share the majority of feature values.
What approach to model training can I use to guarantee high performance on unseen groups?
Because predicting new samples from the same groups used for training (i.e. splitting samples from the... |
Suppose I am facing a problem that needs hyper tuning, say batch learning with different batch sizes. I am splitting the training data into (80% train + 20% validation) and will choose the optimal value of batch size according to the lowest validation error.
Here is my question: do I need to refit the model (with the o... |
Inspired by this question I have been considering how one would reframe a HMM problem as RNN problem.
For HMMs we have some observable timeseries $y(t)$ which corresponds to a set of hidden states $q(t)$. The transition probabilities between hidden states are described by a probability matrix $\bar{A}$. For a Markov pr... |
I have two two datasets. Each contains two variables. There is one variable that is present in both datasets.
When I plot each dataset to see the relationship between the two variables in each, I find that in one dataset the data follows an exponential decay function while the other the data follows a square root funct... |
Given data $(y_i, x_i)_{i=1}^n$, I wish to fit either:
a linear regression, $y = \beta_0 + \beta_1 x$; or
a stepwise constant function, $y = \left\{
\begin{align}
y_1 & \text{ if } x < \xi_1 \newline
y_2 & \text{ if } x \in \left[ \xi_1, \xi_2 \right) \newline
\vdots \newline
y_n & \text{... |
We consider the following panel regression model
\begin{align}
Y_{i} = X_{1,i}\beta_1 + X_{2,i}\beta_2 + \epsilon_{i} , \ i=1,...,N,
\end{align}
where $Y_i := [y_{i1},...,y_{iT}]'$, $X_{k,i}:= [x_{k,i1},...,x_{k,iT}]'$ is a $T \times p_k$ matrix for $k=1,2$, $\epsilon_{i}$ is the $T \times 1$ idiosyncratic error.
It i... |
Assume, there's a 50% chance I get a fair coin and 50% I get a biased coin with 0.6 chance of getting heads.
Then, I get to toss the coin I got as many times as I want, but each toss costs a dollar.
The goal of the game is to determine if the coin is fair or not. Let's say I win 10000 dollars for the correct guess and ... |
I am interested in running a diff in diff model to measure the impact of stock count(the treatment) on sales in a number of supermarkets.
After a stock take, the inaccuracies in stock take will grow by an unknown amount, and this is likely to impact sales as certain products will be underordered and go out of stock mor... |
I have a machine learning problem where a single training example can be represented by an m by n matrix, where $m$ is fixed but n can vary. Essentially, a training example consists of n instances, each with $m$ features. The task is to perform binary classification. I want to find a ML model to deal with this data wit... |
I'm studying the kinematics differences between males and females examined at two different specific walking speeds (slow/fast). Specifically, I'm exploring:
a) slow speed vs high speed (dependent t-test)
b) slow speed males vs high speed males (independent t-test)
c) slow speed females vs high speed females (independe... |
we conducted an experiment on a sample of 30 persons. For every person, we observed the outcome variable every 15 minutes, so for each person 10 times.
IV: Time (in Minutes)
DV: Interval Scale [1;9]
n = 30 people, 10 observations each
What‘s the ideal method of analysis for this? Can I simply run a simple linear regres... |
I am trying to create a linear mixed model for longitudinal data using data that looks similar as the data in the following:
> head(df, 10)
ID S A BT AT outcome Time
1 1 0 0.40 0 5 90 4
2 1 0 0.40 0 5 90 6
3 1 0 0.40 0 5 90 7
4 1 0 0.40 0 5 90 11
5 2 0... |
Let's say that we have gene expression measurements from bacteria after heatshock. The expression changes are collected as log2 changes, and are approximately normal and centered around 0. Ribosomal genes decrease strongly in response to heatshock. Conserved genes also decrease in response to heatshock, but this gene g... |
I am dealing with a dataset with 13 features.
After going through some standard scaling and missing data imputation, I use kmeans from sklearn to create clusters.
Now the point is that, although the elbow method indicates a 7 cluster model, when I visualise the results I get a colored cloud that to human eye tells noth... |
I am performing a meta analysis on random-effects model and I came across studies that compute r+ (sample size-adjusted correlation) and rc (reliability-adjusted correlation), and also those that compute fisher's z transformation.
I am using the metacor function from the meta package on r to do my analysis. In this cas... |
I am trying to create a linear mixed model for longitudinal data using data that looks similar as the data in the following:
> head(df, 10)
ID S A BT AT outcome Time
1 1 0 0.40 0 5 90 4
2 1 0 0.40 0 5 90 6
3 1 0 0.40 0 5 90 7
4 1 0 0.40 0 5 90 11
5 2 0... |
I'm on a journey trying to get my mind around the normality of residuals assumption for linear mixed-effects models, this is a FOLLOW-UP POST
While studying to better understand what I could do to solve the non-normality problem, I came across different types of residuals such as standartized or studentized or conditio... |
What are the reference groups in a regression model where there are interaction categories? Using the iris dataset in R, I've created a category with three levels from the Sepal.Width variable, and built a linear model with interaction:
data("iris")
iris$SW_cat = as.factor(ifelse(iris$Sepal.Width<3,0,
... |
Simple question about statistical reporting best practices.
I was asked to report the full model as a supplementary material of my paper. With the help of a toy example, let's say I have two variables in the model: var1 (linear) and var2 (modelled as a restricted cubic spline with 4 knots).
Here is the output:
Coef ... |
Suppose I have data I've collected containing predictor variables $X_1, X_2$, and $X_3$. I build a main effects statistical model predicting $Y$ from these predictors and estimate the relevant coefficients ($b_0, b_1, b_2, b_3$).
Now let's suppose I want to collect more data and build the same statistical model, with t... |
I have the results of an experiment done on 60 individuals (n=60). The experiment was divided into four stages and after each one, we did a set of measurements of each individual and we assigned the individual to one of three categories (high, low, medium). The data I want to analyze looks like this
individual stage... |
I have monthly Export and Import of country by product groups and partners (countries). I want to analyze time series and decompose it into Trend, Seasonality and Remainder components.
My question is, according to your opinion, which may be the best choice to use:
X11 decomposition
SEATS decomposition
STL decomposition... |
One of the drawbacks of MAPE is that you can have actuals equal to 0. This will result in a division by 0 and thus an undefined MAPE. Does it make sense to increment by 1 the numerator and denominator to avoid falling in this trap. I am aware that the addition up and down do not simplify mathematically, but I remember ... |
I am doing a study that I would like to analyze data with a mixed effect model. I have three fixed effects and one random effect. My code output is seems a bit off and I am unsure if it is a structural problem with the code, or multicoliniarity in my data. I have tried testing fpr coliniarity, but haven't gotten the co... |
It is my first question, and I would like a recommendation from the community. I am having trouble understanding Linear Mixed models.
I have already tried to read some books and also tried some online courses (Datacamp), but I am still unable to crack this topic. One of my major problems is that I can not transpose my ... |
I fitted a 2-states-HMM model last week, and generate a bunch of 1s and 0s, but I forgot to store its parameters (transition matrix). Now, I only got these 1s and 0s, how do I backward/reverse-engineering to estimates these transition matrix?
Things that I have:
the input data
the outputed 0s and 1s from a fitted 2-st... |
I have a dataset with intermittent sales and very high seasonality and I want to forecast that but it is my understanding that Croston's method only works on non seasonal items. Is there any other method for forecasting those items?
|
First, we assume use Z-score based standardization defined by:
$$ Z=\frac{x-μ}{σ} $$
Given that Z-score based standardization is based on the mean (μ) and standard deviation (σ) of the distribution of a current dataset, how is it practically useful at the time of inference for new data that changes the dataset mean and... |
Let's say that the analytical infrastructure at my place of work heavily centers around t-tests. I'd like to use this platform to perform a t-test on correlated data, e.g. the extent to which an order placed by a customer was 'satisfactory' or 'unsatisfactory' where the treatment variable is at the level of the custome... |
PCR is a linear regression problem on top of PCA.
Analogically, is there a 'multilinear PCR' as a linear or multilinear regression problem (e.g. CP tensor regression and Tucker tensor regression for examples) on top of MPCA?
|
I have a cohort comprising of individuals who participate in a weight-loss program and their weight measurements are collected longitudinally for 12 months (not necessarily at the same time points). Their characteristics at baseline are also collected.
Over the 12 months individuals can have multiple visits as part of ... |
I see that kernel PCA with a linear kernel is the same as PCA.
On Wikipedia's introduction of the kernel to PCA they suggest that there exists a non-trivial arbitrary choice of map $\Phi$ that is applied first to the feature space. From this a Gram matrix is constructed using the pairwise inner products of this map $\P... |
PCA can be extended to kPCA using the kernel trick.
MPCA is a multilinear extension of PCA that involves multiple matrices for the different modes of the data tensor.
Can MCPA be similarly extended using the kernel trick?
|
I recently came across a survey that claimed to measure how closely a certain group of people adhere to a certain worldview, and I was interested in learning more about it. I emailed them to ask about it, and they autoreplied saying "The survey questions are not publicly available." They also do not publicly outline th... |
Caveat emptor: I'm relatively new to (G)ARCH models - here using financial markets as dataset just for convenience. If my question is known topic / logical fallacy please point me in the right direction. Kind TIA.
My problem: In analyzing GARCH models, the residuals after a model fit look very similar to the original d... |
Based on the data below, I am trying to see if there is any relationship between Precipitation and Mean Temperature. Now the lm plot shows precipitation to increase with increasing temperature. However, the p-value is greater than 0.05 which tells me that statistically this could be by chance.
Is there any other method... |
Assuming $x(t)$ is a time invariant function. How do I calculate the expected value of $E[x(t)\,x(t+\tau)]$?
Is calcuating it as follow correct?
\begin{align}
E[x(t)\,x(t+\tau)] &= E[x(t)] \cdot E[x(t + \tau)] \\
&= \int_{-\infty}^{\infty}z\,f_Z(z)\,dz \cdot \int_{-\infty}^{\infty}(z - \tau)\,f_Z(z - \... |
Suppose we have and i.i.d. sample $X_1,\ldots, X_n$ with mean $\mu$ and finite variance.
Let $\bar{X}$ denote the sample mean and $s_n^2$ denote that sample variance.
Using classical CLT together with Slutsky's theorem it follows that
\begin{align}
\frac{\bar{X} -\mu}{ \sqrt{ s_n^2/n}} \to Z
\end{align}
where $Z$ is st... |
Suppose let's say I am running AB test randomized on customers. Each customer in Control and Treatment group get an email with different messages. Customer can click on the email and then click on the link in the email. My metric is (clicks on the link in email)/(clicks on the email). So let's say if a customer doesn't... |
Hi I am a beginner and I am confused about whether I can make predictions with the models produced during kfold. For example in the code below, the model produced in each kfold was used to make predictions on the test set.
auc = []
test_pred = []
# GroupKFold
kf = GroupKFold(n_splits=5)
for fold, (idx_train, idx_valid)... |
I have a very straight-forward question. THIS is my dataset
I have NAs in both the outcome (y = "scores") and in the continuos predictor (X1_c):
## Missing data for the outcome (Y = "SCORE")
### in each value of the categorical outcome (X2)
data %>%
dplyr::select(PARTICIPANT, SCORE, X2) %>%
group_by(X2) %>%
... |
I read over here (https://aip.scitation.org/doi/pdf/10.1063/5.0040330) that "If the equi-dispersion is not met, the Poisson Regression is no longer appropriate to model the data. Moreover, the resulted model will yield biased parameter estimation and underestimate the standard error".
I have taken some intro courses in... |
In matrix form, a linear regression can be represented in the following form:
$$
Y \sim \mathbf{X} \beta + \epsilon; \\
\epsilon \sim N(0, \sigma^2 \mathbf{I})
$$
The definition of $R^2$ is the proportion of variance of $Y$ explained by the independent variable of $\mathbf{X}$, or $$
R^2 = \frac{Var(\mathbf{X\beta})}{V... |
I am new to Causal Inference but working on my first project. In this project I have a continuous treatment such as discount%. My outcome or Y is the purchase_amount. Thus, I defined my vars as:
y = purchase_amount
T = discount% (0,5,10)
X = some covariates
W = some confounders
I found an article (https://towardsdata... |
ML newbie here. I'm preparing my data for a binary classification to predict whether a person has an account or not. In total I have 8 variables: 2 numeric (age and household size) and 6 categorical. Is it advisable to change my numeric variables, age and household, to categorical — i.e. age brackets — or better to kee... |
Suppose $x_i$'s are IID random samples from $d$-dimensional isotropic Gaussian centered at zero and normalized to have $E[\|x\|^2]=1$
Suppose we have
$$a=x_1 \\ b=a+x_2 \\ c=b+x_3$$
As $d$ increases, the following is observed
$$\cos(a,c) \approx \cos(a,b)\cos(b,c)$$
Where
$$\cos(x,y)=\frac{\langle x, y\rangle}{\|x\| \|... |
I am MBA student and am taking a course on "Research Methods" - in this class, we are learning how to perform basic statistical analysis such as Hypothesis Testing and Regression Models.
Our prof is showing us how to use SAS software and fit a linear regression model to some data. For example, we are predicting how muc... |
Suppose you want to estimate the average building size (defined as the number of people living in the building) in a small city. You randomly sample N people from this city, and each person tells you the number of people living in his building (i.e. the size of his building). Assuming you don't know how many buildings ... |
Suppose I was trying to find the average BMI of three of my friends.
I have recorded each of their heights and weights (that is, a total of 3 heights, and 3 weights).
Should I:
average their heights and weights first, then solve for the BMI
or should I solve each of their BMIs first, and then average these three BMIs?... |
Given i.i.d Bernoulli random variables $X_i,(i=0,1,...,t)$ and where
$Y_i=1-\beta +(\beta-\alpha)X_i$, with $0<\alpha<1$, $0<\beta<1$.
Is it possible to find a closed form cumulative distribution function for $Z_i$? Defined as:
$$\boxed{Z_t=\alpha\sum_{j=1}^{t}[X_j\prod_{l=j+1}^{t}Y_l]}$$
It's clear that the state spac... |
When the Gaussian process uses the ard kernel, if the feature is very obvious, but the prior knowledge knows that this feature is not very important, when using the marginal likelihood function to optimize the hyperparameters, the lengthscale of this feature will be optimized to a very small size. If you manually chang... |
I'm dealing with data that descripe onset frequency of a symptom. The text in each cell was not in the same format. For example:
"Pattern 1: 1~3/months, Pattern 2: 6 times per 3.5 month"
"4 to 5 times/day"... |
Just for curiosity: I buy one kind of bread in the mall I regularly visit. Every time I am there I see how many of them are on the shelf (unfortunately, very often none). I expect that the times during the week when they deliver it are the same every week (but the number and the times are unknown) and for simplicity, w... |
I already trained student-teacher networks using the main idea of knowledge distillation which has a form of (source of image)
I wondered if there is a way to use a different input size (already used to train our teacher) while training the student network. Let me give an example to be more precise. Suppose that we ha... |
So, the idea is that I use linear regression and I get an equation y = a * x + b. So when I give a value x I get a predicted value y. However, what I want to achieve is instead of a single value y to get a range of values, such as [val_1 - val_2].Can this be done? Also I have found this question: Regression analysis wi... |
In this following monthly sales time series, how can I interpret ACF and PACF?
STL Decomposition
ACF:
PACF:
|
The M step for missing data imputation using MVN updates
$$\mu^t=\frac{1}{N_D}\sum_n E[y_n]\\
\Sigma^t=\frac{1}{N_d}\sum_nE[y_n y_n^\top]-\mu^t(\mu^t)^\top
$$
where $y_n=(x_n,z_n )$.
However, the expectations $E[y_n]$ and $E[y_ny_n^\top]$ depends on $m_n$ and $V_n$ from the following:
Here, $z_n$ are the hidden variab... |
I want to measure the effect that a treatment (merger) has on firms (y). Therefore, I have panel-data for 6 years (2010-2015), consisting of about 1,500 firms. There are 100 firms that are somehow involved in a merger. After matching and weighting the two groups, I want to run a DID (difference in differences) analysis... |
I want to cluster points which have the following feature vector:
$$\theta = (f_1, f_2, \cdots, f_n, y_1,y_2,\cdots,y_m)$$
i.e. the first $n$ entries are functions $f_i$ ($\mathbb{R}\rightarrow \mathbb{R}$) and the last $m$ entries are real numbers $y_i$.
Question:
What would be a good distance metric for clustering?
|
I am trying to create a function that receives two variables (dependent and independent) and figures out according to their class (numeric / factor) and number of groups, which statistical test should be done (t.test, Kruskal - Wallis, chi-square, etc..)
My code so far:
my_function (x, y){
if(is.numeric(x) & is.numeric... |
The situation is that we toss a coin N times. We note the outcome of each flip and we find the distribution of how many times the coin flipped the 'same way' n times in a row, for n = 1,2,3 etc (for N throws of ~ 1000 we wouldn't really go further than n = 12). i.e we count how many times the coin flips the same way (h... |
I have 4 groups in a between subjects design answering likert scale questions. I am wondering how to analyse the data. There are 20 questions for each user in each group of 30 (so 120 people all together, with 120*20 responses).
I see two options
I could simply lump all questions in each group together and have a big ... |
I have a Python file that simulates 10 000 hypothetical soccer matches between two teams. This is done by generating two sets of 10 000 random numbers between 0 to 1 (10 000 for each team). This is then passed through a Poisson inverse function for each team, which uses the expected goals per team for the match (a valu... |
Let us consider the case of survival analysis with one event. Let $X$ represent a set of covariates about each unit. Let $T_E$ be the (latent) event time of the unit, let $T_C$ be the (latent) censoring time of the unit. Let $T = min(T_E, T_C)$ be the observed last time of observation, and let $E = \textbf{1}[T_E < T_C... |
Slope of a line given multiple points
Hello, I came across a closed question, but what I really don't understand is the formula being used - what is this formula (any authoritative references)? From my understanding, if I had a list of multiple points not forming a straight line, I can still find the "slope" of the reg... |
As usual, we can estimate by OLS the model (in matrix form) $Y=\alpha+\beta*X+u$ with a sample of $n+m$ observations. The OLS estimator is $\hat{\beta}=(X^{T}X)^{-1}X^{T}Y$. Now, if we partition our sample in two subsamples A and B of sizes n and m, respectively, we could get the OLS estimators for each sumbsample: $\h... |
Let $\{X_{i}\}_{i=1}^{n}$ and $\{Y_{i}\}_{i=1}^{n}$ are two sequences of random variables such that $\bar{X} = \sum_{i=1}^{n} X_{i}$ and $\bar{Y} = \sum_{i=1}^{n} Y_{i}$ asymptotically converges in distribution to $\mathcal{N}(0,\sigma)$, where $\sigma >0$. If $X_{i}$ and $Y_{j}$ are not independent for $1\leq i,j \l... |
We know that a Gaussian Distribution is not limited and it spans from $-\infty$ to $+\infty$ . However, practically if we sample the Gaussian with a finite sampling frequency, the maximum frequency is a finite value and it may happen sometimes that the Gaussian can be folded multiple times in the finite frequency range... |
The post When do we find convergence in distribution to independent variables? prompted me to review convergence in distribution. As I read on, I encountered a property about almost sure convergence that I do not understand.
The concept of almost sure convergence does not come from a topology on the space of random va... |
I need to demonstrate discriminant validity for two subscales (subscales have 6 and 7 items) that should differ between males and females. There is a theoretical basis that there should be a differences in gender. What's the best approach? Thanks!
|
Suppose I have some empirical data which I plot and I believe it be a Beta distribution, how can I make sure that I have a Beta distribution, and how can I estimate the alpha and beta parameters of that distribution? I know there's a function in Scipy that can do that scipy.beta.fit() but I'm looking for a bit more tha... |
This question is about terminology:
I have a stochastic process from which I get a sample. Ideally I want to know the probability density function (pdf) associated with the process, but from the data I only can get a sort of approximation of it. Q1: Is it correct to say that it is an 'estimate' of the probability dist... |
I have been looking to see if DoWhy supports Multiple Treatments (T) and Multiple Outcomes (Y) causal framework and it seems to be the case. For example, CausalForest may be a good candidate using EconMl as the Py libary.
My question is how would I define and pass parameters for both the Treatment and the Outcome when... |
I am currently running candidates for a meta-analysis using the rma.mv function in metafor. I have tried running models, comparing by AIC, and then averaging using the model.avg approach in the MuMIn package. However, I continue to get an error that indicates my candidate models are fit to different data -- but the dat... |
In the book Probabilistic Graphical Models: Principles And Techniques by Daphne Koller, the author at one place (Box 3c), states the challenges in picking probabilities for a Bayesian network model. One of the challenges stated, is in assigning zero probabilities to events. Am finding difficulty interpreting the author... |
Suppose we have a collection of random variables $S = \{ X_0, X_1 \}$ encoded into the $2 \times 2 \times 2$ tensor
$$\mathcal{C}[i, j, k] = \mathbb{E}[X_i X_j X_k]$$
where $X_i, X_j, X_k \in S$ and $i,j,k \in \{ 0,1 \}$.
Cayley's hyperdeterminant for $\mathcal{C}$ can be (verbosely) expanded to:
\begin{align}
\det (\m... |
Let $\{X_{n}\}_{n\in I}$ be a sequence of random variables, where $X_{n}$ takes value $\{-c_n,c_n\}$, each with probability $1/2$, $|c_{n}|\leq \alpha \in \mathbb{R}$ and $I$ denotes the index set such that $cardinality(I) = d$. Suppose $I_{1}, I_{2}, \ldots, I_{K}$ are subsets of $I$ such that $I_{i} \cap I_{j} = \emp... |
I am an MBA Student and I am trying to understand how to calculate the Confidence Interval for an Odd's Ratio. Our professor gave us this link (https://www.ncbi.nlm.nih.gov/books/NBK431098/) which contains the formula for the Confidence Interval of the Odd's Ratio :
Upper 95% CI = e ^ [ln(OR) + 1.96 sqrt(1/a + 1/b + 1... |
I have retrospective data of cancer patients who treated with chemo + radiation therapy and we want to measure the effect of treatment approach on survival so to determine the start and end point for the interval of the survival (overall survival and Progression-free survival) should we choose which date ?
(the date o... |
I am currently implementing logistic regression from scratch and I'm comparing my model with SKLearn's logistic regression. Since this is just an exercise, I decided to use toy data, specifically using the Palmer's Penguins dataset. Comparing my implementation's coefficients with SKLearn's I get this: (the dict is my i... |
I have a time series which has sequence as follows
Upon eye balling this series , it sounds me a series which has 20 cycles where frequency/counts of event increase from 0 and then decrease after half of its cycle.
I generated ACF and PACF plot of this series without any transformation (log or differencing)
I am not ... |
For example for arguments sake lets say I have the production output of car manufacturers (Ford, Nissan, Toyota, Hyundai, Renault, Tesla) and for a particular category it makes up 40% of the annual output across all manufactures.
Would it be appropriate to compare the output of Ford in that category against that 40% or... |
I am working on setting up regression models for prediction in psychometrics and ran into challenges with cross validation. Essentially, I would like to have cross validated linear regression models while reducing the number of terms as much as possible and ideally, it should be cross validated. So far, I implemented a... |
TLDR: My actions represent a torque of a physical system. How can I make sure that there aren't any large "jumps" between consecutive actions $a_t\rightarrow a_{t+1}$?
So I have this very simple simulation of a wing that is connected to a motor. when the motor applies some torque $\tau_{motor}$, the wing rotates with ... |
I am solving a problem : The number of new customers in the mall each day follows Poisson distirbution with $\lambda = 50$. Find approximately the probability that after one year (200 working days) the number of customers that visited was between 950 and 1100.
My idea : Day i we have $X_i \sim P_o(\lambda) $ new cust... |
Please imagine the following scenario: In a predictive modeling task for the probability that a hospital patient will encounter a certain medical event, all available data is split into cases and controls. Controls are defined as having data (hospital discharges) before a certain date and no event up to now. Cases are ... |
I have fitted a model in glmmTMB that includes an spline function for age using the bs function from the splines package (version 3.6.2) in R. The syntax in glmmTMB looks like this:
glmmTMB(litter_size ~ bs(maternal_age, 3) + prey_abundance + (1|motherID),
data = ourdata, family=poisson)
One of my colleagues suggested... |
how is it to explain that ROC illustrates such a perfect classificator however other metrics represent something different?
The evalaution was done on CV of 5.
F1: 0.724770642201835
Precision: 0.797979797979798
Recall: 0.6638655462184874
false positive rate: 0.0007034451224873819
true positive rate: 0.663865546218... |
Suppose we need to predict a real number in fixed range, for example, [0 .. 5], and Y can be 3.14, 2.4654 etc.
What is the name of this kind of tasks (to be able to search further) and what are the approaches to solve this problem?
The only idea I got is to normalize Y to [0 .. 1] dividing by (max-min),
and then make s... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.