instruction
stringlengths
9
38.7k
I just ran my first ever PCA, so please excuse any naivety on my part. As input, I used five years worth of the following: S&P/ASX 200 A-REIT S&P/ASX 200 Consumer Discretionary S&P/ASX 200 Consumer Staples S&P/ASX 200 Energy S&P/ASX 200 Financial-x-A-REIT S&P/ASX 200 Health Care S&P/ASX 200 Industrials S&P/ASX 200 Inf...
I am trying to calculate the error variance for the following question but I don't have clue where to start. Could anyone please help?
Is it appropriate to conduct an unpaired t-test with only summary means from both groups? For example, let's say you want to compare: a. Professor A's scores received on a evaluation by his students from one semester; with b. The average evaluation scores among all professors in the university completed by all studen...
I have no statistics background, but an trying to complete my first quantitative research survey writeup for my researcher in education class and hope someone can direct me. I created a poll of 62 teachers and am trying to analyze the following 4 questions Do they use social media personally (yes/no) Do they use SM i...
I am looking at probability of an event ($E$) for a number of customers. Each customer qualifies for the analysis through a qualifying Action ($A$), and has a finite Duration ($D$) to complete Event. There are a number of interim actions that should have an effect on reaching the Event. Unlike the time-to-event mode...
You conduct a case-control study of elevated cholesterol and myocardial infarction (MI). Of 20 MI cases, 10 had elevated cholesterol. Of 30 healthy controls, 10 had elevated cholesterol. These results give an odds ratio (OR) of 2.0, with a 95% confidence interval (CI) $ = [0.6-6.4]$. Interpret the CI?
I have a sample of 197 responses. 8.6% (17)are from Group A, the remainder from Group B. (The groups are mutually exclusive, and not independent). (If it helps visualize the issue, Group A is under 10's, Group B respondents aged 11+.) The responses are then sorted in to groups by type. Type 1 is "head injuries", and th...
Data: Multivariate Time Series, Series Demand of a product Rainfall data both available at monthly level from 2010-2013. Approach: I am trying to estimate the effect of rainfall on demand of the product using VAR( Vector Autoregression) model. Demand data has some outliers, like a month of sudden high demand and f...
What are the various methods used for binary classification other than logistic regression? What are the advantages of logistic reg. model in developing Propensity score w.r.t. other methods? Actually I have been asked why? I backed it by saying its binary classification, so logit is perfect. Then I was asked why spec...
I have the number of people diagnosed with a condition in each quintile of deprivation over five different years. We are interested in whether numbers of diagnoses are going up faster in more deprived quintiles. The data looks like this: It looks to me very much like it rises much faster in the more deprived quintiles...
I am doing study investigating the effect of company's heritage on consumer attitude towards the company/brand. For this purpose I have created two texts: one revealing the history of the company, and the other one - the control text - revealing some general information about the firm. My results indicated that the...
I am a newbie in this area so I hope someone could explain the following problem to me in plain English. Assume I want to use MAP to estimate some parameters on the basis of some observations. I know the method of computing MAP is: $$ \theta(x) = {\rm argmax} \ f(X|\theta) g(\theta) $$ where $g$ is the prior. However...
I am trying to draw random numbers that follow a two-part pdf a) $|x|< x_0: f(x)=\text{constant}\quad \to \quad F(p)=a+(b-a)p$ b) $|x|> x_0: f(x)=\exp(-|x|)\quad \to \quad F(p)=-\ln(1-p)$ that is the probability is constant between $(-x_0,x_0)$ and falls exponentially outside it. Knowing the quantile functions $F(p)$ (...
I'm trying to implement Principal Component Analysis (PCA) in a portfolio replication procedure. (The replication procedure looks like regression: there is a vector representing payoffs of an asset under different ecocnomic scenarios, I need to find a linear combination of vectors of another assets that fits the most ...
I am currently writing a paper with several multiple regression analyses. While visualizing univariate linear regression is easy via scatter plots, I was wondering whether there is any good way to visualize multiple linear regressions? I am currently just plotting scatter plots like dependent variable vs. 1st independ...
I am looking at my statistics book and an article online for linear regression and was wondering if anyone can verify that these two equations are entirely different. Consider the equation $\hat{y} = ax + b$ In my book, a and b are : $a = \frac{r \cdot S_{y}}{S_{x}}$ $b = \bar{y} - a\bar{x}$ $r = \sum \frac{(x_{i} - \...
I was looking at the outlier detection formula which uses the IQR and I wonder why it should be multiplied by 1.5? Can the constant be increased i.e 3 or 6 to be more "acid" if so under what criteria?
Wikipedia provides the following example when describing feature hashing; but the mapping does not seem consistent with the dictionary defined For example, to should be converted to 3 according to the dictionary, but it is encoded as 1 instead. Is there an error in the description? How does feature hashing work? The t...
I want to break down this statement: $|E[(X - \bar{x})(Y - \bar{y})]|^2 = |<X - \bar{x}, Y - \bar{y}>|^2$ I am not familiar with expectation values being broken down into vectors. I only know that by definition $\displaystyle E[(X - \bar{x})^2] = \sum_{i=1}^{n} \frac{(x_{i} - \bar{x})^2}{n}$ and I would like to know h...
6 light bulbs are chosen at random from 17 bulbs of which 6 are defective. (a) What is the probability that exactly 2 are defective? (b) What is the probability that at most 1 is defective?
I'm trying to work on a problem which contains a symbol that I don't recall seeing before - I. I assume it has some special significance but I'm having a hard time looking it up. Relevant portion of the problem: "Consider a random sample X1, ...Xn from the pdf f(x; θ) = .5(1 + θx) I[−1,1](x)" If it helps, the context o...
I am trying to design a test and am confused between the types of experiment that I should be conducting. Here is the description of what I am doing: It is a repeated measures test. So, a participant is first given an uncolored node-link graph G1 and asked some questions about the graph. The dependent variable is the t...
I'm using logistic regression to predict student retention in an online course. I have a data of student interactions within a web platform of an online course. The course spans 6 weeks, with new lecture resources and new assignments uploaded at the beginning of each week. The weekly assignments due at the end of eac...
If you roll 5 standard 6 sided dies, what's the probability that you will get at least three 2s? I imagine it would be 1 - P(0 twos) - P(1 two) - P(2 twos), but I don't know how to calculate the probability of these.
I'm analysing data from our experiment. We had participants in 4 groups, each participant was measured 4 times. We measured cortisol in saliva, so it leads us to the linear mixed models, because the individual cortisol levels have different slopes. I have fitted following model: lmer1 <- lmer(Cortisol ~ group*measureme...
I am working on a simulation. I am going to extract a series of normally distributed values from a distribution $N(x,s)$ whose mean $x$ and variance $s$ is known. I want to pretend that such distribution $N(x,s)$ is a latent causal variable that determinates a response ordinal variable $O$ which is in a known range (i....
I am not familiar with the change-of-variable technique that the question refers to. Does anyone have an idea what is meant and how one should go about doing it?
Basically I'm trying to fit garch(1,1) model with arima order from auto.arima > assign(paste("spec.ret.fin.",colnames(base.name[1]),sep=""), + ugarchspec(variance.model = list(model = "fGARCH", garchOrder = c(1, 1), + submodel = "GARCH", external.regressors = NULL, variance.targeting = FALSE), + mean.model = list...
I am trying to run a discrete duration model for analyzing (monthly) unemployment using survey data. I have household-level data, and as such I would like to control for the household effects in my model. I thought to do this by either allowing for cluster effects in the estimation of the standard errors or by random e...
Random variables are usually denoted with upper-case letters. For example, there could be a random variable $X$. Now, because vectors are usually denoted with a bold lower-case letter (e.g. $\mathbf{z} = (z_0, \dots, z_{n})^{\mathsf{T}}$ and matrices with a bold upper-case letter (e.g. $\mathbf{Y}$), how should I denot...
I have a bunch of features that I would like to use for classification/machine learning and cluster analysis. Normally I use single point values or transformations of values for features and everything is fine Now I would like to use a matrix as a feature. The matrix is probably going to be a fairly big (say 50x50) but...
I have 5000 cases vs 5000 controls with positive/negative outcome. chi.test shows no significance for this data. I get significance when subsetting cases on VarX, 1000 cases vs 5000 controls. I suspect that doing 1000 cases vs 5000 controls makes up the significance. To eliminate this I am randomly picking 1000 control...
I have a table that contains items. Each day its possible that an incident can occur to some items but equally no incident may happen. I wish to see if its possible to create a prediction for the next day based on the information below **Date Item 1 Incident Location** 20130701 40 12 ...
If possible, please explain things like I'm 5. I know very little about this subject, but would like to learn more. I have a data frame (in R) containing player_id, points, away, opponent_fact_1, opponent_fact_2. points can be negative. away lets us know if the game was at home or away (0 or 1). opponent_fact_1 and...
When there are two change points in a piecewise constant hazard model then the density function becomes some triangle exponential distribution. In this situation I can't generate the survival time from the CDF using probability integral transformation. Can any one help me to generate the survival time from this model?...
If $X \sim N(0,1)$ and $Y \sim \chi^2(n),$ then it's "known" that $Z = X/\sqrt{Y/n}$ is $t$ distributed. Is there anywhere a proof for this? That in the end one can see the $t$ distribution?
I'm comparing the performance of multiple algorithms on multiple data sets. Since those performance measurements are not guaranteed to be normally distributed, I chose the Friedman Test with the Nemenyi post-hoc test based on Demšar (2006). I then found another paper that, aside from suggesting other methods like the Q...
I recently finished reading The Lady Tasting Tea, a fun book about the history of statistics. At the end of the book, the author, David Salsburg, proposes three open philosophical problems in statistics, the solutions to which he argues would have larger implications for the application of statistical theory to scienc...
I came across a result in a time series textbook the other day and have not been able to understand why it is true (the authors don't give a proof but just state it as true). I want to show that the eigenvalues of the matrix $\mathbf{G}$ given by $$G= \begin{pmatrix} \phi_1&\phi_2 &\phi_3 &...&\phi_{p-1} & \phi_p\\ 1 ...
I have three groups of experiments. For each experiment I am looking for the percentage of occurrence of case x. In the first group I have 15 experiments. The case x was seen 10.191% of the total time for 15 experiments. In the second group I have 6 experiments. The percentage of x is 1.564%. In the third group I have ...
Given the conditional distribution $p(x|y)$ and the prior of the hidden variables $p(y|\theta)$ with unknown hyper-parameter $\theta$. Now we have observed i.i.d. samples of $x$. Besides the Bayes and empirical Bayes approach, is it possible to estimate both the hidden variables $y$ and the hyper-parameter $\theta$ di...
I have cell counts related to the action of different microorganisms and I want to compare their distribution. It's supposed they follow a normal distribution after a log transformation, but I can't register all the data due to the limit of measuring instrument, so I obtain a very similar normal curve but it's cut in t...
I proved the result myself too, but my proof was a lot lengthier. Apparently however, it can be done in just these two lines. However, I don't really get the first step here. Could anyone please explain me why the first equality holds?
I have been tasked with looking at a set of data with about 6000 records that each have 60 or so qualities associated with them (Let these be X1, X2, ... ) and determining what are the top 8 factors that determine whether a record will have a certain designation (there are three, Let's say, A, B, and C). Most of these ...
I'm having difficulty figuring out the difference between (typically referred to as S.E): A. The Standard Error And B. The Standard Deviation of the Sample Mean (typically referred to as s) Are they the same thing? OR S.E is the standard deviation of the the mean of the sampling distribution similar formula as the sta...
Exploring the work of ET Jaynes, Probability Theory (11th Printing 2013) has led to consideration of the technique he identifies as Sequential Inference (p. 96); where the evidence, in decibels, accumulates until the investigator either (1) stops with acceptance, (2) stops with rejection or (3) continues with another t...
I have two random variables: (1) With standard normal distribution. Confidence interval $I_1$, which is centered and has probability of $(1-\alpha)$ (2) With T-distribution. Confidence intervall intervall $I_2$, also centered and has prob. $(1-\alpha)$. First I had to compute the length of both: I got $\mathcal{L}(I_1)...
I have a data set with a binary response variable as non-zero survival cells (y=0) or zero survival cells (y=1), and I would like to build a model with explanatory variable X. I know that the most straightforward method is to use logistic regression. However, in my case, it is more biologically sound to use a Poisson m...
I thought I was fairly good at combinatorics, but this puzzle is giving me some trouble! I have a bag with $N$ balls. I pick one at random, mark it and put it back inside the bag. I repeat this operation $D$ times. What is the probability that I will end up with exactly $C$ clean balls?
In the decision tree based classification technique. What is the difference among the different approaches like entropy, gini index? When to use entropy and when to use gini index?.
I have time series of several variables of 60 or so rows of count data. I want to do a regression model y ~ x. I've chosen to use a Quasipoisson & Negative Binomial GLMs as there's overdispersion etc. x Min. : 24000 1st Qu.: 72000 Median :117095 Mean :197607 3rd Qu.:291388 Max. :607492 y Min. : 13...
Let us consider a manufacturing system. It involves 2 independent components. If one of these components fails then the entire system fails. Let $Y_j$ be distributed $\exp(Q_j)$ where $j=1, 2$. If component 1 fails first, then $Y_1$ is observed but $Y_2$ is not ($Y_2$ is censored). If component 2 fails first, then $Y_2...
Say that I have a real-valued discrete distribution $p(x)$ and $N$ samples, $x_1, \ldots, x_N$, and I want to test whether the samples came from the distribution without making any further assumptions whatsoever. Note that there are very few samples; in the application that motivated me to make this post, we have $N = ...
I have a distribution of the form $\exp(-\exp(-x^2))$. Is this a known family of distributions. Otherwise how would you find/approximate the normalising constant. The domain is $x \in (-\infty,\infty) $ Note: I want to do this without sampling.
Suppose I am interested in sampling many pairs $(\mathbf X, Y)$ from some distribution $f(\mathbf x, y)$ where $\mathbf x \in \mathbb R^p$, $p$ large ; I am interested in both exact and approximate simulations. $f(\mathbf x)$ is easy to sample from, but $f(y \mid \mathbf x)$ is not. For motivation, I could do Gibbs sa...
I have a simple question, but I haven't been able to find the answer I'm looking for anywhere. I'm sure there is some simple theorem or distribution that tackles this problem, but it evades me. Perhaps I haven't googled the right terms or looked in the right textbooks! My problem is as follows. Suppose a proportion ($p...
In R, I can fit a Probability Density Function to some empirical data using the following code: energy <- rnorm(30) * 20 dens <- density(energy) sum(dens$y)*diff(dens$x[1:2]) hist(energy,probability=TRUE) lines(density(energy),col="red") This produces the following graph of the Probability Density Function (PDF): How...
What would the normalising constant be of the following, or atleast an approximation? I would like to avoid sampling. $$f(\theta)=\exp(-k_1e^{-k_2\theta^2}-\theta^2)\qquad\theta\in(-\infty,\infty), \quad k_1,k_2>0$$ In the event that its not possible, what would be a valid polynomial lower bound on $\log(f(\theta))$, ...
How do I test for differences between two groups on three dependent variables? Is that an ANOVA or multiple t-tests with an adjusted alpha level?
It seems to me that, after having a predetermined level of significance, the Neyman-Pearson approach only requires to see if the observed $x$ lies in the rejection region or not. In this case, how can one relate it to the $p$-value? Or is it an alternative way to judge if $x$ is rejected or not by using $p$-values? Aft...
I am trying to write code to build a growing SOM for mixed-type data. I came across a paper Growing Self-Organizing Map with cross insert for mixed-type data (http://www.sciencedirect.com/science/article/pii/S1568494612001731). It was very interesting and handled both categorical and numeric data in a unified way. Howe...
This is a question from an old test, taken completely out of context: "The customers arrive at a shop according to a Poisson distribution with mean $\lambda$ per hour. Each customer takes $1/k$ hours of service. What is the expected value and the variance of the service time for customers arriving within an hour? What...
I am having trouble deriving the standard error of a simple regression estimator by hand. Stata code and output for a toy example using the cars dataset is below. The basic idea is that I have a binary treatment that interacts with a binary covariate. All observations are independent. I'm probably overlooking something...
I read this definition of an ARCH(1) model: $$r_{ŧ}=\sigma_{t|t-1}\epsilon_{t}$$ $$\sigma^{2}_{t|t-1} = \omega + \alpha r_{t-1}^{2}$$ However, when it comes to forecasting the h-step-ahead variance, I don't understand why is defined in this way. This is the h-step-ahead conditional variance: $$\sigma^{2}_{t+h|t}=E(r^{2...
Suppose I have a multivariate Gaussian such that $p(y)=\mathcal{N}(\mathbf{0},\Sigma)$. What would be a quadratic lower bound, $f(y)$ on on $p(y)$. i.e. for what values of k and $\Omega$ will $f(y)=-y^T\Omega y+k\le p(y)$ s.t. $p(0)=f(0)=\frac{1}{|2\pi\Sigma|^{1/2}}$ As pointed out below $k=\frac{1}{|2\pi\Sigma|^{1/2}}...
In Bayesian theorem, $$p(y|x) = \frac{p(x|y)p(y)}{p(x)}$$, and from the book I'm reading, $p(x|y)$ is called the likelihood, but I assume it's just the conditional probability of $x$ given $y$, right? The maximum likelihood estimation tries to maximize $p(x|y)$, right? If so, I'm badly confused, because $x,y$ are both ...
I'm in need of generating a set of random numbers (between 100 and 300 would suffice), which conform to a given mean, and also fall within certain upper and lower endpoints. Using the statistics software that I have (Minitab), I can find options to generate random data with a given mean but no endpoints, and generat...
I need to explain what average partial effects (APEs) are to a very general non-statistical audience (i.e. the APEs derived from a probit model). I have tried to define APEs using layman's terms but I find it hard, can somebody please help me with this?
I am developing a two variable multiple regression model. ie. $$ Y = b0 - b1 * X1 + b2 * X2 $$ I am using the following formula for partial F-test from http://luna.cas.usf.edu/~mbrannic/files/regression/Reg2IV.html under the section Testing Incremental R2. The F-statistics calculated is supposed to tell me if adding ...
I am working on channel modeling for cognitive radio using HMM. I've written a MATLAB program for forward, backward and Baum-Welch algorithm for multiple sequences. After given some random input and running the program for 1000 to 4000 iterations I'm getting some results. But I'm not getting how to interpret my results...
I am interested in deepening my Asymptotic Theory understanding. My current knowledge is that of a typical PhD student (from a decent University), say at the level of Green's textbook. Are there any good book(s) that you would recommend? Much appreciated.
Just 2 simple questions I´m struggling with. Hope you can help. Suppose that the model $y=\beta X +\epsilon$ with $\epsilon \sim \text{ Normal}(o,\sigma^2I_n)$ has a prior $\beta \sim \text{ Normal}( \beta_0, k(X^TX)^{-1})$ I want two things: 1.) I want to show that for the density of $\beta$ that $$p(\beta) \propto \e...
I am putting together a review/meta-analysis of body composition in children. The data I will analyze consists of measures of fat-mass (FM) and fat-free-mass (FFM), which when summed equal total mass. While most papers report the means and SDs for FM and FFM, which is what I want, every so often I get a paper that rep...
I'm curious about the nature of $\Sigma^{-1}$. Can anybody tell something intuitive about "What does $\Sigma^{-1}$ say about data?" Edit: Thanks for replies After taking some great courses, I'd like to add some points: It is measure of information, i.e., $x^T\Sigma^{-1}x$ is amount of info along the direction $x$. Dua...
I have a data frame with the following: > summary(d5$points) Min. 1st Qu. Median Mean 3rd Qu. Max. -4.200 0.000 1.000 2.579 5.000 23.400 > sd(d5$points) [1] 3.736616 What's a simple, but statistically sound way to categorize this data into terrible, poor, average, good, excellent. I'm using R. E...
Hope I'm able to find someone who can answer this question. The previous one didn't get answered! Proc ucm is the SAS implementation (using state space concepts) to isolate the unobserved trend, seasonality & estimate the coefficients of regressors simultaneously. Documentation/research on proc ucm is sparse. There ar...
In my data, the response variable is ordinal and there are 16 predicting variables which are also ordinal. I plan to perform an ordinal regression. But before doing that I want to graphically show the relationship between the response and predictor variables. In regular regression where the variables are numerical, we ...
When discussing probability distribution, I always read something such as excess kurtosis, positive kurtosis, positive skewed and negative skewed. What exactly do these concepts indicate? In practical applications, such as market return or something else, what can these characteristics tell us?
One can define the probability distribution: $$ p(\theta; \alpha, \theta_0) = \frac{ e^{ \alpha \cos( \theta-\theta_0) }}{ 2 \pi I_0(\alpha)} $$ over an angular variable $\theta \in [0,2 \pi]$. By what name(s) is this distribution called? ($I_0$ is the modified Bessel function and serves to normalize the distribution)...
I have been discussing the following issue with a colleague of mine and I can't seem to wrap my head around it. I have a computer vision background, so I'm mostly familiar with 2D MRFs/CRFs for image restoration and segmentation. What is clear to me is that MRFs typically have a simple 2D grid structure for p(x) and e...
I have 2 (monthly) time-series that look like this: Economical intuition suggests that they are positively related and I can see this on the plot but if I compute correlation between their log-returns $\ln x_t/x_{t-1}$ and $\ln y_t/y_{t-1}$ this correlation is -0.04 this is basically zero and not statistically signifi...
Is there a precise definition of weakly informative prior? How is it different from a subjective prior with broad support?
Q: What is the mathematical theory behind coding categorical variables for regression analysis? The situation is this: For numeric variables, we can code observations via the transformation $\textrm{coded value} = \frac{\textrm{uncoded value} - \frac{(high+low)}{2}}{\frac{(high-low)}{2}}$. For categorical variables, ...
I am puzzled by the following statement: " In order to increase the standard deviation of a set of numbers, you must add a value that is more than one standard deviation away from the mean" What is the proof of that? I know of course how we define the standard deviation but that part I seem to miss somehow. Any commen...
the conditional mutual between three sets of mutually exclusive variables, X, Y, and Z, is defined as follows. $I(X,Y|Z) = \sum_{xyz} P(x,y,z) \log \frac{P(z)P(x,y,z)}{P(x,z)P(y,z)}$ my questions concern the $\log$ of the ratio of the probability products. if $P(z)$ or $P(x,y,z)$ is 0, then $\log(0)$ is undefined. if...
I'm having a problem with a factorial design in Minitab, as it is not as clear how to proceed as all problems I've had thus far. The problem is to create a factorial design with two factors where the first factor, Environment, which has two levels - H2O and Salt H2O whose values overlap (i.e. they cannot be differentia...
I want to compare the results of two items by age category and do not really know what test to use. I tried a Cochran–Mantel–Haenzel–test at first, but I don't think it is testing what I really want to know. We have two items (both dichotomous yes/no). We are interested in the proportion who said yes to item 2 if they ...
How does one randomly sample from a T-distribution in R. From what I've found, the function rt in R doesn't let you specify the mean and standard deviation. For a normal distribution it is simply rnorm(x,mu,sd). EDIT: For the t-distribution there is a central and a non-central version. I want to know the difference bet...
I have a data set with 18% of AGE variable missing which is an important variable for analysis. Should I try regression imputation or should I drop those observations? Does even regression imputation make sense in this case (for age)?? I also have income variable but the correlation between age and income is negativ...
One of my homework problems is a simulation that compares three estimators (least squares, ridge regression with known parameters, and ridge regression with estimated parameters) for the following model $$Y_i = \beta X_i + \epsilon_i,\quad \epsilon_i\sim N(0,\sigma^2)$$ I am supposed to do 1000 replications with $X_i\s...
I'm trying to make sure my understanding of iid observations is rock solid and so I have two write-ups in which I've attempted to accurately explain the concept. Can anyone comment on the accuracy of each of these write-ups? (1) One way to represent a population is through a random variable X, which would have a pdf/pm...
I am working on boosting classifier. I am planning to use linear svm as the weak classifier. I am using liblinear for it. My question is how can I weight each instance of liblinear based on the boosting weights?
I have searched for the above topic but did not have an answer. Can someone please tell me the detailed difference between the multivariate Gaussian Distribution and multivariate Cauchy Distribution? How do they differ in sampling is Estimation of Distribution algorithm for optimisation.
I've created a logit model using GLM and I´d like to get the slope of the independent variables. I've read that using coef() in R it´s possible to do it, but the only thing I have back is the coefficients that I already have using summary(). I'm trying to get the slope at mean, like the one that is given when we use Gr...
The Wilcoxon signed ranked test tells us if the median difference between paired data can be zero. The test is executed by computing a statistic, then a z-score and comparing it to a critical value. The thing that I find shocking is that we discard all the pairs with same values from the process of computing the stat...
I have a small, unbalanced data set (70 positive, 30 negative), and I have been playing around with model selection for SVM parameters using BAC (balanced accuracy) and AUC (area under the curve). I used different class-weights for the C parameter in libSVM to offset the unbalanced data following the advice here (Train...
How do I interpret a negative confidence interval when comparing two population means? For example, a confidence interval is $(-23.11, -1.02)$, what is the significance of these values being negative? Is it strictly signifying that $\bar{x}_1 < \bar{x}_2$ ?
Looking at the Wikipedia definitions of: Mean Squared Error (MSE) Residual Sum of Squares (RSS) It looks to me that $$\text{MSE} = \frac{1}{N} \text{RSS} = \frac{1}{N} \sum (f_i -y_i)^2$$ where $N$ is he number of samples and $f_i$ is our estimation of $y_i$. However, none of the Wikipedia articles mention this rela...
I'm trying to write a two sided permutation test to test the alternative hypothesis there is a difference in the medians of 2 independent samples. My question is this: am I calculating the p-value correctly? Thanks SO much! sample1 <- groundwater$West[!is.na(groundwater$West)] sample2 <- groundwater$East ts <- median(s...
am currently working on a problem where I have to calibrate weather parameters at a ground location using Satellite data available (1979-2012) over rectangular grid points and surface observatory data for a location (1980-2000). I have built two models - One for January months over 1980-2000 period and other taking dat...