instruction stringlengths 9 38.7k |
|---|
Given $k > 2$ classes, consider the following loss function
$$
\sum_i||y^{(i)} - \hat y^{(i)}||^2
$$
Here $y^{(i)} \in \{0,1\}^k$ is the $i^{th}$ one-hot encoded true label and $\hat y^{(i)} \in [0,1]^k$ is the prediction (obtained after applying a sigmoid to the output logits of some neural network).
What are the theo... |
Shapley additive explanation (SHAP) are used to explain the prediction of a model $Y = f(X_1,...,X_p) + \varepsilon$. If we observe $x_1,...,x_p$ and predict $y$, then for each $i$ the contribution of $x_i$ to the prediction $y$ is defined by
where $S$ is a subset of indices from the set $F=\{1,...,p\}$ and $X_S = \{X... |
Suppose that there exists a constant $C$ such that the following relation
holds for all $G$:
\begin{equation*}
\vert T(F)-T(G) \vert \le C \sup_y \vert F(y)-G(y) \vert
\end{equation*}
Suppose that $|Y|\le M < \infty$. Show that $T(F)=\int ydF(y)$ satisfies the previous relation.
In particular we are in the setting ... |
I am trying to automatically detect whether a text is written by a Machine or a Human.
My first approach was using a TF-IDF to build features for a logistic regression classifier, where I got an accuracy of around 60%.
Now, I'm trying to obtain the features from BERT, as it was suggested suggested that it can be a good... |
Have a program that simulates picking stocks 10000 times according to different parameters. I then look at the ending portfolio amounts, and the distribution is pretty heavy tailed. This doesn't violate 'normal distribution rules', correct? I remember in undergrad that the normal distribution would appear if I took a m... |
Before reading the answer to this question, I, like the original poster, thought that we have to take the accrual period into account because some subjects might die before we start the treatment.
But, according to the answer, this isn't so. The treatment starts as soon as the subject is recruited. Consequently, we can... |
I'm working on a project that concerns time series data for South-Africa. My series has 34 explanatory variables and only (!) 30 yearly observations. The analysis is meant to be high-dimensional, hence I chose to have p>n. My y-dependent variable is the under-5-mortality-rate and I have collected 34 explanatory variabl... |
I have an independent variable which is BMI and catagorized into
1- under weight
2- normal weight
3- over weight
4- obese
Sample size is 100
The dependent variable for group 1,2 and 3 is not normally distributed, I checked for each group separately using kurtosis and skewness. But for group 4 which I only have 3 cases ... |
I'm trying to replicate Stata outputs that provide both constant and FEs.
Here's an example of what I'm trying to do
> fixest::feglm(mpg ~ 1 + wt | cyl, mtcars)
GLM estimation, family = gaussian, Dep. Var.: mpg
Observations: 32
Fixed-effects: cyl: 3
Standard-errors: Clustered (cyl)
Estimate Std. Error t value Pr... |
I have performed a Detrended Correspondence Analysis on social survey answers, aiming to see the spread of answers to 25 interview questions and how they related to the three farmer types (n =45) we interviewed. This has been done using 'decorana' in vegan, with the following output:
I'm unsure as to why the sites (wh... |
I have 7 independent variables and two dependent variables which I think I should run 7 way manova, but this method is to complicated to compute, is running separate anovas for each dependent variable a good method?
|
I have doubts on which test I should use when I have measurements on the same individuals under more than 2 different conditions.
I have a sample of rats, on which was measured the effect of different light intensity on eye damage. Eye damage was measured on a scale from 0 (no damage) to 5 (severe damage).
So my data w... |
I have a data which
population is 3000;
mean is 16;
stdev is 44;
I want to have a test case to check if the mean can be improved to 16.5 or not.
After the calculation, I was told the required sample size is 247K which I can't afford.
How can I deal with this situation?
Thanks
To provide more context, I want to check w... |
Let's suppose I have two models that both indicate the presence of some phenomenon:
Model A: Only binary results, i.e., the phenomenon is present or not,
Model B: Outputs class probabilities.
Of course, I could impose a decision rule for model B to derive binary results, too, but I am looking for methods to compare t... |
I have four individual groups(A, B, C, & D)
Differences between the groups are being analyzed by the Kruskal-Wallis test followed by Dunn's test for multiple comparisons (dunnTest command in R). We are interested in A-C, B-C, C-D, and A-B comparisons. So I would like to focus on these 4 multiple comparisons rather than... |
Reposting this because I fixed the formatting to see if someone can actually provide a solution for this problem. I have a study design in which I am carrying out a 2x2 repeated measures ANOVA in which participants give ratings (DV) for 2 types of stimulus (Stim = 1st IV) in 2 different conditions (Conditions = 2nd IV)... |
Suppose I want to perform Bayesian estimation of the mean $\mu$ and standard deviation $\sigma$ of a Gaussian distribution. Is there a standard way to specify an informative prior over $\sigma$, assuming I have prior info that it lies "close" to some given $\gamma$ in log-space?
In addition to having an initial guess f... |
Usually in machine learning pipelines, we use a train set, a validation set and a test set. Quite often, we first split the test set from the rest, and then we split the "rest" into train and validation sets (possibly multiple times if using cross-validation).
What would be the proper way to name the "rest" (the set th... |
My understanding is that probability (at least from a frequentist viewpoint) is a mathematical tool for modeling correlations. So, for example, we can say that two events $X$ and $Y$ are defined to be independent if $P(X\cap Y) = P(X)P(Y)$, or equivalently $P(X|Y) = P(X)$, and so on.
However, something like whether or ... |
I was given this data (below) and I want to try some predictive modeling with the data. Specifically, I want to build a linear regression to predict birth counts (by month, if possible) until the year 2032.
Would a poisson model be a good fit?
Here are my data
In wide format:
> dput(births_monthly_cross_022822_clean)
s... |
Considering two continuous probability distributions $q(x)$ and $p(x)$, The Kullback–Leiber divergence is defined as the measure of the information lost when $q(x)$ is used to approximate $p(x)$.
\begin{equation*}
\mathrm{KL} (p(x)|| q(x)) = \int_{\mathbb{R}} p(x) \ln \frac{p(x)}{q(x)} dx
\end{equation*}
A distrib... |
I've got a sample (n=7000) with a binary dependent variable with many 0s and only a few 1s (150 total) and therefore want to run a Firth's biased reduced regression to estimate the probability of the 1s. So far so good, but my explanatory variables are fixed effects for the individuals (=their individual names). Each i... |
I have a hard-coded deep neural network with structure of 4-4-5-3.
The outputs are known to me however the training is not done using backpropagation but using a brute-force algorithm cycling weights’ values between -1 and 1. Outputs will get activated differently and if activation is above 0.6, a certain action is exe... |
I have a dataset with 28000 patients at baseline, of which approximately 1100 have had only a baseline visit. A logical choice would be to censor these observations (0) at time 0. However, I wonder how this would impact the Cox proportional-hazards model. For example, would it overestimate or underestimate the effect? ... |
My question is, after I have already performed CV and tuned my model is there a standard practice that data scientists use regarding fitting your final model to the entire data set versus only the training data? Would it potentially add some overfitting if fit to the whole data set? Please correct me if my logic is wro... |
My question is kind of a sequel to this one. For an experiment I'm designing, I want to model the outcomes by a binomial regression, something like
bmodel <- glm(cbind(succ, (N - succ)) ~ x + x_ind, data = tb1, family = "binomial")
where x_ind is an indicator variable, indicating the experiment arm (placebo, therapy ... |
While I was studying Positional Encoding, I came across an article that links coding resolution to Fourier transforms:
"For anyone who has studied finite
Fourier transforms, this problem should be familiar. Only half of the frequencies are unique. "
However, even if I have explored this topic, I do not find the connect... |
I am completely new to machine learning.
I explain the problem with an example.
I have a two dimensional white canvas.
The shape of the canvas is an arbitrary closed curve.
I have a brush, it is represented as a circle having a radius small enough to reach all corners of the canvas.
I have also blue paint.
I would like... |
I am going to collect quantitative data for two groups that I would like to compare. I have done a two sample t-test on some preliminary data and found a significant difference, but I don't think that is the best (or at least not the only) test I should use because each group is composed of multiple subjects that each ... |
I was wondering about how I should go about combining categorical distributions derived from the same experiment but measured differently.
Ex .....
Measurement A: 60% probability of label A, 30% probability of label B, 10% probability of label C
Measurement B: 30% probability of label A, 20% probability of label B, 20%... |
I'd like to graph in Excel the fitted values of:
MA(1) model I estimated using Eviews.
I can't figure how to use the MA estimated coefficient to calculate the model output. Is there any straighforward way of doing this like in AR models?
Other questions and answers regading this subject seem to be only related to mode... |
I have a data matrix $X \in \mathbb{R}^{m \times 4}$, where $m$ is any number of rows, whose data follow a multivariate normal (MVN) distribution.
Suppose that for a given row $i$, the data for the 4th column is missing. We can use the conditional expectation formula for the MVN distribution to estimate the missing val... |
My question is really straightforward.
The distribution of the sample means approaches a normal distribution (CLT).
The distribution of the sample variance approaches a chi-square distribution (Cochran's theorem).
This is for the first and second moments of a distribution. Do we have something similar for the third and... |
I'm trying to compute a mixed design with an multilevel approach in R. I'm quite new to the game and really hope someone can help me here.
What I have is a group of people measured 10 times (in 10 weeks) concerning their adherence to a specific treatment.
The hypothesis is that adherence reduces over time in a linear m... |
I am a newbie to R and am trying to learn it. I have some financial data which is normal distributed. Now, the Student's t-distribution is given by
$$g_v(z):= \frac{\Gamma ( \frac{v+1}{2})}{ \sqrt{ v\pi}\Gamma (\frac v2)}\left(1+\frac{z^2}{v} \right)^{- \frac{v+1}{2} },$$
and density given by
$$ g_{v, \mu ,\sigma}(z)... |
I would like to comment on the estimation of the random effect with REML and without REML. This was my comment: "The variation between chicks for the model with REML is 545.70 and the variation between chicks for the model without REML is 498.0. Thus the size of the biological variation between chickens when REML is Tr... |
Hello.
I have been trying to wrap my head around GARCH (via rugarch package) for the past week and been trying to mimic the numbers as shown at vlab nyc's website.
I have not confirmed where they get their price data from but I have used several data sources.
The code in this question will be using yahoo via BatchGetSy... |
I am trying to understand how to write mathematically a mixed effect model.
The model is (I want to check the growth rate of rats in a different countries across the variable day adding the interaction of the 2 factor level Country to the growth rate):
lmer(Volume ~ Country * Day + (1 | Rat.ID))
In R I extracted the e... |
An unknown parameter $\theta$ is randomly drawn at time $t=0$ according to prior p.d.f. $\mu_0(\cdot)$ that has support $[L,R]\subseteq\mathbb{R}$.
At each time $t\in\{1,2,...\}$ an agent makes an estimate $a_t\in\mathbb{R}$ of $\theta$ and observes an outcome $y_t\,|\,(a_t,\theta) \sim\text{Bernoulli}(\sigma(a_t,\thet... |
I have data from 100 different lab incubations of manure samples. For each sample, a 3-day incubation was done, measuring values (y-axis) against time (x-axis).
I want to perform a linear regression on my data in order to get values of the slope and y-intercept, which are important kinetic parameters.
Each of the incub... |
For a linear mixed model, the model is given as:
$$Y_i = X_i B + Z_i b$$
I know that $B$ denotes the fixed effects estimate and $b$ denotes the random-effects estimates. The $V$ represents the covariance, and the $Z$ is the $n \times q$ design matrix for the random effects relating observations $y$.
I need help in iden... |
Given $p(y)$ and $p(y|x)$, how can we infer $p(x|y)$?
Or to what extent can we know about $p(x, y)$?
|
How to calculate the overall accuracy of a system with two sequential steps (two classifiers)? In my scenario, I calculate the accuracy results for each step separately and then combine the overall results. For example, let's assume that I want to predict 1000 data instances in the first step and that the first classif... |
Say I want to classify a set of 10000 observations into 5 categories A, b, c, d, e. I have about 500 statistical tests to choose from for categorization but only want to use 3 statistical tests. If I simply pick the ones with the highest Pearson I get 3 tests that classify A C D E well but miss classify B. If I pick te... |
Let's say that we have 2 stationary time series: X and Y. Granger's causality test outputs no granger causality between them, however Hosking cross-correlation test proves there is a relationship between these two series. Which one of them should be a stronger indication to use or not to use VAR model? Does Granger Cau... |
My textbook says, without proof, that $E(X^4)=3$, where $X\sim N(0,1)$. Is it so simple to obtain?
|
Assume that $E[( \theta-\hat{\theta}_n)^2] = O(n^{-1/2})$. How can I show that $\frac{1}{n}\sum_{i=1}^n (\theta-\hat{\theta}_n)^2 = O_p(n^{-1/2})?$
What I'm trying to ask is: if the expected value of some quantity is $O(n^{-1/2})$, does that imply the sample mean of that quantity is also $O_p(n^{-1/2})$?
|
I have to implement 3 Neural Networks, an MLP, an RNN and an LSTM, for a "Future Location Prediction" problem and it's the first time I am in touch with NNs.
I would like to ask whether there is a way to automatically find the best configuration for their parametres, aca number of layers, number of nodes in each layer,... |
Let $N(x) = I(X \leq x, \Delta=1)$ be the counting process for observed failure events, where $X = \min\{T,C\}$ and $\Delta = I(T \leq C)$, for censoring time $C$ and failure time $T$. Assume that $T$ and $C$ are independent.
Let $Z \in \mathbb{R}^p$ be a vector of covariates. Let subscripted variables denote i.i.d. dr... |
Could someone help me understand this equality?
Let $\xi$ be a random variable.
$\int_B(\frac{1}{P(B)}\int_B\xi dP)dP=\int_B \xi dP$ for any event $B$.
How do we go from the integral over an event $B$ of the conditional expectation to the unnormalized conditional expectation over such event.
|
For iid random samples $X_1,\dots, X_n$ with mean value $E X_1=\theta$, take $X_{(1)}=\min \{X_1,\dots, X_n\}$ and $X_{(n)}=\max \{X_1,\dots, X_n\}$. If $\lambda$ solves equation
$$
\sum_{i=1}^n \frac{X_i-\theta}{1+\lambda(X_i-\theta)}=0
$$
for $\lambda\in [\frac{1/n-1}{X_{(n)-\theta}}, \frac{1/n-1}{X_{(1)-\theta}}]$.
... |
I read about Bayes Naive classifier will be affected by imbalance data.
If so, why still such high roc_auc_score of 0.96?
target
Proportion
Diseased
0.85
Not diseased
0.15
Metric
Result
Precision
0.71
Recall
0.94
F1-score
0.81
Accuracy
0.91
|
I have a NB(r,p) distribution (let's say with the conventions of the wikipedia page). Suppose I know the success probability p, observe Y the number of successes, but don't know and want to estimate r, the number of failures until the experiment is stopped. Getting a point estimate isn't too hard. One could use MLE or ... |
I do not understand what is the definition for
$$\mathcal I(\theta) = -E[H(\theta)]$$
where $H$ is the hessian of log-likelihood function
how should I calculate this if $\theta$ is a vector. What should be the formula
to calculate it as a single variable formula (without any vectors inside the formula)
|
I have a lab data analysis challenge which I think can be viewed as a kind of reliability analysis problem.
Imagine a warehouse is filled with light bulbs that were installed at some unknown times in the past. These have operated up to the present time from whenever they were installed. Now at some time $t=0$ we start ... |
Suppose that $X_i \sim N(\theta_i,1)$ are independent for $i=1,\dots,n$. Let:
$$\hat{\theta_i}(\boldsymbol{x^{n}})= \left(1 - \frac{b}{\sum_{i=1}^{n}x_i^2} \right)x_i $$
Where $b$ is a constant. If we define the total risk under squared-error loss as:
$$R(\theta,\hat{\theta})=\sum_{i=1}^{n}E \left[\hat{\theta_i}(\bolds... |
Recently, I have been reading the paper "Refinancing risk and cash holdings" by Jarrad Harford.
This is a simple example of his model:
$$y_1 = a_0 + a_1 y_2 + a_2 Z_1 + v$$
$$y_2 = b_0 + b_1 y_1 + b_2 Z_2 + u$$
$Z_1$, $Z_2$ are two different sets of control variables from previous literature.
Estimation procedure:
He ... |
I am using the following command to fit a linear mixed model for repeated measures (MMRM) in statsmodels:
smf.mixedlm("RESPONSE ~ C(TIME) + GROUP + C(TIME)*GROUP", data, groups=data['ID'])
I would like to do this with an unstructured covariance matrix. What is the default in statsmodels? Can I modify it to unstructure... |
The four assumptions for bivariate regression are:
• (L)inearity
• (I)ndepdent observations
• (N)ormal errors
• (E)qual variance
And for multiple regression we add a fifth assumption:
• no multicollinearity between predictors.
From a purely mathematical perspective, true multicollinearity makes the ... |
I created a logistic regression model with four continuous variables and a binary outcome. I divided the residual deviance by the residual degrees of freedom, which equaled 0.63. From my understanding, underdispersion is supposed to be rare, and it essentially results in coefficients that are too conservative. This see... |
I am working through the pymc3 Bayesian Survival Analysis example at the link below and I'm struggling to understand their use of pm.Potential:
https://docs.pymc.io/en/stable/pymc-examples/examples/survival_analysis/bayes_param_survival_pymc3.html
The heart of the example comes down to the following two snippets of cod... |
I have a dataset that is composed of a few thousand datapoints, each of which consists of two test results for a participant that were collected when they underwent the test at Time A and Time B. The problem is that the interval between the first and second test attempt is variable between participants. In other words,... |
I'm reading up on Rubin causal inference and haven't been able to find a clear distinction between a potential outcome and the outcome conditioned on treatment, although this distinction is supposed to be crucial.
Writing subject $i$'s response, $Y_i$, in terms of potential outcomes and treatment $X_i$ I see this defin... |
I am analyzing some behavioral footage and am not sure what an appropriate non-parametric test would be for proportion data? Specifically, I'm looking at visit durations at a feeding station and the proportion of time spent
foraging or
vigilant of the total visit time.
The foraging proportions are in the realm of 0.5... |
When performing linear regression, why might you choose to transform one of your predictor variables over using polynomial regression? Essentially what are the advantages (if any) of performing a transformation over using polynomial regression?
As an example I'm using the Auto dataset provided by ISLR2 package:
require... |
all. I want to conduct a meta-analysis using R on a bunch of articles. The outcomes are in percentage format and it is single group. I am wondering how could I use R to do this kind of meta-analysis? In the beginning, I thought that I could use metaprop, but after I checked the example, I think I can only use metaprop ... |
Suppose I want to learn the effect of land confiscation from church on education investment. I have data on all land expropriated by the government from churches, so I can see which municipalities have churches expropriated. I'm going to assume that the rest of the municipalities have no land owned by churches because ... |
I have a dataset that provides the count of cyber incidents since 2011 for different countries and different attack types, and I want to use this data in a machine learning model to predict future attacks using LSTM algorithm.
I am currently setting the time period of each observation to 10 days, and I have in total ar... |
Why does $E(\epsilon_ix_i)$ have the best linear predictor and $E(\epsilon_i|x_i)$ have the best predictor?
Each $x_i$ is a $1\times K$ vector. All of information I could understand is $E(\epsilon_i|x_i)$ stronger than $E(\epsilon_ix_i)$. Under $E(\epsilon_i|x_i)$, we have consequences $E(\epsilon_i)=0$ and $E(\epsil... |
In my study, each subject produces a 3x3 contingency table.So I have a table of counts of how many times a subject responded X Y Z in condition A, B or C. All the columns sum up to 50 (num of trials in the task).
A B C
X 20 15 25
Y 20 15 20
Z 10 20 5
I have multiple such tables. I want to know if it's correct to pool... |
According to this Wikipedia article,
In general, the variance of the sum of $n$ variables is the sum of their covariances.
So if the variables have equal variance ${\sigma}^2$ and the average correlation of distinct variables is $\rho$, then the variance of their mean is,
$$
\text{Var}(\overline{x}) = \frac{{\sigma... |
I did chi square test on data of 60 patients having COVID 19.
The variable in the rows is the severity of case (mild, moderate, severe)
while the variable in the columns is lymphocytes count (normal, lymphopenia).
I found a significant difference and I liked to do a post hoc test using Bonferroni correction
and it is k... |
Let $X_{1}, \dots, X_{n}$ be i.i.d. having the exponential distribution $Exp\left(0, \theta_{x}\right)$ with $\theta_{x}>0$, and $Y_{1}, \dots, Y_{n}$ be i.i.d. having the exponential distribution $Exp\left(0,\theta_{y}\right)$ with $\theta_{y}>0$.
Assume that $X_{i}$'s and $Y_{j}$'s are independent, but they are unobs... |
what would be a correct solution to following problem:
The medical costs per patient are normally distributed with a mean equal to 7 euro and a variance equal to 49. Compute the probability that the medical costs for five patients are more than 21 euro.
a) Linear transformation
$$
X \sim N(7, 49),\hspace{.1cm} X \sim \... |
I want to build a CDF for some phenomenon, say $P($storm duration $ D \leq d)$. The particularity of that phenomenon is that it has extreme values.
I understand that I can fit some PDF (I have data for that) to find my CDF. If I do it however, the PDF doesn't fit the extreme values very well.
Reading the web, I see tha... |
I'm rather confused about the following question:
Which of the following vectors do you think is actually a random sample of $\mathcal{B}(1, 0.5)$ (Bernoulli) of length 10?
$[0,1,1,0,1,0,1,0,1,1]$ and $[0,0,1,1,1,1,1,1,1,0]$.
In the solution they argue that the second sequence is highly unlikely as the longest subseque... |
I've been working on two simulations using the Unity engine for the purpose of measuring performance differences between the two. Both simulations do the same thing, but they each use different equations of motion in the software that runs in the background. I'm primarily using CPU performance as the main metric (in th... |
Looking for a method, model, or program that can assist with logarithmic regression of the (apparently unusual) form: y = a + b*log(x - c). In other words, assuming a data subset from the middle of a larger data set of which the initial x value is unknown - only the relative position of the values in the subset are kno... |
Suppose that iid random samples $X_i$ from a discrete CDF $F(x)$ on $\{x_1,\dots, x_n\}$ with mean $EX=\theta$. We want to estimate $F(x)$. We consider empirical likelihood for $F(x)=\sum_{i=1}^n p_i I(X_i\le x)$ where $p_i=P(X=X_i)$, and $p_i\ge 0$, $\sum p_i=1$.
Consider the hypothesis:
$$
H_0: \theta=\theta_0, \, v... |
I am doing a 3-level meta-analysis.
First, I fit a theoretically-driven model, where level 1 is the sampling variance, level 2 is the effect level, level 3 is the study level. This method is well known (e.g. see Cheung, 2019). I found that the level 3 variance is basically 0. Hence, I dropped this level and fit a 2-lev... |
An exercise displayed in the image below shows example of finding the efficiency of an estimator. I am trying to replicate this example in R using monte carlo. Y1,Y2,Y3 are random samples of normal distribution.
The steps I thought I can take is using R function would be rnorm() as this function generates random numbe... |
I want to get some opinions on how to approach the following problem to do with detecting "unhealthy" behavior in time series data (either using a statistical/analytical model or ML/DL, I do not have a preference). I want to be able to detect "healthy" or "unhealthy" (so this could be framed as a classification problem... |
Suppose I have N biased coins. The bias of each coin $j$ is known: $p_j$.
What is the probability that I throw at least K heads using all N coins and tossing them each once?
The edge case of at least one coin showing head ($K=1$) is clear to me: $P(K) = 1-\prod_{j=1}^N(1-p_j)$.
But I don't see how transforming the bino... |
This may be somewhat of a philosophical or foundational question. In parametric inference, we make a distribution assumption to relate sample to population. Even in a non-parametric technique such as bootstrapping, there would seem to be an assumption, if not about distribution, relating population and sample, e.g., ... |
I'm trying to train a logistic regression on simulated data. I have n=1000 simulations for the following variables:
binary proxy variable proxy = rbinom(n, 1, 0.5)
x1 thats affected by proxy: x1 <- beta_p * proxy + rnorm(n, mean = 0, sd = 0.5)
A random effect variable: xr <- rnorm(n, mean = 0, sd = 1)
binary response ... |
Please kindly give a pointer to this question. Generating the discrete variables seems unlikely!
Entrance to a country can be denied for a number of reasons. When someone arrives by air, and their entry is denied, they get put into a detention hotel before deportation. While in the hotel they can appeal against the dep... |
If $P(t_1,\ldots,t_{n+m})$ is some predicate depending on $n+m$ terms (for example $x\leq c$ depends on two terms), and each $X_i$ is a discrete random variable with support $\Omega_i$, and each $c_i$ is some constant, is this definition correct?
$$
\Pr\left[P(X_1,\ldots, X_n, c_1\ldots,c_m)\right]=\sum_{(x_1,\ldots,x_... |
Background
I'm designing a study that models time-to-event for two groups of study subject: people who receive a treatment and those who do not. I'm fairly new to applied survival analysis, so I've chosen Cox regression for this analysis: first, it has a nice carryover of intuition from other regression models I'm more... |
Motivation
Everyone knows that fitting high variance models requires more data. A "yes" answer to the question would suggest that more data is also needed to evaluate these models.
Assumptions
$\forall i \neq j, Y_i \perp Y_j$. This is just a usual independence assumption.
$\forall i, j, Y_i \perp \hat{Y}_j$. This sho... |
Consider the model $y_i = \beta x_i + \varepsilon_i$ (simple linear regression without an intercept).
In this setting, the $i$th fitted value is
$$\hat{y}_i = \hat{\beta}x_i$$
Where
$$\hat{\beta} = \frac{\sum_{i=1}^n x_i y_i}{\sum_{i'=1}^n x_{i'}^2}$$
I am being asked to find an expression for $\alpha_{i'}$ such that w... |
This paper introduces Stochastic Gradient Meta RL (SGMLR). My question is specifically about the computation. One needs to calculate the Hessian, $\nabla^2_\theta J_i(\theta)$ which is given by the following equations:
$$\nabla^2J_i(\theta)=\mathbb{E}_{\tau\sim q_i(\cdot,\theta)}[u_i(\tau,\theta)]$$
where
$$u_i(\tau,\t... |
Recently, I have come across a 2-armed clinical trial problem which attempts to find a "Disease Control Rate" (DCR) for patients in the treatement and placebo arms.
On the Internet I found DCR to be defined as follows:
"Disease Control Rate is defined as the percentage of patients with advanced or metastatic cancer who... |
Intro to problem
Increasing the sample size can be very costly in terms of time and money. However, in experiments where we measure proportions within a sample, errors associated with the sample size can be notoriously high. This is especially true when we measure proportions as low as 1%. I computed the margin of erro... |
My dataset has 80,886 obs and 16 variables. I am using Mahalanobis Distance to detect outliers. And use P-value less than 0.001 as the cut-off. I am getting 5,423 obs as outlier which is 6% of total obs. Is this considered normal or is something interesting going on in my dataset?
|
I have a logistic regression and decision tree classifiation model with a dataset with 70 data entries, yet only 16 responses have said yes for the response variable. I have 8 covariates.
How can i artificially generate more data? Does it make sense to?
How can i increase the accuracy with a small data-set? (Penalisa... |
In most of the applications, I see that the covariance matrix is calculated on feature space, by first applying normalization steps on $X$ then the covariance is calculated by $C = X^{T}X$ where $X \in R^{n, d}$; $n$ being the number of samples, and $d$ is the dimension of the feature space. This operation results a c... |
Let's say we have 6 classes to predict. And we want to train 2 Multinomial Logistic Regression models (one model for 3 classes and another for the other 3) instead of training one global Multinomial Logistic Regression model to predict all 6 at once.
My two questions are:
Is it actually beneficial to train multiple mo... |
My current model of Logistic Regression return a accuracy of:
Training set score: 0.8476
Test set score: 0.8502
Comparing model accuracy with null accuracy:
y_test.value_counts()
#No 22067
#Yes 6372
null_accuracy = (22067/(22067 + 6372))
Null accuracy score: 0.7759
We can see that our model accuracy scor... |
I'm just getting started in R and I'm trying to wrap my head around an analysis for a university assignment. Specifically, I am using the General Social Survey 2018 dataset (for codebook: https://www.thearda.com/Archive/Files/Codebooks/GSS2018_CB.asp) and I am trying to figure out if religion has any effect on the way ... |
I want to calculate the variance of the average of n correlated variables. I found a formula for that in Borenstein et al. (2009) Introduction to Meta-Analysis.
$$\operatorname{Var}\left(\frac{1}{m}\sum_{i=1}^mY_i\right)=\left(\frac{1}{m}\right)^2\operatorname{Var}\left(\sum_{i=1}^m Y_i\right) = \left(\frac{1}{m}\right... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.