instruction stringlengths 9 38.7k |
|---|
The image below is the final steps taken from the MLE for the Pr. of success (parameter $\pi$) to a Negative Binomial. Source: SE thread. Here are the final steps from that:
$ \frac{d\ell(\pi;x_i)}{d\pi} =
\sum_{i=1}^{n}[\dfrac{k}{\pi}-\dfrac{(x_i-k)}{(1-\pi)}]$
Set this to zero,
$\frac{nk}{\pi}=\frac{\sum_{i=1}^nx_i-... |
How can I calculate the α and β parameters for a Beta distribution if I know the mode and variance that I want the distribution to have? Examples of an R command to do this would be very helpful.
|
There can be many ways and ad hoc variants to perform sampling without replacement from a limited population.
Consider we have $k$ categories (types of objects) and the k-length vector of their corresponding probabilities, kprob. These weights are seen as background "demand" probabilities. (In the simplest case of k ca... |
I have some data about 50 hotels (for this example).
They are rated 1-5 stars -- the ground truth.
Then I have a number of different estimators which use some features to output a score.
For example one estimator might be say "[average_room_cost] + 100*([number of staff]/[number_of_rooms])" which outputs a score betwee... |
I haven't used inferential statistics in a few years, so I am blanking on a simple question.
I ran a descriptive trend analysis on assessment results for a school district, disaggregated for group-level characteristics like household income. I created a chart for those who scored "Demonstrating" (the highest level) fro... |
My data is taken from an area where I do expect a certain degree of spatial correlation for each variable. My question is how to account for spatial correlation (defined with X and Y) in the GLM syntax?
Model1 <- glm(INC ~ Var1 + Var2 +Var3 + X:Y ,
data = MyData,
family = binomial(logit))
|
My main objective is to find correlations between process parameters and their impact (more specifically: the amount of wear measured) on specific sections of equipment used in the process.
I've obtained a table of about 5,000 unique "production cycles". Each cycle is a a single row, with 9 process parameters and 13 di... |
So I have a presence/absence (1/0) dataset and right now I am trying to find out which model to use. My data looks like this:
Dependent var: presence/absence (95% zero's)
Independent var: month (1:12), hour (0-23), location and individual (random in mixed model).
Since the data consists for approx. 95% of zeros, I star... |
For two centered (zero expectation) random variables $X$ and $Z$ I am interested in the covariance of the product $XZ$ and either $X$ or $Z$.
$$Cov(X,XZ) = E( X(XZ - E(XZ))) = E(X^2Z)$$
I think the last quantity can be non-zero. However, for any choice of $X$ and $Z$ I have tried, in simulations, I find the quantity to... |
This is the bayesian probability for class 'k'(sigma is same for all k classes), assigning the observation to class with maximum pk(x)
with πk as the probability of response variable belonging to the kth class
This is a statement from the book Introduction to Statistical learning Taking the log of the bayesian above ... |
Suppose we have two features $f_1$ and $f_2$ that, when examined individually, yield very low or zero information gain relative to competing features. But further suppose that if we were to first split on $f_1$, then $f_2$ would yield high information gain. How can we ensure that the decision tree discovers this split ... |
Given the two equivalent formulations of the problem for LASSO regression, $\min(RSS + \lambda\sum|\beta_i|)$ and $\min(RSS)$ such that $\sum|\beta_i|\leq t$, how can we express the one-to-one correspondence between $\lambda$ and $t$?
|
I have multiple, 12-year time-series of species abundance data. I want to model different population properties across spatially and temporally varying predictors.
One of the properties I want to investigate "across space" is density dependence. By the use of the partial rate correlation function (similar to autocorre... |
When calculating the standard deviation of a set of measurements of $X$, you use the formula
$$\sqrt{\frac{1}{n-1}\sum_{i=1}^n(x_i-\bar x)^2}$$
A common explanation I have found for the $n-1$ factor is that it refers to the degrees of freedom. As I understand he degrees of freedom is the number of values you can pick,... |
If $X_1,...,X_n$ follow a Pois($\mu$). Further suppose that parameter space is restricted to [$\mu_0$,$\infty$] where $\mu_0$ is the (unknown)true value of $\mu$. Find the limiting distribution(Under H0: $\mu=\mu_0$) of $\sqrt(n)(\hat \mu-\mu_0)$? and the limiting distribution of the likelihood ratio statistic i.e $R... |
I have been trying to find the best way of estimating parameters for a known pdf from a data-set that is left-truncated and right-censored.
More precisely, I have lifetimes for a system where there are no logs kept for values under $t_L$; and there are censored values on the right side, where the parts are taken out of... |
In my discipline, it's common to use the ratio of predators:prey as a proxy for pest control by naturally occurring pest insects and spiders. That means making a ratio of two negative binomial distributions, (which I would then use as the response variable in a GLM analysis with AICc model selection). Since these distr... |
I am struggling to grasp a sample size for the correlational study I am planning. I am looking at essentially two measures of the same thing - one measured and one self ranked and I want to see if there is a relationship between the two. The participants will have their nutritional intake measured and then calculated a... |
I would like to classify my text sample that consist of 6 mio sentences into 30 classes that correspond to the different topics. Several topics can be assigned to each sentences, so I am doing the multi-label classification task. My training sample consists of 1000-3000 sentences for each categories, together 40000 sen... |
I have data on movement behaviours (time spent sleeping, sedentary, and doing physical activity) that sums to approximately 24 (as in hours per day). I want to create a variable that captures the relative time spent in each of these behaviours - I've been told that an isometric log-ratio transformation would accomplish... |
I am trying to understand batch size and epochs, and I found this very helpful. Each epoch is all of the data, lets say 10,000 rows, and the number of batches is the number of groups the epoch is split into. Then, a minimizer function is applied between each batch (lets say each batch is 100 rows) and the batch's y-val... |
Question
What should my (multinomial logistic regression) model look like for analysis of the data described, and how can I interpret it and report it in an acceptable way for journals that typically expect a P value.
Background
I'm a grad student. I have taken the only stats course available in my department, so I am ... |
I'm trying to get a better idea of the intuition behind finding pivotal quantities. In the Casella & Berger statistical inference text, we have a $beta(\theta,1)$ pdf, $f_X(x)=\theta x^{\theta-1}$, $0 < x < 1$. The text says that $X^\theta$ is a good guess for a pivot, and then proceeds to verify that it is a pivotal... |
In geostatistics, the concept of a random field is used in e.g. Kriging. Hence, at each point in your study area, there is a probability distribution. Should this probability be given a frequentistic or a Bayesian interpretation (or maybe both are possible)? I think the frequentistic interpretation of probability is di... |
I'm having reads from metagenomic data from soil samples. I have 2 soil types, with 5 samples for each type. I have reads that I found out that are fungal, I have reads that are not fungal (but I haven't looked into what they are and it would be a hassle to do this) and I have reads that are unknown (no hits from the d... |
Suppose I have a design matrix $\mathbf{X}$ with targets $\mathbf{y}_1$, when plotted looks like so:
the data is very sparse, and the magnitude of the targets is shown by color bar, where each training point in the design matrix is 2D.
Now in my problem setup I in fact have five sets of target variables $\{\mathbf{y}_... |
Let’s suppose I got the following answers for the question "list the social networks, in order of importance, you generally use":
Most Used Second Most Used Third Most Used
Person 1 Facebook Instagram Linkedin
Person 2 Facebook Instagram Linkedin
Person 3 Tumbrl Fac... |
Bioinformatician here. I'm wondering what the main differences between both of these approaches is. I just want to clarify that a formal mathematical treatment would likely be too much for me.
From what I can tell, a GLM does not assume a normal distribution of response variables. Am I to infer that an LM does? What o... |
Systematic reviews and meta-analyses have been used extensively in many fields and for many years. For instance, there are exceedingly numerous examples of systematic reviews and meta-analyses in medicine, psychology, physics, economics, and politics.
I am wondering in which other fields of research there have been fo... |
More specifically, I have two predictor (age with three levels and sex with two levels) treated as factors and one response (salary). I want to test if age, sex and their interaction are significant related to salary. After conducting type III two-way anova (unbalanced observations),
age <-as.factor(c(2,3,2,4,2,3,4,3,... |
From Applied Linear Regression (Weisberg S., 2014):
The errors $e$ are unobservable random variables, with $\text{E}(e|X) = 0$ and $\text{Var}(e|X) = σ^2 I$. The residuals $\hat e$ are computed quantities that can be graphed or otherwise studied.
What does "unobservable random variable" mean in the above quote? Is it... |
I came across this interesting article where the author used FFT to discover some patterns in a time series. I am new to this kind of analysis and have maybe some basic questions about it.
How do you compute the Frequency when getting the FFT? I used the fft function in MATLAB with some data I have and then plot the ab... |
I was messing around with R when I came on a result I don't understand. I basically created an independent variable that was caused by the dependent variable instead of the other way around. What surprised me was that when I included it in my regression it affected all the other coefficients. Omitted variable or collid... |
I have a data set with n=199 and p=130. I need to reduce the number of predictors for a regression. I did a Lasso regression but the numer of optimal variables changes dramatically (range from 6 to 41 predictors recommended by Lasso) when I change the seed number input. How could I determine the optimal set of variable... |
We have the Agresti-Coull confidence interval
$\tilde{p} \pm z_{\alpha/2}\sqrt{\frac{\tilde{p}(1-\tilde{p})}{\tilde{n}}}$
Where $\tilde{p}=\frac{y+z_{\alpha/2}^2/2}{n+z_{\alpha/2}^2}$ and $\tilde{n}=n+z^2_{\alpha/2}$.
There are statements that say we can show the variance of the above is at least as large as the weigh... |
I'm working on developing an algorithm that uses latent spaces, and the ability to quickly find a point's nearest neighbors in latent space would help dramatically. The following is important for any algorithm I use:
Fast (sublinear) retrieval of approximate nearest neighbors (I'm ok with somewhat low accuracy)
Fast (... |
I was recently in an introductory seminar about Genome Wide Association Studies (GWAS). These studies aim to examine if any genetic markers are associate with a certain trait. It is not uncommon to have millions of separate tests.
It is common practice for GWAS to conduct replications before publication.
However, due ... |
Suppose at step $t$ the particle approximation of SMC in $d$ dimensions is given by $\sum_{k=1}^N w_k\delta(\vec{x}-\vec{x}_k)$, and at the subsequent step, $t+1$ (after using Bayes' law to update with a new data point), the particle approximation is given by $\sum_{k=1}^N w_k'\delta(\vec{x}-\vec{x}_k)$.
Suppose also, ... |
I am trying to follow this tutorial. Everything works when I copy and paste the data, but when I try to replace the dataset with a random numpy matrix, my accuracy goes to zero. It shouldn't go to zero because the Y matrix is a column in the X matrix, so in theory the training process should figure that out and the acc... |
The number of items produced in a factory is bell shaped and symmetrical with mean being 50. If variance = 25, what can be said about the proportion of week's production will be between 40 and 60?
This question has me stumped in terms of what it's asking and how to proceed. Any help would be greatly appreciated.
|
I am having trouble getting appropriate random effects output when using the glmer command in lme4.
My dataset is a long-form repeated measures observation for 45 subjects. I have some between-subjects factors that I am using to model whether the participants are correct or incorrect on a given trial. I want to includ... |
Suppose I have a dataset with 1,000 people and they rating 5 shampoos across a number of attributes (cost, smell, texture, how well it cleans).
If I wanted to compare the average of an attribute across brands, would I use an independent t-test? I know that multiple comparisons invite things like a Bonferroni correction... |
I want to write the expression for covariance matrix of following linear model
$$x= As+ v$$
Where $A\in R^{N\times p}, s\in R^{p\times 1}$, $v$ consists of MVN noise only with mean $Bz$ and covariance $R=\sigma^2I$, $v\sim \mathcal{N}[Bz, \sigma^2I ]$: $B\in R^{N\times t}, \phi\in R^{t\times 1}, t<N-p$. Now the matr... |
In doing K-fold cross validation, we will get K validation performances for each hyper parameter. What if the two sample mean test shows that the validation performances of different hyper parameters are NOT significantly different? How to decide the optimal hyper parameter then?
|
My research work is based on a questionnaire which includes all types of questions, ordinal as well as nominal, but 80% of the questions are based on Likert scale 1-5. My question is whether Cronbach's alpha can be calculated for all types of questions even if they are not on scale format? Secondly whether Cronbach's ... |
First, a quick definition of the multinomial distribution: Suppose that we were to roll a die with $k$ sides, and the probability that side $i$ comes up on top is $p_i$. If we run $n$ independent trials of rolling the die, and count the number of times $n_i$ that side $i$ comes up on top, then the random vector $(n_1, ... |
After reading this, I am still not sure how to intuitively understand why eigenvectors of a covariance matrix represents direction of the LARGEST variance.
Need more explanation on:
Then $w^{T}Cw$ simplifies to $\sum\lambda_i w_i^{2}$ , in other words the variance is given by the weighted sum of the eigenvalues. It i... |
I often heard people saying that "it is important to feed in a neural network normalized data in order for it to accurately approximate a function". So I did an experiment to see how unnormalized data affects training (I will attach the code at the very end) In my experiment, I wanted to train a neural network to appro... |
I'm performing classification via cosine similarity to vector means. Normally, we reduce dimensionality of a problem in order to reduce confusion to the classifier. Mathematically, will dimensionality reduction reduce confusion to the classifier when using a distance-based approach? It doesn't seem like it would hel... |
I wanted to check if I am understanding the concept of the support vectors correctly. Let's say I am not using any kind of kernel, and it is a hard-margin SVM.
In this case, whatever the number of the dimensions is for our features, the minimum possible number of support vectors equals to 2 (1 for +, 1 for -). Am I cor... |
Suppose today I have a $2 \times 2$ table I would like to analyze through logistic regression. The table tells us how many people responded to treatment vs control for headaches.
Headache No Headache
Treatment 2 10
Control 0 8
I did this in R and found the fo... |
Given a linear regression model with k deterministic regressors,
$ y = X\beta + \epsilon, \epsilon \sim (0, \sigma^2 I_n) $
the OLS estimator of $ \beta$ is consistent if and only if
(i) $ (X'X)^{-1} \xrightarrow{} \infty $ as $ n \xrightarrow{} \infty $.
What I want to know is the proof that condition (i) is equ... |
I have recently been looking into why Least Absolute Deviation (LAD) is not used in place of OLS for machine learning, and it appears the primary reason is due to difficulty in computing a solution for the linear programming type problem that LAD presents - namely the Klee-Minty Cube. However, Lasso is also a linear pr... |
I am new to data analysis and now working on a Mixed Effects Logistic Regression Model.Currently I have a data frame (model_data) that looks like the following:
Vehicle_id entry_time exit_time last_veh_time vehicle_type
__________ ___________ __________ ____________ ___________... |
I am an agronomist trying to estimate the average weight of fruit in a orchard. My first option is to grab 1000 fruit and get their weight mean. But as you can see, if i can get this with less fruits, I will save time (and fruits).
Is there any way to get a stopping rule based on the prior update (every time that I rec... |
Is there any way to display the output of forecast to a ggplot based table? The table should contain the input values as well as the forecasted values
library(vars)
library(fpp)
VARselect(usconsumption, lag.max = 3, type="const")$selection
var <- VAR(usconsumption, p=1,type = "both",lag.max = 3)
serial.test(var, lags.p... |
In his book Doing Bayesian Data Analysis, John Kruschke states that in using JAGS from R
...the estimate of the mode from an MCMC sample can be rather unstable because the estimate is based on a smoothing algorithm that can be sensitive to random bumps and ripples in the MCMC sample.
(Doing Bayesian Data Analysis, p... |
I am learning the error bars to use them in my research. I am confused about the difference between the standard error and confidence interval. Which one is better to show the statistical significance?
|
I have a large set of data corresponding to parameters used or (not used) to determine the value of many indicators.These indicators are also used to to determine a value type.
For example:
parameter/indicator
| Comfort | VacancyRate | AirQuality | FireSecurity
city | x ... |
Question: Does anyone have a recommendation for a reference which is "the most accessible" introduction to directional statistics?
When I say "accessible", I mean that many authors are so experienced and knowledgeable in their field that they often take for granted things which are confusing for newcomers. Thus, if t... |
I am reading a paper "A Compendium of Conjugate Priors" by Daniel Fink (Published May 1997).
It has a mathematical step shown as
$$\sum_{i=1}^{n}(x_i-\mu)^2=n(\mu-\overline x)+\sum_{i=1}^n(x_i-\overline x)^2$$
Here the $\mu$ is unknown parameter and $\overline x$ is the known mean of $\mathbf x=(x_1, x_2, x_3, \dots,x_... |
I have constructed an ordinal logistic regression model in R using lrm or polr function.
I have checked the prediction power by checking the Pseudo R square as one of the indexes to check the model.
I'm still a bit confused in terms of which function and which direction I should look into to make sure my model follow t... |
In Recurrent Neural Networks with connections from output units to the hidden units, we can use teacher forcing to make the training process faster by parallelization of learning in different time steps. In teacher forcing, we use the ground truth output in the current time step(available in the training data) to compu... |
I am estimating an instrumental variable regression (IV) where Y is my dependent, X my variable of interest, and Z the dicotomous instument.
I am interestend in verifying if the coefficient estimate of X is actually a Local Average Treatment Effect (LATE) or a Average Treatment Effect (ATE).
In order for the IV to prod... |
I need to build a logistic regression model. there are around 50 categorical variables. So, is this approach to select variables wrong?: do a chi square test of dependent variable vs independent variables, and only use those variables which show a dependency (p value lesser than .05).
similarly using t test to see if ... |
In section 10.2.1 of deep learning book (available at deeplearningbook.org), the authors mentioned that when we have both hidden-to-hidden and output-to-hidden feedbacks in recurrent neural networks, we can use both back propagation through time (BPTT) and teacher forcing learning methods. I think the main advantage of... |
Suppose I want to create logistic regression model which can estimate a probability of occurrence of some animal species living on trees based on characteristics of trees (f.e. height). As always, my time and money are limited, therefore I am able to collect only a limited sample size.
I have following questions:
Shoul... |
We use Deming Regression for method validation in our clinical ELISA laboratory. As we run clinical trials this needs to be performed if we get a new reagent batch, batch of plates, new plate reader or a new operator etc.
An important part of Deming Regression is calculating the error ratio which is the ratio of the st... |
I've been looking at the Squared Prediction Error for PCA. It is defined as follows:
$$Q = rr^\text{T}$$
Where
$$r = x(I- PP^\text{T})$$
Now it is claimed that
$$Q = x(I- PP^\text{T})x^\text{T}$$
But I cannot see how? My reasoning is as follows:
$$Q = rr^\text{T} \\
= x(I- PP^\text{T}) (x(I- PP^\text{T}))^\text{T} \\... |
I often see statistical abominations in a business context (be it in advertisement, in the way market research is conducted, etc.). I am wondering whether or not the misuse of statistics is a general practice.
Is there any evidence (research papers for instance) highlighting the misuse (or good use) of statistics in bu... |
I have the following problem:
Suppose I have a Gaussian probability distribution with mean $\mu$ and variance $\sigma^2$. I want to compare the flucuations of the corresponding random variable with the fluctuations of another probability distribution that has, e.g., two separate peaks but the same mean and same varian... |
I am working with a problem where I receive a free-text field where a user describes the attributes of the car it is selling. I want to make this into structured pre-defined attributes.
An example is that in the field for tires the customer could write:
studded tyres
spike tires
spiked tires
These should result in... |
I would like to know, Is it possible to do dimensionality reduction/ feature selection using Fuzzy logic ? If so, how does it work ?.
Advance thanks for the help.
|
The blood type distribution in the US is as follows (according to this link):
O 45%
A 40%
B 11%
AB 4%
However the blood type is a result of the 2 alleles (in lower case) that a person gets from her parents.
aa -> A
oa -> A
ao -> A
oo -> O
ob -> B
bo -> B
bb -> B
ba -> AB
ab -> AB
How can I extract the distribution of... |
I am trying to develop a benchmark method for energy efficiency analysis.
The idea is to predict energy consumption and use the difference between predicted and real energy consumption as a measures of inefficiency.
I developed two model that predict energy consumption using the same explanatory variables and I have to... |
It's common to see statements that data must be i.i.d. But if data in a time series are independent, aren't they just noise? At one point I thought, they're only referring to the errors, i.e. the errors must be independent. Why should the deterministic part be serially independent? I can see the necessity for informati... |
I am working on an application where I use Recursive Bayesian updating to incorporate new information into an estimate of a parameter that follows a normal distribution. I assume a conjugate prior. This process is mathematically equivalent to the Kalman filter. The Kalman filter provides a posterior mean and a posterio... |
As a final assignment on Data Mining course I'm taking, we are given a training set and a test set.
We are requested to generate two different models of label prediction and run them on the test set.
I'm looking for some advice on what's the best way to approach the problem, in terms of getting a good model(s) fit.
Mod... |
In a single stream of observations, I have some prior knowledge about the level of noiseness of the data that get feed into my Kalman filter. Some points are more noisy than the others.
To make use of this knowledge, I have two thoughts
(1) partition the data into two streams: low confidence and high confidence
(2) sca... |
I am confused with the difference between z-test and chi square test.
In book Agresti 2007 An introduction to categorical data analysis, page 9, the author had an example of testing
Do a majority or minority of adults in US believe that a pregnant woman should be able to obtain an abortion.
The data is 400 "yes" and... |
I am running the example found here.
The training data for the model can be found in this CSV, where the first column is the response variable and the second column is a space separated list of predictors.
After running the example with the modified parameters of numIterations = 1000 and stepSize = 1, the result it giv... |
$X,Y,Z$ are IID ${\rm Poisson}(\lambda)$. Find the correlation between $X$ and $X+Y+Z$.
So far I've tried making a scatterplot, but it did not help.
I also tried looking at this figure from Wikipedia
(image released to public domain)
and got even more confused. Should I be using this formula from Wikipedia
\begin{a... |
Suppose $\alpha=U\beta$ where $U$ is $N\times K$ with $N > K$. What is the probability density function (PDF) of $\beta$, $p(\beta)$, given that we know that it is proportional to $q$, the PDF of $\alpha$ ? In other words, if
$$ p(\beta) = A q(U\beta) \quad \int_{\mathbb{R}^K} p(\beta)d\beta =\int_{\mathbb{R}^N} q(\alp... |
I'm working with a data set in Stata that spans over 3 years. I paneled the data using xtset and I was wondering if I needed to do anything else before running a xtgee?
I just want to make sure that the results I got for the xtgee I ran are valid in order to compare the results of my robust random and fixed effects reg... |
I am learning probability on my own (I am not taking any class). I came across this question while learning the the binomial probability distribution formula.
How do I use the binomial distribution formula to solve the following question?
What is the probability of getting six heads when flipping 10 coins 10 times.
Doe... |
In the section Details of the documentation of the garchFit function we find the following statemement:
"QMLE stands for Quasi-Maximum Likelihood Estimation, which assumes normal distribution and uses robust standard errors for inference."
But in financial returns modeling we all know that the innovations present fat... |
I read through this question to help me with a similar model that I'm working on. Only the coefficient for readcat.L is deemed significant (per p-values):
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 52.7870 0.6339 83.268 <2e-16 ***
readcat.L 14.2587 1.4841 9.607 <2e... |
I have a dataset with 50 items divided in two groups: placebo (P) and diet (D). Each group has 25 items.
Items were weighted once at two different times: at t0 (before treatment) and t1 (after treatment).
I would like to test if the diet resulted in higher weight loss for items in group D compared to those in group P.
... |
I'm seeing this image passed around a lot.
I have a gut-feeling that the information provided this way is somehow incomplete or even erroneous, but I'm not well versed enough in statistics to respond. It makes me think of this xkcd comic, that even with solid historical data, certain situations can change how things ca... |
I am in the final year of my undergraduate program and I am doing my capstone project related to k-means clustering. I am trying to get good results on my dataset by optimizing the k-means algorithm using the Newton-Rapshon method in R. The Newton-Raphson algorithm is a root solving function which takes an equation as ... |
I am reading a paper that has collected crop yield data across multiple locations for multiple years. The paper uses yield as response and climate variables as predictors. Here is the equation:
where,
Yit = Yield for location i and year t
ci = location-specific intercept that controls for all location-specific time-in... |
I have dataset of numbers given as
$Y = x $ if $ x >= 5 $ and $x<=9$
and $x$~$N(\mu,\sigma^{2})$. Or we can say that we have the data-set as subset of normally distributed data-set.
Now for the given data(histogram given below), how do i estimate those unknown parameters $\mu$ and $\sigma^{2}$ using MLE in R?
|
I think my question is somewhat related to this one: What happens if the explanatory and response variables are sorted independently before regression?
But my interest is slightly different. Suppose that I have an original dataset $\{(X_i,Y_i)\}_{i=1}^n$, run OLS of $Y$ on $X$, and calculate MSE and $R^2$.
Now I perm... |
I have tried now several packages in R for Cox proportional hazard regression and I am having a hard time to find a function where I can fit a model using cross validation/bootstrapping and obtain an estimate of the C-index based on the untrained items with a confidence interval.
The PEC package comes close, however it... |
I am reading in different papers that it is impossible to optimize AUC in term of gradient descent, due to its non differentiability. I can't find any reference about this issue with a better explication and I can't understand why we can't compute AUC through mini batches. Who can explain me a little bit more?
|
PCA gives me loadings with different signs. I understand that I may simply revert them (as explained in this thread), but I need an explanation (my boss insists) of why Matlab implementation gives me these signs, but not reverted.
UPDATE
I found empirically, that in Matlab the loading with highest absolute value is alw... |
I am trying to understand a relationship between some x-cols and a y-col. There are about 25 features, some of which are categorical type. After a one-hot transformation on the categorical x-cols, the 25 features become about 220 features, so the input into the neural-network is a matrix of about 40,000 rows and about ... |
When discussing task achievement rates, is there a way to show that 0 out of 20 attempts is "worse" than 0 out of 10 attempts?
|
I have a distribution that assigns 3 numbers to each data point instead of one scalar number. These numbers can be e.g. the weight of a person measured at 3 specific ages.
(The distribution can of course be though of as 3 different distributions.)
How can I use tests such as the t-test or one way ANOVA with such a di... |
I am trying to calculate the expected value of
$Y = \frac{\sum_{i=1}^n min(x, X_i)}{\sum_{i=1}^n X_i}$, where $X_i$ are independent random variables of exponential distribution of ratio $\lambda$.
I can easily calculate $E[\sum_{i=1}^n min(x, X_i)] = \frac{n}{\lambda} (1 - e^{-\lambda x})$, and obviously $E[\sum_{i=1}^... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.