instruction stringlengths 9 38.7k |
|---|
I've trawled the internet looking for R packages to compute the confidence intervals for the mean of a Poisson distribution using the different methods cited by Patil and Kulkarni in their papaer "comparison of confidence intervals for the Poisson mean: some new aspects", REVSTAT vol. 10, no. 2, June 2012, pp 211-227.
... |
This is a fairly complex question so I will attempt to ask it in a fairly basic manner.
I have data on the abundance of 99 different species of estuarine macroinvertebrate species and the sediment mud content (0 - 100 %) in which each observation was obtained. I have a total of 1402 observations for each species (i.e.... |
Assume I tracked the behavior of users when they visit a Website. In detail I track the movement from which site to site they click within the Website. So I have a lot of tuples with (userID, site, time). Now I want to visualize if there are any patterns or clusters for the movement. Let's say most of the users click s... |
Based on an earlier question I balanced the classes such that the numbers in both classes is about similar.
The random Forest gives next result:
> print(rFresult)
Call:
randomForest(formula = finresfh ~ ., data = rFdatasubset, importance = TRUE)
Type of random forest: classification
... |
Based on results of Null model, some scholars suggest variance attributed to group level and individual level is computed using variance component output, whereas other suggest going the standard deviation scores.
Is there consensus how to calculate ICC?
|
Simple linear regression in MATLAB. Something is wrong with my p-values. Stata reports that the p-values should be 0.000 and 0.207, whereas my code reports that they should be 0.0001 and 0.2988. All other statistics are the same as Stata's output. Please help me see the error of my ways.
%number of observations
n = 10;... |
I have a matrix (x) containing 55 samples (rows) and 10000 independent variables (columns). The observations are binary, healthy or ill {0,1} (y). I want to perform leave one out cross-validation and determine the Area Under Curve (AUC) for each of the variables. To do so I need the nfold parameter to be equal to the n... |
I'm studying for my first statistics exam and I've been trying to calculate $P(X>5)$ for an event which is Poisson distributed. The Poisson distribution is defined as $P(X<5)$ in table in which I want to look up the correct numbers. I thought that $P(X>5)$ would be equal to $1-P(X<5)$ but the right answer says $P(X>5)=... |
I have difficulties fitting a joint model in R. My data consists of two responses X & Y and one predictor variable Z. Now I want to model both X and Y in function of Z (just linear regression: $E(X|Z)=Z\alpha$ and $E(Y|Z)=Z\beta$, both outcomes are normally distributed) but while doing so I also want to estimate the va... |
R is giving me a strange probability for the input
pbinom(n, 100, prob)
Any n over 100 seems to cause it to default to 1.
What should I do when my n is greater than 100?
|
I have implemented an EKF to track the state of a moving vehicle in 3D. My question is twofold:
What happens if a measurement (e.g., for $y$ velocity) has a covariance that does not overlap with the current state and covariance? As an example, the measurement may have a value of 4 with an variance of 0.2, but the stat... |
I have 3 different treatments with the observations of 6 different repetitions. However, all these different treatments (groups) have different numbers of patients. The first group has 26 patients, the second group has 28 patients and the third group has 19 patients. Thus, I can say that I have unequal sample sizes for... |
This is a somewhat typical a/b test setup. However the proportions that I'd like to test for differences are very small (< 1%). Consequently a 20% difference, which is meaningful, is 0.001. That's a small effect size!
A power test of the chi-squared test for differences in proportions (same sample size) using the pw... |
I'm reading a paper that does not report the coefficients from two OLS regressions. In both cases there is 1 response variable and 1 predictor variable. The predictor variable is the same in both cases. I know the subject matter of the paper well, which leads me to believe that the means of the slopes are almost certa... |
I am evaluating results of an A/B-style experiment where we have different groups of people that can perform a target action. They can do the target action as many times as they want, but most people don't do this very often (poisson distribution).
I'm interested in how I can best calculate the statistical significanc... |
Data are 2D x-y pairs, both of which have [0-1] possible range. I need to calculate how well these data fit a linear relationship, where the intercept is 0 and the slope is 1. In other words, a "perfect" metric score should be achieved if the data form a straight line between (0,0) and (1,1), and always worse than this... |
I need to predict with a simple model if a bank customer is still active.
I have some information like the date of the last meeting with the customer, but some of them didn't have any meeting with their advisor.
Customer_Id | Last_meeting_date (in days from now) | Gender |...
A 115 ... |
I have one categorical dichotomous dependent variable (yes/no - retention of newly learned words) and two independent variables - both are categorical. One independent variable is "delay between exposure and test" and has two levels (short time delay/week time delay). The other IV is "word type" and relates to the ty... |
I am brushing up on statistics for a data science course.
I saw an example of variables that are highly dependent, but still have 0 covariance (http://en.wikipedia.org/wiki/Covariance#Uncorrelatedness_and_independence)
Now ... what I want to know is: when would covariance be a good measure of correlation, and when not.... |
While analysing the effect of environmental data on the activity of an animal species (the latter given as count data) I am fitting negative binomial GLMs with one predictor using the MASS library in R. Unfortunatley, the data set is very small (n=7 to 9).
In some cases, the theta value in glm.nb gets very large (accom... |
I have 10 iPads. I am logging the number of times an app is crashing each day for each of these iPads. The number of crashes tends to be skewed towards just a couple of the devices such that taking an average will not give anything meaningful. What type of equation should I use to get some meaningful data related to my... |
What type of analysis do I need to understand and/or gain information from a set of data?
For example, I have students' data for SATScore, HighSchoolGPA, HighSchoolRank, etc., and FreshmenGPA.
Now I want to develop a model which tells me which of the criteria are important for FreshmenGPA and by how much. I want to qua... |
I am running an impact evaluation to investigate the impact of a specific program on several indicators x. These indicators have values between 0 and up to 10000, and a high standard deviation.
For my purpose, I'd like to create one index for each indicator each that takes into account the initial level of the indicat... |
I have residuals for my model. They are simply measured-predicted. However, I notice that they do not follow a normal distribution. I want to make my residuals distribution normal so that I can obtain confidence intervals that are representative of the distribution. I have tried doing the following:
>library(MASS)
>... |
I wish to break into the field of data science, more specifically, analysing data sets, extracting features and classifying them or identifying relationships.
However, I have no formal math background and am trying to re-learn it from the ground up. I've started an introductory stats and probability course on Coursera... |
I'm not quite sure where to start... I'm trying to wrap my head around two methods for drawing samples from a parameter distribution, given a forward model and some distribution of the observable. I'll call these methods direct and Markov Chain Monte Carlo and describe them below. But to be clear on the parameters of m... |
I have a Box-Cox regression where the explanatory variables are almost all dummy variables. If I want to see if there is multicollinearity among them, what would be an appropriate test? Do variance inflation factor (VIF) tests work here? What about the Pearson correlation coefficient matrix?
|
I currently have 146 participants in 4 groups as follows:
group 1 = 46
group 2 = 40
group 3 = 29
group 4 = 37
Each group completes the same 20 trials, but the groups have different characteristics (which is why they are separated).
I'd like to know if I have enough participants per category to get statistically sig... |
I am trying to analyse a dataset with at minimum 50 explanatory variables coded as 0 and 1 for presence/absence and a binary response variable (case/control). The goal is to see how the variables can predict the separation between case and control.
As there are more variables than observations I applied a partial least... |
I am interpolating soil texture data with GeoR and ARCGIS. The ordinary kriging process is straight forward and GeoR facilitates cross validation. Has anyone else produced variogram parameters, nugget and/or sill, greater than the range of clay 0-100%? This seems to ruin Kriging variance results. The output variance is... |
Say I have two events, $A$ and $B$, and some distribution parameters $ \theta $, and I'd like to look at $P(A | B,\theta)$.
The simplest definition of conditional probability is, given two events $A$ and $B$, expressed as follows:
$$P(A|B) = \frac{P(A \cap B)}{P(B)}$$.
So, if there are multiple events to condition on, ... |
I have four models, each one is run with MCMC on a large number phylogenetic trees. Each resulting model has an associated log posterior probability (sum of the log likelihood and log prior). Since I need to average the models weighting by their posteriors (bayesian model averaging) I need the original posterior probab... |
How do you perform hypothesis tests with big data? I wrote the following MATLAB script to emphasize my confusion. All it does is generate two random series, and run a simple linear regression of one variable on the other. It performs this regression several times using different random values and reports averages. What... |
Let $X$ and $Y$ be two random variables, such that the (average) mutual information is very small:
$$ 0 \le I(X;Y) \le \epsilon \ll 1$$
In this case, we say that $X$ and $Y$ are almost independent. Now, can we deduce something like:
$$\forall x,y \quad \Pr[X=x,Y=y] \le \Pr[X=x]\cdot\Pr[Y=y] + \delta$$
with $\delta$ bei... |
I am stuck on a research problem and do not know what kind of methods to use. I hope people in this forum can give me some good ideas, I've always had good brainstorming sessions here.
My problem is that I have a laser and a stack of thin films made up of three different materials. If I shoot the laser at these thin f... |
I am estimating a logistic model for a binary $Y$ (0=controls, 1=cases), and a set of covariates ($x_1, x_2, x_3, \ldots$) including sex (male, female). I know from the data that risk of $y$ is quite different for males and females with certain covariates.
What I was trying to do, with no success so far, was to fit on... |
Basically I have a repeated measures experiment with two reward levels and two speed levels. Every trial participant can be randomly presented with highReward*slowSpeed or lowReward*fastSpeed etc., resulting in a 2 x 2 design. I am not completely sure when it is appropriate to use either of the models below:
model <- l... |
MAD (Median Absolute Deviation) is:
$\text{MAD} = M_i(|x_i-M_j(x_j)|)$
where $M()$ is the median operator ($M_i(x_i) = \text{median}(x_1,...,x_n)$).
I'd like to scale the MAD in such a way as to include (say) 95% of a distribution around the median, the way that that 95% of a normal distribution is within $1.96\sigma$... |
What are some Bayesian ways to see if two empirical distributions come from the same data-generating process? Are any of the Bayesian alternatives implemented in Matlab/R/Python?
|
I have some basic questions regarding PCA (principal component analysis) and LDA (linear discriminant analysis):
In PCA there is a way to calculate the proportion of variance explained. Is it also possible for LDA? If so, how?
Is the “Proportion of trace” output from the lda function (in R MASS library) equivalent... |
I am new to principal component analysis (PCA). I performed PCA for a dataset with 54 samples. When I project them in 3D scatterplot, I can see samples with similar characteristics are grouped together separately. The X,Y and Z axes in 3d scatterplot represent PC#1, PC#2 and PC#3 respectively. Along the axes positive a... |
I was reading a paper on Bayesian curve fitting (Dimatteo et. al. Bayesian curve-fitting with free-knot splines, 2001) and came across the symbol $\bumpeq$. It is used a few times throughout the paper but never explicitly defined. After a few google and stackexchange searches, it appears as though the symbol is neither... |
I am trying to use function the boot function (in the R package, boot) and we want to change how many observations are resampled each iteration of the bootstrap.
If it's not possible to change the number of observations in the pseudo-sample, how many observations are used when resampling?
|
I am working on a model based on logistic regression with a binary response variable and my data consists of ratios of integers (number of positive observations out of the total number of observations).
I am trying to speed up the regression by downsampling the ratios (I have to run it on a massive amount of datasets).... |
I have an existing logistic regression used to forecast whether a given action will take place or not. The unit of analysis is the individual person. For the sake of the question, assume a default threshold of p > .5 yields a positive prediction. When I plot the proportion of individuals who are actually in each class ... |
Suppose that $X$ comes from an exponential family
$$
p_\theta(x) = h(x)\exp(\theta x - A(\theta)),
$$
and that, conditional on $X$, $Y$ also comes from an exponential family of the form
$$
p_\eta(y\mid x) = h(y\mid x)\exp(\eta y - A(\eta, x)).
$$
Just a pointer to a reference would be helpful. I'm not sure if this has... |
I recently bought a fantastic phenomenal book on ARIMA - "Forecasting with Univariate Box - Jenkins Models: Concepts and Cases" by Alan Pankratz. It was originally published in 1983 therefore it does not have the datasets associated with the data sets for practice. Are there any place that someone could recommend for... |
I seem not to find this in any textbooks. So I post these questions.
Is monthly data better than weekly data for forecasting?
Can there be seasonality in weekly data? Most software/methods don't seem to find seasonality in forecasting data.
Is there a way to aggregate weekly data to monthly data?
How do methods like ... |
I am running a Bayesian regression model by WinGUBS via R2WinBUGS package in R. Everything looks fine except for one parameter:
nlssim$summary[37,][c(1,2,8,9)]
mean sd Rhat n.eff
3.054326e-05 9.523965e-06 1.000000e+00 1.000000e+00
The number of effective size is 1! It seems to indicate t... |
I am using Stata for a survival analysis project involving inverse probability weighting (IPW). The question has arisen as to how to analyze weighted continuous data between two groups with a Wilcoxon rank sum test? Is this easily implemented in any other package?
|
I was recently looking at a paper in the journal Psychological Science and came across this:
F(1, 71) = 4.5, p = .037, $\mu^2$ = .06
F(1, 71) = 0.08, p = .78, $\mu^2$ = .001
I was wondering what the $\mu^2$ is in the above. Typically in APA the third thing should be either the MSE or it should be a standardized effect ... |
Let $f$ be a (possibly randomized) function with finite domain $D$ and finite range $R$, such that for any two $x$ and $x'$ in the domain, $f(x)$ and $f(x')$ are identically distributed; i.e.:
$$\forall x,x'\in D, \forall y\in R \quad \Pr[f(x)=y] = \Pr[f(x')=y] \enspace. \qquad (\dagger)$$
I want to prove that the outp... |
I have already collected my data for my dissertation and as I have many variables I have done a factor analysis to drill down the variables to few factors. Then I have computed the mean of all the relevant variables of each individual factor. However, when I am doing a normality test on the factors, it is being negativ... |
I would like to sample 1 million vectors from the set of vectors
$$\mathbf{v} = \{v_1,v_2,...,v_n \} $$
subject to
$\sum_{i=1}^n v_i = 1$
$\forall i: v_i \ge 0$
each $v_i$ has at most 2 decimal places
As an example I have $n = 10$. Effectively, I am choosing to divide $100$ items into $10$ portion such that there is... |
The standard convention in Spatial Statistic is that the spatial lag term in a regression model will be biased due to simultaneity. Looking at the following model, it would be difficult to argue with this:
$y_{i} = \rho W y_{i} + X_{i} \beta + \varepsilon_{i}$, as we would expect a feedback effect. In other words, the ... |
My question is probably elementary, and I apologize for that. I am reading Kogan's "Introduction to Clustering Large and High-Dimensional Data"; I am interested in understanding batch K-means and K-means and use it in $\operatorname{R}$. In the textbook it is stated that both algorithms need an initial choice of
the n... |
From a questionnaire survey I have 44 statements (items) which were supposed to measure 11 bases of power (factors). Four items per factor. Since this survey was only slightly altered from its well established original source, it is expected that eleven factors are actually measured. The number of observations is 258.
... |
In a numerical low rank decomposition, whether it is non-negative matrix factorization (NMF), or binary matrix factorization (BMF), or non-negative sparse PCA, we have two low-rank matrices to approximate the original matrix by multiplying:
$$M = U \times P $$
whose dimensions are
$$M \in \mathbb{R}^{n \times m},\qquad... |
I am trying to model count data in R that is apparently underdispersed (Dispersion Parameter ~ .40). This is probably why a glm with family = poisson or a negative binomial (glm.nb) model are not significant. When I look at the descriptives of my data, I don't have the typical skew of count data and the residuals in my... |
I hit the following problem: I calculated the p-value of a chi-square test, which gave me a result near 1 and clearly does not lead to rejection. On the other hand, I determined the power of the same test as 6%, which means a type II error
of 94%. This situation would imply non-rejection as decision, which is wrong wit... |
We have completed a survey of FTSE350 companies, but only received 49 responses. We assume that this response rate means that our results are not representative of the FTSE350 as a whole, but wanted to show this more scientifically.
I'm sure this is a very simple calculation, but could someone please talk me through it... |
I have a dataset of energy demand with a small sample size:
>dput(dat.demand2050.unique)
c(79, 56, 69, 61, 53, 73, 72, 86, 75, 68, 74.2, 80, 65.6, 60, 54)
with a density function that looks like this:
The data comes from a number of studies and can be separated into two "regimes" - low and high, which can ... |
Suppose we have 20 training data points in 50 dimensions. Let's say I have specified a 3 by 3 SOM (lattice with 9 points), I embed my manifold (3 by 3 lattice) to 50-D space and after training each data point is mapped to one of the 9 points (nodes) in my manifold. Now, my embedded manifold (3 by 3 SOM) is 50-D. So ho... |
I have two groups of patients (A and B) with a congenital malformation which might present itself in 3 forms (a or b or c).
Sample sizes are small as you can see, so I think the best test to check whether there's a statistically significant difference between the 3 forms in the 2 groups is a Fisher's exact test in a f... |
I know how many times a particular factors has been found:
values<-cbind(f=c("S1","S10","S3","S4","S5","S6","S7","S8","S9"),count=c(9,8,4,24,20,4,8,21,5))
I also have information on the number of times factors are found alone, in pairs, triplets ...
together<-cbind(count=c(25,11,11,1,1,0,2,0),fnb=c(1,2,3,4,5,6,7,8))
S... |
I am not clear as to how to assess if a multilevel model fit using lmer satisfies the assumptions of normality and homoscedasticity?
I have used the following r code and I find that histogram of residuals and qq plot satisfy the assumption that residuals are normally distributed. But as multilevel models have residual... |
For a given model:
$y_{ik} = \mu_k + \beta X + u_k X + b_i + \epsilon_{ik}$
where $u \sim N(0, \sigma_{u}^{2} I)$, $b \sim N(0, \sigma_{b}^2 I)$ and $\epsilon \sim N(0,\sigma_{e}^2 I)$.
Assuming the $\epsilon_i$ are normally distributed, I am... |
I don't have much experience with statistics and suspect this is a common problem with a common solution. Normally I would just eye-ball the data and call it a day, but at some point you ought to learn the right way to do things.
I have a dataset of about 17,000 areas with a cumulative distribution:
gid st_ar... |
I plan to use multiple scaling in R and start with a toy example.
There are two matrices. The first contains 10 observations and the second one contains two replicated rows.
It appears that the repeated rows are projected to different positions.
Intuitively I expect the replicates are projected to (approximately) the s... |
I'm looking into calculating a Pseudo $R^2$ used McFadden's method for a zero-inflated negative binomial regression. I'm unclear how to go about evaluating $\hat L(M_{intercept})$ in R. Any suggestions for how this might be easily done?
R Code thus far:
> require(pscl)
> require(MASS)
> ZerInflNegBinRegress<-zeroinfl(... |
I already asked a question about the interpretation of the results of the bootstrap algorithm in case of a normal mixture. This time, I fit a hyperbolic distribution. According to this thread:
the use of standard errors in this family is completely unreliable
since the distributions of the estimators are quite asymm... |
I'm planning an analysis that will require pooled logistic regression to analyze a longitudinal dataset with time-dependent explanatory variables (see here - D'Agostino, et al. 1990). However, the standard analysis uses regularly spaced intervals. My study has followup points at 0, 2, 6, 12, 24 months. What is a good w... |
I'm trying to do a multiple linear regression model to correlate a dependent $Y$ variable (normally distributed) against a set of 642 variables. These 642 variables codify for the presence or absence of a particular chemical group in a molecule, therefore they can assume only 1 or 0 as value. The size of the dataset is... |
I'm dealing with 3D data that are the trajectory of a point over time. I would like to have an indication of how much it is "spread" in space and I thought about using the volume of the 95% confidence ellipsoid as they do for stabilometric measures in 2D with the displacement of the Center of Pressure.
So I have $x,y... |
Given two experimental runs, each with an experimental & a control group, I would like to test for a statistically significant difference between the first and second experimental group (using Welch's t-test). Because of inter-experimental variability, this requires normalization of the values in the experimental group... |
I am conducting a study on a pool of data which consisted of 200 items. I am planning to use rating scales to see how these items relate to a concept (e.g. "how are the next items related to the attractiveness of a product?") and the rating scales ranges from 1-very closely related, to 7-not related at all.
The analysi... |
In a multiple regression, the regression coefficient of the two subsamples is opposite to that of the full sample. Both coefficients are significant. The sum of the number of obs in the two subsamples is equal to that of the full sample. Is this normal? What are the possible causes? Thanks.
|
I have a data set with a small number of samples (322) and a large number of features (318.976). My data consists of images, and I want to train a binary classifier.
Since I have such a small amount of data available, I have employed the following strategy:
Reduce dimensionality using a few hand-written rules (from 31... |
I have some observed (i.e., not generated by any hypothesized distribution, but generated by real processes) data that I believe is bi-modal (it may have more modes than two).
In this dataset, there are 241,792 observations. The deciles are the following values:
MIN - 0.1472
10th - 0.3072
20th - 0.4094
30th - 0.6267
4... |
I have a dataset with ~90000 observations and less than 10 features (all continuous). The problem is that the response variable has ~300 categories. Currently I would try to fit a multinomial linear model or a random forest. I have to predict probabilities for the 300 categories. I need some inspiration and would like ... |
I have this confusion about which transformation to use in my data. The histogram of my original data looks like this
Now I have seen at most of the places to take log transformation in case the data is positively skewed. But when I take log transformation I get something like this
which is negatively skewed, not wh... |
We are running a study which investigates platelet aggregation changes during three trimesters of pregnancy and postnatal period.
Then we compare each of these phases to control non-pregnant women.
The sample size is 46 including 10 per each trimester, 10 postnatal and 6 as control.
The cases we recruited during the... |
Suppose that my application's users are asked to give their opinion about the probability that a statement is true. They are presented with a slider widget that goes from 0% to 100%, but let's say the slider goes from 0 to 1. Due to the discrete nature of computing, there are a finite number of possibilities for their ... |
I know that the beta distribution is conjugate to the binomial. But what is the conjugate prior of the beta? Thank you.
|
I am reading the paper Lorenz et al (2011), in which in relation to one diagram it is stated "error-bars represent 10% confidence intervals".
I understand that the idea of a 10% confidence interval makes theoretical sense. I'm leaving aside the question of whether in the paper I'm reading the "10%" is a typo, and als... |
I performed a chi-square goodness-of-fit test with R, which uses simulation of the p-value:
x<-c(0.16*260,0.48*260,0.31*260,0.05*260,0)
chisq.test(x, p=c(0.25,0.25,0.3,0.11,0.09),simulate.p.value = TRUE, B = 1000)
The output says:
Chi-squared test for given probabilities with simulated p-value (based
on 1000 rep... |
I fitted the following multinomial regression:
library(car)
p1<-c(1,2,3,4,3,4,3,4,3,2,1,2,1,2,1,2,3,4,3,2,3,4,3,2,2,2,3,4,3,3,4,3,4)
d1<-c(1,2,3,4,3,4,3,4,3,2,1,2,1,2,1,2,3,4,3,2,3,4,3,2,1,2,3,4,3,2,2,2,1)
d1<-as.ordered(d1)
library(nnet)
test<-multinom(p1~d1)
predi<-expand.grid(d1=c("1","2","3","4"))
pre<-predict(... |
I have a large set of images decomposed into 5 spatial frequency bands, with each band downsampled appropriately.
So for each image I have 64x64, 32x32, 16x16, 8x8 and 4x4 for each spatial frequency.
Now I want to do NMF on the combined image set, considering all spatial frequencies together. The first option would be ... |
I would like to plot 95% confidence intervals for my data. It seems there are multiple options for calculating them, e.g.: (examples shown using R code)
library(psych)
# Make some data
set.seed(1)
N <- 10
data <- data.frame(A.1=rnorm(N, 1, 1), A.2=rnorm(N,2,1), B.1=rnorm(N,2,1),
B.2=rnorm(N, 1, 1))
data
desc <- descr... |
I have a technology acceptance model where I assume that 10 independent variables (each latent variable is composed of three items, based on a 1-5 likert scale) should influence the actual use (dependent variable) of a contactless payment system.
Only the dependent variable is composed of two items, the first one meas... |
I'm testing a linear model that explains stock returns with some contemporaneous factors; the model is assumed to satisfy OLS assumptions except that the errors (i.e., unexplained stock returns) have fat tails: let's say they are described by an alpha stable or Student's t distribution.
How should I estimate the model?... |
I would like to produce a regression analysis model. I have ordinal categorical data. I can use SPSS. I do not know what analysis to perform or what assumptions to check.
What are the statistical tests that can be performed? How can I test the accuracy of the model?
|
I want to predict a categorical variable using also categorical predictors. Currently, I am looking at classification and regression trees (CART).
The prediction quality is "good enough", except for the presence of impossible combinations. In the following minimal example, the combination a==2, b==2 is impossible, yet ... |
I'm using kernlab package
Here are two examples:
First:
library(kernlab)
x <- runif(1020, 1, 5000)
y <- sqrt(x)
model.vanilla <- rvm(x, y, kernel='vanilladot')
Got error:
Error in chol.default(crossprod(Kr)/var + diag(1/thetatmp)) :
the leading minor of order 2 is not positive definite
Second:
library(kernlab)
x <- r... |
My data consists of about a hundred animal visits to three different feeding zones, and I'm trying to determine if there was a preference for one zone over the others.
Each animal visits between one and about a hundred zones (think hummingbirds and feeders).
The problem is that 1) the sequence of zones a given animal v... |
I have a random variable $X$ and I need to calculate the coefficient of variation ($\text{CV}$) of the product of a constant, $c$, and $X$. In other words $\text{CV}(X \cdot c)$. To do this I can apply the following:
\begin{align}
\text{CV}(X \cdot c) &= \frac{\text{sd}(X \cdot c)}{E(X \cdot c)}\\[1em]
\text{CV}^{2}(... |
I am constructing a predictive model for a binary outcome, which gives me results in a "probability-prediction" fashion such as "0.3-YES" or "0.4-NO". The model is working perfectly.
My question here is what would be the probability that I should trust? is any value below 0.35 or above 0.65 confident enough?
I know ... |
This question may appear to be quite odd, but the following explanation should make it a little more comprehensible.
I work on the analysis of population trends of birds. In our team, we work with a simple trend index, that is calculated as
$$\frac{\rho_t - \rho_{t+1}}{\rho_t + \rho_{t+1}} = \frac{(\mbox{density at t... |
Let $T$ be an efficient estimator for a parameter $\theta$.
Is $g(T)$ (with $g(·)$ not linear) an efficient estimator for $g(\theta)$?
Is $g(T)$ an minimum-variance unbiased estimator (UMVUE) for
$g(\theta)$?
|
In a multiple regression, the coefficients become insignificant using vce(cluster year) in Stata. Will including year dummies solve the problem? How are these two approaches different?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.