instruction stringlengths 9 38.7k |
|---|
I have a survey over 14 schools. In each school, 9 to 11 students were interviewed for a comparison of two items A and B, which one they prefer. The outcome Y is a binary variable with 1 if a student prefer item A (compared with B) and 0 otherwise. Four variables have been measured: "School_Status" and "School_size" at... |
As part of my graduate thesis (area: psychology) I have gathered preference data. The data includes approximately 50000 heads-up comparison between elementX and elementX. I have a total of 15 elements. The participant would be shown 36 comparisons in random order, of which he/she would then choose the preferred element... |
Am I missing something? When I use SVMLight, there's always a lot of vectors in the model file.
But when I create one with SVMPerf - there's only one vector in the file? (?)
But still, it works fine. Am I missing something?
Also the number of documents that it supposedly used is way smaller than I provided him with ( ... |
From Robert Kabacoff's Quick-R I have
# Bootstrap 95% CI for regression coefficients
library(boot)
# function to obtain regression weights
bs <- function(formula, data, indices) {
d <- data[indices,] # allows boot to select sample
fit <- lm(formula, data=d)
return(coef(fit))
}
# bootstrapping with 1000 repl... |
If I have a set of $n$ tuples ($b_1,b_2,b_3,b_4,x,y,z$), where $b_1, b_2, b_3$ and $b_4$ are counters ruled by $P_1, P_2, P_3$ and $P_4$ Poisson distributions (error on the counters are $\sqrt{b_1}$, etc.) and $x, y$ and $z$ are ruled by real valued distributions.
From it I select a subset of tuples $m$ according to ... |
I am quite new to statistics, so please forgive me for using probably the wrong vocabulary.
I have some data that looks (to me) like a gaussian when plotted.
The data is an extract from a jpeg image. It's a vertical line taken from the image, and only the Red data is used (from RGB).
Here is the full data (27 data poin... |
Suppose $X_1,X_2,...X_n$ are i. i. d. random variables with p. d. f.
$$f(x)=xe^{-x}I_{(0,\infty)}\!(x)$$
and let $Y_1,...,Y_n$ be the order statistics for these variables.
a) Find the conditional p. d. f. of $Y_1$ given $Y_n=y_n$.
When working with order statistics, one should start with the distribution function:
$$F_... |
I have two time series q and c and I want to calculate dynamic time wrapping (DTW) distance between these two time series:
q<-c(1,3,4,5,6,7)
c<-c(2,3,1,5,3,4)
As I understand we should make a matrix like this:
4 | 9 1 0 1 4 9
3 | 16 0 1 4 9 16
5 | 16 4 1 0 1 4
1 | 0 4 9 16 25 36
3 | 4 0 1 4 9 16
... |
Is it possible for one-way (with $N>2$ groups, or "levels") ANOVA to report a significant difference when none of the $N(N-1)/2$ pairwise t-tests does?
In this answer @whuber wrote:
It is well known that a global ANOVA F test can detect a difference of means even in cases where no individual [unadjusted pairwise] t-... |
I had to translate several given statistics equations into code, and I came across this formula:
Variance of a simple random sample $= \frac{p(1-p)}{n-1}$
The sample in question are test letters sent to measure the efficiency of a postal operator. Each letter has a value of 1 if it's delivered on time and a value of 0 ... |
How can I test whether two parameters of a logistic regression model are both zero at the same time?
|
I have compared two logistic regression models using the function anova(mod1,mod2,test="Chisq") in R. The result that I obtained is the following:
Model 1: Status ~ Added.genes.var
Model 2: Status ~ Added.genes.var + mult_genes
Resid. Df Resid. Dev Df Deviance Pr(>Chi)
1 887 1218.0 ... |
I have a non-linear model that seems to work quite well. Compared to other similar models, using the same data it has significantly more negative AIC and BIC, so I'm quite confident that it is better than the other models. However, I'm inexperienced in nonlinear regression, and I don't really know how to evaluate the m... |
I am calculating 'popularity' scores for content in a web app based on 'views' and 'likes'.
I have not studied statistics but I have found the method I need to use here:
http://www.evanmiller.org/how-not-to-sort-by-average-rating.html
Score = Lower bound of Wilson score confidence interval for a Bernoulli parameter
In ... |
I am looking at some literature on KL divergence minimisation and am having trouble understanding the derivation of the second order moment. So, if we have a distribution from the exponential family, we have:
$$
p_{\theta}(x) = \frac{1}{Z(\theta)}\exp\left(\theta^{T}\phi(x)\right)
$$
where
$$
Z(\theta) = \int\exp\left(... |
Apologies in advance if any of the terminology I use is incorrect. I'd welcome any correction. If what I describe as a "cut-off" goes by a different name, let me know and I can update the question.
The situation I'm interested in is this: you have independent variables $\bf{x}$ and a single dependent variable $y$. I'll... |
The following paragraph was an excerpt from R PerformanceAnalytics documentation on VaR.
The most common estimate is a normal (or Gaussian) distribution $R\sim \mathcal{N}(\mu,\sigma)$ for the return series. In this case, estimation of VaR
requires the mean return $\bar{R}$, the return distribution and the
varianc... |
Im trying to create a one class SVM using libSVM. However whenever I run the svmpredict function it always return an accuracy of 0%.
model = svmtrain(label,userProfile',('-s 2 -t 2 -c 1 -g .8'))
*
optimization finished, #iter = 6
obj = 4.792359, rho = 2.225069
nSV = 6, nBSV = 3
model =
Parameters: [5x1 double]
... |
So I've been digging into the math of correlations and covariances and one of my articles mentioned finding the covariance by using the common component, specifically with regards to, say, $cov(A + B, C + B)$.
I know that
$$Cov(A + B, C + D) = cov(A, C) + cov(A, D) + cov(B, C) + cov(B, D)$$
but it seems like there wou... |
We're trying to improve search results, and we're trying to determine if certain changes (adding a word to a synonym list, removing it from the query, etc) have a statistically significant improvement on the results for future searches.
We currently have data for past queries and their matching "correct" results. We a... |
I am pretty new to statistics and have some data that I think may follow a power-law distribution. However, it includes zeroes. I understand that mathematically zeroes can't work, but conceptually, would the point of a power law be violated if there are some zeroes in the data? If I were to scale the data by adding 1, ... |
I have recently been reading and trying to understand the Bayesian paradigm and looking at various methods that people have been using to estimate the posterior distribution. Now, it seems that most of the intractability comes from the fact that the likelihood terms have a complex form or there are complex integrations... |
What is the maximum entropy distribution for a positive continuous variable, given its first and second moments?
For example, a Gaussian distribution is the maximum entropy distribution for an unbounded variable, given its mean and standard deviation, and a Gamma distribution is the maximum entropy distribution for a p... |
Is there a package available for R (on CRAN, github, r-forge, etc.) that computes CIs for the population variance, given a sample of data, 95% CI parameter, etc.?
The Rmisc package computes the CIs around the mean, but I'd also like the CIs around the variance.
I found a few papers and an online source that contains th... |
Let's say I have some self-report items measured on a 5-point Likert scale (Strongly Disagree to Strongly Agree) and other items measured on a 4-point Likert scale (Never, Rarely, Sometimes, Often). Can anyone point me to literature (or practical advice) on combining these items into a composite scale? Let's assume for... |
I have over 30 subjects who each did the same task about 50 times. Each of these data point can be in condition a1 or a2 of variable A or condition b1, b2, b3 or b4. So for each subject, I have datapoints for a1b1, a2b2, etc.
I have three dependent variables (v1, v2, v3) for each data point.
I understand that this is a... |
I have trained a model that predicts a multinomial output (a.k.a. multi-class classification). Would anyone know how the accuracy can be measured?
The target takes one of the following values: "Yellow", "Red, "Green", or "Blue".
I know that for binomial targets, ROC/AUC provide a good solution. But I haven't found anyt... |
Out of a total population of 50 items, there are 20 "correct" items, what is the probability of me selecting 11 (or more) of these correct items if I randomly choose 20?
How can I do this in R? I was thinking of using binom.test() but that assumes replacement, and my questions involves 'no-replacement' when making yo... |
The following information is given: Based on a sample x(n), with n = 1,..., 100 from the exponential distribution, we want to estimate lambda but the original data was lost; we only know that 38 observations are >= 1 and 11 observations are >= 2. Combining the information based on the 38 greater than or equal to 1 and ... |
I am trying to determine differences in fish weights from 1st to 2nd sampling between a control group and 4 different treatment groups. My groups are unbalanced (control = 1 group, t1= 2 groups, with t2,t3,t4 = 3 groups). Originally I was told this shouldn't be a problem.
I've run a 2-way ANOVA and the Levene's test ... |
Given two sets of data:
Total usage of a few hundred products across the population as a whole
Per-consumer usage of those products for a sample of consumers
I'd like to choose weights for each sample member such that the sum product of their weights and product consumption matches the national consumption, and such ... |
I am confused by the dirac delta function in the formulation of monte carlo sampling. http://www.cs.ubc.ca/~arnaud/doucet_johansen_tutorialPF.pdf, for instance, defines in section 3.1 page 8 the marginal as $\pi(x_k)=\frac{1}{N}\sum_{i=1}^N\delta_{X^i_k}(x_k)$.
What does it mean here? That the density of $x_k$ is the a... |
I am testing combinations of preprocessing activities on a small data set (n=48, p=30).
The script generates 3200 different versions of the original data and measures how they
perform in a classification task against 5 classifiers. Classifier parameters are tuned
with 10 times bootstrap.
I assume a good sampling sche... |
I have seen that when modelling the likelihood term with a multivariate Gaussian tend to parameterise the Gaussian with the inverse covariance matrix (precision) rather than the covariance matrix, claiming it might be easier for certain calculations typically done in Bayesian inferencing.
Does anyone know what they are... |
I have read the following information on this site and I am not sure if it is actually true (or if I misinterpret it):
Events that are random are not perfectly predictable, but they have long-term regularities that we can describe and quantify using probability. In contrast, haphazard events do not necessarily have lo... |
Been watching this video by Tom Minka on Expectation Propagation (http://videolectures.net/mlss09uk_minka_ai/). At about 19:12, he says that the reason the moment matching technique works is that when you multiply a lot of likelihood terms together, the resulting posterior distribution is compact and its variance is ve... |
I'm having a discussion with my colleague about an exam question.
Let's say we have a questionnaire in which, among others, the preference for a political party is asked for. How would we model this, do we use a fixed or random effect? I think we should go for a random effect as it's a questionnaire and we expect the ... |
I'm training a classification model with Random Forest to discriminate between 6 categories. My transactional data has approximately 60k+ observations and 35 variables. Here's an example of how it approximately looks like.
_________________________________________________
|user_id|acquisition_date|x_var_1|x_var_2| y_v... |
I am trying to do regression with a deep convolutional network. I am using the code from http://deeplearning.net/tutorial/lenet.html
Currently, the network is using logistic regression as its last layer which I want to remove. If I simply remove the layer
layer3 = LogisticRegression(input=layer2.output, n_in=500, n_out... |
I am using the R 'multcomp' library (http://cran.r-project.org/web/packages/multcomp/) to calculate Dunnett's test. I am using the script below:
Group <- factor(c("A","A","B","B","B","C","C","C","D","D","D","E","E","F","F","F"))
Value <- c(5,5.09901951359278,4.69041575982343,4.58257569495584,4.79583152331272,5,5.099019... |
i have a new data set which is basically as bad as the last (same sort of data) and have been asked to try non linear regression on it, with the focus on partition (I will be using boosting and bagging). The dependent variable is continuous however.
I require the input variables intact (as in not factorized) as i again... |
Say we have $N$ time series $X_t^i$ for $i=1...N$and we want to predict a separate time series $Y_t$. Let's consider the following model: $Y_t = \sum_{i} \beta_i X_{t-1}^i $
I am just trying to figure when such a model makes sense
Does this model have a name? Is there an interpretation in terms of random processes? Ar... |
It is clear to me, and well explained on multiple sites, what information the values on the diagonal of the hat matrix give for linear regression.
The hat matrix of a logistic regression model is less clear to me. Is it identical to the information you get out of the hat matrix applying linear regression? This is the d... |
The (generalized version) of the problem I'm trying to solve: Say you're observing the surface of a puddle while it's raining. There are various sized ripples occurring wherever a raindrop hits the puddle, which happens with a regular frequency. Now imagine you throw a pebble at the puddle; how would you determine, by ... |
There is a filter in Weka called "Add Classification". One can choose a classification algorithm and then can get the classification labels provided by the model generated by the algorithm, the distribution of the classes, and errors it is making. Then, one can add these information (classification labels, class distri... |
I have 5 individuals. I measure variable X and Y of each one of them over time (on 5 different time points). I want to find out if there are any correlations between X and Y over time and show the same trend for all 5 individuals.
The data looks like this (just an example, not my real data):
time 1:
X Y
10... |
I am not sure how to ask this question without giving an example.
I am trying to measure the "cleanliness" of office buildings. I have two variables that try to measure this.
Variable one is a person who inspects a random sample of the offices in a building and rates the cleanliness of each office. These scores ar... |
The speed of convergence in MSE is typically dominated by the variance.
Consider the ML estimator of the variance: Its variance decays as $\mathcal{O}(1/n)$ and the bias term decays as $\mathcal{O}(1/n^2)$.
Would it be true to assert that the variance will always be the dominant term in the convergence rate?
|
Intro: Having noted the attention received today by this question, "Can ANOVA be significant when none of the pairwise t-tests is?," I thought I might be able to reframe it in an interesting way that would deserve its own set of answers.
A variety of incongruous results (at face value) can occur when statistical signif... |
So, I have a homework assignment in which I'm being asked to compare the fit of two similar models by comparing their $R^2$ and AIC. Both models were run in R, one using the lm command (for OLS) and the other the glm command; the former yielded an adjusted $R^2$ of 0.82, and the second model, with the same DV and cova... |
On Wikipedia, the Gibbs measure defines the probability as:
$$
P(X=x) = \frac{1}{Z(\beta)}\exp(-\beta E(x))
$$
Now, the familiar form of the normal distribution is:
$$
P(x) = \frac{1}{\sqrt{2\pi}\sigma}\exp-{\frac{(x-\mu)^{2}}{2\sigma^2}}
$$
Now, it seems that the normal distribution is a Gibbs measure and I was wonder... |
I have a hard time describing my problem, but I'll try my best. It's all about the well-known zero-mean, circularly-symmetric, multivariate complex Gaussian distribution
$f(z)=\frac{1}{\pi^K\det(\mathbf{\Sigma})}\exp(-\mathbf{z}^H\mathbf{\Sigma}^{-1}\mathbf{z})$,
with $\mathbf{\Sigma}$ being the complex covariance matr... |
Recently, this paper has received a lot of attention (e.g. from WSJ). Basically, the authors conclude that Facebook will lose 80% of its members by 2017.
They base their claims on an extrapolation of the SIR model, a compartmental model frequently used in epidemiology. Their data is drawn from Google searches for "Fac... |
I'm working on a health care regression model predicting # of inpatient visits. My analysis dataset includes a number of hybrid continuous/categorical predictor variables which can hold values on a 0 to 1 scale, inclusive. The variables are measuring the proportion of hospital inpatient visits for which a particular di... |
This seems to be a very general question about the bias OLS produces for RHS variables with unequal variance, but I was not able to find an explicit solution anywhere.
Suppose we have realizations of a random variable $y_t \sim N(0, \sigma_y^2), t = 1, \ldots, N$.
And we have $x_{it}$, noisy estimators of $y_t$, for $i... |
I am using LibSVM classifier in my Java code and I am getting correct results as I verified that with weka GUI, however, when I want to get the weights of the support vectors, I get an empty string. This is a snapshot of my code:
LibSVM svm = new LibSVM();
svm.buildClassifier(train_data);
Evaluation evaluation = null;
... |
If I understand correctly, the coefficient of a covariate X under a Weibull accelerated failure time (AFT) model is related to the log(hazard ratio) of the Cox proportional hazard (PH) model in the following way:
d1 = -c1/shape.gamma
where d1 is the AFT coefficient, c1 is the Cox PH coefficient log(hazard ratio), an... |
There are several R packages for Bayesian analysis, i.e., RBugs, JAGS,MCMCPack. Are there any pros and cons for each of these packages?
|
I have two glm, one with a gaussian distribution and identity link and one with gamma family and log link. The predictors are the same, the only thing that change is the response that in the gaussian glm is log-transformed and in the gamma glm is not.
The deviance is lower in the second model, and when plotting the res... |
I am considering MCMCglmm as an alternative to MLwiN. The former package works perfectly fine, but I cannot figure out how to model heteroskedasticity at level one. For instance, if I have the following model, individuals within countries
Fixed: y = 1 + x1 + x2
Random Level 2: 1 + x1 (country level)
Random Level 1: 1 ... |
When discussing the Poisson process with changing point (Carlin, Gelfand and Smith, 1992), the model is assumed as
I am not quite clear about the derivation of conditional posterior distribution based on the above model setting, especially the following part circled with red color
|
I have 2 different regression algorithms trained on the same dataset. I want to know if on a test set one of them performs significantly better than the other -- or at least if they are significantly different. What test do I use ? I am looking for something similar to McNemar's test that exists for classification algo... |
I read this statement on the Wikipedia article about Credible Intervals and it seems dubious to me. Although it has a reference associated with it, the book is not available to read online.
It is possible to frame the choice of a credible interval within decision theory and, in that context, an optimal interval will a... |
How would this influence the accuracy of the SVM model?
Let's suppose that I have one variable which max value is 100 and minimum is 0.
Currently, I send it to SVM as a single continuous feature, for example, if the value is 8 I send it as 0.08.
I am wondering though, what would happen if I were to represent this vari... |
I am attempting to find a way to perform a power analysis for a higher order repeated measures ANOVA where all factors are within-subjects (i.e., there are no between-subjects factors). I have looked extensively for a way to do this using existing tools like SPSS, or GPower and other packages but have not found anythin... |
When using Q-Q plot, why do we choose the empirical distribution $F_n(x) = \frac {\#\{y \in S \mid y \le x\}} n$, $S$ is sample, for comparison with normal?
Let $S$ be our sample of size $n$. Then we form the empirical distribution $F_n$ as defined above. We then use a Q-Q plot to compare $F_n$ to $N(0,1)$ to see if ... |
I have two variables: ordering & length. The former measures the ordering of a sequence (i.e. all permutations of A-B-C), and the former is the length of the sequence (i.e. A-B-C has a length of 3). These are highly correlated, and I want to normalize the ordering measure by length. I was expecting this normalization t... |
Let's say I have two samples. If I want to tell whether they are pulled from different populations, I can run a t-test. But let's say I want to test whether the samples are from the same population. How does one do this? That is, how do I calculate the statistical probability that these two samples were pulled from the... |
I'm looking to set up a Simes test in R. I'm trying to show that a Simes test is conservative with when a positive correlation exists.
I know how correct the p-values using the p.adjust function, but I am looking to set up a simulation under the following conditions:
1.) Multivariate $\mathcal{N}$(0,1) distribution.
... |
The kernel for Lanczos resampling is defined by
$$K(u) = \frac{a \sin(\pi u) \sin(\pi u/a)}{\pi^2u^2}.$$
How does one go about finding a value of $a$ to minimize the mean squared error, $\text{MSE} = b^2 + \sigma^2$? Is there at least a scaling relationship with size of the data set, $n$, as there is with Gaussian ker... |
UPDATE: Solution
Thanks to Greg Snow for pointing out the empirical = TRUE command in mvrnorm (multivariate random normal stuff)! Here's the explicit code:
samples = 200
r = 0.83
library('MASS')
data = mvrnorm(n=samples, mu=c(0, 0), Sigma=matrix(c(1, r, r, 1), nrow=2), empirical=TRUE)
X = data[, 1] # standard normal... |
I need a little bit guidance. I have to compare the classification performance of multiple algorithms using simple or paired t-test.
Let's say I have four datasets (A,B,C) with training and test samples. I am running 3 algorithms (SIFT, SURF, ORB) and compute the classification accuracy such 0.9 means 90% of images cor... |
I am reading a book that in one page it talks about cdf of a random vector. This is from the book:
Given $X=(X_1,...,X_n)$, each of the random variables $X_1, ... ,X_n$ can be characterized from a probabilistic point of view by its cdf.
However the cdf of each coordinate of a random vector does not completely describ... |
This question is about a paper I am reviewing, so I cannot give a lot of detail, but I can say it involves patients clustered in hospitals and a Cox proportional hazards model.
My instinct for such data would be to use multilevel modeling, since hospitals may vary on ways that are not accounted for. The authors used a ... |
I was just involved in a Q/A were a poor guy was requested to run a statistical test to prove that algorithm A is better than two other algorithms. However, he has only 4 data points. Does it really make sense to make a statistical test on 4 points? Where is the limit? On three?
To clarify, I understand that there are ... |
Any good places to start getting into Bayesian statistics? I'm a graduate student in social sciences, with a decent amount of stats classes under my belt, but I'm far from fluent. Any references would be much appreciated.
Thanks!
|
It seems wise to usually include random slopes in addition to the fixed slopes for lower level predictors as described in some previous questions:
When should I *not* permit a fixed effect to vary across levels of a random effect in a mixed effects model?
Varying group coefficients in lme4
My question is interpretation... |
Having finished the Coursera's Machine Learning course, I would like to put the theories into practice. Thanks in advance on guiding a newbie!
In particular, I am looking forward to some guidance how to:
Some sample longitudinal data that would illustrate k-means grouping
how to include time dimension into the analys... |
Bill arrives between 5:00 and 5:30 and waits 10 minutes. Will arrives between 5:10 and 5:40 and waits 5 minutes. What is the probability that they meet each other?
|
I tried to use the non-centred moving average, that means just using past values by setting the option centre = FALSE, but unfortunately you get the centred results.
Can anyone detect the failure here in the ma function?
getAnywhere(ma)
A single object matching ‘ma’ was found
It was found in the following... |
Based on Wikipedia's definition, I believe that statistical model refers to a certain sort of family of distributions, such as univariate Gaussian distributions in general.
Is there special statistical terminology for the result of applying specific parameters to a given model? For example, if $\mu = 5.48$ and $\sigma ... |
I have the following two logistic regression models where the independent variables are the same for the two models:
logit(Brand1) = b0 + b1 x1 + b2 x2
logit(Brand2) = c0 + c1 x1 + c2 x2
I can't use multinomial logistic regression because the respondents can choose more than one brand (that is, Brand1 and Brand2 can e... |
I've noted that quite a few of the node splits in my Random Trees are redundant since both child nodes have identical classifications. I suspect this is caused by an unfortunate choice of parameters, but which?
I'm using the OpenCV implementation to generate the trees; for prediction I use my own code. That's how I dis... |
I want to test my pair matching method based on this evaluation metric but unsure how to do this? I only have positive (matching) test samples.
|
On the wikipedia article of Laplace smoothing (or additive smoothing), it is said that from a Bayesian point of view,
this corresponds to the expected value of the posterior distribution, using a symmetric Dirichlet distribution with parameter $\alpha$ as a prior.
I'm puzzled about how that is actually true. Could s... |
I found very helpful tutorial regarding EM algorithm.
The example and the picture from the tutorial is simply brilliant.
Related question about calculating probabilities how does expectation maximization work?
I have another question regarding how to connect the theory described in tutorial to the example.
During th... |
It's well known that language can be modeled by Multinomial distribution and Multiple Bernoulli distribution.
So far I don't see any advantage of Multiple Bernoulli distribution representation over Multinomial representation.
Both models equal computationally, Multinomial considers the number of occurrence of the unigr... |
I am ecologist, using mainly the 'vegan' R package. I want to combine ('cbind') 2 matrices (sample x species) but samples (row) are different.
I sampled within 24 sites, by using 2 distinct methods, fish assemblages (6 replicates) and macro-invertebrates assemblages (3 replicates). (See data below)
I want to compute th... |
I'm new to stats. I want to get clarity about Ljung Box test. Its a omnibus test.
I'm using R to test autocorrelations of a time series. Using below command
Box.test(LogReturns, lag = 10, type = c("Ljung-Box"))
To test autocorrelations upto lag 10, can I infer with above single command or I need to run it in loop from... |
As I understand from this link regularization used to reduce overfitting of model.
Is overfitting bad when we have really a lot of data?
I don't understand why "very large weights fit the training data very well"?
Is regularization always needed?
|
I need your assistance on time series count data. I got some annual time series data I want to run, however the dependent variable is a count (number of deaths) while the independent variables are either continuous or discrete. Ideally count data is modeled using standard Poisson or NB model (mostly its usually cross s... |
I am working with a batch of about 1000 univariate time series in R . For every time series, I have to perform following tasks , before deciding upon a model be it ARIMA, TAR or Holt Winter's Model
Trend Detection and its type , i.e. whether trend is deterministic or stochastic
Seasonality Detection and then decidin... |
I'm trying to code up the spearman correlation coefficient test of R in C++.
> x = runif(100)
> y = runif(100)
> cor.test(x,y, method="spearman")
Spearman's rank correlation rho
data: x and y
S = 165182, p-value = 0.9306
alternative hypothesis: true rho is not equal to 0
sample estimates:
rho
0.008808881
... |
I am interested - mostly just for my own knowledge, and not for any real problem - in the use of weighted least squares to estimate a model on individual-level data and aggregated versions of those same data. Here's some simple R code to show what I'm talking about. Basically, I estimate a regression model lm1 on some ... |
I'm a first year postdoc in pure mathematics (geometry/topology with strong background in analysis) with undergraduate statistics and probability background (with also measure theoretic probability). I also have some programming knowledge in ForTran, C and Matlab, but I never used them in my pure mathematics career in ... |
I have the mean and standard deviation of a large sample (30k obs) and the mean and std of a subsample (2k obs). The means are percentage figures (i.e. between 0 and 100% and hence not a normal variate). Also the means are not independent, since one is based on a subsample from the other.
Despite seemingly a harmless... |
I am building a prediction model based on SVM model with RBF kernel. The training samples represent features obtained from genome regions (called binding sites) that are targeted (regulated) by proteins. The model will learn to distinguish between regions targeted by proteins and regions that are not. (I created positi... |
I would like some advice on how to interpret parameter estimates with a continuous dependent variable (healthy food consumption) and a 6-category predictor (income, from 1 = lowest income to
6 = highest income band in GLM.
My output is as follows:
Parameter Estimates
Dependent Variable: Healthy
$$\begin{array}{c|ccc... |
I have two series of information about (for example) the amount of cars on a two roads over a 1 mile stretch. I have collected 4 outcomes: Number of cars passing through an intersection at 1, 10, and 60 minutes as well as greatest number of cars in the area in the last hour.
I'd like to model the maximum of the sum of ... |
When working with probit models in stata the first line of the output is (for a sample of 583 with 3 variables):
Iteration 0: log likelihood = -400.01203
If I understand this correctly the iteration 0 is the log likelihood when the parameter for my 3 variables = 0.
The log likelihood function I'm working from is:
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.