instruction stringlengths 9 38.7k |
|---|
I have two variables that predict fraud behavior (dependent variable). The independent variables are perception of fraud being wrong (1-5) and probability of being caught (1-5). The dependent variable is frequency of committing fraud in the last 5 years (never, once, 2-3 times, 4 times and more).
Two questions:
What... |
I have carried out a linear regression. The plot below shows the distribution of the response variable:
I believe the response variable is beta distributed, therefore virtually the exact opposite of normally distributed. However, when including all my predictor variables in the linear regression, the residuals turn ou... |
What is exactly the difference among Indicator, Index, Variable and Measure? I would appreciate some reference.
|
I'm trying to understand the process for statistical testing for principal component analysis or partial least squares.
Step 1. PCA:
I feel that I have a not-terrible understanding of PCA: You find the ellipsoid described by the covariance matrix of the data, and then successively take the largest axis of variation (pr... |
I apologize in advance for misuse of terminology.
If given a number $x$ from a normal distribution with mean 0 and standard deviation 1, how can I map that onto another distribution with a different mean $m$ and standard deviation $s$?
Is it simply $m + s\,x$ ?
Clarification - the real-world problem I'm trying to solve... |
i have a matrix data. Perhaps some data in one cluster and another in some cluster.
data scale is between [0-1000](just example). and i want to normalize into [0-1] and good in mean and variance. it means, i want to have a Good visibility in mean and variance.
for more description,mean and variance Be chosen in perfect... |
I have administrative data from the whole population of new doctorates, in a given year, from my region.
We have also survey data from a sample of this same population (where the whole population was contacted to participate in the survey, but only around 65% of doctorates participated: this is the sample I should work... |
I am classifying data points from two different groups using LibSVM.
I do the following:
Creating the input file for LibSVM. In the input file, I put all the data I have.
Scaling it (using svm-scale).
Using grid.py of libSVM for choosing gamma and c parameters.
Using svm-train for training. I use the entire dataset. ... |
I have a classifier that I want to use on short documents and I need to improve quality of the corpus used for training. I have 250,000 documents and manual inspection is expensive.
The collection of short documents has been pre-labelled by a collection of rules as good or bad. The accuracy of this pre-processing ste... |
I want to sample from a truncated distribution that appears in a Gibbs sampling scheme.
The full conditional of the distribution is given by
$p(X = k | \ldots) \propto (1 - p)^{k - 1} \mathbb{1} ( s \leq k)$, where $s$ is a positive integer.
This is a truncated geometric distribution. The tehcnique i am following to si... |
I carried out a test on a group of 100 people. The test contained 10 questions with 5-point Likert scale answers (1 = Strongly Agree, 5 = Strongly Disagree). After the test was conducted, the group was educated over a period of time on how to answer the questions. After the education completed, the same test was carrie... |
In the vein of my last question, I'm now at a roadblock on question 3 of this sheet:
http://www.trin.cam.ac.uk/dpk10/IA/exsheet3.pdf
(note: it's not my intention to ask every question I get stuck on here, merely the ones which have interesting general results; it just so happens that the two I've struggled with so far ... |
A time-honored reminder in statistics is "uncorrelatedness does not imply independence". Usually this reminder is supplemented with the psychologically soothing (and scientifically correct) statement "when, nevertheless the two variables are jointly normally distributed, then uncorrelatedness does imply independence". ... |
Suppose $X$ and $Y$ are random variables, $E(Y^2) < \infty$ and
$\varepsilon = Y - E(Y|X)$ so that $Y = E(Y|X) + \varepsilon$.
Given that $E(\varepsilon | X) = E(\varepsilon) = 0$, show that
$Cov(\varepsilon , E(Y|X)) = 0$.
This question has multiple parts so $E(Y^2) < \infty$ may or may not be applicable in this cas... |
I'm using artificially generated hazard curves (that is, I know the true hazard curve) and Aalen's additive model to fit the covariates. For example, below is an individual's hazard curve and my estimate of it:
It's a good fit to my eye, and here is the individual's estimated survival curve (exp of the negative of the... |
I have 10 minutes-intervaled wait-times data for a coffee shop for 4 weeks between 9am-5pm. I use R's ts for my analysis. What should be the frequency parameter?
Is it (48=# of intervals per day) or just 1?
|
What are the differences between those Population and Standard Deviation and what are their fomulas? I was told that they are different formulas and which situation do you use population or sample?
If a user gives 10 random numbers, would I be using population or sample?
|
I read an interesting statement: running the same data through multiple tests no longer counts as multiple comparisons.
I am fairly confident this is incorrect if you are testing different hypotheses e.g. testing for hundreds of different lags on the same data will yield some false significant results (if you have eno... |
I am trying to fit my data to the one of the continuous PDF (I suggest it to be gamma- or lognormal-distributed). The data consists of about 6000 positive floats.
But the results of the Kolmogorov-Smirnov test completely refute my expectations providing the very low p-values.
Data empirical distribution
Distribution... |
I am analyzing a set of costs for contractor services for a particular city. These data have been extremely difficult to collect due the difficulty of contacting contractors and reluctance of contractors to divulge their pricing information. Factors are "service type" and "contractor".
We generally have quotes from mor... |
I am trying to compare the means of the same variable between men and women. This is the statistics:
N Mean Variance Coef. Var. Gender
2000 26.12 10.89 0.13 Male
50 56.10 25.01 0.09 Female
Neither variable is normall... |
I am new to Bayesian estimation.
When I do some estimations with JAGS, I find there are statistics called Naive SE and Time Series SE.
What exactly do they mean? Is it necessary that I report one or both of them as part of the estimation result?
|
Given:
$f_{Y_{(1)}}(y) = nbe^{-nb(y-a)}$, where $b> 0$ and $y \geq a$.
Show that as $n \rightarrow\infty$, $Y_{(1)}$ converges to $a$ in probability.
I have calculated $E[Y_{(1)}] = \frac{1}{nb} + a$
Which theorem should I apply to show convergence. I was trying to use Chebyshev's inquality.
[EDIT]
If I want to find t... |
For a statistic $T_n = \frac{1}{n} \sum_{i=1}^nY_i - \frac{1}{a}$.
Prove directly (without CLT) that scaled and appropriately shifted version of $T_n$ converges in distribution to $N(0,1)$.
[EDIT]
$f(y|a,b)=ae^{-a(y-b)}$ for $ y\geq b$
How should I approach the problem?
[EDIT]
I thought that if I could find the expecte... |
I have two Weibull distribution sets from two wind datasets in order to check whether they are same.
I thought a 2 sample t-test would be applicable but I couldn't find any ways to do that on the Internet.
Does anyone know what type of test is applicable to my purpose? and what R function can you recommend?
Plus, if it... |
Let X, Y, Z be i.i.d. distributed Gamma random variables. What could the mode of the vector $(X, X+Y, X+Y+Z)$ be?
Does the mode of a random vector equal the combination of the marginal modes?
|
I have an explanatory variable that is transformed as suggested in footnote 25 of the article as follows (the explanatory variable is continuous and can take negative, zero or positive values)
\begin{equation}
y=\text{sign}(x)\,\log{(|x|+1)}
\end{equation}
where $\text{sign}(x)$ takes a value of $1$ if $x>0$, $0$ if $x... |
I am performing 5-fold cross-validation on a relatively large data set and I have noticed that the validation error for each of the 5 training sets are very similar. So I guess, in this case, cross-validation is not very useful (it would be about the same as just using one training and test set). So I was wondering i... |
I have a Markov Chain such that $X_n = max(X_{n-1}+\xi _n,0)$ where the $\xi_n$ series is independent and identically distributed. I want to show that if $\mathbb E(\xi_n) > 0$ (where $\mathbb E(\xi_n)$ is the expected value of $\xi_n$) then$\frac{X_n}{n}$ tends to $\mathbb E(\xi_n)$ as n approaches infinity for any c... |
Suppose you had a bag with $n$ tiles, each with a letter on it. There are $n_A$ tiles with letter 'A', $n_B$ with 'B', and so on, and $n_*$ 'wildcard' tiles (we have $n = n_A + n_B + \ldots + n_Z + n_*$). Suppose you had a dictionary with a finite number of words.
You pick $k$ tiles from the bag without replacement.
Ho... |
I do canonical correlation analysis between two multivariate datasets $X$ and $Y$. For each pair of canonical variates (x-y pair) I get the canonical correlation coefficient. How can I test its statistical significance?
|
In a random sample of 150 community college students, the mean number of hours spent studying per week is 11.7 hours and the standard deviation is 4 hours.
Without assuming anything about the distribution of the number of hours community college students study per week, at least what percentage (approximately) of the s... |
I was reading this paper related to topic models. I am a bit confused why the marginal likelihood is not tractable and how converting the graphical model into the new one actually helps. First I don't understand how the coupling between $\beta$ and $\theta$ result in making it intractable. It points to a reference. Bu... |
I'm intending to implement the following factorial design
I wish to obtain this alias structure - with a 2^(5-2) factorial design.
I+ACE+BDE+ABCD
A+CE+ABDE+BCD
B+ABCE+DE+ACD
C+AE+BCDE+ABD
D+ACDE+BE+ABC
E+AC+BD+ABCDE
AB+BCE+ADE+CD
AD+CDE+ABE+BC
I've obtained this (the alias structure) by hand, using the design generat... |
I have a symbolic representation of time series obtained from SAX toolbox. I was wondering if it is possible to construct a graph where each node represents a unique symbol and the edges represent the transition providing that there is no transition to itself. For ex, let the time series T of n=20 data points be repres... |
Consider a network that consists of vertices with various meanings. For example: stack overflow users, keywords and user location when asking/answering a question. In this network, when a user asks a question its ID node is linked to several keyword vertices and to a vertex representing users' geographical location.
I... |
I know of random sampling and stratified sampling, but what I am not sure what is the name of the type of sampling I need:
I wish to work-out an example with my students of simple correlation/regression. I found the following nice dataset: "When do Babies Start to Crawl", but it has too many observations (12). And what... |
I've been experimenting with LDA topic modelling using Gensim. I couldn't seem to find any topic model evaluation facility in Gensim, which could report on the perplexity of a topic model on held-out evaluation texts thus facilitates subsequent fine tuning of LDA parameters (e.g. number of topics). It would be greatly ... |
In [1] (Page 31,equation 2.12 ) it is claiming that in a graph which is processed by the junction tree algorithm, the joint distribution of the variables could be found by
$$
p(x_1, ..., x_m) = \frac{ \prod_{C \in \mathcal{C}} \mu_{C}(x_C) }{ \prod_{S \in \mathcal{S}} [\mu_{S}(x_S)]^{d(S)-1} }
$$
In which $d(S)$ den... |
I am trying to use R to do Kmeans clustering and as most people I ran into the challenge of determining when to finish. I have 10,000 items and potentially 10 times of that down the road. My goal is to create a series of clusters with minimal size (e.g. 50 items per cluster) OR reasonably similar items. In other words,... |
I have a data frame with several predictors, lets call them pred1 through pred3, and a result column. Now I need to specify the right model. I could randomly try:
svm.model <- svm(result ~ pred1+pred2+pred3, data = train)
# or
svm.model <- svm(result ~ pred1*pred2+pred3^2, data = train)
# or
svm.model <- svm(... |
I have two measurements of something. You can think of them both as their own curve with known error on each point. They look quite similar, and if I calculate the R2 value it comes out to >0.9. But what I want to be able to calculate is a P value comparing these two curves (i.e., what is the probability that the diffe... |
People says soft margin SVM use hinge loss function: $\max(0,1-y_i(w^\intercal x_i+b))$. However, the actual objective function that soft margin SVM tries to minimize is
$$
\frac{1}{2}\|w\|^2+C\sum_i\max(0,1-y_i(w^\intercal x_i+b))
$$
Some authors call the $\|w\|^2$ term regularizer and the $\max(0,1-y_i(w^\intercal x... |
I have a data set with about 50K rows and 100 columns. You can consider every row to be representing one restaurant.
My goal is to calculate dissimilarities between all the restaurants - Gower's coefficient.
Of those 100 columns (features), a few of them are numeric data and nominal data. The problem is the other colum... |
What tests would I use to see if two distributions are 'significantly' different in dispersion if they are thick tailed, like a t-distribution? thanks
|
I have a variable test score that is measured for an organization consisting of 2050 people. The goal is to test if men outperform women (or vice versa). Unfortunately, only 50 of the 2050 people are women. I was told that in order to run inference when there is such a disproportion of one group within a sample that I ... |
Suppose that X is distributed Poisson with a known rate and Y is a normal distributed with a know mean and variance. My goal is to approximate the distribution Z where P(Z) = P(X) * P(Y), where Z is a non-negative integer. I could get a good approximation by sampling, but I'd really like to have a fast solution, idea... |
The moment generating function that is associated with the discrete random variable $X$ and pmf $f(x)$ is defined as:
$$M(t) = E\left[e^{tX}\right] = \sum_{x \in S} e^{tx} f(x).$$
Where does this $e^{tx}$ come from? This vaguely looks like an integrating factor from differential equations.
Also, I find it strange tha... |
I'm trying to do model selection using PyMC (v2.2), but having difficulty assessing the models using various Information Criteria and/or Bayes Factor. My model is similar to a typical regression, with several parameters (~10) with priors modelled by uniform distributions, and a single observation modelled by a normal d... |
I have read that the update equation for stochastic gradient descent is as shown below, for each iteration, k. Does one iteration correspond to one training example? So for each example is there only one update to $\theta$?
$ \theta^{k+1} = \theta^k - \epsilon_k \frac{\partial L(\theta^k,z)}{\partial \theta^k} $
Up... |
I know that one can approximate this density ($p(v) \propto 1/v$) using its truncated version and implement it this way:
B~dunif(log(BInf),log(BSup))
v<-exp(B)
but I would like to use the exact form (I checked that under this prior my posterior is proper). Is there any solution to achieve this ?
|
I am currently using a measure of the price level (CPI) from which I would like to remove the effects of food prices (also an index). Notice that food prices are included in the CPI (so that CPI is the total index).
First, I made sure that both were based in the same way (that is, the base value of 100 is on the same t... |
The practical POV:
I sample 35 matches: 15 turn out as home win, 10 as tie and 10 as home lose. I want to conduct a test for the hypothesis "A home court advantage does exist." with a significance level of say 5%. What would be a reasonable test statistic / calculation of the p-value to accept or reject the hypothesis?... |
Let $Y_f, Y_1,..., Y_n$ denote measurements taken from a father and his n sons. It is assumed that $Y_f, Y_1,...,Y_n$ have equal variance with father-son correlation $ρ_f$ and equal correlation $ρ_S$ between sons. Transform $Y_f, Y_1,..., Y_n$ linearly to $Z_0, Z_1,..., Z_n$ to remove the correlations.
The hint is to l... |
We understand a SLR model as
$$y_i = \alpha + \beta x_i + \varepsilon_i$$
with $\varepsilon_i$ i.i.d with equal variance.
Suppose I have two instruments measuring a common entity, say, density of samples of different liquids, and assume that we do not know the exact density of each liquid (nor is there any way to accur... |
I want to find anomalies in a time series. Is it possible to find anomalies using moving average?
|
I have to run an multiple way Anova and want to test the assumption of homoscedasticity.
How can I run a Fligner.test with several independent variables (variables indicating the grouping) with R? Does it make sense to do such a thing?
|
I added Gaussian noise to my input data and then I integrated it twice (I used trapezoidal rule). I was wondering if the the integration itself transform the Gaussian noise to something else. I looked at the probability density function of which is
$$f(x)= \frac {1} {\sigma \sqrt{2 \pi}} e^{- \frac{1}{2}(\frac{x- \mu}{... |
With the below dataset, I have a series which needs transforming. Easy enough. However, how do you decide which of the SQRT or LOG transformations is better? And how do you draw that conclusion?
x<-c(75800,54700,85000,74600,103900,82000,77000,103600,62900,60700,58800,134800,81200,47700,76200,81900,95400,85400,84400,103... |
I have wait-time data for a coffee shop for 4 weeks. Since the data is crowdsourced, it is sparse and non-uniform along the time. So my question is: how should I deal with this non-uniform data? What are the some methods in time series forecasting that can handle non-uniform data? Or is there any way to make the data u... |
I've been reading Elements of Statistical Learning, and I would like to know why the Lasso provides variable selection and ridge regression doesn't.
Both methods minimize the residual sum of squares and have a constraint on the possible values of the parameters $\beta$. For the Lasso, the constraint is $||\beta||_1 \le... |
I tried to fit a curve to the black points using the following code. Why is the fit so bad? Do I need to fit another type of function?
fit <- nls(grad ~ theta1/(1 + exp(-(theta2 + theta3*x1))),
start=list(theta1 = 4, theta2 = 0.09, theta3 = 0.31), trace=TRUE)
p = predict(fit)
plot(x1, grad)
points(x1, p, ... |
I have a dataset with columns that represent lagged values of predictors. To illustrate with a simple example, suppose we had car sales data for 3 years and the only predictors available were income and population for a number of car dealers, the dataset could be represented as follows,
ID IncLag1 PopLag1 SalesLag1 ... |
In, for example, the BUGS manual or the upcoming book by Lee and Wagenmakers (pdf) and in many other places a type of notation is used that to me seems very flexible in that it can be used to succinctly describe most statistical models. An example of this notation is the following:
$$ y_i \sim \text{Binomial}(p_i,n_i) ... |
This is from the book The statistical sleuth--A course in methods of Data analysis Chapter 20, Exercise 12(c)-(e). I am using logistic regression to predict carrier with possible predictors CK and H. Here is my solution:
Carrier <- c(0,0,0,0,0,1,1,1,1,1)
CK <- c(52,20,28,30,40,167,104,30,65,440)
H <- c(8... |
Alright, so I'm new to R, and I imagine what I'm trying to do should be very simple. I want to use plot(x,y), but then add the curve lm(y~x^2) over the plot. I'm sure I could add more detail this, but I am not sure what is needed, so I'll be vigilant to answer any questions you all may have. I appreciate any help I can... |
I would like to improve on my recommendation system. Imagine I have training data of $M=7,000,000$ samples. Each training sample contains a variable number of words in the body, and a variable amount of tags assigned to the case. There are roughly 100 million unique words, and roughly 40,000 unique tags.
The goal is to... |
I have seasonal data from which I create forecasts. The steps I perform are: deseasonalizing the data, finding the linear regression for the deseasonalized points, predicting a few points from the linear regression and adding seasonality to the predicted values to get forecast data. My input is quite sinusoidal so all ... |
I want to compare the fit of a linear model (M1) and nonlinear model (M2):
M1: $y = b_0 + b_1x_1 + b_2x_2 + b_3x_1x_2 + \epsilon, \epsilon \sim N(0, \sigma^2)$
M2: $y = b_0 + b_1x_1 + b_2x_2 + b_1 b_2x_1x_2 + \epsilon, \epsilon \sim N(0, \sigma^2)$
In particular I want to know whether M1 is significantly different fr... |
I have some data that compares behaviour in four conditions (repeated measures)(I have several different behavioural variables and each behaviour gets analysed separately, and the behaviours are currently in % of time format). The behavioural variables are very non-normal, even after transformation. So I have run Fried... |
Are there any issues to run a Newey-West time-series regression on a dependent variable that is a probability? What are the biases that I am facing? I can't find anything online that can help me out with this issue.
|
I am trying to use Bayesian model averaging for variable selection with a large number of variables. In R, the BMS package allows to apply the method, with the option of using MCMC sampler (Metropolis Hastings algorithm) when the number of covariates is large.
Here is a sample code:
data(datafls)
fls1 = bms(datafls, ... |
Suppose that we have have scoring functions $f(\textbf{x})$ and $g(\textbf{x})$ for classifying an object as red or blue. These are based on linear discriminant analysis. So if $f(\textbf{x}) > g(\textbf{x})$, then the object is red. Why is the posterior probability that an object is red the following:
$$\frac{\exp(f(\... |
I am working on a binary data classification problem. The dataset is imbalanced, it consists of 92% 'false' labels and 8% 'true' labels. The number of features is 18 and I have a small number of 650 data points. I want to use boosting algorithms in MATLAB like GentleBoost to solve this problem. I assign Uniform for pri... |
This is a homework problem. If $X_n$ converges in probability to 1, show $X_n^{-1}$ converges in probability to 1.
My attempt:
$$\begin{align*} P(|X_n^{-1}-1| > \epsilon) &= P(|X_n^{-1}-X_n + X_n-1| > \epsilon)\\
&\leq P(|X_n^{-1} - X_n| > \epsilon/2) + P(|X_n - 1| > \epsilon/2)\\
&= \end{align*} $$
I know I can b... |
This is a homework problem. Suppose we have a random sample $X_1,\ldots,X_n \overset{iid}{\sim} F$ with density $f(x) = 2(x-\theta)$ for $x\in (\theta,\theta+1)$. Let $X_{(1)} = \min{\{X_1,\ldots,X_n\}}$. Show $X_{(1)} \overset{P}{\longrightarrow} \theta$.
My attempt:
A few calculations first:
$F(x) = (x-\theta)^2$ fo... |
I want to solve an imbalanced data classification, with small number of data points (approximately 600 ) with the ratio of true labels to false , 1:12. Is there any function or matlab code for using Random forest for classification of imbalanced data? How should I access it and set the parameters?
Thank you for your ... |
I already asked this question here, but I am not sure where would be better to ask it? This might sound a dumb question but I am really confused about it. According to Bayes' rule we do have the following:
$$p(\theta|X)=\frac{p(\theta)p(X|\theta)}{\int{p(\theta)p(X|\theta)d\theta}}$$I know that probability density func... |
I am trying to write a code (I am using MATLAB) for estimating the goodness of fit of the copula based on a Rosenblatt transformation ( Dobrić and Schmid 2007, http://dx.doi.org/10.1016/j.csda.2006.08.012) my question is this:
In the algorithm it says: "Generate i.i.d. observations from the copula with parameter theta ... |
Let $X_1, \dots , X_n \sim \mathrm{N}(\mu,\sigma^2)$. $\sigma^2$ is known. We want to test $\mathrm{H}_0: \mu = 0$ versus $\mathrm{H}_1: \mu > 0$.
For the likelihood ratio I got: $\Lambda_1 = \exp(\frac{n(\mu_0^2 - \mu_1^2)}{2 \sigma^2}) \cdot \exp(\frac{\mu_1 - \mu_0}{\sigma^2} \cdot \sum x_i)$. Where the first term i... |
An infinite number of opaque jars are each filled with N spheres, p N of which are gold and (1 - p) N of which are tungsten (0 ≤ p < 1; N > 0). You have drawn from a jar x spheres without replacement, all of which were made of tungsten (0 < x < N). N and E[p] are constant across jars.
Should you (a) keep drawing from t... |
I've calculated required power for a study in the past but I've come upon a scenario that I can't figure out quite how to do it. Pretty much I have a procedure that results in a particular complication 15% of the time. My study uses an imaging intervention on all study participants that we believe can predict the occur... |
I am using multilevel modeling (xtmixed in Stata) to predict a quasi-continuous level-3 DV using a dichotomous IV (sex). My results are markedly different from what the basic difference between men and women would suggest. No problem there - this is why I'm using MLM and not OLS regression or a t-test.
However, I'm hav... |
Let $X_{1},...,X_{n}$be distinct observations (no ties). Let $X_{1}^{*},...,X_{n}^{*}$denote
a bootstrap sample (a sample from the empirical CDF) and let $\bar{X}_{n}^{*}=\frac{1}{n}\sum_{i=1}^{n}X_{i}^{*}$.
Find $E(\bar{X}_{n}^{*})$ and $\mathrm{Var}(\bar{X}_{n}^{*})$.
What I have so far is that $X_{i}^{*}$ is $X_{1},... |
I am sorry for having to ask a simple probability question, but I have been thinking about it for weeks and an extensive google search has given no answers.
I have a group of 628 questions. 31 Questions belong to category A. 150 participants will each be given 50 randomly sampled questions from the total 628 questions ... |
In a lot of cases, the prior for $\sigma^2$ is chosen so that it is proportional to ${1/\sigma^2}$. I have a few queries re this:
What is the intuition for this choosing this prior?
What is the information conveyed by this prior? Does it mean that a higher value for $\sigma^2$ is less likely?
I know that this is an im... |
I'd like your assistance with developing the Maximum Likelihood Estimator (MLE) and CRLB of the following case:
Given a 2D vector (A Point in XY Plane) $ p = ({x}_{p}, {y}_{p}) $.
The measurements are noisy measurements of this vector entries and its norm.
Namely the measurements vector is $ m = ({x}_{m}, {y}_{m}, {r}_... |
I performed a cluster analysis based on a principal components. Total sample size is around 140. Now I want to describe the differences among the clusters (by means of the components) while performing a post-hoc analysis. By using the Levene test, I found out that the homogeneity of the variances can be assumed. I have... |
Simply I want to remove words in documents that are not informative for classification purpose instead of biased stop word elimination. Is there any tool that can help me in that way? I know NLTK but it provides a simple stop word eliminator.
|
I need to calculate the coefficient of the Kolmogorov-Smirnov test for any given null hypothesis rejection level.
For example, have a look at the table in this wikipedia entry. It only gives $c(\alpha)$ for $\alpha=0.10, 0.05, 0.025, 0.01, 0.005, 0.001$. How can I calculate $c(\alpha)$ for a wider range of $\alpha$s? ... |
When people say that lasso regression can under certain assumptions recover "the support", i.e. non-zero regression weights, what does this mean?
This cannot mean causal recovery, because Pearl has taught us you cannot infer causality from correlation (and lasso is just glorified correlation). So are these non-zeros in... |
I realise this is probably a very simple question but after searching I can't find the answer I am looking for.
I have a problem where I need to standardize the variables run the (ridge regression) to calculate the ridge estimates of the betas.
I then need to convert these back to the original variables scale.
But how... |
I was wondering whether my reasoning is correct and whether I've written it down correctly:
Given the following equation $bread_i=\beta_{0} + \beta_{1}wage + u_{t}$, where $u_{t}$ is normally distributed with a mean of zero and a variancce of $\sigma^{2}$ and is independent of $wage$.
Furthermore we know that there is ... |
How can I investigate the sensitivity of a regression model to noise?
A basic idea is to add some (Gaussian) noise to the dependent and/or independent variables and (re)evaluate the RMSE.
However, the problem with this approach is, that one is mostly interested in modeling the true data, and not the noisy data.
Hence... |
I have the following kind of data (coded in R):
v.a = c('cat', 'dog', 'dog', 'goat', 'cat', 'goat', 'dog', 'dog')
v.b = c(1, 2, 1, 2, 1, 2, 1, 2)
v.c = c('blue', 'red', 'blue', 'red', 'red', 'blue', 'yellow', 'yellow')
set.seed(12)
v.d = rnorm(8)
aov(v.a ~ v.b + v.c + v.d) # Error
I would like to know if the value of ... |
The Wikipedia article on the two-sample Kolmogorov-Smirnov test states that:
The Kolmogorov–Smirnov test may also be used to test whether two
underlying one-dimensional probability distributions differ. In this
case, the Kolmogorov–Smirnov statistic is
$$D_{n,n'}=\sup_x |F_{1,n}(x)-F_{2,n'}(x)|$$
where $F_{1,n}$ a... |
I would like to know if there is an analytical formula for the distribution of partial sums of standardized random variables. (Of course, if one standardizes a random variable, the sum of all the individual observations will be zero).
I have written a Python function that estimates quantiles by bootstrapping. Each boot... |
Let $Z_1$ and $Z_2$ be categorical random variables with $3$ and $2$ categories, respectively. Let $Y_1$ and $Y_2$ be $2$ continuous random variables. Define completely the GLOM (general location model) for the joint distribution of $Z=(Z_1,Z_2)^T$ and $Y=(Y_1,Y_2)^T$
I couldn't solve this problem. Can anyone help me?... |
In Time Series models’ transfer functions there is a decay parameter in the
formula (let’s call it b). In TSA package that decay parameter is not mentioned. When I used other software before (such as SAS) I used to determine b after analyzing ‘prewhitened series’. But
in TSA package in R there is no need to specify the... |
I am comparing authoritative survey data (large amount of observations) with data gained from a social network (very small amount of observations). Particularly, I want to compare population per district as surveyed with population per district as found in a location based social network.
Example dataset:
type varia... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.