instruction
stringlengths
9
38.7k
I estimated a nonlinear exponential $f(t)=\alpha-(\alpha-\beta)*\exp(-\gamma*t)$ random effects model in R. I estimated the same model form using the identical data set but with nlme() from the nlme library and nlmer() from the lme4 library. The fixed effect estimates are quite similar comparing nlme with nlmer: nlme: ...
I have two lots of data that have been independently, arbitrarily transformed from the same original data source using the same permutation algorithm. I would like to know what kind of statements I can make about the original data source or the transformation process by comparing these two data sets. All the data are n...
Suppose the cross-sectional model that I wish to estimate via OLS is $Y_{i} = a + b X_{i} + e_{i}$. Say that $Y_i$, $X_i$ and $e_i$ are normally distributed with mean 0 and constant variance. This specification adheres to all Gauss-Markov assumptions. But we don't observe $Y_i$. We instead observe $\hat{Y}_i = Y_i - \n...
So I am working on a new project looking at formal and informal networks between businesses in the same industry. Namely, I am looking at joint ventures, fractional acquisitions, minority share ownership, and board of director relationships between companies. I want to see if I can identify the occurrences of "weak tie...
Consider sample space $\Omega := \{\omega_1,\omega_2\,\dotsc,\omega_N\}$. Define mapping $X:\Omega \rightarrow \mathbb{R}$. A property of this $X$ is that $X(\omega_i) = 1$ for all $i \in \{1,\dotsc,N\}$. Is $X$ a random variable?
The Wikipedia entry on the CLT states at one point: "For fixed large $n$ one can also say that the distribution of $S_n$ is close to the normal distribution with mean $\mu$ and variance $\frac1n\sigma^2$." $S_n = (\sum_{i=1}^nX_n) / n$ and $X_i$ are iids with mean $\mu$ and variance $\sigma^2$. I don't quite see how th...
I have some problems I need help with. I am running a binary logistic regression. DV: Brand choice (0/1) IV1: Attitude towards product (p<0.05) IV2: Price sensitivity (p<0.05) (Both IV1 and IV2 are measured on the same scale) I have found that “Attitude towards product” is more powerful ($β=1.308$) than “Price sensiti...
I am wondering what is the best way to extract knowledge about periodic time series data? In my case, I am trying to analyse historical hourly electricity prices to get information about its volatility, when the peaks occur, what is its distribution among the hours of the day or something similar to be able to make goo...
I have read elsewhere that one's choice of hidden layer activation function in a NN should be based on one's need, i.e. if you need values in the range -1 to 1 use tanh and use sigmoid for the range 0 to 1. My question is how does one know what one's need is? Is it based on the range of the input layer, e.g. use the fu...
I have a 2 level repeated measures DV of accuracy, and a covariate of response bias. As response bias increases, accuracy level 1 increases while level 2 decreases. I want to see if there is a difference in the means of the groups after controlling for response bias. I can't do it with an ANCOVA. Can I just manually...
I have a question regarding model comparison using Bayes factors. In many cases, statisticians are interested on using a Bayesian approach with improper priors (for example some Jeffreys priors and reference priors). My question is, in those cases where the posterior distribution of the model parameters is well-define...
I work for an organization that oversees around 180 schools across the country. We regularly collect outcome data from these schools and rank them. I have been asked to do a survey of the national office (around 100 people) to determine what the best and worst perceived schools are, based on the staff's non-data base...
I have a three dimensional table of size $6\times6\times81$. Each cell of the table is a hypothesis test. Slicing the table on the third dimension produces $81$ sets of hypothesis tests which are independent between sets but dependent within sets. Originally I was thinking that I could just control the false discovery ...
Consider the following scenario: Alice subscribes to a video rental service that allows her to watch movies. Every time A watches a movie, she rates it either thumbs up (1) or thumbs down (0), and she then chooses the next movie she wants to watch. Every movie belongs to exactly one director, and a director can have di...
I have two unknown values $v_1$ and $v_2$ and two sets of measurements $S_1$ and $S_2$ of these values. The measurements can be assumed to have a normal distribution. I would like to say something like "$v_2$ is at most $x$ greater than $v_1$ with a confidence of 95%". So, how small may $x$ be, in order to be 95% sure ...
I have a behavioral measure obtained from N participants over 5 levels of a condition C -- 10, 30, 50, 70, an, 90 degrees. With a one-way repeated measures ANOVA, I find a significant effect of C. Now qualitatively it appears that the behavioral measure increases from 10 to 30, and slightly from 30 to 50, but then satu...
I had to put the majority of the question in the textbox as Cross Validated didn't like the fact my question was too long....but here it is, in terms of what I wanted to ask: Due to a small sample size (i.e. large earthquakes are rare), does predicting 'post-large earthquake aftershocks' suffer from the same statistica...
Is there an equivalent of the two-sample Kolmogorov-Smirnov test for integer data (not count data, as it can include negative integers)? The Kolmogorov-Smirnov test does not perform well in the presence of lots of ties, which are obviously common with integers.
How to prove this: Proposition. If $F_n$ is the distribution function of a $\textrm{Bin}(n,p)$ random variable, then, for every real fixed $t$, the sequence $\{F_n(t)\}_{n=1}^\infty$ is nonincreasing. P.S. There was some heavy editing here.
Let $g(x)=1$ if $x \leq c$ and $g(x)=(1-x)/(1-c)$, where $0 \leq x \leq 1$ and $0 <c <1$. So $g$ is an non-increasing function. Define $g^{-1}(y)=\inf\{0 \leq x \leq 1 \mid g(x) \leq y\}$. Now $X$ is a random variable that takes on value $0, 0.1, 0.2, \ldots, 1$. Is it true that $$ \mathbb P(g(X) \leq b) = \mathbb P(...
Please give a clean, simple, explanatory answer that any 7 yr old can understand. You can also link to a regression guide that is very good and simple. Should be fully explanatory all the way through. That's what makes a good, not bad, writing to learn from. Some sub-questions within my main question are: What is t...
I have a dissertation research question which involves what I am thinking is appropriately analyzed using 4-way ANOVA. The dependent variable is a math anxiety score (uses 5-point Likert scale). The independent variables, for this portion of the analysis, include categories: math/statistics and accounting/finance with ...
regression analysis helps one understand how the typical value of the dependent variable changes... -- http://en.wikipedia.org/wiki/Regression_analysis What does this mean? What "typical value" is it talking about? What kind of change is it looking for? Positive or negative or what? Change in what? Percentage? I'm...
I am looking at streaming data (i.e. online model), and looking for a specific discrete event. I want to stochastically model the time until this even happens, or if easier, say, model the probability that it happens within the next 30 seconds. What is a simple, practical way to tackle this problem? What kind of techni...
If the inflation indices was reset to 100 in the the 3rd quarter, what would be the fourth quarter inflation index for food. I have no idea how to do this . Below is the graph:
Having read from the internet that glmer and lmer are similar thing (correct me if I am wrong), just glmer need to state the family, I wonder if I state the family for glmer as "gaussian", can I replicate the same result as lmer does? mlm.3 <- lmer(formula=dv~floor*collection_date+(floor*collection_date|area_desc),da...
[This is my first post to CrossValidated, I hope I'm not off-topic] I have data consisting of ~10^6 points in 3D space. We want to try out some surface fitting algorithms that cannot handle this high number of points. So I would like to to use some means of data reductions (maybe ~1:100 needed) - clustering seems appro...
Background: In planetary astronomy, the only method we have to estimate the age of a surface of a solid object in the solar system (other than Earth) is to identify craters. We then compare these to an established chronology that links the number density of craters with diameters $D \ge 1$ km (often written as $N(1)$)...
I'm trying to run a mixed linear model analysis with SPSS. When I try to run the analysis, SPSS gives the following error message: The levels of the repeated effect are not different for each observation within a repeated subject. I am trying to use a mixed model because my data has some missing values and the GLM does...
I know probability distribution for parameter $\phi$. I have the empirical distribution/statistical distribution of $X$ that is dependent on parameter $\phi$ for $\phi \in [0,1]$. I assimilate this empirical distribution to the probability distribution for X. 1/ Can I do so? Are notions similar? Then, knowing distribut...
Let's say that I'm trying to predict, based on a total of 10 physical features (height, weight, etc..), whether an individual is male or female. The population size is 150, so I have a 150x10 data matrix. I build a decision tree using the rpart package , and get a 80% hindsight accuracy for both males and females. Enco...
We have population $Y_i = a + b X_i + e_i$ with $e_i \sim N(0,\sigma^2_e)$, but only have access to $X_i^*$ which is the real $X_i$ combined with some measurement error $u_i \sim N(0,\sigma^2_u)$. I want to explore the residual variance-covariance matrix $\Sigma$ of the specification with the measurement error under th...
Show that all the characteristic roots of a dispersion matrix of a random variable are non-negative. $$\begin{vmatrix} \sigma_{11}-\lambda & \sigma_{12} & \cdots & \sigma_{1p}\\ \sigma_{21} & \sigma_{22}-\lambda & \cdots & \sigma_{2p} \\ \vdots & \vdots & & \vdots\\ \sigma_{p1} & \sigma_{p2} &\cdots & \sigma_{pp}-\l...
I have a panel of daily stock prices $\{Y_{it}\}$, $t \in \{1,...,1000\}$ and some event that occurs at $t=700$ which causes the average stock price to decrease by about 10% over the next 15 days. How do I answer the question "which stocks fell first"? I want to know of the characteristics of stocks that tended to be c...
I am interested in exploring how different characteristics of national pension systems are related to each other. I have used MCA for a dataset in which the rows are countries and the columns are different features of pension systems. However, I am not sure how to interpret the distances between points in the SPSS Join...
I'm using the generalized linear models function in SPSS with a normal distribution and identity link function. If I choose the likelihood ratio $\chi^2$ statistic, I get the same results as the Univariate GLM, which is not surprising. However if I use the SPSS's default Wald $\chi^2$, I get vastly different $\chi^2$ ...
Please bear with me - I have a very limited knowledge in statistics. Here is my case (simplified): A weather pattern is derived from 1 year of data. We are monitoring: sky conditions (sunny/overcast) wind direction (E/W/N/S) Goal: We are trying to predict probability of "rain within 1hr". Observations: if sky="ove...
I've frequently read that knowledge of Perl or Python complements SAS or R, and seen that Perl is a desirable language in job advertisements. Can anyone clarify this a bit more? Is Perl limited to text mining & database updates or does it have other applications in the statistics world? Thanks!
Let $X \sim Binomial (n, p)$ with both $n$ and $p$ known. Suppose for some non-increasing function $G:[0,1] \rightarrow [0,1]$, and some fixed $c_0 \in [0,1]$, we have that \begin{align} \label{ineq} P(G(X/n) \leq c_0) \leq \alpha \end{align} where $\alpha$ can be chosen as 0.1. Let $\mathcal{G}$ be set that co...
I trained a model with java -Xmx6g -cp /usr/share/java/weka.jar weka.classifiers.bayes.NaiveBayes -t train.arff -d foo.nb and I want to score a test file with it. I tried java -Xmx6g -cp /usr/share/java/weka.jar weka.classifiers.bayes.NaiveBayes -T test.arff -l foo.nb -p N which produces no files but writes some text...
I don't know if it's just me, but I am very skeptical of statistics in general. I can understand it in dice games, poker games, etc. Very small, simple, mostly self-contained repeated games are fine. For example, a coin landing on its edge is small enough to accept the probability that landing heads or tails is ~50%...
This post has sat unanswered for a couple days in the TalkStats forum so I'm hoping somebody here can help me out. I'm looking for assistance in clarifying how Type B uncertainty is incorporated into the determination of expanded uncertainty. I'm using the Guide to Uncertainty in Measurement (GUM) as the primary refere...
For a matrix $M$ in which entries $m_{a,b}$ denote the number of co-occurrences between elements $a,b$ from two distinct sets $A$ and $B$, how do I identify pairs with a significantly high co-occurrence? The absolute number of occurrences differs a lot between different $a$ as well as between different $b$. If I look f...
Let $f$ be a nonnegative function. I am interested in finding $z \in [0,1]$ such that $$ \int_0^{z} f(x)\,dx = \frac{1}{2}\int_0^1 f(x)\,dx$$ The caveat: all I can do is sample $f$ at points in $[0,1]$. I can, however, choose the locations where I sample $f$ randomly, if I so desire. Questions: Is it possible to obt...
For plot 1, I can test the association between x and y by doing a simple correlation. For plot 2, where the relationship is nonlinear yet there is a clear relation between x and y, how can I test the association and label its nature?
What's the most suitable statistical test for testing whether the distribution of the (x,y) coordinates of the blue points is significantly different from the distribution of the (x,y) coordinates of the red points? I'd also want to know the directionality of this difference. The colored data points are those data poin...
I have two time series of count data which I believe are correlated. Is there an equivalent to cov() that assumes an overdispersed Poisson rather than a normal distribution? If there is a significance test for this (noting that both series increase over time but that doesn't prove correlation), so much the better. I...
I have two sequences of equal length, like [1, 1, 2, 2, 2, 3, 3, 3, 4] and [1, 2, 2, 3, 3, 3, 3, 4, 4]. I want to determine the odds that they were generated by the same random variable, or different ones. What is a good statistical test to do this? The data are not pairwise; nor are they time series. Each element in t...
I am teaching a programming course at the university where I am working. I would like to do a statistical test to see if students marks (exam grades) are significantly better compared to the previous semester (e.g., summer semester vs. winter semester). There are three exams each semester, and the grades are scored fro...
Related question I have a project where, despite being able to implement some parametric models in LIFEREG, it is somewhat more convenient to do it in NLMIXED. Verifying that this technique works, I tried implementing a pretty bog standard Weibull AFT as follows: data work.data; call streaminit(123); do i = 1 t...
I have some training set data variables $x_1$, $x_2$, $x_3$, $x_4$, and $x_5$ and a response variable $y$. But these are time series data. So the for the same set of values of $x_1$, $x_2$, $x_3$, $x_4$, and $x_5$ the response variable $y$ may be different in different observations. Can anyone please suggest me how to...
In a contest for solving a problem, a person submits his/her answer for the problem at any time during the contest. The contest system provides the person with feedback on the submitted answer. The person can resubmit a modified answer based on the feedback at any time during the contest. This process is repeated until...
I am looking to design a study that involves interviewing children by asking them questions that relate to their values, practices, and identities. Children will be migrants who could identify to varying extents with both their heritage culture and adopted (receiving) culture values, practices, and identities. I'm a b...
I have to deal with a text classification problem. A web crawler crawls webpages of a certain domain and for each webpage I want to find out whether it belongs to only one specific class or not. That is, if I call this class Positive, each crawled webpage belongs either to class Positive or to class Non-Positive. I alr...
I attended a training class from SAS about experimental design in marketing. They advocated the use of their GLMPOWER proc for power analysis for designing experiments. GLMPOWER is a power analysis procedure for ascertaining the required sample size for a general linear model (main effects, interactions and/or specific...
I have read pretty much everything I can find on performing a Sobel test on the internet however the huge discrepancy in my unstandardized coefficients makes me feel like I am doing something completely wrong (a = 0.000306, SEa = 0.000067, b = 430037.87. SEb = 258407.87). Did I miss a step somewhere? Thank you for any ...
I am confused about the concept of confidence interval. Specifically, assume there is a Gaussian variable $X \sim N(\mu, \sigma)$ with $\sigma$ known, and I am interested in the lower-bound $\mu_L$ of the mean with $95\%$ confidence level. I will do the experiment for $5$ times, and observe $X_1$, $X_2$, $X_3$, $X_4$, ...
Possible Duplicate: Why bother with the dual problem when fitting SVM? What advantages do we get from solving in the dual?
I am new to R and trying to practice with some exercises. Given a data set with 40 observations and 5 variables. Spending is the the response and there are 4 predictors. I started with a linear model Residuals: Min 1Q Median 3Q Max -51.082 -11.320 -1.451 9.452 94.252 Coefficients: ...
Imagine a graph where the x-axis is time in minutes (continuous) from 0 to 360. And the y-axis represents 'z' values. Of this continuous time course graph, I have 8 time points w/ their corresponding real z-values. Here is the data frame 'real_df' with that real data. real_df: timepoints real_z 0 1.000000...
This question is in response to an answer given by @Greg Snow in regards to a question I asked concerning power analysis with logistic regression and SAS Proc GLMPOWER. If I am designing an experiment and will analze the results in a factorial logistic regression, how can I use simulation ( and here ) to conduct a powe...
Is there a generic answer as to how the log transform affects the Pearson correlation between two variables, i.e., is $\rho(\log(x),\log(y)) < \rho(x,y)$ always or the other way around and why?
I noticed that when I have tables which the values are only 0 and 1, I get a kappa of 1 when the table is completely full of one, and when I have a table of zeros I get NaN as result using the irr package and the kappa fleiss function. I would expect the kappa to be also equals to 1 when the table is full of 0, as the...
I had heard that there is a body of literature devoted to the following problem: You have a dataset and you produced a good predictive model for it. Now you have a different dataset, derived from different instruments, or different data sources, but similar enough that you can hope to scale one to the other so that you...
We have a contingency table with 2 rows and 4 columns, how would we test the null hypothesis that the observed count in column 1 is equal or larger than expected, as well as the observed count in columns 2,3,4 is equal or less than the expected? Namely, we would like to use a two-tailed test instead of a classical one...
I am using PROC LOGISTIC along with Class statements to do binary logit model(default=1,non-default=0) on a bank loan dataset where I have 7 numeric independent variables and 1 categorical independent variable. Hosmer and Lemeshow test yields a p = 0.6757, and Percent Concordant = 73.3 so the model is fine I think. To ...
The annual profit for your organisation last year was £1203, per employee. The average for the sector was £1228 per employee. You need to know if there is evidence that your organisation is not as profitable, on average, as your competitors. The standard deviation for the sector is £104 per employee. Questions: Stat...
How would I go about proving the following statement: Given two random variables, $X$ and $Y$, if $E(h(X)g(Y)) = E(h(X))E(g(Y))$ for all bounded and continuous $h$ and $g$, then $X$ and $Y$ are independent. I have no idea how to begin the proof. Please provide any pertinent references.
Let me begin by first confirming that this is indeed the correct place to post this (other ideas I had were math.SE). That said, Let $X_n$ be a Markov chain on the state space $\mathcal S$ and for $ y \in \mathcal S$ let $T_y = \min\{ n \ge 1 : X_n =y\}$ be the first return time to $y$. Let $W_y = T_y - 1$ be the time...
I refer to this paper: Hayes JR, Groner JI. "Using multiple imputation and propensity scores to test the effect of car seats and seat belt usage on injury severity from trauma registry data." J Pediatr Surg. 2008 May;43(5):924-7. In this study, multiple imputation was performed to obtain 15 complete datasets. Propensit...
Taleb's book "The Black Swan" was a New York Times best seller when it came out several years ago. The book is now in its second edition. After meeting with statisticians at a JSM (an annual statistical conference), Taleb toned down his criticism of statistics somewhat. But the thrust of the book is that statistics ...
Consider the experiment of tossing a single die. Let $X$ be number of spots on up face of die after toss. Then range space of $X$ is $R_x = \{1,2,3,4,5,6\}$. The discrete probability distribution for this experiment is: \begin{array}{ccccccc} x_i & 1 & 2 & 3 & 4 & 5 & 6 \\ p(x_i) & 1/21 & 2/21 & 3/21 & 4/21 & 5/21 &6/2...
I'm using hidden Markov models to classify some accelerometer data. I take the Fourier transform of the raw data at a given window length, and then train an HMM for each class, and every test instance is classified as the class corresponding with the HMM giving the highest log likelihood. Now, I want to try considering...
I am novice in Stats. I drew 5 numbers from 5 Odd and 4 Even numbers. After 10,000 runs, what will be statistical model look like; will be sure the ratio for odd to Even will end in ratio 3:2 ? If the same model is made for 5 numbers consisting 3 Odd and 2 Even and 3 numbers are drawn will it also end in 2:1 ratio? Wha...
I'm working on a machine learning algorithm and have gotten stuck with how to rebalance a discrete probability distribution. I have a distribution represented as a simple array of $n$ numbers which are all bounded between $0$ to $1$ and that always sum to $1$. At a particular point I wish to update on of the numbers in...
If I have two different percentages and I wanted to know the change, I would simply use the percentage change formula...but what if I want to compare two percentages that have different amounts: Ex: August - there was 539 right answers out of 743 = 72.5 % September - there was 498 answers out of 820 = 60.7% How can I ...
Or more so "will it be"? Big Data makes statistics and relevant knowledge all the more important but seems to underplay Sampling Theory. I've seen this hype around 'Big Data' and can't help wonder that "why" would I want to analyze everything? Wasn't there a reason for "Sampling Theory" to be designed/implemented/inve...
I am interested in stochastically modeling whether the market is likely to go on in the same direction(trend), or reverse and head back. This is all for intraday purposes, next 1-2 ticks kind of strategy with 30sec - 3 mins holding times. How can I attack this problem? Where do I start?
I am reading some books about hypothesis testing, but I am not sure if my following reasoning makes sense: Assume I have a gaussian random variable $X \sim N(\mu, \sigma)$ with $\sigma=1$. Now I obtain 5 iid samples, $x_1, \cdots, x_5$. I want to check if $\mu<0$. So I set up the null hypothesis and alternative hypothe...
Possible Duplicate: How to tell if data is “clustered” enough for clustering algorithms to produce meaningful results? I have used hierarchical clustering, e.g, Ward's method, single,complete, etc. I have the same problem, I do not know how to assess my clustering algorithm. How would I know that the clusters are me...
I'm using fourth root (1/4) power transformation on my response variable, as a result of heteroscedasticity. But now I'm not sure how to interpret my regression coefficients. I assume that I would need to take the coefficients to the fourth power when I back-transform (see below regression output). All of the variable...
I would like to know how you would set the parameters for the GBM model? 1) I could optimize the parameters sequentially. At first, using a large value for shrinkage and a small number of iterations (for faster computation), I would try to optimize n.minobsinnode, interaction.depth, bag.fraction, etc. Then using these...
We asked 60 people to list as many restaurant franchises in Atlanta as they could. The overall list included over 70 restaurants, but we eliminated those that were mentioned by fewer than 10% of the people, leaving us with 45. For these 45, we calculated the proportion of informants who listed the franchise, and we'r...
Someone brought up in conversation that three of her friends had consecutive birthdays (such as November 10, 11, and 12), and I wanted to figure out how likely that is for any randomly selected three people, assuming that birthdays are randomly distributed and the birthdays of two people in a sample are independent. My...
Suppose I have 2 exclusive events, and at each point in time, I maintain the probability for the first event, p (the other one being 1-p). There is online, streaming information arriving all the time, and I would like to update p with respect to this new, arriving information. This is an industry, practical problem rat...
I have a large set of data and a couple of regressors that seem to be somewhat to highly correlated. I will include these in a GLM and am primarily interested in the predictive ability of the model and not inference on individual parameter estimates. How will the predictive ability of the model be influenced by the mul...
What is the qualitative difference between a first and second order Monte Carlo simulation, and the context in which one would implement each?
I know that there is a way to "redistribute the frequencies of a variable" as stated here: Slide number 14 and 15 about redistribution and here: Dorian Pyle book chapter 7 section 2 paragraph 3 (7.2.3): The easiest way to adjust distribution density is simply to displace the high-density points into the low-density a...
Suppose I have a mixture of finitely many Gaussians with known weights, means, and standard deviations. The means are not equal. The mean and standard deviation of the mixture can be calculated, of course, since the moments are weighted averages of the moments of the components. The mixture is not a normal distribution...
Often I have heard the data miners here use this term. As a statistician who has worked on classification problems I am familiar with the term "train a classifier" and I assume "learn a model" means the same thing. I don't mind the term "train a classifier". That seems to portray the idea of fitting a model as the t...
This is from Probability and Measure by Billingsley, 3rd Edition. 27.21 (p. 370) Let $X_1, X_2,...$ be independent and identically distributed, and suppose that the distribution common to the $X_n$ is supported by $[0,2\pi]$ and is not a lattice distribution. Let $S_n=X_1+\cdots+X_n$, where the sum is reduced modulo $...
I am doing a multivariate Cox regression, I have my significant independent variables and beta values. The model fits to my data very well. Now, I would like to use my model and predict the survival of a new observation. I am unclear how to do this with a Cox model. In a linear or logistic regression, it would be easy...
I just want to ask about the MDS. Below is the subcategory of the Multidimensional Scaling topic. Multidimensional Scaling Metric and Non-Metric Models Methods of "Two-Way" Multidimensional Scaling (MDS) I was tasked to report the second sub-topic of MDS which is the Methods of "Two-Way" Multidimensional Scaling. I d...
I want to train a binary classification NN and part of this will require data pre-processing. However, I have a choice of which pre-processing algorithm to use. Of course I'd like to choose that one which is maximally informative for the purposes of training the NN. I feel sure that there might be some R package that I...
If there is a population that we consider fixed (finite) with size N - say the customers at a bank at the end of a given month - and we want to conduct an experiment on this population by randomly sampling m for treatment 1 and k for treatment2 (where m+k <=N), how can you test the difference in proportions between the...
In my difference in differences model firms $> x$ belong to the treatment group whereas firms$< x$ act as control. I have a two period model: In $t_1$ firm $i$ is $> x$ and thus belongs to the treatment group In $t_2$ the same firm $i$ is $< x$ and belongs to the control group Do you have any recommendations how...
From the distribution density function we could identify a mean (=0) for Cauchy distribution just like the graph below shows. But why do we say Cauchy distribution has no mean?
When I studied Bayesian statistics, a question about the notation of Bayes' Theorem came to my mind. Below is the density function version of Bayes' Theorem, where $y$ is data vector and $\theta$ is the parameter vector: $$ p(\theta|y)=\frac{p(y|\theta)p(\theta)}{p(y)} $$ The numerator on the right handside can be writ...
The task is as follows: a customer of mine has been gathering statistics on purchases of a specific item (lets call it 'manna') in his shop during last year. The price of manna moved up and down a lot during that time period - sometimes in the range of only several cents per unit of volume. It seems valuable to test th...
Possible Duplicate: Replacement of NA values for PCA analysis What is a good/proper way to cope with missing values in principal component analysis (PCA)? I have data with about 500,000 observations and due to missing values about 74,000 records are omitted from the analysis.