instruction
stringlengths
9
38.7k
Using data and answers from this question I was trying to test the hypothesis $H_0:-3\mu_1-\mu_2+\mu_3+3\mu_4=0$ set.seed(42) sample.data <- data.frame(IV=factor(rep(1:4, each=20)), DV=rep(c(-3, -1, 1, 3), each=20) + rnorm(80)) library(car) Anova(lm(DV ~ C(IV, c(-3, -1, 1, 3), 1), data=sample....
I'm not clear about kernel. How could I construct my own kernel that is valid? Is the only method the Mercer Theorem (positive semi-definite)? I mean if I know $K$ is a valid kernel, do I know that $aK+bK$, $\mathrm{polynomial}(K)$, $\exp(K)$, etc., are valid as well? If $K$ is a 2-dimension kernel, how could I expan...
I would like to estimate the intrarater reliability in a MRI study. Different regions of interest were manually traced with a mouse-driven cursor in order to estimate their volumes. All data were traced by the same rater and a subset of the data was traced twice. How can I estimate the intra-raterreliability of the bra...
I have a time-series model, with stationary variables. Testing for outocorrelation hasn't been easy: - a can't calculate DW stat because of my small number of observations; - the GB test indicates that there is autocorrelation - the Correlogram Q statistics tells me differently, indicating that there is no autocorrelat...
I'm looking at clinical trial data where there are various numbers of patients on different arms (A, B, C, D). All arms receive a drug that is known to cause a toxicity, but some arms receive an additional drug which might contribute to the toxicity. I have been using 3 methods to identify the number of patients with...
I'm using libSVM for a binary classification problem. After a test instance is assigned a label (1 or -1), I also want to know how likely it is assigned such a label. I'm thinking about calculating the distance from the instance to the hyperplane in the feature space. The larger the distance is, the more likely the la...
I'm working on a clinical trial dataset with binary response. All independent variables are also binary. My first impulse was to simply run a standard logit / probit regression and be done with it. But after thinking about it for a little longer, I kept thinking: is there something else I could do? My concerns arose fr...
Are there any good books and articles for introducing Process Mining? What are the state-of-the-art research results for process mining? What are the differences between process mining and time series prediction?
I am working on a algorithm for a software module but decided I was hung up on the mathematical formula so I posted here instead of Programmers. Each scenario will have a team of people competing. Each team can be thought as a unique set of players each of random variable size. Minimum team size is 2. Eg. Team2 - 9 ...
Isn't this test for the determination of auto-correlation of residuals only necessary when time is some sort of a factor in the observed variables? As it is I had a data-set that had one dependent variable (sales) and three independent variables, (unemployment rate, population size and advertizing expense). I find it d...
I am running 9 regressions with 5 predictors each. The dependent variables are ordered, but have been treated before as count (and have a Gaussian distribution). I ran the 9 regressions using the MASS package, using both 1) glm with family=gaussian, and 2) polr The estimates of the models are very similar. I want to ...
I would like to create a composite scale using items that measure parent communication extracted from a UK panel survey (n=941). However although all 6 variables in question measure similar constructs - 2 of the items are dichotomous (yes/no) the other 4 are likert (1,2,3,4). My intention is to transform the 6 variable...
Possible Duplicate: Does this quantity related to independence have a name? Is there a term for the joint probability of two events $A$ and $B$ over a product of the probability of the event $A$ and the probability of the event $B$, i.e.: $$\frac{P(A\cap B)}{P(A)P(B)}?$$ Perhaps something like "relative joint probab...
Say I have two conditional media for bacteria growth: a bacteriocidal drug and control. I want to see the effect of my bacteriocide on culture growth, so I set up 6 flasks: three with drug, three without. I take three independent measurements from each flask at each of many timepoints. I model the growth of my bacteria...
Suppose that $(X_1, Y_1)$ and $(X_2, Y_2)$ are independent and have the same joint distribution $F_{X,Y}$, which is a known copula $C_{X,Y}(F(X), F(Y))$. Also, suppose that $V = X_1 + X_2$ and $W = Y_1 + Y_2$. It would be great if someone could point me to a procedure for computing the copula $C_{V,W}(F(V), F(W))$. If...
I've been back-testing a trading system that balances a portfolio between the S&P (via SPY) and 20-year Treasury bonds (via TLT). Through data mining, I've been able to identify a trading strategy that produces a Sharpe ratio of 2.06 over a 6-year back-test. I'm now trying to test my strategy against bootstrapped data...
I've read that Minitab does not perform the Augmented Dickey-Fuller test; I can't find it myself. Is there an alternative function in the package that will run a unit-root test?
This question is closely related to this post Suppose I have a random variable $X \sim \text{Gamma}(k, \theta)$, and I define $Y = \log(X)$. I would like to find the probability density function of $Y$. I had originally thought I would just define cumulative distribution function X, do a change of variable, and take th...
I'm doing a research and to test our methods we're using 5-fold cross-validation. Our collections consist of some pre-classified text. To use the data in Weka, I'm pre-processing it with the StringToWordVector filter. So far, so good... The problem is: both me and my supervisor are running the algorithms. I use Weka, a...
Suppose we have our standard DGP, $y=\alpha+\beta x+\varepsilon,$ where $x$ is binary. Let's say the observed $x$ is actually measured with error, so that the explanatory variable is misclassified for some fraction of the population. This is very non-classical measurement error. I am trying to summarize the effects of...
The usual partial correlation between X and Y given the set of variables Z is the Pearson correlation between residuals resulting from the liner regression of X on Z and Y on Z. It can be computed using the recursive formula (see wikipedia) from the correlation matrix. My question is what is the interpretation of the ...
could you please review my answers and confirm my reasoning. This is self-teaching work. In how many ways can 8 people be seated in a row if: (a) there are no restrictions: Answer: 8! (b) persons A and B must sit next to each other: Answer: 8!/2! Now, the demoninator is 2! because the couple are considered 'a like', r...
If $A$ is symmetric and $Y\sim\mathcal N(0,V)$, how can I show that $Y'AY\sim\sum_{i=1}^{t}(c_i * \chi^2(1))$ with 1 degree of freedom), where $c_i$ can be any scalar? I multiplied out the canonical case where length($Y$) is two, and got $$ \begin{aligned} Y'AY &= [Y_1 Y_2] \left[\begin{array}{cc} a_{11} & a_{12} \\ a...
I want a clustering method which can let me apply constraints on the maximum and the minimum cluster sizes which I can implement. Otherwise suggestions for a combination of existing techniques which I could use to get the same result are welcome.
I'm trying to do an ordered logit regression. I'm running the model like so (just a dumb little model estimating number of firms in a market from income and population measures). My question is about predictions. nfirm.opr<-polr(y~pop0+inc0, Hess = TRUE) pr_out<-predict(nfirm.opr) When I run predict (which I'm tryin...
I am checking the description of Poisson process from Wikipedia. The Poisson process is based on four assumptions, but I am not clear this: No counted occurrences are simultaneous. Can you explain this more?
I have a silly question on bootstrap methods for calculating p-value. Suppose I have a dataset, which is likely normal distributed. Now I want to determine whether a particular value X is signifiant high in the dataset by giving a pvalue. For me, there are two options since the dataset is roughly normal distributed, ...
Here are some data: Run y 1 1 4.970 2 1 5.040 3 1 5.060 4 1 4.975 5 1 4.990 6 1 5.045 7 1 5.005 8 1 5.000 9 1 5.075 10 1 5.080 11 2 4.665 12 2 4.885 13 2 4.840 14 2 4.925 15 2 5.235 16 2 4.970 17 2 5.020 18 2 4.905 19 2 4.890 20 2 5.150 This dataset is called dat...
I came across sampling weight when I was looking into analyzing survey data. I was wondering whether we need to take into consideration sampling weight when we are running linear/non-linear regression model or descriptive statistics.
I intend to ask a number of experts to match five out of a possible ten team roles (recorder, chairman and so on) to five distinct stages of a project. I cannot seem to find any source for determining how many raters I need in order to achieve sufficient inter-rater reliability. Does anyone know of a reliable source f...
With the risk of asking a duplicate question (to be fair, I looked at 10 pages): Could you name and explain some advanced procedures which make use of the median statistic? Background: I am interested because today I saw a presentation on a TAR model, trying to figure out a baseline for negative affect within observan...
I need to test for equal variance. I tried to read up and it mentioned there are a few tests I can use to test for equality of variance such as F Test (F ratio?), Levene Test, Bartlett Test etc. I was wondering if there is a qualitative method of telling whether there is equal variance by using the SD and the mean of...
My issue is a bit hard to explain in this question's title, so hopefully I can make clear what my problem is about in this text. I'm dealing with partially supervised text classification. I have a set of positive documents and a set of unlabeled documents (which contains both positive and negative documents). My goal i...
I have an interesting question, with its original application in finance. Suppose I have a stock return $Y$, and a set of independent variables (other tradable assets) $X$. Typically, one hedges Y with X by finding the least squares solution to regressing $Y$ on $X$. Thus $Y - X\beta$ is approximately zero. But what if...
I have a data set that includes a response variable (counts), two categorical explanatory variables, and one covariate. The response variable being counts, I ran a GLM with poisson distribution, and simplified the model. While the saturated model showed normal and homoskedastic residuals, as I reach the minimum adequa...
I'm following up on the question I'd asked earlier on RBMs. I see a lot of literature describing them but none that actually talks of regression (not even classification with labelled data). I get a feeling that it is used for unlabelled data only. Are there any resources for handling regression? Or is it as simple as ...
I am wondering if there are some better machine learning methods for medical imaging segmentation? Currently, I have some relatively low-resolution MRI images and I tried to use histogram and k-means algorithm, which is an old method to do a general clustering based segmentation. However, pixel may help estimate more t...
Possible Duplicate: Locating freely available data samples Sites for predictive modeling competitions Are there sites or sources of "datasets" (either artificially created or taken from actual experiments/sources) someone can use to test their own abilities in detecting clusters, patterns, and to formulate/validate ...
Consider a random variable $Y$ with mean: $y = \alpha + \beta x$ and variance $\sigma^{2}$. Assume $n$ independent values of $Y$ are observed and are split into two samples such that the samples can be labelled: $n_{1}$ and $n_{2}$ ($n_{2} = n-n_{1}$); furthermore, assume that the observations in both groups share a sl...
Let $X_1, X_2, X_3 \sim N(0, d^2)$ and $T = X_1^2 + X_2^2 + X_3^2.$ I have an estimator for $d$, $$\hat{d} = \frac{\sqrt{T\ 2\pi}}{4},$$ and another estimator for $d$, $$\tilde{d} = \frac{1}{3} \sqrt{\pi / 2}\ \left(|X_1| + |X_2| + |X_3|\right).$$ I need to show that $\mathbb{E}(\tilde{d} | T) = \hat{d}$ and that $\ma...
When I fit a regression tree model in R, I can somehow look at the plotted tree to figure out the interactions of the predictors. However, when I fit a random forest model, I cannot plot a tree because there are too many of them. I can somehow find the importance order of the predictors (using varImpPlot function), but...
I'm using the POT Package in R for fitting a Generalized Pareto distribution to my data. For choosing an approximate threshold I'm using the tcplot() and mrlplot() the following way(x is the data containing vector) tcplot(x,u.range=c(0,quantile(x,probs=0.995))) mrlplot(x,u.range=c(0,quantile(x,probs=0.995)),col=c("gree...
Earlier today I was discussing statistical analysis software with a colleague of mine. My colleague had primarily used SPSS in previous work for performing t-tests, anovas, manovas, and other statistical tests similar to those. My colleague also mentioned that SPSS does not handle regressions well. I have no idea wheth...
A problem I've been toying around with: Company A helps a group of students to prepare for a standardized test. A perfect score on the test is 100, but most of Company A's students receive scores between 60-90. To help their students prepare to take the real standardized test, Company A offers a series of 10 practice t...
One day I gave a $95\%$-confidence interval to a requester who know nothing about statistics. He asked me what does it mean. Roughly, I answered "The population parameter is inside the interval $95\%$ of times". Then he asked "And when it is outside, can it be far from the interval ?". I said no but I was a little conf...
What justifies the usage of a variable for post-stratification? I am working with a constituent survey of a non-profit's constituent with 2500 responses out of a much larger sample and even larger population. I have many variables about the target population, which are all active constituents. In literature I've read...
Possible Duplicate: Conditional Expectation / Estimator Confusion Let $X_1, X_2, X_3 \sim N(0, d^2)$ and $T = X_1^2 + X_2^2 + X_3^2.$ I have an estimator for $d$, $$\hat{d} = \frac{\sqrt{T\ 2\pi}}{4},$$ and another estimator for $d$, $$\tilde{d} = \frac{1}{3} \sqrt{\pi / 2}\ \left(|X_1| + |X_2| + |X_3|\right).$$ I ...
I have been wading through the many discussions on outliers on this site but I am still unfortunately having difficulty determining what to do with my data set. My study consists of a simple pre-post test setup whereby i conduct 6 tests prior to and 6 tests following my treatment. The purpose of the repeated tests is t...
I am working on a small project with one time series which measures the customer visit data (daily). My covariates are a continuous variable Day to measure how many days have been elapsed since the first day of data collection, and some dummy variables, such as whether that day is Christmas, and which day of the week i...
I am studying Gradient Boosted Regression Trees and am looking at the H-statistic described on pages 18-22 of Predictive Learning via Rule Ensembles (2008). In the paper Dr. Friedman states: Interaction effects. A function $F(\mathbf{x})$ is said to exhibit an interaction between two of its variables $x_j$ and $x_k$...
I have a model and a graph: n1 = glm(formula = cbind(ml, ad) ~ x1, family = "quasibinomial") plot(x1, ml/(ml+ad)) And I would like to plot a predicted line with a confidence interval. I would like to write this (as in predict.lm): predict_n1s <- predict.glm(n1, data.frame(x1 = seq(..)), type = "response", ...
I try to analyze firms´ investment decisions. In my dataset 70% of the firms choose to invest 0 $ . 30% invest more than 0. (continuous variable). The data of the 30 % is log normally distributed. Which model is recommended for such data structure? OLS, tobit or glm model? Or even something else? First I thought a Tob...
I'm studying neuroscience and have a question about presenting some data. I would like to know if tertiary splits are acceptable when the variable in question is normally or not normally distributed. Does this matter? I'm using SPSS to run 2x2 ANOVA, with group as one factor, but want to know whether I can use "hig...
I have two columns of data, and would like to show their differences through the visualization approach. The current issue is that these two columns are in-fact very close to each other. In other words, I would like to zoom in the minor differences that are existed using a graphical way. Are there any suggestions? Than...
How can I fit a copula for a bivariate vector of negative binomial and Bernoulli margins? I would prefer a Frank or Clayton copula.
Suppose I have to estimate 3 models: $y_1 = y_2\beta_1 + y_3\beta_2 + X\beta_3 + u_1$ $y_2 = y_1\alpha_1 + y_3\alpha_2 + X\alpha_3 + u_2$ $y_3 = y_1\gamma_1 + y_2\gamma_2 + X\gamma_3 + u_3$ I account for the endogeneity of $y_1, y_2$ and $y_3$ with a approach which creates a additional variable which allows me to not e...
Background: My professor gave us several copies of his hand-writing handouts last week. Due to the low quality of printer, there are several words in the handouts cannot be recognized. However, I found that I can "guess" what the professor has written on the handouts by reading context carefully. Question: Why could...
$X\sim N(52,6)$, $Y\sim (40,8)$. What's the standard deviation of $Z=X+Y$? I'm considering to transform the linear relationship to matrix form $$Z=\begin{pmatrix} 1& 1\\ \end{pmatrix}\begin{pmatrix} X\\ Y \end{pmatrix}$$ and apply $$\Sigma_{z}=A \Sigma^{-1} A'$$ However, I don't know the next step. How to calculate $\...
I seem to remember from years ago when I first read Bishop's ANN book that it is possible to construct a neural network such that the outputs should represent the posterior probability that I would have found if I used the likelihood approach to separate the same data. Is this true or have I made this up in my mind? If...
I need to do a data analysis in R. My data consists of 2 populations of animals that have 2 different types of genomes. The children are always born as twins. I also know the mothers' weight and the combined weight of the children after 14 days. I want to fit a model that explains the variability of the twins' weights ...
OK the problem came from an AI course that I attended this year. You can find the problem description here In short we have a number of birds in the sky that we need to shoot down. In the main problem there are 90 white birds, 23 yellow, 22 blue, 22 green, 22 red and 1 black for a total of 180 birds. My question is: Ho...
How many trees would you suggest to pick to perform recursive feature elimination (RFE) in order to optimize Random Forest classifier (for binary classification problem). My dataset is very high-dimensional (> 200 000 features), and I usually select ~ 10 000 trees while running a classification without feature selectio...
My question is about a binary decision tree (binary to integer). Is there any problem if the conditions defined on a same variable ex. x1? I mean when i define the variables for my tree, can I choose: if(x1>3) then if (x1>4) then .... else .... end else .... end as you see my variable is always x1,...
Say, I have a vector v = {5,2,8,9,2} I then want a weighted mean where values of v closer to a given number (which could be mean(v), or something else) are weighted more (proportionally). So 5 (or v(1)) should be weighted more heavily than 9 (which should be given low weight). The given number could be the mean, but it...
I have a dataset containing some approx. 11 million instances, all of which can be labelled as either class A or class B. I know a priori that approx. 1,000 of these instances belong to class A, and the rest are class B. However none of the instances are actually labelled. So, I would like to be able to sample these 11...
I'm trying to figure out what kind of analysis will give me the results I'm looking for. I have 4 shops and I'm trying to understand what is the typical (most likely) customer characteristics of those 4 shops and whether they differ. The data would look like this (only with more parameters): Customer Name, Age, G...
I feel overwhelmed after attempting to dig into the literature on how to run my mixed model analysis following it up with using AIC to select the best model or models. I do not think my data is that complicated, but I am looking for confirmation that what I have done is correct, and then advise on how to proceed. I a...
I am hoping to write some rejection algorithm code in R to approximate a $\text{Gamma}(k,\lambda)$ distribution. The problem is more for educational purposes than real-world implementation. Given an $\text{Exponential}(\lambda)$ distribution with PDF: $$f_{\lambda}(x) = \lambda\text{exp}(-\lambda x)$$ the CDF can be ex...
I have a question about the interpretation of the coefficients of an interaction between continuous and categorical variable. here is my model: model_glm3=glm(cog~lg_hag+race+pdg+sex+as.factor(educa)+(lg_hag:as.factor(educa)), data=base_708) Coefficients: Estimate Std. Error t ...
First off, I'm not trying to crowd source a personal printing press (i.e., not doing this: "I'm using strategies $x$, $y$, $z$ in the stock market and..."). Instead, I'm looking for feedback on research design. The situation: Many equity/currency/futures traders use technical analysis as part of their trading approac...
When calculating Adjusted $R^2$ the formula is $1-(1-R^2)\frac{n-1}{n-k-1}$ with $k$ being how many predictors you have. If I am using a model with a single variable but that variable has been put to the 4th, 3rd, and 2nd power like the following, $\hat{Y}=-0.0162x^4+0.2239x^3-1.0941x^2+2.0972x-0.9513$ would I hav...
If s1 is the variance of a small sample, and s2 is the variance of a larger sample from the same population. Is s1 an unbiased estimator for s2? I am thinking since a sample variance is an unbiased estimator of the population variance, then s1 and s2 are both unbiased estimators for sigma^2, so s1 and s2 should also be...
Suppose we have given a two $95 \%$ confidence intervals for $X_1$ and $X_2$. They are normally distributed. From this how would we get a $95 \%$ confidence interval for $X_{1}/X_{2}$?
My question is related to : Maximum likelihood estimation and the n-th order statistic estimation-and-the-n-th-order-statistic. I will try to answer the questions, and I would like to ask you guys to look at it, and criticize it, because I want all the answers to be correct obviously :) Given $$ f_{\theta}(x)=e^{ (\th...
We need an early warning system. I am dealing with a server that is known to have performance issues under load. Errors are recorded in a database along with a timestamp. There are some manual intervention steps that can be taken to decrease the server load, but only if someone is aware of the issue... Given a set of t...
The aim is to estimate the proportion (or counts) of a certain species among a collected sample. Due to the large number, it is not possible to count through the whole sample. So I have to select a proportion of the sample (roughly divide the sample by size or weight), for instance 1/3 of this sample. My question is: w...
In my experiment, each subject is assigned to one of four conditions (2 IVs, 2 levels each). The DVs are measured pre and post intervention. Is this a 2x2 with repeated measures, or is it a 2x2x2, or something else? Perhaps it is a split plot design?
What model should I use??? I have daily repeated measures data. It has multiple dependent presence absence variables, (of which, I have collapsed into a CA with continuous variables of CA1 & CA2....or I can choose to not collapse the data and leave each dependent variable as a binary variable). My independent variab...
I aim to train my classifier for an image recognition task. What kind of preprocessing steps I need to take to enhance my results? (I have >40000 images with >700 pixels so large amounts of data with a vast feature vector.) Also can you please suggest any other efficient preprocessing method to advance performance aft...
Very often, we use data which are derived from some measurements. These measurements usually have a confidence measure associated which tells how reliable the measure is, or how confident we are about the measure. For example, we often see some confidence intervals associated with various polls. I was wondering if ther...
Possible Duplicate: How does the standard error work? What is the estimate of sample mean variance and how do you get it? Are my understandings of the following correct? $var(Y)=\frac{1}{N} \sum (X_i-\mu_Y)^2$ population variance, how much the individuals vary from the mean. $var(\hat Y)=\frac{1}{n-1}\sum(x_i-\bar y...
I'm working on an econometrics problem set, and I'm having some major problems computing asymptotic variance for this estimator. I'm considering a fixed-effects model $$ Y_{it} = \beta_1 X_{it} + \alpha_i + u_{it} $$ With $t=1,2$. Letting $\Delta Y_i=Y_{i2}-Y_{i1},\Delta Y_i=X_{i2}-Y_{i1},\Delta u_i=u_{i2}-u_{i1}$, I ...
Let $X_1$ and $X_2$ and $Z$ denote independent, real valued random variables and $$Pr(Z=0) = 1-Pr(Z=1) = \alpha$$ for some $0<\alpha<1$ Define $Y$ = $X_1 $ if $Z=0$ = $X_2$ if $Z=1$ (a) Suppose that $E(X_1)$ and $E(X_2)$ exist, does it follow that E(Y) exists? (b) Assume that $E(|X_1|) < \infty $ and $E(|X_2|) < \infty...
I was just wondering: If the joint distribution of $X$ and $Y$ is independent with $Z$, does it imply that $X$ and $Z$ are independent as well? Can anyone give a counterexample/proof?
I'm trying to understand Bayesian Networks and am attempting to apply it to solve some problems in the world of marketing, most notably search engine marketing. I have a data on each in click to a website, the date/time, what keyword that visitor came from, how much I paid for that keyword, which ad was clicks, whether...
I have the model that I need to estimate, $$ Y = \pi_0 + \pi_1 X_1 + \pi_2 X_2 + \pi_3 X_3 + \varepsilon, $$ with $\sum_k \pi_k = 1 \text{ for }k \geq 1$ and $\pi_k\ge0 \text{ for }k \geq 1$. Elvis answer to another question solves this for the case of $\pi_0 = 0$. Here's his/her code of this solution: > library("q...
Let's say I have a data set $X = [1,2,3,4,5]$. And I want to measure how close it is to a Gaussian distribution. Is there a way to use cross-validation to do this? For example, if I do leave-one-out cross-validation, I could calculate the sample mean and variance for $2...5$, then calculate $P(1)$. I repeat this pro...
Do you know any datasets other then Google's Google Book n-gram dataset? Especially some datasets about scientific papers would be great.
I have some variables and I want to reduce their number for further analysis. I initially thought of combining them using factor analysis. But since the variables are of all kinds (rating, count, ordinal, continuous dollar amount) I am thinking about using CATPCA for it. However, I have some questions about the techniq...
I don't find a textbook presenting prediction intervals for mixed models. Moreover I'm only looking for a prediction interval for the balanced one-way random effect ANOVA model. Do you know a formula for this interval ?
I'm a clinical researcher and I am comparing children who had fluid in the abdomen (ascites due to liver disease). I have 4 groups based on the kind of fluid analysis and in each group I have incidence of renal failure, bleed, altered sensorium, etc. How should I compare these groups? Should I do multiple chi square ...
The gamma distribution is a commonly used prior distribution for the precision ($1/sd^2$) of a normal distribution in Bayesian hierarchical modeling. I want to use an informed prior for the variance and I ask an expert on the data I'm trying to model. An easy way of describing earlier knowledge about the variance of th...
I'm using libSVM for binary classification and my training data is very unbalanced (-1:90%, +1:10%). According to libSVM's documentation, it's better to set different penalties for positive and negative classes. For example, the SVM problem is: $\min\limits_{w,b,\xi} \frac{1}{2}{\bf w^Tw} + C^+\sum\limits_{y_i=1} \xi_...
I wanted to ask this question on stackoverflow but I think it is more suitable here. If I am wrong, please tell me. My question concerns the use in statistics to analyse physical/engineering data. As statistical tools to be used depend on the context and are rarely universal, it is mandatory that I describe my problem ...
Possible Duplicate: Computation of new standard deviation using old standard deviation after change in dataset I know the sample variance of n samples and its mean and n itself. Now I would like to add one more sample so I have n + 1. Is there a way how to add the sample without recalculation the whole term. (comput...
My dependent variable is continuous, non-normal (skewed left according to Shapiro-Wilk test). I have two independent variables (treatment group by colour, food type). There are 3 levels within each independent variable. The number of observations for each independent variables are not equal. I have looked up non-parame...
Suppose $X \sim N(\mu, \sigma^2)$. After $n$ independent draws $\bar{X} \sim N(\mu, \frac{\sigma^{2}}{n})$. I am assuming that each draw contains $n$ numbers? Because if each draw only had one number then we would only have one mean.
My question is about calculation of confidence interval (CI) for odds ratio (OR) from a SAS output of a logistic regression model for a different reference category without running the SAS program again. I’ve run SAS logistics modeling dichotomized income level (low coded as 1 versus high coded as 0) with 4 dummy coded...
first time asking question here so I hope I will not mess up. I am in the process of calculating the sample size for a study that utilizes an independent t-test design: comparing some outcome before and after a certain policy, subjects in the pre and post periods are not linked. Simply put, the study is about infant we...
The situation Some researchers would like to put you to sleep. Depending on the secret toss of a fair coin, they will briefly awaken you either once (Heads) or twice (Tails). After each waking, they will put you back to sleep with a drug that makes you forget that awakening. When you are awakened, to what degree sho...