instruction stringlengths 9 38.7k |
|---|
Quick question I guess, but is there a perceivable difference between the terms Statistical Learning and Machine Learning, or is it simply area jargon? I gather the computer scientists like to refer to machine learning while statisticians might refer to statistical learning (no less influenced by the famous book).
Thi... |
I am using the nlme package in R to use mixed effects models to analyze multilevel (i.e., students nested within classrooms) data.
I am confused about interpreting the log likelihood output from these functions, and while there are other questions that address why the log is taken of the likelihood statistic and why i... |
Suppose I have a series of groups - each group a series of 0 or 1 so we can calculate a proportion for each group. Each group has different true proportions. Can anyone provide a formula for how the variance of the estimated proportions partition into the variance of the true proportions and the imprecision of the esti... |
I have a data set with columns a b c (3 attributes). a is numerical and continuous while band c are categorical each with two levels. I am using the K-Nearest Neighbors method to classify aand b on c. So, to be able to measure the distances I transform my data set by removing b and adding b.level1and b.level2. If obser... |
I am doing inference using a Bayesian model that has only one variable, which boils down to computing a (one-dimensional) cumulative distribution and a quantile function given the log of a probability density function.
This is much simpler than the usual multivariate setting, so I would like to have a very fast (order ... |
Let's assume we have a regression model with variable age and two categorical variables: education and gender.
1st categorical variable
woman
man
2nd categorical variable
no qualification
higher intermediate
graduate or more
Income = age + woman + higher-intermediate + graduate-or-more
How to interpret the coeffici... |
Many distributions are known to be log-concave: Poisson, Negative Binomial,...
However, we are often interested the likelihood function (the density as a function of the parameters, not as a function of the data). Hence my question:
Does (or in what cases) log-concavity of the distribution implies log-concavity of the... |
So, I want to use either a Box-Behnken (BB) or a (circumscribed) Central Composite Design (CCD) for my 3-factor Response Surface design of experiments (DoE) and to build a linear regression model. I am well aware of the structural difference between these two, such as:
BB requires 3 different levels for each factor an... |
I had plotted Cross Correlation diagram of my bivariate dataset (bonds and equity) and observed that I have significant lag coefficients. This implies that a lag of bonds may explain better the prediction in the equities. However, when I applied the Granger Causality test I fail to reject the null of no Granger Causali... |
I'm trying to run survival analysis of Cox proportional model with panel data that consists of IDs and time variable. Each individuals are allowed to fail more than once in the sample period. My understanding of hazard rate is probability of the individual failing at time $t$, given that he has not failed before time $... |
I would like to combine regression models where each $Y_i$ is a subset of the total $Y$. The independent variable is the same but not from the same sample. Some illustrating example: say I am interested to estimate the tree density in a city, tree density is negatively related to population density. What I have is:
$Y_... |
I got a MCMC sample $S = \{x_1, \dots, x_n\}$ from the posterior distribution $p$ and I want to estimate $\int f(x)p(dx)$. The obvious choise of estimator is $\frac{1}{n}\sum_{i} f(x_i)$ but every evaluation $f(x_i)$ does heavy computations so I want to extract a subset $S'\subset S$ such that $$\frac{1}{|S'|} \sum_{x\... |
I want to implement the Baum Welch Algorithm for unsupervised training of Hidden Markov Models, I am however still a little unclear on some details, especially this one:
Before learning the optimal probabilities $\lambda$ (initial, transition and emission) the structure of the HMM is fixed. For that it needs to know ho... |
I have collected papers reporting no. of observed species in two types of habitats, A and A’, and been trying some outcome measures for meta-analysis.
I noticed that effect size such as Hedges’ g cannot be calculated for cases where habitat A and A’ both have only one data value (e.g., 23 species in habitat A and 17 sp... |
I have few exposure variables (from a survey N= 1241) two of which are 1) dichotomous response of the question: "Did you have enough water in past 30 days?" and 2) dichotomous response of "Have you spent 2 or more days without water in past 30 days?". I want to run logistic regression to see if they are related with di... |
Let $U,V$ be zero-mean normally distributed with covariances $\sigma_u^2,\sigma_v^2,\sigma_{u,v}$.
Problem: Show that:
$$
E[U|U-V>c]=\frac{\sigma_{u,u-v}}{\sigma_{u-v}}\cdot\frac{f\left(\frac{c}{\sigma_{u-v}}\right)}{1-F\left(\frac{c}{\sigma_{u-v}}\right)}
$$
where $\sigma_{u,u-v}$ is the covariance between $U$ and $U-... |
I have a term-document frequency matrix which is thus high-dimensional and very sparse. Whenever I generate SOMs in the "Kohonen" package in R I get one node dominating the others no matter which topology or learning rate I use. Is there a clear way of dealing with high-dimensional sparse data because this is effecting... |
I am trying to make a classifier that would predict whether an item is a "buy" (positive) or "not a buy" (negative). My dataset is ~65% positive examples, and ~35% negatives. It is more important for my model to keep false positives down (at the cost of reducing true positives). Let's say that the acceptable level of f... |
I have input data that is $N$ items and each has several properties, one of which is called, say, $P$. Their values of $P$ are unevenly spaced between 0 and 1, and may even repeat between items. For example, suppose $N=8$ and the list of values for $P$ looks like this:
$$[0.1, 0.2, 0.2, 0.3, 0.4, 0.5, 0.8, 0.9]$$
(Rec... |
In my experiment, each participant responded to a set of words. These words could belong to one of four groups (defined by two IVs, each with two levels). There are several different continuous DVs.
When I run simple 2x2 ANOVAs for each DV (leave aside the issue that perhaps I should run a MANOVA first), I find main ef... |
I have a vector $y\in\mathbb{R}^n$. I want to find a computationally efficient way to find a split point $k$, such that:
$\sum_1^k |y_i-\theta_1|+\sum_{k+1}^n |y_i-\theta_2|$ is minimised. The $\theta$ values are the median of the set they are in.
I can easily find such a point iterating amongst all possible $k$ values... |
I have been working with a finance team to help forecast revenue for some product data. Particularly when the series are short and difficult to forecast, their first response is to add a bunch of "driver" data (basically external regressors) to the model. I have given presentations a few times on overfitting and why ... |
Problem Template
I am trying to numerically optimize a log likelihood function of the form:
$$\displaystyle \mathcal{L}(\vec{x}) =
-n\log\left(1-\mbox{erf}\left[ A(m-1) \right] \right) +
\sum_{i=1}^n\log\left(\mbox{erf}\left[ A(x_i) \right]- \mbox{erf}\left[ A(x_i-1) \right] \right) $$
where $$A(x) = \frac{\log(x) - ... |
I have a customer satisfaction survey with around 150 responses and six questions, and asking for gender, age, education, and place of residence.
Around 130+ have answered every question in the survey. But for the rest, there is at least one question that each has not answered, and some have multiple questions not ans... |
I've been looking into this for a while now, but I don't think I know enough of the terminology to phrase this well enough for Google (my apologies).
So essentially I'm looking at motion capture data (multidimensional arrays set up as [frame number, point number, x coordinate, y coordinate, z coordinate]). Unfortunatel... |
the objective of my work is to estimate whether policies can increase men's time investment in housework. In order to estimate whether the regulation of normal weekly working hours affects men's time investment in 22 European Member States I have estimated the following model.
Here all individual level variables are co... |
Context
This is a basic question about confidence intervals. So the standard way to estimate a confidence interval.Assuming we have a set of $N$ random variables $\{X^i\}$ such that all of them are i.i.d. We know that the mean of is converges to the central limit of a $N(\mu,\frac{\sigma^2}{N})$, where $\mu$ is the tru... |
I know that the standard error of the sample mean estimates how good my sample mean is, compared to the population mean.
Ok that's nice and good but let's say I have 10 indepentent Samples and in each I have 100 Observations.
With this data I can compute the mean of all my 10 Samples means and this would be a good esti... |
Why doesn't pt(coef(s)[1, 3], 98) * 2 match the intercept p value in the following example?
set.seed(123)
x = rnorm(100)
y = rnorm(100)
l = lm(x~y)
s = summary(l)
pt(coef(s)[2, 3], 98) * 2 #matches y p-value
pt(coef(s)[1, 3], 98) * 2 #does not match intercept p-value
|
I have been reading some work from Judea Pearl which is very excellent. In his papers, he suggests that "non-parametric SEM (structural equation modeling)" is a way of estimating associations from DAGs. His writing suggests, to me, it is agreed upon that such a method exists or may exist, but for the time being, the wa... |
I'm training a randomForest with 202 observations of 1026 variables. I want to test the prediction accuracy of this forest on a different set of 50 observations. But predict() returns a number predictions equal to the size of my training set. Is there something I'm missing here in the below usage? I thought this would ... |
Why do the same instances, in training and testing, get classified as unknown in LibSVM?
I'm using the linear kernel function
nu=0.1, gamma=0.1
Here is the instance that is in both the training and testing set, yet is coming back as a unknown (-1)
'0.00084 ','72 ','1 ','0',LEDs
The first value corresponds to the inter ... |
I am trying to improve my understanding of how gbm works and how the model predicts out of sample.
More specifically, suppose you have a classification problem (two outcomes, 0 and 1). When you run a gbm model on a training set, observations are designated a predicted probability based on their characteristics. These p... |
I have two random variables $X$ and $Y$ which are independent and Uniformly distributed in the interval $\left[-\pi, \pi\right]$.
What will be the pdf of $\cos\left(X\right)\cos\left(Y\right)$?
|
I'm new to statistics and still learning some of the basic concepts. Although I am slowly getting them sorted out, I still often find myself getting confused between Significance Levels, Confidence Intervals and P-Values. Just wondering if anyone can help with a refreshing, clear explanation of how they are each used... |
I was looking at this question to help determine a good range of values to grid search to optimize a support vector machine classifier. In the second answer the poster links to this paper (section 2.3.2) in which they describe that a good default value for the Cost parameter for an SVM is "the inverses of the empiric... |
Let $X_{1},\ldots,X_{n}$ be independent RVs with common CDF $F_X$. Let $X_{(1)}, ... ,X_{(n)}$ be the associated order statistics. How can show that
$$
\sum\limits_{i=1}^{n}Pr(X_{(i)}\leq t)=nF_X(t)
$$
|
Lets say I have some data like this:
library(ggplot2)
library(lme4)
groups <- floor(runif(1000, min=1, max=7))
sex <- rep(c("Male", "Female"), times= 500)
value1 <- runif(1000, min=1, max=10)
value2 <- runif(1000, min=1, max=100)
value3 <- runif(1000, min=1, max=200)
response <- runif(1000, min=1, max=100)
df <- data... |
Background:
I'm new to the Bayesian approach and thus am trying to better understand the multi-level (i.e., hierarchical) nature of the Bayesian approach.
Question:
Suppose I have a parameter called $\delta$. The parameter $\delta$ can be defined as $\delta = \mu / \sigma$.
Why if we place a $\mathcal{N}(0, 1)$ prior ... |
Just wondering -- I just ran a regression where my $R^{2}$ value was 0.046 but I have four independent variables with p-values below 0.05. So, at first glance I thought I had a coherent model when really that was nowhere near the case.
Why exactly does this happen? Is there an intuitive explanation for this apparent p... |
In a discussion, a friend mentioned that the function below cannot be optimized so it can't be used in a learning algorithm.
$$E_{in} = \frac{1}{N} \sum_{n=0}^N (h(x_n) \ne f(x_n))$$
Why can't this function be used as a loss function?
The Context
This is about machine learning and minimizing the error on a dataset $D$... |
I ran a χ2 test of heterogeneity to test whether I can pool data related to the frequency of occurrence of 2 phenotypes of an insect which was sampled during different seasons. In other words, we recorded frequency of occurrence of 2 phenotype of an insect during winter, fall, spring and summer. We believe that in all ... |
I am quite new to statistical tests and not sure how to exactly describe my question. I searched but could not find similar questions. Please do let me know if this is a redundant question.
I recently tried to compare a distribution between male and female. Two-sample KS test seems to be a good fit and the result is so... |
I'm running a causal mediation analysis with the mediation package in R. My summary table looks like this:
Causal Mediation Analysis
Nonparametric Bootstrap Confidence Intervals with the BCa Method
Estimate 95% CI Lower 95% CI Upper p-value
ACME -0.07842 -0.08679 -0.07051 0.00
AD... |
I have performed an independent t-test on SPPS and retrieved these results:
No Levene significance value was given and so how would I know whether my results are significant?
Would I just divide the significance from the 2-tailed t-test by two?
Any help greatly appreciated!
EDIT: In my data set, it looks at the effec... |
My problem is as follows. I have 2D points representing longitude and latitude. I do not have any other information (no time-stamps). The number of points is limited, about some hundreds. The curve is not of the form Latitude = f(Longitude).
The task to achieve is to obtain a smooth version of the curve, i.e. a paramet... |
Conditioning is a tool I have used a lot in the discrete setting: usually this takes the form $$P(X=k) = \sum_{i=0}^\infty P(X=k | Y=i) P(Y=i).$$ I'm a little confused about the analogous situation for continuous random variables.
Suppose we have this little problem, which I am making up for illustration purposes:
Let ... |
According to the book GPML, " ... A Gaussian process is defined as a collection of random variables. Thus, the definition automatically implies a consistency requirement, ...". Can I know why this definition automatically defines the consistency requirement? Which is also the marginalisation property?
|
Given $X_1, X_2,\ldots, X_n$ are i.i.d rvs with pdf $f(x\mid\theta) = \frac{1}{2\theta^2} e^{\frac{-\sqrt{x}}{\theta}} I_{(0,\infty)}(x)$ for $\ \theta > 0$. Find the UMVUE of $\ 6\theta^2$, and compute its variance.
My thought: We see that since $E(\overline{X}) = 6\theta^2$, $\overline{X}$ is an unbiased estimator o... |
Suppose a researcher estimated a parameter in parametric way with correct distributional assumption.
Another researcher estimated the same parameter in non-parametric way.
Will there any difference of accuracy (bias) in estimation in these two situations?
|
The following site (http://www-ist.massey.ac.nz/dstirlin/CAST/CAST/Hcausal/causal_c2.html) defines a causal relationship as one where one variable 'directly' affects the other, but without the other variable having any influence on the first variable. However, the following site (http://medical-dictionary.thefreedictio... |
I have a repeated measures design. Each subject was tested in 2 conditions (RE, re) with different cognitive load levels (low, mid, high). I originally analysed this dataset using a repeated measures ANOVA (mu_N1 ~ lang*load + Error (subj/lang * load)). This is an unbalanced design, i.e. the number of observations per ... |
I want to see the relation between the division of household tasks and family stability in Sweden by Logistic regression method. First, in the analyses, persons with an egalitarian division of HH show a lower odds of intention to break up than persons with the traditional division but by adding the variable of satisfac... |
I want to understand the logic behind keeping ReLU as $max(0,x)$ and not $min(0,x)$?
Why do we prefer positive inputs over the negative ones?
|
Given $X_1,\ldots, X_7$ are i.i.d r.vs which follow $N(\mu, \sigma^2)$. Find the UMVUE of $\frac{\mu}{\sigma^2}$.
My thought: First, we realize that $E(S^2) = \sigma^2$ where $S^2 = \frac{\sum_{i=1}^{7} (X_i - \overline{X})^2}{6}$ is a sample variance. Thus, $E(\frac{1}{S^2}) = \frac{A}{\sigma^2}$ (I could not see how ... |
I have run a logistic regression after variable subsetting using LASSO in glmnet( glmnet.cv,100 fold cross validation for $\lambda\ min estimation) but model summary is as below:
Call:
glm(formula = expression_logit_binom_mdl_1, family = binomial(logit),
data = model_data)
Deviance Residuals:
Min ... |
I understand that the AIC penalizes the number of parameters less strongly than the BIC. Then it's concluded that the BIC tends to choose model with less parameters. Why penalizing strongly will lead to less parameters?
|
I have a really basic question which I need clarifying on and would appreciate a quick response to this if possible.
I am forecasting conditional variance (volatility). I have in-sample from 1996-2007. Out of sample 2007-2016.
Do I report descriptive statistics for the in-sample or full sample?
I have my daily returns ... |
I'm studying random variables and am given a solution that I cannot understand. Why do even functions reduced increasing part of the equation. Here are the equations:
$ f_y \ (y)=\frac{1}{2\sqrt{y}} \ [f_x\ (\sqrt{y}) \ +f_x\ (-\sqrt{y})]u(y)$
and
$ f_x(x)= \frac{1}{\sqrt{2\pi}} \exp\{-x^2/2\} $
book says beacuse $f_x ... |
I understand that the architecture of Convolutional Neural Networks (CNN) and Feed forward (FNN) are quite different. And that CNNs use pooling and filters of shared weights over a patch of the image. I am not so clear on the core convolution operator (1):
If anyone could link me to an explanation, I have looked at th... |
I am new to data analytics. I am trying to cluster 1D data, i read online and it is usually said that you should not use clustering for 1D data, instead you should use algorithm like kernel density. I used example code from scikit-learn:
#Plot a 1D density example
N = 100
np.random.seed(1)
X = np.concatenate((np.random... |
I have generated multiple log likelihood estimates for some parameters $\theta$ based on independent sets of observation. How can I combine these into one average?
|
I have run a Kruskal Wallis Test on my data and it is significant at p=0.00. I have currently reported the output as H (3) = 18.047, p<0.00. However, I now need to see where the difference between my groups lies, so ran pairwise comparisons. Here, looking at the adjusted significance there is a statistically significan... |
I've run a Kruskal Wallis test, and for some of the questions the p value is not significant. Would I report this in the same way as if it was significant, stating the df, test statistic and p-value? So it would be something like this a Kruskal Wallis test was conducted but the results were found not to be significant ... |
I have a set of data described by two qualitative variables. The data can therefore be analysed as a matrix, showing how many occurrences there are at each intersection of the two variables' levels.
I am looking for a measure to express the difference between two such matrices: the first, in which all intersections of ... |
Having run panel unit root tests, we cannot reject the null of individual unit root (Im, Pesaran), suggesting a non-stationary series.
Question 1 At this point, how do we know if we have a stochastic or deterministic trend or both?
Sub-question: Do panel unit root tests on intercepts only (1) and intercepts and trend ... |
I would like to verify my thoughts here concerning matrix notation of generalized linear models (i.e. generalized general linear models). A classical generalized linear model is given by
$$
Y_i = h(\mathbf x_i'\boldsymbol \beta) + \epsilon_i
$$
where $Y_i|\mathbf x_i$ is assumed to follow some distribution from the exp... |
Eventually, I would like to learn the Baum-Welch algorithm. When I talk about mathematical prerequisites, I mean what would be the matter that I should look at and not the courses I have to take. Could anyone have time to tell me what are the mathematical perquisites for such thing?
To describe me, I have 9 years old,... |
Summary: I'm looking for a measure of distance between multinomial samples of four or more categories in order to build a phylogenetic tree. I considered using log(1/CHI2(sample-1, sample-2)), where CHI2 gives the p-value of the chi-square test between two samples of equal size. I'm not sure whether this makes sense th... |
While studying data mining methods I have come to understand that there are two main categories:
-Predictive methods:
classification
Regression
-Descriptive methods:
Clustering
Association rules
Since I want to predict the user availability (output) based on location, activity, battery level(input for the training ... |
Is there any continuous distribution expressible in closed form, whose mean is such that the geometric mean of the samples is an unbiased estimator for that mean?
Update: I just realized that my samples have to be positive (or else the geometric mean may not exist) so maybe continuous isn't the right word. How about a ... |
What do we mean by 'Random' in the science's context. Especially in the statistics and signals processing field. I looked to the dictionary definition of Random and this is what I found:
Made, done, happening, or chosen without method or conscious decision.
Unfamiliar or unspecified. Odd, unusual, or unexpected.
For ... |
If I understand things correctly, in a nested cross validation the inner cross validation is for optimising over the search space of hyperparams, and the outer loop is validating the accuracy the optimal hyperparams determined by the inner loop. i.e.
outer cross validation
hyperparameter search
inner cross validat... |
I'm trying to perform a Hosmer-Lemeshow goodness of fit test on a bunch of logistic regression models but for some reason the p-value that is returned is 1 on all of the models. Does anybody have a clue on why that is happening?
Here's a piece of my R-code:
model1 <- glm(c(variable1,variable2)~x+y+z, family="binomial")... |
How does one decide on number of lags to use in this test? Can one just justify the number based on previous papers?
To clarify, I am forecasting conditional variance, and have generated my log returns. Having estimated an OLS, I now need to to test if there are ARCH effects.
Should I test at lags 1, 5, 10? Or is 1 lag... |
I am doing an analysis using logistic regression and my odds ratio is going pretty high. When I use a combination of the three IVs, with three other control variables, odds ratio for one of the IVs is 62, which I guess is pretty high.
Variables in the Equation
B S.E. Wald df Sig. Exp... |
The wikipeda-page for AIC states:
"it (AIC) deals with the trade-off between the goodness of fit of the model and the complexity of the model". If I understand this correctly, this means that AIC is not a measure of goodness of fit, but merely includes a term (the maximum likelihood) which evaluates goodness of fit.
... |
I understand the idea behind momentum, and how to implement it with batch gradient descent, but I'm not sure how to implement it with mini-batch gradient descent. As I understand it, implementing momentum in batch gradient descent goes like this:
for example in training_set:
calculate gradient for this example
... |
Although I am aware that percentage points should be used to describe arithmetical differences between two percent figures, I could not find a satisfying literature reference. Can anyone recommend an encyclopedia with a definition of percentage points (besides wikipedia, I know the entry)?
|
Trying to test code creating P-value manually against SciPy. The Scipy Documentation isn't the best, which makes it tought to know for sure what to do.
I am getting the correct t-stat and P-value with SciPy, but I'm not able to replicate the correct p-value manually - A friend steered me to scipy.stats.t.ppf - but I'm ... |
I'm exploring the Titanic dataset as my first experience of a Kaggle. Firstly, I want to test that the training and test sets were indeed sampled randomly from the population.
For continuous variables, I considered the two sample Kolmogorov-Smirnov test and the Wilcoxon rank-sum test. Which of these is more appropriate... |
I am very confused about the effect of sample size on statistical and practical significance levels. I have two questions about them:
1. Can somebody explain the p value variation with sample size intuitively and mathematically.
2. Lets say I increase my practical significance from 2% to 3%. How would that effect the ... |
I am currently working on a classification plus regression problem on a dataset with over 500 predictors. Each predictor has on average 15% in-range values (above a defined threshold of signal detection. The rest of the values are simply represented as "out-of-range". This represents a scenario of censored data.
I woul... |
This thing appeared in my lecture on autoregressive models (AR1). It talks about how $$y_t=\alpha + \phi y_{t-1} + \varepsilon_t$$ can be written as: $$\Delta y_t=\alpha + \rho y_{t-1}+\varepsilon_t \ where \ \rho=\phi-1 $$
Now I'm okay with this information but then this statement appears:
Stationarity condition $|\... |
We have panel data and we want to estimate the following linear model:
$Y_{it}=βX_{it}+\alpha_{i}+\epsilon_{it}$
Suppose that, for some reason, we must estimate this model by the maximum likelihood random effects estimator. In addition, suppose that we have autocorrelation in the disturbances.
Do we need to explicitly ... |
The Gist
What are some methods of quantifying "interaction" among features for a model? I will give two short motivating examples to clarify what I mean by "interaction".
Motivating Examples
With a linear model, it is likely that a few features will
dominate some of the other features to some degree. This does not
nec... |
I have some data (14000 examples, with 1000 features, very sparse). My goal is to predict 50 binary values for each example, and there usually are multiple positive values. I want to train a logistic regression and a feedforward neural network, but to do so I need a smooth loss function - meaning a function that has a ... |
We are planning an experiment to study the effects of new drugs on animal models of epilepsy. The experiment will be in run in 2 phases.
The hypothesis in Phase 1 is: "Animals receiving Drug X experience a reduction in seizures." Experimental design: One group of control animals and 5 groups of test animals, each recei... |
I know, that the "ordinary" McFadden's pseudo-R2 can be computed like this:
$$
R^2 = 1 - \frac{\text{Residual deviance}}{\text{Null deviance}},
$$
but today I've read about adjusted McFadden's pseudo-R2 here and I thought if it's possible to compute it like this?
$$
R^2_{\text{adj}} = 1 - \frac{\text{Residual deviance}... |
Pardon me for the newbie question, I'm new in Bayesian network.
I'm reading Chapter 10, Directed Graphical Models (Bayes nets), of Kevin Murphy's textbook: Machine Learning, a Probabilistic Perspective.
Some discussion about using Bayes ball algorithm to test if d-separation holds between two nodes X, Y (or two sets of... |
I was wondering how recommendation on youtube work for example? How are the algorithms applied, because every user gets different recommendations depending on his location, his past liked videos etc... So it would seem like a training model is applied to every single user but I know that can't be possible so how are th... |
I am currently trying to find some sort of relationship between two variables. The most obvious way to check for an association between two variables is by examining the correlation coefficient, which I have done. I have also fit a linear model to my data and have come up with a mean squared error value of approximatel... |
My question is simple, what is the difference between reset test and link test? My understanding of reset test is that it tests the correctness of the functional form by incorporating square, cube etc. of explanatory variables $X$. Link test on the other hand regress the dependent variable $Y$ on predicted variable $\h... |
I have a dataset in which a variety of values are measured at a series of times, and I have some distance function that will calculate dissimilarity between these measured values. For example,
d <- data.frame(t = round(seq(0, pi, length.out = 12), 2))
d$x <- round(sin(d$t), 2)
d$y <- round(d$t * 0.5 + 1, 2)
dissim <- f... |
I'm using statsmodels.nonparametric.KDEMultivariate to generate continuous probability distributions with kernel density estimation. The distribution is created using statsmodels.nonparametric.KDEMultivariate(data=[time, measurement]) to create a distribution, and then if I want to find a discretised most likely measur... |
Does anyone have any good reference for beginners in WinBUGS about modeling?
I already have some familiarity with R, but I had never used R2WinBUGS before. I'm interested in making beta, beta rectangular, and simplex regression models.
Although I have found some ready-made templates codes, it is very difficult without ... |
I'm using Metropolis-Hastings to sample from an Inv-Gamma$(a,b)$ posterior distribution. My jumping distribution $J_t(\theta_*|\theta_{t-1})$ is N$(\theta_{t-1},0.5^2)$. After I sample a $\theta_*$ value from the jumping distribution, I compute the acceptance ratio
$$r = \frac{p(\theta_*|y) J_t(\theta_{t-1}|\theta_*)}... |
I'm dealing with a classical machine learning classification task. I'm using the sklearn library.
My question is about the correct use of the test, development (can be intended as validation?) and train data with some API function of the library in the following example:
# given X_train, X_dev, X_test as data and y_tra... |
I was wondering if a variable can be a combination of two dichotomous variables?
For example, supposed I am looking at a group of patients with a specific mean blood chemical level, let's say cotinine, that also answered yes to having condition A=emphysema and condition B=lung cancer.
Can we look at mean levels of cot... |
Let $X_i$ be an iid random variable having pdf $f(\mathbf{x}|\theta)$, where $E(X_i) = 6\theta^2$, and $\theta > 0$.
I have calculated an estimator for the parameter ($\theta$) of $f(\mathbf{x}|\theta)$ to be $\hat{\theta} = \sqrt{\bar{x}/6}$. To prove that this is an unbiased estimator, I should prove that $E(\hat{\t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.