instruction
stringlengths
9
38.7k
Do I understand this correctly: You fit a model with unknown parameters to a dataset. You choose the parameters so the likelihood of the dataset under the model is maximal. Let this be $L_{max, model1}$. You do the same with a more advanced model. Again you pick the coefficients of the model so that the likelihood of t...
I have a problem with randomized response method when calculating the probability of critical attribute. For any of you who are not familiar with the method, you can check it here, Wikipedia Entry for Randomized Response. Briefly, the method encourages people being surveyed on a critical question to answer honestly. To...
Let $X$ have the pdf $f_X (x;\theta)=1/(2\theta)$ for $-\theta<x<\theta$, zero elsewhere where $\theta>0$ Is the statistic $Y=|X|$ a sufficient statistic for $\theta$? My book claims it is but I do not see it. A transformation argument shows that the distribution of $|X|$ is uniform with $f_X (x;\theta)=1/\theta$ for ...
We are preparing one event for our customers and I need to count numbers we need to prepare for this event (I think my question belongs to statistics and it isn't a homework). Inputs: We have 26 ASCII letters (ASCII codes 65-90) from which customers choose. When somebody choose a letter, he doesn't give it back. We ha...
I am pretty new in machine learning and hence facing a lot of confusion in data normalisation concepts. Someone pls clarify the following doubts : 1) While normalising a data matrix of m-samples x n-features, the normalisation should be done along m-samples or along the n-features i.e we normalise each row or each colu...
My error gets increased when i increase the n_estimators value in ada=AdaBoostClassifier(n_estimators=1, base_estimator=SVC(probability=True,kernel="rbf",gamma=.1,C=1)) for n_estmators the predictor is giving the least error, whereas as i increase the value of n_estmator then the error also increases what could be in...
This is what I already know: There is no true zero value on interval scales like temperature. The zero value doesn't state that temperature becomes unavailable at that point. Zero is just a human defined number which represents a certain level of temperature. This is all because temperature is a relative scale. What I...
I need to test multiple variants of an an option, but I can't guarantee that the variants are independent (eg. one individual may have seen more than one variant). I also can't know which individuals saw more than one variant, nor, if two were seen, the order in which they were seen. I have a few questions: Can this p...
Can a LASSO be applied for predictor selection in a logistic GEE (generalized estimating equations) model for longitudinal data? Is there an implementation of LASSO for a logistic GEE model for longitudinal data in either R or MATLAB? Thanks!
I work with 4 sequence datasets that I want to compare. The datasets range from roughly 150 to 2000 sequences. I've been able to use TraMineR on datasets up to 1000 sequences long, but when I try to run the dataset with 2000 sequences, even our University's supercomputer cannot finish in under 36h. Hence, I'm consideri...
My data set includes 400 records. Each record comprises values for the binary outcome variable $y$ and 12 categorical predictor variables $x_1, ..., x_{12}$, most of which are binary too. The records originate from 10 different studies, of which one is much larger than the remaining ones (it contributes nearly three-th...
I am performing survival analysis on credit data. I created a simple model with using interest rate: cox <- coxph(Surv(periods,charged_off) ~ int_rate, data=notes) I assumed that int_rate was a time-independent variable, but the following test rejects HA: > cox.zph(cox) rho chisq p int_rate 0.0446 ...
In a standard regression problem \begin{equation} \mathbf{y} = \mathbf{X} \beta + \mathbf{e} \ , \end{equation} the solution to $\beta$ when the system is overdetermined is $\hat{\beta}= \left(\mathbf{X}\Sigma^{-1}\mathbf{X}\right)^{-1}\mathbf{X}^T\Sigma^{-1}\mathbf{y}$, where $\Sigma = \sigma^{-2} \operatorname{Var}(\...
Generally, the sign test is used to test the hypothesis that the difference median is zero between two continuous distributions (Sign test). I am trying to understand whether it can be adapted to prove that the values from one distribution are generally lower than the other. Or are there better tests which can be desig...
There are several resources describing these types of networks, but none of them explicitly address the differences between them. What are the differences between theses models?
I am running a logistic regression in SPSS with a sample that uses survey weights. The sample size is 1000 and the weights are along the lines of .86 or 1.23 depending on the case. I am using the weights option in the Data command to weight my sample before I run my logistic regression but then I get the unweighted fre...
What is the probability of absorption at $ 0 $, as a function of position $ x $, for a 1D random walk (on $ \mathbb{Z} $) with asymmetric step sizes? For example, suppose that you can take two steps to the right with probability $ p $, or one step to the left with probability $ q=1-p $. I calculated the probabilities f...
I have a uniform prior with certain values $a$ and $b$ (not standard uniform). How do I update this distribution to take into account the results from my data? If it was $U(0,1)$, I could convert it to a beta distribution, but since it is not, I'm not sure how to approach this.
If I have a batch of 130 parts and I inspect a random sample of 14 parts, either accept or reject the part, and calculate the percent defective in the sample, how confident can I be that the percent defective in the sample represents the percent defective in the batch? Here's why I need to know: We have a process with...
I have generated a number of objects in 3D space (2D rectangles). I have sampled those objects along lines, calculating the number of intersections between the lines and objects. If I use increasing amounts of lines, the standard error in the number of intersections decreases, as expected. What I really want to know is...
After a sample size of 400+ I was able to get a Pearson's coefficient of .25. How am I supposed to break this down into a probability or a percentage. Rather, how can I explain my findings in laymen terms? I should give some more information. We have two different tests. One of these tests has 1 question, How satisf...
Apparently one can obtain a regression analysis as $$g(x)=\frac{\int yf(y,x)dy}{f(x)}$$ where $$f(x)=\int f(y,x)dy$$ is the marginal density of $X_i$. In effect, I believe, the above expression calculates the expected value of the conditional density $f(y|x)$. I am confused, is the above expression a generalization of...
If I have a regression model: $$ Y = X\beta + \varepsilon $$ where $\mathbb{V}[\varepsilon] = Id \in \mathcal{R} ^{n \times n}$ and $\mathbb{E}[\varepsilon]=(0, \ldots , 0)$, when would using $\beta_{\text{OLS}}$, the ordinary least squares estimator of $\beta$, be a poor choice for an estimator? I am trying to fig...
The following concepts are baffling and would be obliged for a constructive explanation. (Q1) What is the conceptual difference between (a) Kolmogorov-Sinai entropy, (b) Shannon entropy, (c) Source entropy (d) topological entropy and (e) Boltzmann entropy? (Q2) What are the relationships between different entropies? ...
Alice, Bob, and Charlie work for a company and each of them has a cell phone and a car. They drive to work and they have their cell phones with them when they show up at work. The company has installed some sensors to detect the presence of the cars and cell phones. Sometimes our users use the public transportation to...
Suppose $X$ is a one dimensional Normal variable. Find the $2 \times 2$ fisher information matrix $I(\theta)$ for $\theta = (E(X), E(X^2))$. Basically, what I did was to write down the pdf in terms of $E(X)$ and $E(X^2)$...and so I got Let $d = E(X^2)$ (so $\sigma^2 = d - \mu^2$) $(\frac{1}{2(d-\mu^2)})^{1/2} e^{[-(X-\...
I have a set of processes, each of which has number of events and the total length of time. I'm trying to model them as independent Poisson processes with there own rates. The rate of the ith process may be estimate thus $$ \lambda_{i} = \frac{n_{i}}{T} $$ however many of the processes do not generate any events and so...
If $X^\dagger$ is the pseudo-inverse of $X$, $\beta = X^\dagger y$ is the least squares solution for $\beta$ when $y=X\beta$. In the overdetermined case, applying $X^{\dagger,L} = (X^TX)^{-1}X^T$ corresponds to the minimum norm residual (superscript $L$ used to indicate left inverse). In the underdetermined case, appl...
Suppose I have data like this - Val Bin -1 Y 5 N -2 N 4 Y so forth - where Bin is a binary value. I want to construct a 95% confidence interval for the average difference between the values that have a Y associated with them and the values that have a N associated with them. Note - I have more values associated ...
I am new to text processing. Currently I am trying to determine which type of feature vector I need for a classification problem. I am mainly deciding between binary feature modeling and statistics-based approaches, such as term frequency/inverse document frequency (tf-idf) or chi square. In terms of classification, I...
How do you forecast returns and the associated risk in R using index models? How do you represent risk in multi index models as a single value in R?
When $y = X\beta + e$, the least squares problem which imposes a spherical restriction $\delta$ on the value of $\beta$ can be written as \begin{equation} \begin{array} &\operatorname{min}\ \| y - X\beta \|^2_2 \\ \operatorname{s.t.}\ \ \|\beta\|^2_2 \le \delta^2 \end{array} \end{equation} for an overdetermined system...
I have implemented the non-negative matrix tri-factorization algorithm (link to paper). If is similar to the more widely known NMF (non-negative matrix factorization), but incorporates prior knowledge to represent semi-supervised learning. The basic tenet is that a term-document matrix X can be factorized as $$X = FSG^...
I have temperature time series data that I have determined is not independently and identically distributed (from looking at the autocorrelation plots and Ljung-Box tests). However, I am still able to fit PDFs, typically GEV, gamma, and Weibull distributions to my different data sets, with a $\chi^2$ goodness-of-fit te...
I have read a book saying that statistical properties of the mode and the median are difficult to determine compared to the mean. I am not entirely sure why is so. Is it correct that because the mean can be put into mathematical functions more easily compared to the mode and median? What does it mean by statistical pro...
I am working on a programming problem of 2 dependent variables X and Y. X is made of feature vector of size [128 x 1] and Y is the observation. My problem is that the 2 variables are dependent that is given X we should compute probability of Y i.e P(Y|X) or given Y we should compute P(X|Y). I am uncertain as which mode...
I have two sets of data that hypothesis tests have shown to be normal and from the same distribution. I'm using MATLAB and for the way they give p-values, higher p-values suggest a better goodness-of-fit, as I understand it. I want to combine the two data sets to get the parameters for the combined data set. However...
Hello. I'm having a problem with trying to figure out this proof that shows the beta distribution is conjugate to the binomial distribution (picture attached). I understand it until the third row, but I got confused with this step from the third to the fourth row. I would appreciate a simple explanation. Thank you in...
I am running Cox regressions in a large dataset to determine effects of individual and area characteristics on mortality outcomes. (My model is not a multilevel model, as the initial significant variation (random intercepts) between areas disappeared once SES variables have been adjusted for). I have three categorical ...
I am working on problem solution where I am collecting social feeds from twitter and Facebook for a product X . I am labeling these posts,comments or tweets using five labels --Positive --Negative --Campaign --Reply --Queries I have a training set of around 5000 which includes tweets,Facebook posts and Comments . Bu...
The modularity of a graph is defined on its Wikipedia page. In a different post, somebody explained that modularity can easily be computed (and maximized) for weighted networks because the adjacency matrix $A_{ij}$ can as well contain valued ties. However, I would like to know whether this would also work with signed, ...
I have a process which may be assumed Gaussian - for now I'm assuming it to be zero-mean. The variance is unknown. I will estimate variance in the usual unbiased way to give the sample variance and thus the ratio of the sample variance to the true variance follows the Chi Squared distribution. In parallel i have devel...
Trying to fit a model (bloch equations from MRI) to experimental data (12 parameters, 12 equation). Monte Carlo Multistart ('lsqcurvefit' in MATLAB) gives expected values for all parameters except for two, which are correlated: Briefly about the model. It is a system of differential equations (solved numerically by Cr...
was wondering if someone could help clarify an ANCOVA for me, or maybe post me in the right direction. I have a set of outcome measures that have been administered pre treatment and post treatment. I do not have a control group. My data is in a long format (i.e. each individual has data on 2 rows, one for pre treatment...
Let $X$ be a random variable from $f(x; \theta)$, where $\theta =(\theta_1,\theta_2)$. I want to: take a sample from this distribution using Metropolis Hastings algorithm and update the parameters simultaneously. The proposal distribution is a bivariate normal distribution with mean the current value of the parameter $...
My boss gave me this do file but I have never worked with dprobit. I also need to interpret it, this is the result: xi: dprobit apoyado $X, robust nolog i.fuerza _Ifuerza_1-9 (_Ifuerza_1 for fue~a==Comando General omitted) note: _Ifuerza_8 != 0 predicts success perfectly _Ifuerza_8 dropped and 1...
I am a beginner on statistic but come across an urgent situation that I have to work with statistics of stock prices data. I have learned that ones can do a hypothesis test that rejects the Random Walk hypothesis in order to show that the data have trends. I have tried to understand it but that seems impossible for me ...
So I've been playing around with SVMs and I wonder if this is a good thing to do: I have a set of continuous features (0 to 1) and a set of categorical features that I converted to dummy variables. In this particular case, I encode the date of the measurement in a dummy variable: There are 3 periods that I have data fr...
I have a 2-class problem involving many features. Does a linear support vector machine (SVM) classifier only take into account the values of these features and nothing more? Does it see the relationships between the variables? For example, does it work like this: if feature number 80 is "0", then feature 2: needs to be...
I have put a question on here before re SEM and small sample sizes. I have 3 factors each with 3 manifest variables each. I only have 90 records. I want to find out the amount of covariance between the factors AND between ALL the manifest variables. I also want to determine whether the 3 factors predict a forth perform...
I am reading through the EM-Algorithm but on the slide 39, I don't get how $$P(D) = P(D|A)P(A) + P(D|B)P(B)$$ I am trying to understand it in order to get my head around modelling with mixture of Gaussians. Can anyone explain me how to get that result?
My thesis is on the microeconomic and macroeconomic determinants of remittances, and i am doing the research by using primary data taken directly from the expatriates who are working abroad.My dependent variable is the amount of remittances coming to the country. Most of the papers that i have gone through have discree...
Can somebody please explain the major differences between covariance pattern models (Hedeker and Gibbons, Chapter 6, 2006; Jennrich and Schluchter 1986) and generalized estimating equation models (Hardin and Hilbe, 2012; Liang and Zeger, 1986). My presumption is that the main difference is around ML/REML estimation in ...
I am a bit confused in determining whether to keep or remove some of the random coefficients in a mixed model. There are quite few level two units, therefore I have to use MCMC estimation. As result, standard errors for most variables in the random part are about 60% of the corresponding point estimate. On the other ha...
I am currently self-studying statistics and I'm confused about the null model in binary logistic regression. I understand that the null model is used to be compared with the model you designed, but what exactly is the null model? Just ln(x)=y?
I am struggling in finding a way to assign a 'weight' (if possible) to each of the independent variables in a logistic regression (I am using R). I explain my problem in a more detailed way: I am working on a dataset of 900 samples. About half of them are affected with a disease, the other half are healthy (my dependen...
My project involves 1) Comparison of new samples against a control and 2) Find any effect on the speed of growth and germination % of seeds by treating them with the new samples My question is, what kind of statistical analysis to carry out and an explanation on why to use that specific test. I have a material called I...
In complicated Bayesian models, like for instance a hierarchical nonparameteric one, often times it's intractable to do Gibbs or other MCMC sampling methods to convergence. Rather, people tend to do variational inference and use expectation maximization to find the approximate MAP parameters. Is there a reason people u...
My background is computer science. I am fairly new to monte carlo sampling methods and, although I understand the math, I have hard time coming up with intuitive examples for importance sampling. More precisely, could someone provide examples of: an original distribution one cannot sample from but one can estimate an...
I am doing Survival Analysis with interval-censored data and I want to apply Turnbull's nonparametric estimator to the analysis of the covariates (suggested by Turnbull (1976)). I want to know if there anyone knows any statistical package in R wich produces the survival curve estimate based on Turnbull´s algorithm.
I am using the adonis function in the vegan package to determine differences in dissimilarities in a community (PCB congeners) between several different factors. ## Adonis Model pcbtest3 <- adonis(pcbcong ~ BASIN + FISH_CLASS + REACH, data = pcbcov, method = "bray", permutations ...
I'm working on a project where I try to determine the influence of consulting expenditures companies made the year before on several economic figures. My dataset consists of roughly 2'000 different companies together with data for 2-7 years, thereby all continuous variables are log-transformed and vary roughly on the s...
I am running a Mantel test using the mantel.test in ape package. In the beginning, I've created distance matrices; dist.mat <- function(distances, dimension) { x <- matrix(NA, nrow = dimension, ncol = dimension) diag(x) <- 0 lcomb <- matrix(NA, nrow = 1, ncol = 2) for(i in 1:nrow(x)) { for(j ...
This is going to be a long question : I have written a code in MATLAB for updating the weights of MLP with one hidden layer . Here is the code : weights_1 : weight matrix for input to hidden layer weights_2 : weight matrix for hidden to output layer function [ weights_1,weights_2 ] = changeWeights( X,y,weights_1,weig...
My background is computer science. I am fairly new to monte carlo sampling methods and, although I understand the math, I have hard time coming up with intuitive examples for importance sampling. More precisely, could someone provide examples of: an original distribution one cannot sample from but one can estimate an ...
In several places I saw a claim that MANOVA is like ANOVA plus linear discriminant analysis (LDA), but it was always made in a hand-waving sort of way. I would like to know what exactly it is supposed to mean. I found various textbooks describing all the details of MANOVA computations, but it seems to be very hard to f...
Let's say I'm constructing a linear model with the intention of predicting automobile sales volume. Let's say that the consumer auto purchasing cycle takes 4 months, and so we'd 'lag' each observation by four data points. So if out data was monthly, out data may end up looking like the following month lag_month s...
A colleague of mine sent me this problem apparently making the rounds on the internet: If $3 = 18, 4 = 32, 5 = 50, 6 = 72, 7 = 98$, Then, $10 =$ ? The answer seems to be 200. 3*6 4*8 5*10 6*12 7*14 8*16 9*18 10*20=200 When I do a linear regression in R: data <- data.frame(a=c(3,4,5,6,7), b=c(18,32...
So I have fundamental confusion about graphical models. Suppose the following graphical model is given: Now the question is do we have the following equality?: $$p(m_2|\alpha,\beta,y_3)=p(m_2|\alpha,\beta)$$ If so, why exactly and could you please introduce me a source explaining it?
I have a unix shell data. Each session starts with <begin> and <end>. Between <begin> and <end>, the info contains users command in the shell session. From this data, I need to figure out how many users are on the system with probability. For example, the is something like this: <begin> pwd cd ~ <end> <begin> ls vi <en...
I am trying to learn how to use Markov Random Fields for classifying pixels in an image. Could someone please direct me to a simple tutorial demonstrating how this is done. The tutorial needs to cover estimating the model parameters and handling the final classification. Some of the things I don't understand: I have...
In the context of the classical linear regression model (with all standard assumptions), we know that when the error term is normally distributed, least squares is minimum variance among all linear unbiased estimators and we know the exact statistical distribution of the t statistics. However, if the residual histogra...
Suppose I have a bivariate responses with significant correlation. I am trying to compare the two ways to model these outcomes. One way is to model the difference between the two outcomes: $$(y_{i2}-y_{i1}=\beta_0+X'\beta)$$ Another way is to use gls or gee to model them: $$(y_{ij}=\beta_0+\text{time}+X'\beta)$$ Here ...
$TX$ is variable that indicates treatment status ($TX=1$ if the patient gets the new treatment, and $0$ otherwise, and $UC = 1 - TX$ indicates they got the standard treatment). Of $N$ patients, $n_{UC}$ get usual care and $n_{TX}$ get new treatment. If $n_{UC} + n_{TX} = N$, show that $\sum_i(TX_i-\overline{TX} )(TX_i...
Is there a method out there that can compare the the KM estimate (i.e. survival proportion) at a specific time point (e.g. 5-year) across more than 2 groups? For example, a clinician would like to know if the survival probability at 5 years is different between groups. For groups = 2, the situation is simple in that I ...
I am exploring hierarchical logistic regression, using glmer from the lme4 package. To my understanding, one of the first steps in multilevel modeling is to estimate the degree of clustering of level-1 units within level-2 units, given by the intraclass correlation (to "justify" the additional cost of estimating parame...
Question: Is anyone aware of a consistent, non-parametric estimator of the expected value of an asymmetric distribution that is robust to fat tails? What if we constrain ourselves to the class of continuous (on the real number line) uni-modal distributions? Note: There are several parametric estimators in the literatur...
I am currently running some mixed effect linear models. I am using the package "lme4" in R. My models take the form: model <- lmer(response ~ predictor1 + predictor2 + (1 | random effect)) Before running my models, I checked for possible multicollinearity between predictors. I did this by: Make a dataframe of the pr...
I have a simple contingency table with two nominal variables. Let's say Age and Gender. The software that I'm using reports the relationship between the two variables using Pearson's Chi-Square Test of Independence, to which I understand. But when I select only two cells in the table and try to do a test for that, the ...
Is there a simple way to evaluate the pdf of the amplitude of a sum of vectors with fixed amplitudes and random phases? Explicitly, let $Ae^{i\phi}=\sum_{n=1}^NA_ne^{i\phi_n}$, where $N$ is a fixed positive integer, the $A_n$ are fixed positive real numbers, and the $\phi_n$ are independently uniformly distributed over...
I'm fitting a bulge-disc sersic model to galaxy light profiles and need to find a robust method of finding the errors on the parameters. I'm looking at cross-validation implemented in this paper here (page 9, section 4.2). It says I need to calculate the likelihood that the point has been left out. How do I compute th...
I have a dataset $D$ made of $m$ samples and $n$ features with $n \gg m$. For each sample I have a score $s$ which I would like to be able to predict. As the number of features is very high (compared to the number of samples), I have performed PCA (Principal Component Analysis) and built a regression model for $s$ base...
I have a data sample of a bank loan history of customers. I have performed logistic regression testing on the sample for finding out how the loan repayment(YES/NO) is dependent on various factors. I have verified the model using the chi-square test. But in various websites I see questions like 'What is the AUC of the m...
I have a question regarding mixed effect models. Is it possible that the degrees of freedom differ when I use the same model with different dependent variables? Or does that indicate that something went wrong? I analyzed my data using the MIXED procedure in SPSS. There are two random factors (participants and stimuli) ...
I'm analysing paired data for equivalency and it's not normally distributed, i.e., the difference of the paired result is not normally distributed due to, amongst other things, outliers. If it were normally distributed I would use a Two One Sided T-test (TOST). My questions are: Can two one-sided Wilcoxon tests with s...
I'm familiar with the concept of a mean value of data and the variation around the mean. Is it possible to quantify variation around maximum values? For example, take the below data collected across 10 years. I want to present the maximum value for each month, but I also want to quantify the variation around the maxim...
The negative binomial distribution NB($m,r$) is defined as $$\Pr(X = k) = \left(\frac{r}{r+m}\right)^r \frac{\Gamma(r+k)}{k! \, \Gamma(r)} \left(\frac{m}{r+m}\right)^k \quad\text{for }k = 0, 1, 2, \dots.$$ I'm interested in finding the Jeffreys prior for $m$ and $r$. I could not find this anywhere, most of the results ...
I have a survey over 14 schools. In each school, 9 to 11 students were interviewed for a comparison of two items A and B, which one they prefer. The outcome Y is a binary variable with 1 if a student prefer item A (compared with B) and 0 otherwise. Four variables have been measured: "School_Status" and "School_size" at...
As part of my graduate thesis (area: psychology) I have gathered preference data. The data includes approximately 50000 heads-up comparison between elementX and elementX. I have a total of 15 elements. The participant would be shown 36 comparisons in random order, of which he/she would then choose the preferred element...
Am I missing something? When I use SVMLight, there's always a lot of vectors in the model file. But when I create one with SVMPerf - there's only one vector in the file? (?) But still, it works fine. Am I missing something? Also the number of documents that it supposedly used is way smaller than I provided him with ( ...
From Robert Kabacoff's Quick-R I have # Bootstrap 95% CI for regression coefficients library(boot) # function to obtain regression weights bs <- function(formula, data, indices) { d <- data[indices,] # allows boot to select sample fit <- lm(formula, data=d) return(coef(fit)) } # bootstrapping with 1000 repl...
If I have a set of $n$ tuples ($b_1,b_2,b_3,b_4,x,y,z$), where $b_1, b_2, b_3$ and $b_4$ are counters ruled by $P_1, P_2, P_3$ and $P_4$ Poisson distributions (error on the counters are $\sqrt{b_1}$, etc.) and $x, y$ and $z$ are ruled by real valued distributions. From it I select a subset of tuples $m$ according to ...
I am quite new to statistics, so please forgive me for using probably the wrong vocabulary. I have some data that looks (to me) like a gaussian when plotted. The data is an extract from a jpeg image. It's a vertical line taken from the image, and only the Red data is used (from RGB). Here is the full data (27 data poin...
Suppose $X_1,X_2,...X_n$ are i. i. d. random variables with p. d. f. $$f(x)=xe^{-x}I_{(0,\infty)}\!(x)$$ and let $Y_1,...,Y_n$ be the order statistics for these variables. a) Find the conditional p. d. f. of $Y_1$ given $Y_n=y_n$. When working with order statistics, one should start with the distribution function: $$F_...
I have two time series q and c and I want to calculate dynamic time wrapping (DTW) distance between these two time series: q<-c(1,3,4,5,6,7) c<-c(2,3,1,5,3,4) As I understand we should make a matrix like this: 4 | 9 1 0 1 4 9 3 | 16 0 1 4 9 16 5 | 16 4 1 0 1 4 1 | 0 4 9 16 25 36 3 | 4 0 1 4 9 16 ...
Is it possible for one-way (with $N>2$ groups, or "levels") ANOVA to report a significant difference when none of the $N(N-1)/2$ pairwise t-tests does? In this answer @whuber wrote: It is well known that a global ANOVA F test can detect a difference of means even in cases where no individual [unadjusted pairwise] t-...
I had to translate several given statistics equations into code, and I came across this formula: Variance of a simple random sample $= \frac{p(1-p)}{n-1}$ The sample in question are test letters sent to measure the efficiency of a postal operator. Each letter has a value of 1 if it's delivered on time and a value of 0 ...
How can I test whether two parameters of a logistic regression model are both zero at the same time?
I have compared two logistic regression models using the function anova(mod1,mod2,test="Chisq") in R. The result that I obtained is the following: Model 1: Status ~ Added.genes.var Model 2: Status ~ Added.genes.var + mult_genes Resid. Df Resid. Dev Df Deviance Pr(>Chi) 1 887 1218.0 ...
I have a non-linear model that seems to work quite well. Compared to other similar models, using the same data it has significantly more negative AIC and BIC, so I'm quite confident that it is better than the other models. However, I'm inexperienced in nonlinear regression, and I don't really know how to evaluate the m...