instruction stringlengths 9 38.7k |
|---|
I'm using machine learning to do text classification right now, I first use a training data to train my classifier, then use this classifier to classify text document into different classes. With the time goes on, some new words will arise
and I need to adjust my training vocabulary to correctly classify these document... |
Being quite new to the field, it occurs to me that there are multiple and fundamentally different ways of assessing the quality of a logistic regression:
One can evaluate it by looking at the confusion matrix and count the misclassifications (when using some probability value as the cutoff) or
One can evaluate it b... |
I came a cross some survey results that show user preferences, asked in the form of the most and least preferred choices. The result reported was something like "x % of people chose option A as their most preferred" and "y % of people chose option B as their least preferred". It seems to me that there is some dependenc... |
Why is the sum of squares error function of noisy input and noisy target variables very similar to the error function for only noisy input?
This is the relevant part in Bishop's book:
Another viewpoint on kernel regression comes from a consideration of
regression problems in which the input variables as well as the... |
I'm not involved in drug testing, but it is my understanding that most trials are performed using a control and a treatment group (or perhaps a few discrete treatment groups). This data is then used to determine effectiveness of a drug, and hopefully uncover any deleterious side-effects before the drug is released on t... |
I'm trying to forecast a seasonal time series based on its historical values, and also two more time series (that are seasonal themselves.)
I'm trying to use an auto.arima, and I'm going to input the other two time series (the exogeneous regressors) as a contatenated list of dummy variables, in auto.arima's xreg parame... |
I'm new to the R language. I would like to know how to simulate from a multiple linear regression model that fulfills all four assumptions of the regression.
ok.. thank you.
Let say i want to simulate the data based on this data set:
y<-c(18.73,14.52,17.43,14.54,13.44,24.39,13.34,22.71,12.68,19.32,30.16,27.09,25.40,26... |
I have a monthly time series (for 2009-2012 non-stationary, with seasonality). I can use ARIMA (or ETS) to obtain point and interval forecasts for each month of 2013, but I am interested in forecasting the total for the whole year, including prediction intervals. Is there an easy way in R to obtain interval forecasts f... |
When conducting various statistical test why do we expect equality of variances/ homoscedasticity/sphericity etc.?
|
I've been spending quite some time to figure out how I can get the best R squared value from randomization of some values in a linear regression equation. I have allele frequency data and 14 environmental gradient data. Allele frequency value is fixed, but 2~14 combinations of the 14 environmental variables are used.
M... |
I have a uniform distribution that generates from the $\mathbb{Z}_q$ (so I have integers from the interval [$-q/2$, $q/2$). Then I subtract one from the other and take the result modulo $q$ (so again I have an integer from the interval above).
How to prove (or disprove) that the resulting distribution remains uniform ... |
I am trying to get a grasp on how to use machine learning to predict financial timeseries 1 or more steps into the future.
I have a financial timeseries with some descriptive data and I would like to form a model and then use the model to predict n-steps ahead.
What I have been doing so far is:
getSymbols("GOOG")
GOOG... |
How does the formula for the lmer function work?
Some examples:
library('lmer')
lmer(Yield~(1|Batch),Dyestuff)
lmer(Yield~(Batch)*(1|rep(c(1,2,3),10)),Dyestuff)
lmer(Reaction ~ Days + (1|Subject) + (0+Days|Subject), sleepstudy)
On the left of ~ sign is the dependent variable and on the right comes all the independent ... |
I just got a rejection from an economics journal. Among the reasons cited for rejection were:
the benefits of using the semi-parametric method are not clearly
brought out compared to alternative simpler techniques with clean
identification of causal relationships
It is certainly possible that I could have done a... |
How to incorporate costs (into logit model) of false positive, false negative, true positive, true negative responses, if they are different costs ? Is it possible to do that on the level of likelihood function ?
Edition :
I see know that likeligooe function could be quite easily modified to incorporate costs, but then... |
I've got a set of (continuous) values from a measurement, where each object should be either positive or negative, and I know that the values of the "negative" objects should be approximately normally distributed.
I've been using a k-means-based algorithm in R to cluster the data and thus to classify the objects. Here ... |
How to test for simultaneous equality of choosen coefficients in logit or probit model ? What is the standard approach and what is the state of art approach ?
|
For instance, I have a bar chart - in which I have 4 samples/bars. for these 4 bars, I want to check statistical significance for all combinations.
How can I do it? Can unpaired t-test be used - to compare 2 samples at a time? or this is not correct. What is then the appropriate way in which all the samples/ bars can ... |
I have been looking at unit root testing. Specifically 2 tests:
The ADF test.
The ADF (augmented Dickey Fuller) test has the null hypothesis that "the time series has a unit root" (meaning that the time series is not weakly stationary)
The KPSS test.
The KPSS is a (Lagrange Multiplier type) test which has the null h... |
Can I use the t-test to compare means between groups (N=300) if data is not normally distributed?
|
This is the Jensen's inequality I saw in my textbook:
$$E{ f(X) } \geq f( E(X) ),$$
where $f$ is a convex function.
Is this also applicable for two random variables--independent or otherwise--like this:
$$E{ f(X,Y) } \geq f( E(X,Y) )?$$
|
In the book Medical statistics, by Cambell, Machin and Walters, you can read, in the very interesting section ‘common pitfalls’ on page 280, that the test for correlation between initial value and change is not valid since there is intrinsic negative correlation between the two measures. Instead they propose that you ... |
I have what I believe is a very simple problem for anyone used to modelling with unequal variances (which I am unfortunately not). I have a dependent variable "totrich" which I want to model as a function of a covariate "years" and a two-level factor "spont". Essentially I am just interested in whether spont is a signi... |
I would like to generate three random numbers and then standardize them so that they add up to 1.
I would like to repeat this procedure so that in the long run the mode is .33 for each number.
|
I am using a Johansen procedure to test for cointegration a vectorial 4-dim vector (timeserie).
First I tested for differential stationarity of each individual vector, all of those have a unit root so we are good there.
Then I have to find the optimal number of lags as to test for cointegration using Johansen, we ass... |
I ran annual logisitic regression on time-series datas. The most important independant variable have coefficient that are significant in a lot of years, that's a relief. But the "controlling variables", have non-significant coefficients. I'm far from an expert in stats.
My sample is very small compared to the litteratu... |
I have 2 level Design (DOE) with 4 factors (A,B,C,D). I've already calculated the estimates for each main effect and all the interaction effects.
How can I construct the normal probability plot to see which effects are significant? I have looked at many packages in R for Design of Experiment but cannot find a package ... |
The mission
I am trying to find a way to do Iterative Proportional Fitting in R. The logic of the procedure is like this: one has a table with e.g. sample distribution of some variables. Let us say it is this one:
sample1 <- structure(c(6L, 14L, 46L, 16L, 6L, 21L, 62L, 169L, 327L, 174L,
44L, 72L, 43L, 100L, 186L, 72L... |
Imagine we have one sample (n=40) from a population on 2 variables, for which we estimate the covariance (say, 0.1). If we would have another sample (n=10) from the same population, and we estimate the covariance to be 0.2, what would we expect to be the covariance in the population?
Would it be:
(4/5 * 0.1) + (1/5 * 0... |
When varying the significance level, the rejection regions can be chosen to be nested or not nested. I was wondering what some theoretical and practical considerations are in using either nested or non-nested rejection regions? Thanks and regards!
|
I am kind of new to random forest so I am still struggling with some basic concepts.
In linear regression, we assume independent observations, constant variance…
What are the basic assumptions/hypothesis we make, when we use random forest?
What are the key differences between random forest and naive bayes in term... |
Recently, I have done a fairly complex experiment, and I am having trouble coming up with a model that is suitable for the data. I have spent a few days reading about, e.g., when random effects should be nested or crossed, and which variables should be included in a full model. Yet, the literature that is readable for ... |
Assume I want to use a (nonparametric) bootstrap test for a hypothesis with a sample size of $n_1$ and I already have $n_0$ actual samples on which to base my power estimates. Usually, we would also have $n_1 > n_0$.
Is it a valid procedure to estimate the power of my test by using nested bootstrapping? Basically, I wo... |
I've encountered interesting prediction of Eurovision Song Contest http://mewo2.com/nerdery/2013/05/12/eurovision-2013-first-predictions/ it based on some kind of Bayesian model I assume but I don't understand how it works (the description is too sketchy for me).
Along the lines it says that it uses Markov Chain Mont... |
I've been trying to fit a SEM model, using misconceptions and the correct conception as latent variables.
My instrument is a set of items that ask a binary yes or no question. (Is something in a particular category?) The correct conception would have all items that would be correct if yes was chosen loaded onto it and ... |
I conducted a PCA on dichotomous variables (0's and 1's). The dataset consists of human subjects and a few thousand genetic variants, where the presence of a genetic variant is indicated with 0's and 1's.
My first PC correlates >.9 with the nr of 1's in a subject.
Is this expected?
Could this be an consequence of the ... |
I am doing some forecasting in R using Rob Hyndman's forecast package. The paper belonging to the package can be found here.
In the paper, after explaining the automatic forecasting algorithms, the authors implement the algorithms on the same data set. However, after estimating both an exponential smoothing and ARIMA m... |
I am in doubt whether in my thesis I should report on the subject specific predictions of the probability to respond with an 'I don't know' answer, or the population average. Consider for example the following graphs (I have not gotten them smaller yet):
They both have the same conclusion that the probability doubles... |
While reading some articles about High frequency statistics in financial markets, more precisely wile reading about microstructure noise, I was confronted by some signature plots simulated graphics.
It seems me to be a basic concept in statistics or, at least, just a well known term. However for a lack of culture on g... |
I've seen the concept of regret apply mostly to online learning problems, but while going through the definition it does seem that is not bounded to this setting.
I'm trying to come with a simple example to explain this concept in terms of simple linear models.
The Wikipedia page does try to do it, but is incomplete at... |
I am trying to fit an ARMA(p,q) model to the mean equation of my return series. The problem is, that the acf and pacf are pretty not usable, i.e. it is hard to find a good model to take account of the acf and pacf pattern. I am aware of the alternative of using no model at all for the mean equation.
Nevertheless I have... |
I'm doing linear regressions where the dependent variable is a ratio that can range from 0.01 to 100.
Is it ok to take the log of the dependent variable and the regression on that?
I'm matching the results of a study and that is what they did.
What is the difference of taking the log versus using the ratio as-is?
|
I'm reading Florens et al.'s 'Elements of Bayesian Statistics', currently working through chapter 1, 'Reduction of Bayesian Experiments'. I find most of it clear, except the definition of regular conditional experiments (p. 51) and everything that relies on this definition. I'll appreciate help in deciphering it. I ass... |
Wikipedia says
effect size is a measure of the strength of a phenomenon or a sample-based estimate of that quantity. An effect size calculated from data is a descriptive statistic that conveys the estimated magnitude of a relationship without making any statement about whether the apparent relationship in the data r... |
I want to obtain the full distribution of a Gamma (or Inverse Gaussian) distributed $y_i$ given a vector of $\bar x_i$ that have been used in the linear predictor of a coefficient. Suppose also for the Gamma GLM I have used the log-link instead of the canonical link.
Since both distributions are bi-parametric I know I ... |
I have two painkillers and I have given them to two groups and recorded how the pain level changed in three categories: "Helped a lot", "Slightly better", "Did not help"
Now I want to do a t-test and I was planning to convert each label to a number (say 3,2,1) and run a t-test on those numbers to see if any of the pai... |
how can one handle a time series with the Chow's test (in order to find a structural break) so that the assumption of independent model errors holds? I'm using the R function chow.test {gap}
|
I have collected spatial data (GPS points and foraging heights) for a bunch of territorial animals. Until recently, these types of data were only analyzed in two dimensions (2D). However, 3D analysis is now available and I'm working on a paper that compares 2D and 3D estimates of spatial overlap. I define spatial overl... |
I'm trying to fit a causal model. Participants in a task are trained on the model then asked for their belief in all the joints over the variables (e.g., what are the chances of observing an item with cause_1 and effect present and cause_2 absent?)
I want to infer people's beliefs in the strengths of two causes, as wel... |
I just want to preface this with the fact it is not a home work question. I am also not a stats person so I am not sure even how to start with calculating this, what it is called or where to look. When I google I get not much that looks like it helps.
So my problem, assume you have a 30 team league. Any game between... |
Suppose there is a sample of varying size $n\in \mathbb N$, each sample point taking values in $\mathbb R$, and a statistic $T$. If I am correct, a statistic can accept arbitrary sample size. What are some standard ways to represent/write the statistic $T$ with varying sample size $n$? For example,
We may write the s... |
I’ve simulated some data consisting of one response variable (‘y’) and two collinear predictor variables (‘Amount’ and ‘MPS’), where collinearity arises from one of two causes: (1) Amount causes MPS, or (2) Amount and MPS are jointly affected by an unmeasured variable.
What I'm trying to do is figure out whether path ... |
Which variety of Linux is best suited to work with R, SAS, SQL, Matlab?
Is it Scientific Linux?
|
I just ran a non metric multidimensional scaling model (nmds) which compared multiple locations based on benthic invertebrate species composition. After running the analysis, I used the vector fitting technique to see how the resulting ordination would relate to some environmental variables.
My first question is: I got... |
Here is my problem: I am developing an embedded system for some classification task. I am using Logistic Regression as my classifier. Now I train my classifier, and download my model on to my machine. Now this is not everything I want to do. I now want to let my model adjust its classification boundary on runtime, onli... |
I'm currently going through "Bayesian Reasoning and Machine Learning" by David Barber and it is an extremely well written and engaging book for learning the fundamentals. So a question to someone who has already done this. What are the next set of books I should go through after I have reasonable proficiency with most ... |
I'm a new user on R. I'm stuck on my times series research currently with the some questions. Not sure anyone can help me.
Dummy variable.
I wanted to add more than 1 dummy variable in the model. But, I realized that the results unchanged after I put additional dummy variables. I have no idea why this happens. I prov... |
I have run a series of mixed linear regressions in Stata, some with inverse-square-root ($1/\sqrt{x}$) transformations and others with square root ($\sqrt{x}$) transformations.
How do I calculate untransformed confidence intervals from the transformed results??
|
I am just a novice in factor analysis.
I am writing some presentation about factor analysis and I am mainly reading about exploratory factor analysis.
Both EFA and CFA have diagrams. For EFA usually factor loadings are seen on the arrows. However, for CFA usually there are some "1" on some arrows, but not all. As I am... |
I have various datasets I need to analyse regarding soil properties, all in the same fashion, with one fixed effect (which is a position along a transect, indicating different land uses). Now my main level of replication is across different transects, which will obviously have some form of random variance associated wi... |
I have administered a questionnaire to respondents asking about customers' adoption of technology. I want to do an exploratory principal components factor analysis in Stata to form constructs from a couple of questions (in line with the existing literature).
The variables that I want to construct are perceived usefuln... |
I've been looking for an introductory book in statistics and experiment design for a methods course for psychology students. I think I've been looking through at least 30 books and all go through the same old motions. Fist hypothesis testing, then t-test, Anova, two-Way Anova and ordinary least square regression. And a... |
as stated in the title I am looking for alternative ways to fit my data to a straight line. My current approach is a least Chi-Square Fitting, but the predicted relative errors for the slope exceed 100%.
In my view there are to reasons for that:
a) I only have five data points to fit.
b) These five data points have ver... |
Calculating the acf and pacf of an AR process with zero mean is straightforward, but does anyone knows how to proceed when the mean is not zero? Of course my intention is to calculate the theoretical acf and pacf, and not the numerical values.
Some course books that I have do not help at all, as all of them assume the... |
i have a question concerning the output from {car} Anova. I want to run a simple 2x2 repeated measures ANOVA using the multivariate approach. I can run the (modified) example from the Anova {car} help page:
phase <- factor(rep(c("pretest", "posttest", "followup"), c(5, 5, 5)),
levels=c("pretest", "postt... |
In relation to perceptions of teachers, I want to measure:
perception of helpfulness
required level of helpfulness for the respondent to be satisfied, and
how important helpfulness is (as an aspect for a teacher to have judged by the same respondent.)
I have chosen to use a Likert-type scale for all three questions... |
My question has to do with the relationship between alpha and beta and their definitions in statistics.
alpha = type I error rate = significance level under consideration that the NULL hypothesis is correct
Beta = type II error rate
If alpha is lowered (specificity increases as alpha = 1- specificity), beta increases (... |
If a sample is likely to be self-selected on multiple selection criteria, does it make sense to include Inverse Mill's ratios for multiple selection models in the same second stage OLS model?
|
I want to compare mean inhibitory concentration (continous variable) in patients with outcome A versus outcome B. I used Mann-Whitney U test. However I would like to control those results for the parasite density, which is also a continous variable. Van Elteren test only allows to correct for strata. Is there any simil... |
This is a question about exercises 4.2 and 4.3 of Jim Albert’s “Bayesian Computation With R” (p. 82). Note that while this might be homework, in my case it is not.
We are to prove that, given two independent normal distributions N(µ₁,σ²₁), N(µ₂,σ²₂) and the prior g(µ₁,σ²₁,µ₂,σ²₂)∝1/(σ²₁σ²₂) the resulting posterior dist... |
I have a some historical sales data for various product SKUs, including category information ("department" "category", "subcategory"). I want to use this to generate sales curve (a baseline forecast for future demand), no doubt using an appropriate exponential smoothing algorithm.
The trouble is that the data for a par... |
I ran PCA on 25 variables and selected the top 7 PCs using prcomp.
prc <- prcomp(pollutions, center=T, scale=T, retx=T)
I have then done varimax rotation on those components.
varimax7 <- varimax(prc$rotation[,1:7])
And now I wish to varimax rotate the PCA-rotated data (as it is not part of the varimax object - only ... |
I've recently read a blogpost where someone tries to predict the outcome of eurovision.
Quoting from the summary of the site:
Essentially, we can look at people’s voting preferences in the
Eurovision Song Contest as composed of two components: song quality,
and a “friendship” score, which takes into account how mu... |
I've the following simplified data as shown.
PATIENT B1 B2 B3 B4
A1 0.19 0.18 0.12 0.85
A2 2.8 0.24 0.06 0.11
A3 0.03 0.24 0.24 0.07
A4 0.65 1.6 0.08 0.31
F1 0.17 0.07 3.86 2.41
F2 0.11 1.74 0.51 0.34
F3 0.11 2.28 0.57 4.06
F4 0.23 0.68 2.51 0... |
i get that you have to find the roots of the characteristic polynomial but can someone explain the intuition behind the roots must be outside the unit circle? what is a unit circle?
before anyone downvotes me saying theres another similar discussion, i have read it and i dont understand what it means for roots to lie ... |
I am trying to perform a power calculation using G*Power. I need $\eta_P^2$, but the ez package for R gives me $\eta_G^2$. I understand the reasons for it doing this, but I still need $\eta_P^2$ for a power calculation for a replication. Is there a way that I can calculate $\eta_P^2$ from the ezANOVA output, or convert... |
I started doing a quantitative research for my thesis without any previous SPSS or proper statistic experience, and the first thing my professor told us in the spss workshop is that you start by measuring reliability of your data by testing for the Cronbach's alpha coefficient.
But when I started reading about it on m... |
I am working with several hundred 3d point clouds generated using a 3d scanner and would like to be able to compare their shapes using something like a procrustes analysis. Instead of manually defining individual landmarks to compare however, I was hoping to compare the entire point cloud of each scan to all of the oth... |
I have correlated data points and they are fitted with a trend line. I wanted to know how far these points lie away from an arbitrary 1:1 line (45 degree line with data of equal magnitude). Is there any test to find how significant it is away from this 1:1 line?
Thank you
|
I have subdivided the globe into 100 sq mile bins and then collected how many tweets were sent with a geolocation within each bin. At first I color coded each bin on the map based off a standardized value of (tweetInBin)/(maxTweetInAnyBin). This produced only one "hot spot" with all the other places being almost unifor... |
I'm trying to perform a power calculation with G*Power.
There are two quite important options, the meaning of which is not clear to me:
"Number of groups" - what is this? I have a 2x2 repeated measures factorial design. Does this mean there are four groups, or, as the rest of the internet suggests, is this box for betw... |
I'm trying to estimate a bunch of bimodal distributions, i.e. two means and two standard deviations, based on a variable number of inputs. If no input is present, a constant value should be returned. From my anecdotal knowledge of what Bayes is about, this should be exactly it, no? Adapt a prior based on incoming evide... |
I have been confused by two separate questions (Stock & Watson - introduction to econometrics ch.3), using different values for standard errors.
The first: In a survey of 400 voters, 215 respond to vote for the incumbent, 185 for the challenger. Let p denote the fraction of all likely voters who preferred the incumbent... |
I am trying to create a method to rank ships according to their fuel burn rates. There are two different classes of ships, with different burn rates, so I am trying to create a mean and standard deviation for each class, then rank the ships according to how many standard deviations they are below the mean of their cla... |
Lasso-like methods have become pretty common in applied statistics but the Dantzig selector remains unpopular despite having great properties (minimax optimality). Why hasn't it become more popular?
|
I am currently designing an experiment to evaluate 4 iterations of a system. As it is rather difficult for a human to judge the output of the system by assigning it a score or several scores, I plan on giving the following task:
Give the human evaluator the outputs of two systems on the same input and ask him to decide... |
I have a large public dataset describing traffic crashes. I am interested in events occurring in a certain type of street intersection only. The dataset has a lot of missing values, and I plan to use multiple imputation (I'm using SAS).
My plan has been to use the full dataset to do the MI, then select the cases I want... |
I'm a med student, conducting a retrospective analysis of weight/growth disturbances during chemo treatment.
I wonder, if I should:
assume, that growth is a variable normally distributed across the population
test for (or visually assess) the normality once (when?)
test for (or visually assess) normality separately, f... |
I am using sample algae data to understand data mining a bit more. I have used the following commands:
data(algae)
algae <- algae[-manyNAs(algae),]
clean.algae <-knnImputation(algae, k = 10)
lm.a1 <- lm(a1 ~ ., data = clean.algae[, 1:12])
summary(lm.a1)
Subsequently I received the results below. However I can not find... |
I have a multiple regression using SPSS. The significance of my model in the ANOVA table is p=0.174 which is >0.05. what does this mean for my model? Can I still use it and proceed in the interpretation of the results or not?
|
According to experimental result, one approach (Semantic Similarity based custom classifier) has 10% better accuracy over the other (Naive Bayes classifier) in a single domain. I would like to couple this accuracy result with the statistical significance (p-value).
The purpose of this statistical significance testing ... |
I'm working with some modeled future stream flow data that was created in two steps. First, future precipitation predictions (at certain points in a watershed) were created by running historical precipitation data through four precipitation models. The output from those models (four runs per precipitation model) were... |
From a note
A Priori Power Analysis. This is an important part of planning research. You determine how many cases you will need to have a good chance of detecting an effect of a specified size with the desired amount of power. See my document Estimating the Sample Size Necessary to Have Enough Power for required nu... |
I am doing an NMDS ordination. The data come from a number of sites scattered around two lakes. In the plots, I coloured the samples from the two lakes blue and green. There seems to be some pretty decent separation between the lakes in the NMDS ordination plot. However, when I use lakes as a factor variable with envfi... |
I have a query regarding part (a) of the following question. I cannot figure out how to calculate the conditional expected value of collections for the month of Easter. Is it not possible to calculate the expected value for (a) with the given information, as no dataset is given with the question, is it possible to calc... |
Suppose in time series you have the data in a recent period and you would like to use that data to extrapolate backward to get estimates of the time series back in time. What do you call that? ? Extrapolating forward is forecast, so hindcast?
|
In my model, there are 3 players, whose income is function of two arbitrary parameters. Say, P(1) = F(a,b) where 0<a<1 , 0<b<1 and P(1) is income of player 1. Similarly for other two players we have, P(2)=G(a,b) and P(3)=H(a,b). Functions F(), G() and H() are known. I have 2 questions.
Which is the best index to measu... |
I noted that regression task in machine learning is somehow related to solving differential equations approximately - both are trying to approximate unknown function.
Then, my question is: Can ML be somehow helpful in solving differential equations?
|
Context: I am faced with what I believe is a non-trivial modelling problem that I have been assigned as part of my post-doc. My expertise is in the area of graph / network theory so I have found myself struggling with all the available modelling options and language.
The problem is as follows: In an observational datas... |
Is there a way to test the equality of quantile regression coefficients in one go using Stata? For example can I do the comparison of the coefficients of the 10th, 25th, 50th, 75th and the 90th quantiles using one single command in Stata?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.