instruction stringlengths 9 38.7k |
|---|
We define a state i to be recurrent if $\sum\limits_{n=0}^\infty P(X_n=i,X_k \neq i$ for $1\leq k < n | X_0=i)$=1.
Why do we take infinite series over the probability? Why don't we define recurrent just as:
$P(X_n=i,X_k \neq i$ for $1\leq k < n | X_0=i)$=1
Doesn't this already mean, that if we start in s, we will with ... |
I have two variables of interest:
Residential Vacancies (res_vac)
Commercial Vacancies (com_vac)
I also have two variables with which I might normalize the above:
Total Residences (res_tot)
Total Businesses (bus_tot)
Commercial Vacancies
I get the general theory of how to normalize data, but the dichotomous split i... |
I was wondering whether the Nelson-Aalen estimator can be applied to discrete-time multi-state data (in months). I ask this because it seems that literature tends to present it only in the continuous-time framework (in particular within the so called "counting processes" approach).
Since in discrete time data are incom... |
How to compute the global precision given the precision calculated for each class? Is it just the average over classes precisions? When I use Weka the global precision is not computed as the average one, but as a "weighted average" and I don't know how this later is computed (weighted by what?). See the example bellow ... |
I have a small population and it is possible to estimate Population regression function from the data. The size of the population is very small. It is only eight. I think since the regression relates to poulation, there is no need to conduct any testing. Am I correct?
|
I am attempting to carry out a discrete time survival analysis using a logistic regression model, and I'm not sure I completely understand the process. I would greatly appreciate assistance with a few basic questions.
Here is the set up:
I'm looking at membership in a group within a five year time window. Each member... |
I am curious to learn whether there are any best practises in creating random variables for a Monte Carlo simulation using input such as skewness and kurtosis information of a particular distribution. Of course those need to be used in addition to the average and standard deviation.
My objective is to create a number ... |
If the odds ratio is greater than one with an insignificant p value for a variable in logistic regression should the variable be kept in the model?
Can I select the variable with odds close to 1?
Question 2: In the validation and testing dataset do not have same mean how to handle it?
|
I´m still new to statistical modeling and quite confused about how I should correctly specify my model.
I have 3 crossed categorical treatments - stress, infection and food. Each individual was measured at 4 time points (just before the experiment and 3x during the experiment).
As there are only 4 time points and I hav... |
I'm quite weak in math so I hope you don't mind that I'll try to fully describe how I think when solving this (I think easy) problem. Please tell me if I made some totally invalid assumptions.
I have some data - a slope of a linear regression curve of a price of a particular commodity in stock exchange.
This is the dat... |
As I was working my way through my book about statistics, I came across the topic of linear regression. During the chapter the author begins with explaining that you want to minimize the residuals in order to make your y = a + bx as good a fit as possible: I do understand this, but halfway the chapter all of a sudden t... |
I am teaching a course on basics statistics, and we are doing the t-test for two independent samples with unequal variances (Welch test). In the examples I have seen, the adjusted degrees of freedom used by the Welch test are always less than or equal to $n_1+n_2-2$.
Is this always the case? Does the Welch test alway... |
I have an assignment to forecast snow depth at a certain location at a specific date. My approach to forecast this is to basically take previous years snowfall data and compare it to this years data so far. I need to figure out which snowfall pattern over the last 50 years is most correlated with this years pattern ... |
My data look like this
trait nobs.ctrls nobs.cases
A 0 0
B 8 1
C 24 0
D 116 0
E 41 2
F 6 11
I have a lot more controls (ctrls) than cases (1000 vs. 50). The numbers mean that, for example, trait C is ... |
I'm currently doing analysis on a website which requires that I create a decision tree diagram showing the likely route that people take whenever they arrive on the website. I am dealing with a data.frame which shows the paths of all customers to the site, starting from the homepage.
For example, a customer could take ... |
I am looking for a Least Angle Regression (LAR) packages in R or MATLAB which can be used for classification problems.
The only package that I currently know which fits this description is glmpath. The issue with this package is that it is a little old and somewhat limited in its scope (I am forced to rely on logistic ... |
So, I ran an EFA on 60 items. Analysis resulted in 19 components with an eigenvalue of a score greater than 1. The only factors that theoretically make sense and that include more then 3 items have eigenvalues greater than 3 - can I use these first three components in my analysis or do I have to rerun the analysis?
|
I am trying to generate values in a table for the following function:
$$
W = \int_0^1 [B(t)]^2 dt
$$
Where $B(t)$ is a standard Brownian motion.
Example: $W_{0.05} = 1.656$, $W_{0.025} = 2.135$.
This is taken from a table C.6 in 'Survival Analysis' by Klein & Moeschberger. (They don't give a reference as to how values... |
Let $X_n=\sum\limits_{k=1}^n Y_k = X_{n-1} + Y_n$ and $X_0=0$, $(Y_n)$ i.i.d with
$P(Y_n=1)=p=1-P(Y_n=-1)=1-q, p \in (0,1)$, $(X_n)$ is a random walk on $\mathbb{Z}$.
Why is this Markov chain irreducible? How do we know that all states (integers) communicate with each other? How do we show this intuitively?
|
A theorem states the following:
Theorem
if $i \in S$ is a state which is recurrent, then every state in the equivalence class of $i$ $(\ K(i) \ )$ is recurrent.
Additional information on the notation:
$S$ is the space of the states of a markov chain $X_n$ with stochastic matrix (transition matrix) $P=(p_{ij})$. For $i,... |
I'm learning bayesian linear regression from the book Bayesian Data Analysis. Here is my questions.
Notation (follow the book): $X$ stands for explanatory variables, with parameter $\psi$; $\bf{y}$ for responsible variables, conditional on $X$ and regression parameter $\theta$.
Why do we need linear regression? It see... |
Is quantile normalization adequate for normalizing
data with very few samples?
For example this microarray data. Typically after normalization
we'd like to compare Cancer-1 with Normal and Cancer-2 with Normal
for differential expression.
mRNA Cancer-Type-1 Cancer-Type-2 Normal
------------------------... |
Background:
I had a data set containing 212 observations with a lots of missing values. Most of the IVs and DVs are categorical (DVs are ordinal) in nature. There are 3 DVs and about 30 IVs. My intention was to run an ordinal logistic regression. A list-wise deletion keeps only 42 observations, so I decided to use hot ... |
I have read in the abstract of this paper that:
"The maximum likelihood (ML) procedure of Hartley aud Rao is modified by adapting a transformation from Patterson and Thompson which partitions the likelihood render normality into two parts, one being free of the fixed effects. Maximizing this part yields what are calle... |
I was reading about parameter estimation techniques such as Maximum Likelihood Estimation(MLE) and Expectation Maximization(EM). I tried to derive the Maximum Likelihood Estimation formula for Markov Chain and I failed miserably. I, then, found a reference that helped me to see the big picture.
What book/reference you... |
I have conducted a survey using 5-Point Likert scale (Strong Agree; Agree etc.) in which a panel of experts indicated their Agreement with suggested statements.
There are three sub-Groups within the expert panel
I am interested in evaluating the significance of Agreement for each of the different groups.
My challenge ... |
I am trying to determine the rate of cannibalization of product sales
for A with product B. I am using ~ 2 years of daily sales data
for product A and then ~8 months of data for product B. That is, product B
launched 8 month ago. I am using the longer series for A to capture
trend effects in the business (natural or in... |
Simplified version of my model:
glm(cbind(young, adults) ~ as.factor(month) + effort, family = "binomial")
i.e., I study proportion of young as a dependent variable on month (or season), taking into account observer effort. However, the observer effort is dependent on the month:
How to solve this problem? I want to t... |
Given a Bernoulli distribution with a success probability of p = 0.02. Let's say we have N=3000 samples. How can I compute a confidence intervals for the expected number of successes (e.g., with 5% significance level)?
|
I want to combine studies in a meta-analysis however I dont have raw data available to calculate original OR (95% CIs) from start. So I wonder if there is any way to create a forrest plot using this data only.
|
I'm working on a regression problem involving multiple independent learning tasks. I'm using conditional random forest as the learner (see Hothorn et al. 2006) as they are quite robust. The problem I'm having is saving the models. Multiple learning tasks means many big models.
How can I save a subset of each model with... |
I am trying to investigate how four variables (var1=continuous, var2=factor, var3=factor, var4=continuous) influence the number of trials individuals approached (out of total nr of trials --> binomial) across two conditions that differed in food availability (food availability 1 = 42 trials; food availability 8 = 35 tr... |
My understanding is that in a randomised trial, one aim of randomisation is to reduce the chance of baseline imbalances (i.e. possible confounding factors) between groups.
Obviously known confounders, such as age, sex or any other difference of which we are aware can be dealt with before randomisation with methods to e... |
I am trying to fit a growth mixture model to a set of trajectory data. I am using a model that on a generic level is the same as this one.
I do understand how the latent intercept, linear, and quadratic variables are determined. However, I do not understand how the latent class variable is determined. Do I have to assi... |
I have a data set where we have collected fish for behavioural experiments from different areas and within each area we have selected a clear water site and a eutrophied site. We then brought the fish to lab - all fish were used only once, they built a nest and that was it. What we wanted to know was if habitat type (c... |
What is the exact formula used in R lm() for the Adjusted R-squared? How can I interpret it?
Adjusted r-squared formulas
There seem to exist several formulas to calculate Adjusted R-squared.
Wherry’s formula: $1-(1-R^2)\frac{(n-1)}{(n-v)}$
McNemar’s formula: $1-(1-R^2)\frac{(n-1)}{(n-v-1)}$
Lord’s formula: $1-(1-R^2)... |
I'm working on implementing a multi-armed-bandit-like approach for determining the best price to offer for a product. Our goal is to optimize profit, meaning, we want to find the price where (price-cost) x number of purchases is greatest. The problem is that there is a known pattern of seasonality within the week. So, ... |
I am doing a research work which needs a probability calculation. I'll be grateful if the community cross validates the formula that I have derived using the idea of binary strings and following a great answer by whuber to this question. But I really apologize to you for such a long thread!
In my design, I am planning ... |
What are exactly the prerequisites, that need to be fulfilled for AIC model comparison to work?
I just came around this question when I did comparison like this:
> uu0 = lm(log(usili) ~ rok)
> uu1 = lm(usili ~ rok)
> AIC(uu0)
[1] 3192.14
> AIC(uu1)
[1] 14277.29
This way I justified the log transformation of variable u... |
I have breast cancer trial data where, for subgroups 1 and 2, two treatment arms are being compared. The results are:
For subgroup 1, N=33, median survival in trt1=10mo, median survival in trt2=5.7mo, p-value for difference=0.18.
For subgroup 2, N=16, median survival in trt1=10mo, median survival in trt2=5.5mo, p-v... |
I'm new to mixed modelling and I'm confused as to whether its appropriate to use a random effect in an analysis I'm doing. Any advice would be appreciated.
My study is testing how well a newly developed index of mammal abundance can predict the value of an established but more labour intensive index. I've been measurin... |
What is the proper way to measure significance in an A/B test, when a visitor can potentially "convert" more than once?
I understand a chi-square test or z-test are most often used for A/B testing, but from what I understand that is only if it is categorical, like if a visitor purchased or not.
In my case, customers ca... |
Let us assume that we have a random number generator given by its probability density function. Now, we need to use this distribution to generate a number that has the following property. It minimises the root mean square deviation between itself and random numbers generated by the considered distribution.
My question ... |
For my time-series regression, I am regressing the difference in variable x on a difference in variable y. Before proceeding, I want to check for stationarity of my variables. Regressing d.x (difference in x) over L.d.x (lag of the difference in x), I get a coefficient of $-0.9995261$ and a 95% interval: $[-1.000654, -... |
I have 4 sets of 50 year data (one value per year for each of the 4 different categories)- and would like to test for differences in the slopes of the lines. I think ANCOVA is appropriate- though maybe not as these are time series data? And ...how to do post hoc pairwise comparisons?
The data are estimates of parasi... |
Possible Duplicate:
Under what conditions does correlation imply causation?
Can somebody illustrate how there can be dependence and zero covariance?
Or could there still be a relationship? Is it possible that the math just works out this way given the way OLS works but there is some relationship? Perhaps a nonlinear... |
I get enormous coefficients during logistic regression, see coefficients with krajULKV:
> summary(m5)
Call:
glm(formula = cbind(ml, ad) ~ rok + obdobi + kraj + resid_usili2 +
rok:obdobi + rok:kraj + obdobi:kraj + kraj:resid_usili2 +
rok:obdobi:kraj, family = "quasibinomial")
Deviance Residuals:
Min ... |
If I am looking at sports data of a whole league over a year:
Dependent Variable = Goals Scored
Independent Variables:
X1 = Traditional Home Uniforms
X2 = Retro Home Uniforms
X3 = Secondary Home Uniforms
Controls:
A whole bunch
My objective is to see what the effect of different uniforms are on the number of goals ... |
If I am looking at sports data of dozens of soccer leagues over a year:
Dependent Variable = Goals Scored
Independent Variables:
X1 = Traditional Home Uniforms
X2 = Retro Home Uniforms
X3 = Secondary Home Uniforms
Controls:
A whole bunch
Most importantly--Every team has a rank (1-50) from the previous year
When I ... |
I am analyzing data from different dichotomous variables. When analyzing association between these variables, what is the most recommended method?
|
How to sample from a multivariate normal given the $P^TLDL^TP$ decomposition of $\Sigma$, and $\mu$?
Here, $P$ is a permutation matrix, $L$ is lower-triangular, and $D$ is diagonal
Given the Cholesky decomposition $LL^T$ of $\Sigma$, and $\mu$, we can sample by doing:
$sample = \mu + L * z$
... where $z$ is a vector of... |
My question might be easy for most of you to answer. I am starting to learn statistics and coding in R so my questions are on the basic level.
I have a dataset of (two groups, replicates). My data is split based on the groups so I have 24 samples in group 1 and 20 samples in group 2. My data has replicates. So each set... |
I've been working with spatial autocorrelation for a while and now I'm trying to move from more traditional estimators such as Moran's I or Geary's C to the new APLE estimator. I read Li's papers on APLE and also the reference on R-project. But I am still missing something very basic, as I still didn't understand somet... |
I have a lot of data (gigs) that may be useful in predicting equity prices. I can import these as a series of features (columns) in a table where the companies are rows. I have time series information too.
I have some machine learning experience but no experience as a trader.
Is there some software or platform where I ... |
I have a logit model and am trying to understand and compare the predicted and observed values generated by the model. Let's say data set had 100 values and I generate all the predicted probabilities, and then I find the actual probabilities from the data set.
If I'm comparing the predicted vs observed values, I'm thin... |
Could anyone suggest the best method to predict the time gap between two events?
For example, given that diabetics are at higher risk of developing hypertension, I would like to predict the time gap until patients develop hypertension after being diagnosed with diabetes.
I will have both time dependent and independent... |
I read that the k-means algorithm only converges to a local minimum and not to a global minimum. Why is this? I can logically think of how initialization could affect the final clustering and there is a possibility of sub-optimum clustering, but I did not find anything that will mathematically prove that.
Also, why is ... |
I am unclear about how to interpret the value of the Standard Error of the Mean (SEM) directly. For example, when a mean is reported as 5.00 + 0.50SEM, how do you directly relate the 0.50 to 5.00?
To quickly run through the basic theory concerning the standard error:
The standard deviation (SD) is a measure of disper... |
I have a time series $x_t$. If I use the transformation $u_t = log(x_t) - log(x_{t-1})$, my new time series $u_t$ has properties of white noise (random). I wonder whether there is any practical interpretation for $u_t$?
Thanks for your help.
|
Does anyone know where can I find a pseudo code or Matlab Code for CHMMs please?
I am using categorical observations.
Thanks.
|
Suppose I have a $d \times n$ matrix $\mathbf X$ (each entry point has $d$ dimensions) and after some manipulation of data (i.e. summarizing the data $\mathbf X$) I get its $d \times d$ symmetric, quadratic correlation matrix $\rho$ (defined by Pearson).
Then by SVD definition we know that matrix $\mathbf X$ can be dec... |
My logistic model has been suspicious due to enormous coefficients, so I tried to do a crossvalidation, and also do a crossvalidation of simplified model, to confirm the fact that the original model is overspecified, as James suggested. However, I don't know how to interpret the result (this is the model from the linke... |
I want to develop an implementation of the grammar of graphics in python, and I need to wrap my head around a few things. I am actually having some difficulties in understanding some of the book's broadest concepts.
For what I understand, a correct implementation of the grammar means that a graphic is defined with its ... |
I am using a formula to calculate the utility, which is as follows:
v_{ij} = 1 - x*beta + delta_i + e_{ij}
delta_i ~ N(0,phi^2)
e_ij ~ N(0,sigma^2)
v_{ij} is the utility of state ij, x is the vector of dummy variables, beta is the vector of regression coefficients, delta is the i-th random error and e_{ij} is the usu... |
A telephone salesman calls 3 people in a month and sells a product with probability 30%. In each call he sells either 0 or 1 products. He calls three people this month. If he manages to sell the product in his first or second call he gets 100 euro per successful call and 200 if he sells a product in his last call. Let ... |
I need to automate the transformation on some linear regression models. There is only one predictor in this case. Sometimes i get a good model with the original variables, sometimes i need to log the predictor, and in some cases log both sides.
I'm using R, so what kind of tests/packages can i use to automate this? I'm... |
Suppose we are working with an $AR(p)$ model. We assume that $E( \epsilon^2 ) < \infty$.
We know that an $AR(P)$ model is invertible $\text{iff } \phi(z) \neq 0$ for $|z| \le 1$.
But why do we have to make this assumption? Why can we not have a zero inside the unit circle, but outside the unit circle it's fine?
|
In the Berry-Essen theorem, why is the standard normal distribution used in the context of the closedness of two distributions? Why can't we use the general normal distribution where will things will go wrong?
|
Suppose that we have digitized document images; we pass this documents through OCR and we get text text documents, that we classify according to their topics in different classes such as payroll, various bills, information letters ...
Is this classification useful for in application for information extraction ? How ? E... |
Apparently,
the Fisher analysis aims at simultaneously maximising the
between-class separation, while minimising the within-class
dispersion. A useful measure of the discrimination power of a variable
is hence given by the diagonal quantity: $B_{ii}/W_{ii}$.
http://root.cern.ch/root/htmldoc/TMVA__MethodFisher.h... |
I am conducting a correlational study to determine if there is a relationship between servant leadership characteristics in building principals and levels of teacher self-efficacy as measures by the Teacher's Sense of Efficacy Scale. I thought about regression analysis, but am not sure if I should use ANOVA or Pearson... |
I am interested in utilizing Maximum Difference Scaling (Max Diff) for a survey, but apart from the Sawtooth software, I was not able to find a good answer on how to best analyze Max Diff.
What is the best way to represent the result in my dataset, and which steps are used to analyze the data? I would prefer to use R o... |
I am running a generalized linear model on a dataset with 19 individuals and have 4 variables of interest. There are furthermore a number of interactions that might be interesting to look at. I was wondering if there is a general rule of thumb (with reference please) about the nr of terms you can use in a model based o... |
if I have A and B with the following known variables:
with $E[A]$, $E[B]$ , $\sigma_{A}$ , $\sigma_B$
and correlation coefficient: $\rho_{AB}$ (assign numbers if you like)
Say: $C=0.6A+0.4B$
Then how can I find $\rho_{AC}$?
I know how to find: $E[C]$ ,$Var[C]$, but not how to find $\rho_{AC}$...
I hope someone can hel... |
Say you have two time series, A & B. Each have a mutual effect on the other. To give a real-world example, say that time series A measures an artist's CD sales per month, and time series B is some measure of the artist's "Q" rating. Clearly, increase in A will drive an increase in B, but at the same time, an increase i... |
I have a large (N) list of results from a process that is either positive or negative. After examining X of them and receiving only positive results, how certain can I be that the list only contains positive results (with probability P)?
Context: I'm processing the results (between several thousand and several billion... |
I am very confused about why different volatility estimators (RV, RAV, BPV, etc) exist. If the goal is to find the best estimator for stock volatility, and volatility is latent, how do I know which estimator performs the best when the mathematical definition for these estimators are all different?
Realized variance = s... |
I want to train CHMM using Matlab and I am new to use this software. I am using BNET CHMM which is this:
function bnet = mk_chmm(N, Q, Y, discrete_obs, coupled, CPD)
% MK_CHMM Make a coupled Hidden Markov Model
%
% There are N hidden nodes, each connected to itself and its two nearest neighbors in the next
% slice (apa... |
Nate Silver in his excellent "The Noise and the Signal" warned that we are much in awe of Big Data. But, that Big Data predictions in many fields have been disastrous (financial markets and economics just to name a few fields). With more data, you get more spurious correlations, more false positives, and erroneous an... |
In archaeology, artefacts are commonly classified in categories according to certain criteria (those may include manufacturing technique, decoration, function, chronology, etc).
I am trying to estimate the probability that objects of a certain category $C$ are absent from the site, even after group $G$ has been collect... |
For count data that I have collected, I use Poisson regression to build models. I do this using the glm function in R, where I use family = "poisson". To evaluate possible models (I have several predictors) I use the AIC. So far so good. Now I want to perform cross-validation. I already succeeded in doing this using th... |
I have a sample of 300 companies classified according to different economic activities. For example, computer parts comprises 20% of the sample, medical services 5%, wood processing 15%, etc.
In terms of data analysis, what is the best approach to follow? If conducting a general analysis, results will be biased due th... |
In Davidson & McKinnon - Estimation and Inference I read that in a competitive market which is always in equilibrium we observe:
$Q^d_t = Q^s_t = Q_t$
where $Q^d_t$ is the quantitiy of demand, $Q^s_t$ the quantitiy supplied.
If one would estimate the equation (1) by OLS in a model given by
(1) $Q_t^d = \alpha P_t + Z^d... |
There is an example on the computation of Gower's similarity coefficient on the page,
Gower's similarity coefficient
I am trying to work out the similarity manually between patient 1 and 2, however my computation is giving me completely different results. Here is the formula I use, in the order of the variables and the... |
When working with many input variables, we are often concerned about multicollinearity. There are a number of measures of multicollinearity that are used to detect, think about, and / or communicate multicollinearity. Some common recommendations are:
The multiple $R^2_j$ for a particular variable
The tolerance, $1-... |
The response variable in my ordered logit model has 5 categories ranging from '1 = strongly disagree' to '5 = strongly agree'. However, only 0.3% of observations fall into category 1 (4 observations out of 1,320). This has created some problems, such as the inability to test the assumption of parallel lines (Brant test... |
I have the Markov chain presented in the image. It hast 4 states S=(1,2,3,4). The transitional probabilities are all $\frac{1}{2}$ and the direction from one state to another is given by the arrows.
Is there an error with the original problem? We have 3 arrows from state 2, so $p_{24}=1$, but $p_{21}=\frac{1}{2}$. Can... |
I have a fairly simple question about (multivariate) Kernel Density Estimators, but I somehow don't seem to find the answer anywhere: are these estimators supposed to specify a proper probability density function (integrating to 1.0)?
I am currently implementing a small software package including kernel density estimat... |
Let's say I have a model selection problem and I am trying to use AIC or BIC to evaluate the models. This is straightforward for models that have some number $k$ of real-valued parameters.
However, what if one of our models (for example, the Mallows model) has a permutation, plus some real-valued parameters instead of ... |
I am given the following transition matrix
$$P= \pmatrix{ 1-\alpha & \alpha \\ \beta & 1-\beta}, \ \alpha,\beta \in (0,1)$$
with the states $S=\{1,2\}$.
I want to determine the stationary distribution $\pi$ of the Markov chain determined by a starting distribution and the transition matrix $P$.
We have the system:
$\pi... |
I'm running 2-way repeated measures ANOVA (3 and 5 levels) with planned contrasts afterwards. I'm interested in comparing
1)levels of the first factor among themselves (e.g. A1B with A2B, A2B with A3B)
2)pairwise comparisons (e.g. A1B1 and A2B4)
Question:
Some sources claim that I need to report effect size for each c... |
Can someone explain me in a intuitive way what the periodicity of a Markov chain is?
It is defined as follows:
For all states $i$ in $S$
$d_i$=gcd$\{n \in \mathbb{N} | p_{ii}^{(n)} > 0\} =1$
Thank you for your effort!
|
I've created two neural networks for a prediction purposes,
the first is a network with one hidden layer and the second is two hidden layers,
I use the cross validation techniques,
the training error for both networks is around 2E-4
but at the test step, for the two topologies, the prediction values do not change over... |
What are the benefits of getting a new data set in which all their dimensions are independent from an original data set (applying PCA)?
we know we can reduce the storage space needed, speed up computation or remove redundant features after doing PCA for example.
but What computations in a statistical or probabilistic p... |
I'm experimenting with $\chi^2$ feature selection for some text classification tasks. I understand that $\chi^2$ test checks the dependencies B/T two categorical variables, so if we perform $\chi^2$ feature selection for a binary text classification problem with binary BOW vector representation, each $\chi^2$ test on e... |
I have a fitted GLM model: m1=glm(y~x,family=poisson,data=data). I would like to use this fitted model to simulate new data but simulate(m1,nsim=1) results only in y's for the original x-values used to fit the model. Can the simulate function be used to generate y's from new x-values?
|
When performing mulitple imputations with the MICE package in R, I found some resources (http://www.statisticalhorizons.com/more-imputations) that recommend around 10 imputations. I was wondering if there is any drawback of e.g. performing 1000 or 10000 imputations as it should lead to more precise results and is compu... |
Consider a situation where people are asked to rate a product on a scale of 1 to 5.
Product A has a rating of 3.95 based on 15,000 ratings. Product B has a rating of 4.2 based on 1000 ratings.
From the data given, can we determine which product is the preferred one? Is there a direct formula to solve problems of this t... |
I have linear regression code written in R and I have to do the same thing in Java. I used Apache Commons math library for this. I used the same data in R code and in Java code, but I got different intercept value. I could not figure out what stupid thing I have done in the code.
R Code:
test_trait <- c( -0.48812477 , ... |
Suppose I have some yearly observations (e.g. rates) $x_1$,$x_2$...,$x_{t-1}$. I estimate some parameter of interest as $\bar{x}_{t-1}=\frac{1}{t-1}\sum_i{x_i}$.
Now at year $t$, I get a new observation $x_t$, so that I can compute $\bar{x}_{t}$.
How can I "decide" if I need to update my estimate from $\bar{x}_{t-1}$... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.