instruction stringlengths 9 38.7k |
|---|
Some statistical formulas for calculating the 95% confidence intervals for estimators such as Relative Risk (RR) and Hazard Ratio (HR):
95% CI for the log RR = logRR ± 1.96 × SE
95% CI for the log HR = logHR ± 1.96 × SE
They tell me one fact that log(RR) or log(HR) follows normal distribution, but how and why?
I reca... |
Problem: I am currently doing my Msc-thesis on rodent population dynamics. One of my aims is look at symmetry in oscillation topography. For this I want to calculate the growth rates up and down from peaks in a 100 year time series.
Attempt: My initial thought was to identify local maxima and then use the points befor... |
I'm running an ANCOVA in SPSS to determine the difference in a continuous DV between 3 groups (from one categorical IV).
The data also contains a continuous covariate (levels from 1-10), and the cases are weighted so that there is an equal number of cases based on the group type and the covariate (i.e. 5 cases from gr... |
I'm fitting the t-distribution to financial data and I know of two methods to do this using R:
(A) fitdistr(mydata, "t")
Output:
m s df
2.608111e-05 8.305111e-03 4.425103e+00
(6.110566e-04) (6.754816e-04) (1.375033e+00)
I believe this is using the MLE method.
(B) stdFit(M... |
Questions:
1. Is there a simple, interpretable way to
determine the distance/closeness of a matrix to being not
positive (semi-)definite?
2. Alternatively: how can I systematically create matrices that are just barely positive (semi-)definite?
Background: I've been studying the performance of different estimato... |
Assume we are are serviced by core $I$, where $I=i$ and $i=[0, n]$, with probability $p_i$. Also assume that the time needed by each $i$ in order to complete a job is an exponential random variable with parameter $\alpha_i$.
If $T$ is the time that a job will take in order to be completed, then what would $\mathbb{E}[T... |
I'm wondering if the standard deviation was always built on the assumption of a normal distribution. In other words, if the sample is not normally distributed, then should using the standard deviation be considered as a mistake?
|
Say I have an array of data of 10 time series $x_{i,t}$ at 1000 points in time. I wish to test the hypothesis that the first eight series are in some way a positive leading series of the other two.
So in other words (I think), the CCF between series $x_{1,t}$ or $x_{2,t}$ or $(x_{1,t}, x_{2,t})$ and $x_{j,t-k_j}$ for ... |
Suppose that we have a wide sense stationary process $X_t$.
Without loss of generalization assuming that mean is 0, lag one covariance is $\mathbb{E}[X_t X_{t-1}]$.
In order to estimate the covariance, I use the sample version:
$$\frac{1}{N}\sum_1^N X_t X_{t-1}$$
What's bothering me here is the consecutive products i.e... |
I am trying to compare two related measurements in two different groups to see if it is increased in one group vs the other, as follows:
Measurement 1 in males with a characteristic vs measurement 1 in males without a characteristic
Measurement 2 in males with a characteristic vs measurement 2 in males without a chara... |
I'm doing some studies on variables (included their lags) that could influence the response variable (y1).
The model that best fits the data is a VAR model (Vector Autoregressive Model) including three delays.
Header data:
date y1 x1 x2 x3
2015-01-01 27.21140 25.09518 22.89878 23.91072
2015-02-... |
What do we mean in statistics when we say 'variable A influences variable B?'
And how do we test detect this influence?
Im not sure of the right tag for this question. What topic in statistics is this point tackled?
|
I have $Y$ as a response in a multiple regression. I plot qqplot with K after using lm in R.
Is the resulting plot only dependent on $Y$ or do the covariates matter?
In other words, is qqnorm(Y) the same as qqnorm(lm)?
If not, what are the differences?
|
I have a fairly good understanding of the theory behind Bayesian modeling and I have started to attempt some practical modeling using jags in R. I have been following examples online to get used to the syntax. However in the below example I simply increase the number of observations and it has an unexpected effect, ind... |
I want to do meta analysis of proportion (Outcome).
My study has different type of treatments, for example, single arm studies with one or more than one drug combination treatment.
Do I need to do correlation among arms before doing a meta analysis?
Do I need to do a meta regression considering all arms as individua... |
So I have got a data set with 3 variables. Using the function C.n(u,pobs(data)), where u is a matrix containing uniform distributed random variables of dimension 3 and the same length as the data set.
However, C.n returns a list of numbers in [0,1] of only one dimension. How can I use this list to generate new data, in... |
One solution for calculating the overlap coefficient for two density plots was given by @mmk here: How to calculate overlap between empirical probability densities?
Question: However, does anyone know how one would calculate confidence intervals in R for the overlap coefficient, or a measure of error?
I have tried the ... |
In a standard linear model, $Y = \beta_0 + \beta_1 X_1 + \beta_2 X_2$, a unit increase in $X_1$ leads to a $\beta_1$ increase in $Y$ (likewise for $X_2$).
In a log-level model, $\ln(Y) = \beta_0 + \beta_1 X_1 + \beta_2 X_2$, a unit increase in $X_1$ leads to an $\exp(\beta_1) \times 100\%$ increase in $Y$ (likewise for... |
I have a scenario like the following:
$C$ is a random variable that follows $\operatorname{Uniform}(0, 3.5)$.
$T$ is a random variable with $\operatorname{Exponential}(\operatorname{mean}=3)$ for group 1 and $\operatorname{Exponential}(\operatorname{mean}=1.5)$ for group 2.
$X$ is a random variable with $\operatorname... |
I would like to jointly estimate 4 variables. Two of them are categorical and the two others are binary. So I thought about a "multivariate multinomial probit model", but did not find much.
What would be the best solution in my case?
Is there a built-in function or package I can use?
I am working with a Stata, but c... |
Statistical references often present the Kullback-Leibler and $f$-divergences as being information-theoric in nature. Some examples:
The paper On Information and Sufficiency, by Kullback and Leibler (1951), that introduced the KL divergence in mathematical statistics.
The paper Importance Sampling and Necessary Sample... |
Concretely, if we're interested in predicting house price (dollars) from house size (square meters), we can calculate the best fitting line and use that for predicting new values.
But why not simply calculate the average price per square meter and use that for our predictions? We can use that to plot a line as well, ca... |
To construct the half-normal probability plot, plot the absolute values in a certain statistical diagnostic (residual, leverage, Cook distance and others) versus $z_i$ where:
$\displaystyle z_{i} = \Phi^{-1} \left(\frac{k + n - \frac{1}{8}}{2n +\frac{1}{2}}\right)$
$\therefore$ Applied Linear Statistical Models, (Kut... |
I have a vector that I'm trying to fit to a distribution using the fitdistrplus package in R. I think that I am getting close, but based on my results I feel like I can get closer. Here are the values I am trying to fit and the code I have produced so far.
library(fitdistrplus)
samplevec <- c(435, 278, 4579, 4102, 149... |
I am wondering what kind of regression would be well suited to analyze whether the independent variable does only impact the dependent variable if it is above a certain threshold.
Even though this might not be true in reality, let us say that below a certain traffic density there will be no car crashes. Once a certain... |
I am working on ridge regression at this moment:
$$\sum{(y_{i}-\beta\cdot X_{i})}^{2} + \lambda \cdot\beta^{2}$$
with an additional constraint:
for some $\beta_{m} > 0 $ and some $\beta_{n}<0$, while $n+m$ is the total number of predictors.
Basically, there is a positivity constraint here.
The positivity constraint m... |
I have a problem estimating the parameters via least squares. The problem is as follows:
Suppose we want to adjust the following curve $y_i=\beta_0 x_i + \beta_1 x_i^2 +\varepsilon_i$. Compute the parameters' estimator via least squares, and give the expression of the parameters' variance.
I have trouble in computing... |
I am trying to model some historical variables which are discontinuous. I am working with monthly observations so I have 12 observations per year.
However, there are cases in which, for example, I have data for January-2000, February-2000, and then the data jumps to May-2000, and so on.
I am using R to perform the tim... |
I have a following generalised linear model with logarithm link function in R
Call:
glm(formula = time ~ I(1/nprocs) + nDOF + I(nDOF^2) + ndoms +
nDOF:ndoms + I(nDOF^2):ndoms + I(nDOF^3):ndoms, family = gaussian(link = "log"),
data = dataFact)
Deviance Residuals:
Min 1Q Median 3Q ... |
Why fitting a correlated shared gamma frailty model in R, I obtained the negative estimate for the variance of parameters of interest. I used optim, mle and mle2 with L-BFGS-B and Nelder-Mead optimization methods (just to see if there are different outputs) with different starting values. However, all of them gave me s... |
In R I get a multiple regression output like the following:
I need to know what the column headings translate into. Such as which column would give me b in an equation, which would give me a, what would be x and y values. More importantly, I need to know if I have all the numbers I need to interpret the equation y = ... |
My confusion matrix is as shown below
CF_Matrix <- structure(c(150L, 17L, 3L, 5L), .Dim = c(2L, 2L), .Dimnames = structure(list(
pred = c("0", "1"), truth = c("0", "1")), .Names = c("pred",
"truth")), class = c("xtabs", "table"), call = xtabs(formula = ~pred +
truth, data = testData_pred))
truth
pred... |
I'm looking to better understand how Bayesian posterior distributions can be derived from different types of data. There are plenty of examples out there showing how a posterior can be derived from a beta prior and Bernoulli trials as data/likelihood. What I want to understand is how this method can be extended to ot... |
I am trying to calculate inter-rater reliability for two raters using a dichotomous scale.
In one part of the study, raters have to decide from a list which word candidates of a child's utterances are real words. This works fine with Cohen's Kappa.
However, in a second part of the study, raters are asked to write dow... |
My research question:
I have a data set with good observations and bad observations and have to estimate if all observations are good in the population with 99% confidence.
My suggested method:
My idea was to test whether the proportion of good observations (let it be p) is significantly smaller than 1. That is,
H0: p0... |
I am comparing the performance of two regression algorithms on a same dataset. I want to use t-test to evaluate whether there is a significant difference between the performance of the two algorithm.
Say there are 200 samples in total.
What I am doing right now is using a leave one out cross validation to calculate the... |
Let $x\in\mathbb{R}^n$ be a GMM-distributed vector with $K$ components.
In the setting where we consider diagonal covariances, we have $P1=K\cdot (n+n)+K$, i.e. linear in $n$ and $K$, and $P_2=K(n^2/2+n)+K$, quadratic in $n$ and linear in $K$, in case of full covariance matrices.
Even in a moderate number of parameters... |
Sorry if this is has been answered elsewhere, I haven't been able to find it.
I am wondering why we take the square root, in particular, of variance to create the standard deviation? What is it about taking the square root that produces a useful value?
|
According to my understanding about the difference-in-differences (DID) model with fixed effects, there are two specifications
y=a0 + a1*TREAT + a2*POST + a3*TREAT_POST + e
y=a0 + a1*TREAT_POST + timeFE + individualFE + e
Here, the dependent variable is a count variable and TREAT is an indicator variable that represe... |
I have seen in many different places that a basic assumption is that the training data and test data follow the same distribution. However, there are references that talk about outliers in the training and/or test data.
I have two questions about these assumptions:
If all input data have the same distribution, what do... |
I'm fitting a nonlinear dynamic model to some non-normally distributed data using maximum likelihood estimation. My working approach has been to assume my data is gamma distributed and do gamma regression ala something like this: slides on gamma regression.
I'm exploring the possibility of doing a type of Rayleigh dist... |
I have a dataset of about 30 features, most of which are profile information of insurance customers. There are a couple features that are time-dependent (guess you could call it time series) insurance premiums. These premiums exhibit a trend of going up.
Due to certain constraints, my training dataset spans 3 years fr... |
I have a problem which is as follows:
Given the linear model $y=X\beta+\epsilon$ and $\text{Var}(y)=\Sigma$, show that:
$$\text{Cov}(\hat{\beta}_{LS},\hat{\beta}_{GLS})=\text{Var}(\hat{\beta}_{GLS})$$
and compute also $\text{Cov}(\hat{\beta}_{GLS},\hat{\beta}_{GLS}-\hat{\beta}_{LS})$.
I'm so lost I do not know wh... |
I'm struggling on getting a good explanation for the unexpected signs of Principal Component for months. I tried to replicate a result and I got exactly the opposite signs for all components. While I searched through forums for an answer, I found this website I'm getting "jumpy" loadings in rollapply PCA in R. Can I fi... |
Objective: To find the minimum number of buses required, number of chargers, total cost, and schedule of each bus.
Problem Statement:
Distance between two locations A and B is 14kms and it takes 40mins for one side journey(i.e only A to B). Bus service starts at 6:00 AM till midnight and every 10 mins a bus leaves from... |
The data that I have is conversion X,and t, time for conversion. Which means, t is the time from start up until the event X=1 (a conversion)
I have the following kernel function, which I'm trying to fit.
$$
g(t) = \beta \omega e^{( -\omega t)}
$$
However, how should I fit the two parameters $\beta $ and $\omega$?
Fo... |
Can someone please clarify whether I need to include a quadratic term in interactions instead of just using the linear term?
I have a mixed model with a logarithmized response variable and three predictors. One of the predictors (=time) has a curved relationship with the response. I also have two important interactions... |
Can you use logistic regression if you have more than two options for the dependent variable. Instead of just a yes/no option I could have more than 2 options. I have 20+ predictor variables.
|
really stuck in here. Suppose i want to calculate this probability:
$P(S|B)$ can i use the total probability law to write:
$P(S|B) = P(S\cap H |B) + P(S\cap H^{c}|B)$ ?
and suppose i know for a fact that $S\cap H^{c} = \emptyset$
so i get the expresion: $P(S|B) = P(S\cap H |B)$
and again, can i write $P(S|B) = P(S|B,H)... |
As part of solving a bigger problem (for the multi-variate case), I am focusing first on the bi-variate case:
Given two dependent normal variables $P_1$ and $P_2$, I have two questions:
Does the conditional probability $f_{x|P_2 \leq t}(x)$, with fixed (constant) $t$ follow a uni-variate normal distribution?
If yes, h... |
I am trying to train the gaussian Hidden Markov Model (HMM) for my thesis problem. I am exteding hmm code from the guyz implementaion
Here is the code to reestimate mean and co-variance.
def _reestimateMixtures(self,observations,gamma_mix):
'''
Helper method that performs the Baum-Welch 'M' step
for the mi... |
Here is the formula of standardized regression coefficients. I have two questions:
1)How do we derive this formula?
2)How can we understand intuitively this formula(I cannot understand why do we multiply old coefficient by ratio 'standard deviation of predictor/standard deviation of dependent vatiable'.
|
I am trying to clusters points in a high-dimensional space (5000 features for each data point). Each feature can take 0 or 1 value. Also for each point only a small subset of the features will be 1 (sparse data). I don't know ground (truth) labels for these points. I am trying various clustering algorithms (Agglomerati... |
I am using the xgboost package in python to do predictive modelling problems. I encounter the following two questions:
First, I've specified a set of values for those hyper parameters and run cross validation
params1 = {
'max_depth':5,
'min_child_weight':1,
'learning_rate':0.1,
'gamma': 0,
'subsample':0.8,
'colsample_b... |
When $U$ and $U'$ are two i.i.d. uniformly distributed random variables on $[0, 1]$, show that $$\mbox{Var} \left( (U-U')^2 \right) = 0.04 $$
I tried plugging in the formula $\mbox{Var}(U^2)=E(U^4)-E(U^2)^2$ but unable to get a solution. I guess this formula cannot be used here, but I have no idea why.
|
When people say that outliers ($\neq$ experimental error) shouldn't be removed, but that analysis should be done both with and without them, do they mean that I should use the same model for both cases, and then report on potential differences? Even if the model with outliers is not satisfying the assumptions of e.g. n... |
Question:
Is it incorrect to think there is a "sweet spot" where more samples slightly decreases the likelihood of a "Best pick" in the Secretary Problem?
Details:
The "Secretary Problem" from "optimal stopping" is a classic in decision theory. It also relates to the game "deal or no deal", and selection of candidat... |
I have a 1D data which represents order values. Sometimes a client creates a test order which they don't remove from the system. What would be the best way of detecting and removing values that seem to be abnormal in comparison to the rest of population?
Example (but actual) data:
275.13
397.42
444.86
567.29
698.36
70... |
I am interested in suggestions concerning possible applications/problems within applied statistics with respect to estimates of least-squares for non-stationary designs. In particular, I would like to know if there are current problems in statistics in which it is important to approach the best average response $Y$ fro... |
The following example borrow from forecastxgb author's blog, the tree-based model can't extrapolate in it's nature, but there are definitely some method to combine the benefit of tree model (interaction factors) and linear model's trend extrapolate ability. Could anyone give some ideas?
I have seen some kaggle solutio... |
Suppose that we want to sample from a posterior distribution $p(\theta|y)$ but we do not know how to directly sample. Suppose instead that we have a working set of values $\{\theta^{(1)}, \ldots, \theta^{(S)}\}$ and that we have a new draw $\theta^{*}$ that we want to know if we want to set equal to $\theta^{(S+1)}$, t... |
How to generalize the logit transform to more than one dimensions? That is, how to add noise to an arbitrary element of an $n$-dimensional probability simplex.
(1) In one dimension, we have
$L:[0,1]\rightarrow[0,1]$
defined by
$L(p)=\frac{exp(ln\frac{p}{1-p}+\sigma\varepsilon)}{1+exp(ln\frac{p}{1-p}+\sigma\varepsilon... |
I am analyzing language data (nouns, verbs, etc) of people with and without autism and all of them have different number of words.
Option 1: Would it be best to count each result as a ratio of the number of words:
P1: Nouns= (20 nouns/100 words)
P2: Nouns = (50 nouns/250 words)
P3: Nouns = (10 nouns/105 words)
Option... |
Let $X_1, X_2 \dots X_N$ be the indicators of $n$ Bernoulli trials with probability of success $p$.
What is the method of moments estimate of $p$?
Exhibit method of moments estimates for $p \cdot (1 - p) / n$ using only the first moment and then using only the second moment of the population. How do we show that these ... |
In the second edition of the Robert & Casella book (Monte Carlo Statistical Methods), the authors have a result, Theorem 7.8, on the independent Metropolis-Hastings sampler: Letting $f$ be the density of the target measure an $g$ the density of the proposal, if a minimization condition is satisfied $f(x)\leq M g(x)$ f... |
I have some pre post data for an extremely small sample (n=5). Outcome is continuous and no control. What statistics would be more appropriate to report? Accordingly, is a paired t-test or a wilcoxon signed rank test more appropriate?
I feel 5 data points are insufficient to assess normality. Should i report both?
|
I am performing a meta-regression of nine studies that look at cancer risk vs level of substance in the drinking water. Each study has a reference strata and one to five higher strata. The studies have quite different ranges of exposure. I have run the glst program in STATA which is a random slope model, and I have r... |
I have some pre-post intervention data with a continuous outcome measurement and a very small sample size.
The measurements at pre and post were taken across varying levels of a certain trigger. So at pre intervention, each patient was exposed to greater and greater levels of an energy drink and heart beat was measured... |
I am trying to build a perception in R. I have generated some test data that is clearly linearly separable. I have tried a variety of learning rates, but the classification rate just seems to bounce back and forth between around .2 and .8. I think the problem must be in the updateWeights function, but when I test the f... |
I have a table which has data CO2 emission of the world from 1960 to 2011. After going through some tutorial i performed ARIMA method on my dataset,but the prediction of CO2 emission for the next 10 years remains the same.I have already gone through some post,but I am unable to understand it.Below is the Table.
If ARI... |
What are the equations that describe a multiplicative error multiplicative damped trend multiplicative seasonal $(M, M_d, M)$ model? Where can I find all ets models and their equations?
|
In my data set I have only 6 observations & independent variables are 9.
Can I use Lasso regression or multiple regression in this situation?
when independent variables are > observations?
Data :
y x1 x2 x3 x4 x5 x6 x7 x8 x9
6142.8 90.25 164.19 15 0.91 0.88 2.99 0.5 ... |
I am looking to derive moments for several distributions. For example, I've used moment generating functions for the standard normal distribution to get:
mean =0, variance = 1, skewness = 0, kurtosis = 3
I'm looking for a similar method to do the same for the student-t distribution.
Moment generating functions are too ... |
I'm currently working on an unbalanced panel data which contains 10000 + individuals and at most (at least) ten (five) years observations. A type of treatment happens to some of the individuals but at different time (multiple treatment periods), except the treatment effect, I also want to test if consequence happen bef... |
I try to understand how the multi digit classification in this paper with the Google Street View data works. They try to detect multiple digits within a picture without localization (5 digits and the length of the sequence).
They state that they use 6 classifiers on top of convolution layers:
Each of the variables ab... |
I am tuning the lambda parameter of an elastic net with the glmnet package. For this purpose the package provides a cross validation based on the function cv.glmnet. With the function I am able to print the MSE of each tested lambda. I am also able to select a set of variables according to the tuned lambda parameter. T... |
I have two independent variables X and Y, with known SDs. I want to calculate
SD(kYX^3), where k is a constant.
How?
Best, J
|
The probability to have $k$ white balls in a sample of size $n$ taken from an urn of $N$ balls with $K$ of them being white is equal to:
$$
P(k|n,N,K) = \frac{{{n}\choose{k}}{{N-n}\choose{K-k}}}{{{N}\choose{n}}}
$$
How to infer a probability when $K$ is not determined a priori.
In other words the question would be: Wha... |
.
Prawns are known to lose weight after fished out of water.
I want to check claim of a firm that its product (weight gaining additive) gains weight of prawn by better water retention and absorption.
Following are characteristics of prawns to be used for experiment.
These are culture prawns. All prawns used for exper... |
Context: I am currently doing my undergraduate research and I am stuck on my analysis part. The study is a quantitative experiment, I had 17 participants performing a maitlands mobilization Grade 3 for 3 times at a time. What I was looking for is if all individuals could exert the same force consistently across the 3 t... |
We are analyzing cancer patient mutation data. We defined set of region on the human genome as binding events, (for the ones who is interested in to the subject, it is a transcription factor binding regions obtained by ChIP-seq) and would like to prove that some of the region have significantly higher number of mutatio... |
I've been calculating receiver operating characteristic (ROC) curves on very large datasets for my thesis. I tried to run these in the pROC R package but the compute time was very long with large datasets. I resolved this issue by using the ROCR R package instead. These packages appear to calculate the AUROC differentl... |
I try to tune alpha and lambda.1se (the largest value of lambda such that the error is within 1 standard error of the minimum) for an elastic net. In the glmnet package it is possible to tune lambda.1se, but it is not possible to tune alpha and lambda at the same time.
Such a tuning of both parameters is possible with ... |
Background: We know from this article that ending an A/B test early due to "significant" results is a mistake.
Question: But what about when a test runs for the desired time period and shows insignificant results – is it fine to prolong it? What are the risks?
Note: It would be great with a simple mathematical example ... |
Context: To clarify, I'm looking at stigma in mental health. My hypothesis is that people will admit to more mental health symptoms on an online platform rather than on a telephone interview. Participants complete the online questionnaire and then the telephone interview a few months afterwards. So I've computed a vari... |
If one summarizes a data set with an inter-quartile (iqm) mean, rather than the mean calculated using the complete data set, is a standard deviation (sd) calculated using the complete data set then inconsistent with presenting the iqm?
Put another way, for consistency, should the sd be computed using the exact same dat... |
How do you perform the Kruskal Wallis test with 2 repetitions for the same patients?
I have applied it on the difference of scores but what happened if there are more than two repetitions?
|
I fitted a coxph model and below is the concordance details from my object named cx.
I can see that Concordance is calculated as 4282/(4283+1697) = 0.716 but I'd like to know:
(1) How is se=0.048 calculated?
(2) What does std(c-d) represent and how is it calculated?
> summary(cx)
Concordance= 0.716 (se = 0.048 )
Rsqu... |
Background: I'm studying chapter 6 of Deep Learning by Ian Goodfellow and Yoshua Bengio and Aaron Courville. In section 6.2.2.2 (pages 182 of 183 which can be viewed here) the use of sigmoid to output $P(y=1|x)$ is motivated.
To summarize some of the material they let $$z = w^Th+b$$ be an output neuron before an activa... |
So for a project I am using SPSS and creating a mean test score of three different tests. Since the tests use different scales, before creating the mean, I am saving them as standardised residuals, after controlling for confounders such as 'time taken' to do the test.
Now my confusion is this: Two of the tests have a '... |
In this paper, the authors state (pg. 70):
The corresponding distribution for the local wavelet power spectrum is $$\frac{|W_n(s)|^2}{\sigma^2} \implies \frac{1}{2}P_k\chi_2^2 \tag{18} $$ ...After finding an appropriate background spectrum and choosing a
particular confidence for $\chi^2$ such as 95%, one can then ... |
Background: I am working on a project involving fitting a linear regression from EEG data to image features. The nature of the experiments I run to gather data mean I have to work with very few samples (360) and the raw EEG has 7680 features. I have been using the SKLearn Ridge, and I tried to measure the level of fit ... |
In reliability theory we have $h(x)=\frac{p(x)}{s(x)}$ where $p(x)$ and $s(x)$ are the probability mass function and the survival function, respectively.
Again $$SRF(x)=\log\left(\frac{s(x)}{s(x+1)}\right)$$ gives the same failure rate function.
Why do we use second one if we have already $h(x)=\frac{p(x)}{s(x)}$?
W... |
Following the Rasmussen&Williams Gpml Machine Learning book i'm trying to implement my gaussian process in matlab, avoiding to use other existing toolbox or complex pre-assembled functions, but now i'm stuck with the minimization of the negative log marginal likelihood in order to estimate the hyperparameters of my noi... |
I have a dataset of dutch municipalities (rows) and a lot of variables (cols, variables). Given one municipality or the average of some, with what technique can I find municipalities that resemble this municipality on the variables, and how can I find municipalities that differ as much as possible on these variables.
I... |
I'm trying to understand the last comment under the answer in this question:
Just to present another approach, we can instead choose to define a transformed multivariate normal variable $v:=A′Y$ and it will still follow the same distribution $\mathcal{N}\left(0, \sigma^{2}I\right)$ if we use the affine property. Then ... |
I am trying to understand the stats problem that I encountered. Use reproducible R code below. All libraries enlisted are needed.
What I do is:
- create two tables $101 \times 1000$, where there are $100$ inputs (a vector of delayed timeseries points), and $1$ output (a one step ahead series point).
The tables are ind... |
I would appreciate some methodology and R implementation help for a thing I'm working on.
I have daily observations of $Y$ for several countries over several years, I will use quite a few independent variables $X$.
My hypothesis is that there was a break at a specific time that has affected the determination process o... |
$$C_p = \frac{SS_E(p)}{\hat{\sigma}^2} - 2 + 2p $$
Here is the formula of Mallows's $C_p$ statistic, wher $SSe_p$ is residuals sum of square, $\hat\sigma^2$ is estimated variance of residuals, $n$ - number of observations and $p$ - number of predictors in model.
Questions: How can we intuitively understand and explain ... |
I want to tune lambda of an elastic net. It is possible to optimize lambda based on a cross validation with the glmnet package. However, I recognized that the estimated lambda varies a lot, if I run the cross validation several times. See code below, for a reproducible illustration of this situation:
library("glmnet")
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.