instruction
stringlengths
9
38.7k
In articles such as "Research #1: Generative Models" one reads once more statements such as These images are examples of what our visual world looks like and we refer to these as "samples from the true data distribution" the images meant are the ImageNet dataset. We also read statements such as Mathematically, we ...
The experiment which I need to analyze deals with the development of epilepsy. There are two groups of animals which differ by the genotype. Over several days each mice in the group receives the same kind of treatment (injections). After each injection the severity of seizures is measured according to 5-point scale. In...
I have a set of data that are arranged along an index, with y values that sometimes exceed a threshold. I am interested in finding clusters of data along the index automatically. In the example below, the green dots are data points (original data set) while the red rasters are points which exceed the threshold (the dat...
Premise: this may be a stupid question. I only know the statements about MLE asymptotic properties, but I never studied the proofs. If I did, maybe I woulnd't be asking these questions, or I maybe I would realize these questions don't make sense...so please go easy on me :) I've often seen statements which say that t...
I am trying to use the R package lgcp to estimate density based on a point pattern over time. I follow the example given by the authors of the package in this article, but even the first step (copied from page 25 in the article) fails. My data is available here bad-sample.RData (21 kb) and it consists of two objects: x...
I want to use the first predicted factor score from PCA as an independent variable in the regression analysis. The factor score is skewed. Is it plausible to apply the ln transformation to the factor score, so to treat the factor scores as ordinary numeric independent variables?
I have a sample of 9 patients. If I evaluate the correlation with the Spearman's test between some variables I measured in time 0 and then I repeat the same test with the same variables in time 1, is it normal that the results of "significant correlation" change? In particular I find several significant correlation in ...
I typically encountered gamma distributions to model response time after a certain event. As far as my statistics goes, that is its natural place. However, in a recent piece of work of mine, I found gamma distribution perfectly modeling the number of order lines within a store order. Why is that? Definitions for the ge...
I want to count instances of an object in an image. I can generate as many images as desired in an automated fashion. However I can not yet guarantee that one instance will not completely cover another instance. My Data-Generator would return that there are (for example) 5 instances visible, but even a human could only...
I've got a time series program that creates various models and test each one at the first 10% of data and selects the most fitted one and the program runs incredibly well. If I change this selection criteria to test on the last 10% of data (which makes more sense because that means the model is "up to date", it gone we...
I have two datasets that are very similar (such as two survey dataset that contains common variables and from a common period of time). How do I compare the result of the same model from two different data in order to see whether two datasets provide similar results? I used this model for both data sets: basic ordered ...
Sorry for the unspecific title, but my lack of a way to accurately describe the problem is part an parcel of the problem itself. I'll try and demonstrate clearly through example, as I'm not confident in my describe the problem clearly. In a very simplified example, let's say I have a company which ships some products ...
I have 40 predictors on which I ran a PCA and shortlisted 14 PCs (explaining 95%) as my predictors. I am running a generalised additive model with 14 PCs as predictors. I check the model assumption of GAM which shows that my data violates the assumption of homogeneity. My question is this: (1) Can I do a data transf...
Let us consider the regression model: $y_i=ax_i+bz_i+abu_i+e_i$ ($1\leq i\leq n$) where $e_i$ are iid mean 0, same variance random errors. Obtain the least squares estimates of $a$ and $b$. So I think I can proceed simply by minimising $\sum_{i=1}^n(y_i-ax_i-bz_i-abu_i)^2$. The normal equations are $\sum_{i=1}^n(x_i...
I'm trying to measure association in my basket based on transactions. Let's imagine I have 5 products. Then, I calculate the number of client who bought product A and B, A and C, B and C and so on. Total columns is the number of clients who bought the product. I calculate penetration rate (or support when we use assoc...
I need some advice to decide which aggregation method is better in my case. I want to create an aggregated variable which is a composite of 16 variables. All 16 variables are part of one big concept, so I think I could use PCA or CFA for this task. I need only one variable and not 16, since I will use it later as an in...
Let's assume we have two groups of patients, a control group and a treatment group. They were asked a question and the answer can be yes or no. Since I come from biological science where I used mainly regression methods I would use logistic regression. A friend of mine from the sociological sciences would analyze this ...
We have the random variables: $$ m \sim N(0, K_m)$$ and $$f \sim N(m, K_f) $$ Supposedly the $f$ Gaussian is the same as $f \sim N(0, K_m + K_f)$ What is the proof or why is it like that if it is obvious?
Consider the elementary identity of variance: $$ \begin{eqnarray} Var(X) &=& E[(X - E[X])^2]\\ &=& ...\\ &=& E[X^2] - (E[X])^2 \end{eqnarray} $$ It is a simple algebraic manipulation of the definition of a central moment into non-central moments. It allows convenient manipulation of $Var(X)$ in other contexts. It als...
I wonder whether it is sensible to use the following method of assessing relative importance of variables in a model. Compute a model and its $AIC$. Let's say it has $k$ predictors. Compute $k$ submodels, each of which has one predictor removed. Compute $AIC$ for all the submodels. Compute $k$ times $\Delta AIC$, whic...
According to Lo and Andrews, 2015 (https://doi.org/10.3389/fpsyg.2015.01171) raw Reaction Time (RT) should be analyzed with a GLMM, instead of transformed values with LMM or even ANOVA. They and others point out a gamma or inverse gaussian with an identity link function should be used. My data is from RTs before and af...
I have dataset with 64 features that I'm using to model 6 labels bounded on the interval [0,1]. These labels are highly related and it therefore seems reasonable to model them all at once rather than individually. To model these labels I use a weight matrix with a parameter for each feature + label combination and a b...
I need to obtain a mean and standard error for energetics values for a bird population for use in a Monte Carlo model. The following data were obtained from the literature: males: mean = 3792.000 kJ/day, SD = 723.290, SE = 273.378, n = 7 females: mean = 3054.333 kJ/day, SD = 13.051, SE = 7.535, n = 3 I calculated the ...
I don't understand the value scipy.stats.chi2_contingency is giving me. The expected values seem fine, but the $\chi^2$ value is different from what manual calculation and online calculators give me. Example data table:                Response 1Response 2 Group 1  1991           1647            Group 2  3181          ...
I am reading Eigenfaces for Recognition to understand the Eigenface approach but I can't follow the derivation of the PCA as presented on the paper. In the algorithm it is necessary to do a PCA using a covariance matrix $AA^T$. However, $A$ is of size $N^2\times M$ where $N$ is the dimension of the image and $M$ is the...
I would like to compute concordance index to validate Cox model. From the following post concordance rms I know that I can use rms package and rcorr.cens function. My concern is that Concordance index reported by rms is different from the one reported by the summary of coxph model from survival package. Here is my exam...
I have a series of 3-4 attributes (call them $X_1$, $X_2$, $X_3$) which can all have values of, say, any number on $[1,100]$. What I'd like to do is, first, build a group of decision trees (call them $T_1, T_2,..., T_n$) and weight them using a training set. Then, depending on how well each tree is doing at a given tim...
I am unsure of how to establish (or interpret) the independence condition of the chi-squared test in (for instance) the following situation. Consider this 2x2 contingency table representing the number of 'statements' that are either negative or positive, by members from the genders 'male' and 'female'. None are member...
I have a linear model $y=ax+b$. I have fit the relations using two data sets. I have found that estimate of $a$ from the two data sets are similar, but that the uncertainty of $a$ is much larger in one of the data sets. I am using the $\chi^2$ test of variance to show this. The test statistic is $$T=(N-1)(s/\sigma_0)^...
I'm tyring to better understand ANOVA. I did a simple one-way ANOVA, in R, as follows: Year represents the year a student is in college (Freshman, Sophmore or Junior). Score represents their score on a test. Is the following interpretation correct: Since the p-value of the ANOVA is .756, we can conclude there is no di...
I am a medical doctor not a statistician. I have 60 patients who were assessed by 400 doctors (each doctor individually evaluated the clinical data on each patient). The doctor was then asked to say whether the patient had disease A or not. I have the survival time and vital status (dead or alive) on each patient. The...
If I want to run a regression OLS on financial data $y=\beta x + e$ do I need both the $x$ and $y$ to be stationary or is it fine if just the independent variable is stationary? What is usually done in practice?
I have a question about a practical design of experiment challenge I'm currently facing for my Ph.D., specifically about the selection of design points to investigate. The severely restricted case I'm running into isn't really covered by any books on the subject, however it would seem rather weird if there is no method...
If I've multiple attributes of a variable say weather (Windy, Cloudy, Overcast). After calculating the Gini index of each value. I've to apply CART algorithm, as it works on binary split. which pair of combination of values would i need to go for (with less or high Gini ) ?
I would like to estimate the partial derivatives of a dependent variable $y$ against a number of independent variables $x_i$, $i \in [0,n]$. I can easily differentiate the dependent and independent variables and perform a simple linear regression to approximate the first order partial derivatives. However it is not cle...
I am wondering about the effectiveness or optimality of Kalman smoother algorithm for multiplicative state space model with gaussian errors. Can I still use the standard linear gaussian kalman smoother algorithm if I have an interaction between a deterministic and a stochastic elements of the state vector in the measur...
Consider a hotel that serves lunch to its customers. Each day, some customers will arrive and some will leave such that in each day there are 100 customers in the hotel. About 80% of the customers have lunch at the hotel. Every customer has a equal probability (1/7) of leaving in any of the 7 days that follow the check...
Let $f$, $g$ and $h$ be densities and suppose you have $x_i \sim h$, $i \in \mathbb{N}$. What happens to the likelihood ratio $$ \prod_{i=1}^n \frac{f(x_i)}{g(x_i)} $$ as $n \rightarrow \infty$ ? (Does it converge? To what?) For instance, we may assume $h = g$. The general case is also of interest.
Let the Cartesian $x,y$ coordinates of a random point be selected s.t. $(x,y) \sim U(-10,10) \times U(-10,10)$. Thus, the radius, $\rho = \sqrt{x^2 + y^2}$, isn't uniformly distributed as implied by $\rho$'s p.d.f. Nonetheless I would expect $\theta = \arctan{\frac{y}{x}}$ to be almost uniform, excluding artifacts due...
I have a variable (weight of 400 pieces of meat in Kgs) that is measured before and after a thermal process. The explanatory variable is the weight before processing and the response is the weight after it. The standard deviation of the response variable around twice the explanatory variable. It’s common sense that lar...
I have a dataset of 20 features. I have optimised Random Forest and the parameters it uses are: number of trees: 167 max # of features used to split a node: 9 If I can find out what features where used to split a node and if these same 9 feaures are used in all the trees; can I skip a feature selection method? I mean...
I'm conducting a study about social media posting with pets. My dependent variable is pet posting frequency (total pet pictures/total pictures posted), and a significant number of participants did not post pictures with pets in the 2-week time frame that I set, leaving a lot of zeros in the dataset. The independent va...
Is there a satisfactory notation for marginal distributions? This would be one that clearly distinguishes the marginal distribution of $X$ relative to the joint distribution $(X,Y)$ from $X$ as it would be envisaged had $Y$ not been introduced. One option might be $\mathbb{E}_Y(X|Y)$, but this seems to go beyond the ba...
I have a multi vairable binary target variable like this with multiple TRUE values. Y1 Y2 Y3 Y4 1 0 0 1 1 2 1 1 1 1 3 1 0 1 0 4 1 0 0 1 5 0 1 1 0 6 1 1 1 0 7 0 0 0 1 8 1 1 1 0 9 1 1 1 0 10 0 1 1 0 11 0 0 0 1 12 1 1 1 1 ...
I was wondering what the exact definition of this is. Apparently the exponential distribution is an example of such a family of densities. But what is the precise definition of a scale family? Also, I've heard of location and location-scale families in the same context and I'm not sure what these are either.
I am working with tick-data on some of the more liquid futures and options which gets millions of ticks every single day. Can I use the normal statistical techniques (like correlation, regression, cointegration, etc) to tick data due to the high noise. If not, can someone please suggest some other techniques which hel...
I am trying to fit regression model using r for salary on diffrent skills.But model returns regression coefficients as NA for some skills.This is due to high correlation among skills.But I still want to include them in model.Skill score values are between 4 to 8 for all skills. How to solve the problem of NA coefficien...
I'm trying to understand roc function of pROC package. My first understanding is I need to have a model first and then run against testing set to get predicted probability for each sample, then by feeding with the true class of testing set and probability from the model, with different cutoff we can get the ROC curve, ...
For real, symmetric, positive semidefinite matrices $A$ and $B$, let $\leq_L$ denote the Loewner partial order: $A \leq_L B$ iff $B-A$ is positive semidefinite. Suppose $A$ and $B$ are fixed PSD matrices. Is there a method to randomly generate PSD matrices from the region $\{X | A \leq_L X \leq_L B\}$? Better yet, is ...
I performed mixed model ANOVAs using the lmer function from lme4. My model is as follows. mixedhrt<-lmer(HR_COR~Optimel+Order+Gender+SipSize +Hunger + GHI+(1|Participant),data=Taste2) I want to see the effect of package condition, the order of my blocks, gender, the sip size, hunger ratings and general health intere...
Suppose that I'm building a binary classifier parameterized by $\theta \in \mathbb{R}^k$ that maps some observed features $x_i \in \mathbb{R}^l$ to a decision of whether or not to play a game with an uncertain payoff: $$ f(\centerdot;\theta): \mathbb{R}^l \to \{0,1\}.$$ The payoff of the $i$th game is $y_i \sim N(0,1)$...
related to Feature importance for random forest classification of a sample This blog by Ando Saabas suggests a nice way to interpret a tree result for a specific sample into per-feature contributions. Basically he goes over the path to the sample and counts each delta in the prediction $pred(currentNode) - pred(parentN...
I am poor in statistics. I did a multiple linear regression in python by using statsmodels. I know that I can transform a non-linear relation into a linear relation in different ways using this model. Combinations of different independent variables are shown in below: smf.ols(formula = 'y ~ a + I(a**2) + log(b) + c + ...
I have a time series Y, for one year and measures taken every 15 minutes. The data show clear seasonality, both daily and weekly. I would like to see the seasonality in the models. I tried various possibilitiesm for example: fit <- arima(Y,order=c(1,1,0),seasonal=c(1,1,0)) plot(forecast(fit, h=1000),xlim=c(34000,36000)...
The question is all in the title. The only background I can add, is that I am finding a powerlaw to interpolate beautifully between my data points. Only that my data appears in integers only, so I would better use the discrete equivalent of the powerlaw distribution - that is to say, a probability density function equa...
Is it possible to estimate the partial effect of the exogenous variables without holding other variables constant, in other words without ceteris paribus assumption? I know that in normal case we need to hold other variables constant to find a partial effect of one variable, but I have this question in the exam questio...
I am running mixed effect Cox models (I have 1 random effect factor) using the coxme function {coxme} in R, and I would like to check the assumption of proportional hazard. I know that the proportional hazards (PH) assumption can be verified with the cox.zph function {survival} on cox.ph model. However, I cannot find t...
I can't find in any statistics book what would start to be considered a large standard error of a regression coefficient. In my research, I have a group of a categorical variable with a small number of cases that in a logistic regression reports what I think is a rather large Standard Error (0.647), but since the B is ...
This data shows consumption pattern of a spare part in numbers for last three years. Now I need to forecast its consumption for next 6 months or 1 year. Below is the data for the same: 1. Feb-14 14 2. Mar-14 533 3. Apr-14 729 4. May-14 906 5. Jun-14 916 6. Jul-14 14 7. Aug-14 18 8. Sep-14 1512 9. Oct-1...
Let $x$ be a discrete random variable with probability mass function $p(x)$, where $x$ belongs to $\{-1, 0, 1, 2, 3\}$. To test $H_0\!: p(x) = p_o(x)$ vs. $p(x) = p_1(x)$, where for above mentioned values of $x$ the respective values of $p_o(x)$ and $p_1(x)$ are \begin{align}p_o(x)\!: \quad.01 \quad.02 \quad.05 ...
I am trying to understand a code provided by my teacher. He has done t-test and then has stored (ttest$conf.int[2] - ttest$conf.int[1])/2 as a variable called "Confidence Interval Radius". What can this possibly mean? Observations for ttest are all accuracies from a predictor model (therefore all are in percentage) Res...
I'm trying to understand this paper: http://www.jmlr.org/proceedings/papers/v9/hanneke10a/hanneke10a.pdf However, I get stuck at Lemma 1, which I will copy here. This lemma is about estimating the mean of a Bernoulli random variable by some estimator $\hat{p}_n$ using $n$ samples. The paper says this is a well-known re...
I have created a multiples Gaussian distributions using this codes in MATLAB: mu = [0]; sigma = cat(3, 1); gmm = gmdistribution(mu, sigma); figure; ezplot(@(x) pdf(gmm,x));hold on; mu = [5] sigma = cat(3, 2) gmm = gmdistribution(mu, sigma); ezplot(@(x) pdf(gmm,x)); When I want to combine both Gaussians with a Gau...
I have a set of 10 possible banners to show on a web page. For a given page view only a subset of them are available. I can only show one per page. There are some additional parameters for example page type, number of page viewes in the session and session count for the user. I want to use deep learning to maximize con...
How can I get the asymptotic normality of the unbiased estimator $\sigma_2$ so that it is equal to $ e'e/(n-k) $, that is $\sqrt n $ ($\hat \sigma_2$ - $\sigma_2$) $\rightarrow N (0,v)$ and give the asymptotic variance $v$. I know that the error term is i.i.d and the fourth moment exists, i.e. $E(\ e_i^4 ) < \infty $...
I am trying to include several income types into a regression model (specifically a logit model). This variable has the particularity to have numerous zero for some type of incomes (typically some capital incomes). How do I choose between including a dummy variable of whether the individual has this particular type o...
In cross validation should feature selection be applied only on the training data or also on the test set?
I am planning a meta-analysis. I read some books (e.g., Cumming, 2012) and papers (e.g., Johnson & Eagly, 2000). I learned that standardized measure of effect size like d and r are sensitive to resaerch design so that standardized effect size for within-subject design are usually larger than those for between-subject d...
I have been reading this forum but cannot find anything specific enough to address my problem. I have classified disease in the below image (red spots), and verified disease by GPS (Red Circles). I believe I have these three types of variables: • True Positive (TP): Correctly classified as the class of interest (GP...
How can I use the delta method to show that $\sqrt n$ (1/$\bar Y_n$ - 1/$\mu)$ $\rightarrow$ N (0, $\sigma^2$/$\mu^4$) ? We know that: $\bar Y_n$ = $1/n \sum_{n=1}^n Y_i$ $\ Y_i$ is i.i.d; $E(\ Y_i )= \mu\ne 0$ and $V(\ Y_i)= \sigma^2 \gt$ 0
If autocorrelation in a model is detected by the Breusch-Godfrey test for r-th order autocorrelation, what is the GLS procedure for "fixing" the autocorrelation problem? And is Cochrane-Orcutt procedure a part of the GLS method, or is it a separate "remedy" for autocorrelation?
Qualifier: I am not a statistician. I have 4 data sets and want to determine whether the 4 regression coefficients obtained are statistically significantly different. I compared each pair of coefficients separately (6 hypotheses) with t-tests and found no significant difference (t values ~1 for 6 d.f.). Does this suppo...
Say I have some data $(x_{1},\ldots,x_{n})$ which I believe to be drawn from some distribution $\nu_{\theta}(x)$. I'm moderately familiar with estimation techniques for $\theta$ when I have some functional form for $\nu_{\theta}(x)$. However I'm wondering if someone can give me an introductory reference (or at least ...
In this paper Dealing with Separation in Logistic Regression Models some various types of complete separation are discussed: direction of the separation is positive if and only if $s_i = 1 \Rightarrow y_i = 1$ or $s_i = 0 \Rightarrow y_i = 0$ direction of the separation is negative if and only if $s_i = 0 \Rightarrow...
I am doing a Mann-Whitney U test for two samples with the following descriptives: Sample 1: n = 4026 Mean = 15.2 Median = 10.0 Minumum = 1.0 Maximum = 52.0 Standard Deviation = 15.14 Sample 2: n = 14510 Mean = 15.01 Median = 10.0 Minumum = 1.0 Maximum = 55.0 Standard Deviation = 15.26 My hypothesis is that number of ...
I am given a sample with n = 100 of patients with risk factor information for all of them (binary variable, yes/no) and the disease status (also binary). I have to find the association between each individual risk factor and the disease and supply the result as a p-value and $\chi^2$ value. I thought I would make a 2×2...
One of the assumptions of ANOVA is normally distributed residuals. However, as noted here some authors have stated that this assumption is barely important at all. Simulation results have shown that, provided sufficient sample size, deviations from normality can be tolerated without a large adverse effect. In practi...
I want a deep, mathematical understanding of time series (at the level of a statistics major). I intend to use this knowledge for forecasting for fun (probably in finance but can branch out). Where should I start? I'm looking for a brief outline of what to do, e.g. learn book A, then learn book B, then try predict C us...
Would the Support Vectors in the SVM algorithm change every time that I change the functional margin ? The optimization objective in the SVM algorithm is this - The rest of the SVM optimization algorithm is then derived by setting i.e. Gamma (hat) to 1. Does the Support Vectors derived depend on Gamma, w or b in any...
I am currently researching the impact of survey participation on subsequent behavior, i.e., does merely participating in an intention survey about fitness products influence post survey spending. As such, I conducted a simple experiment (survey participation yes/no). I would love to control for prior satisfaction with...
I am trying to teach myself surface fitting with splines using tensor products. I am trying to construct a toy example but I can't seem to get my example to work. I will try to explain the best I can . I am trying to fit a set of a points sampled from bi-variate Gaussian using B-Splines. This is what the sampled surfac...
I've implemented a neural network using batch gradient descent. Now I want to try minibatch, largely in order to avoid problems with local minima. In ESL's chapter on neural networks, the authors make the point that SGD is amenable to parallelization, given that it takes one training example at a time. I suppose that...
I am not sure which method to choose for my analysis: multilevel model or panel analysis (random effects) with clustered stand. errors. I have a panel data with several economic variables, e.g. profit or sales for 400 European firms over 7 years. I first tried to use panel analysis (random effects based on Hausman test...
I am trying to predict if students could meet their assignments deadline or not based on days to complete and number of other assignments that they are supposed to complete. I found out that: There is no spearman or pearson correlation (close to 0) between inputs and output. This is clear from the plots as well. I buil...
From looking at the Stan documentation and user forums, marginalization is a technique where you sum over some parameters and that allows you to exclude them from the likelihood function. In particular, the documentation says it can be much faster to marginalize out some discrete parameters in finite mixtures and late...
I need to estimate a linear regression with the OLS method. Since I assume the error terms to be correlated, I would like to account for heteroskedasticity and autocorrelation in the error terms. I already wrote some code, but I wonder whether it is correct. So far, my code is: myregression <- lm(x ~ y + z) coeftest(m...
From OnlineStatBook: I don't understand the meaning of Since the mean is $\frac{1}{N}$ times the sum, the variance of the sampling distribution of the mean would be $\frac{1}{N^2}$ times the variance of the sum, which equals $\frac{σ^2}{N}$. I only recently started refreshing my knowledge of statistics, and this s...
I am writing you with a statistics question for which I cannot find an answer on the internet. I have conducted a survey to find out how much consumers like different products. "Likability" is a 3-item construct in my survey and I test it for 15 different products. Now I want to know if there is a significant differe...
Let's say I want to build a boolean classifier to classify an animal as 'dog' vs 'cat' based on some of its attributes. I can do the standard machine learning approach of building a training set of instances with a known label, training a classifier, and using that for prediction. All well and good. But now suppose t...
I managed to demonstrate till the first part. The problem I'm facing is transforming it to look like the second part.
I am performing an experiment on Metropolis-Hastings. I have written a proof that returns for stocks have to be a function of the Cauchy distribution and that the distribution of $\beta$ in the equation $x_{t+1}=\beta{x_t}+\epsilon_{t+1},\beta>1$ is also the Cauchy distribution. I chose to seed the random numbers so ...
I was reading the documentation of sklearn SVM and saw these two statements Still effective in cases where number of dimensions is greater than the number of samples If the number of features is much greater than the number of samples, the method is likely to give poor performances. Now my understanding regarding SVM...
Let $X \in \mathbb R^r$ be a random vector. The moment generating function (MGF) $m(t) = \mathbb E e^{X^Tt}$ is ubiquitous in statistics and probability. In my research, I've had to deal with the scalar-valued matrix function $M(\Omega) = \mathbb E e^{X^T\Omega X}$. I'm interested in knowing whether this function has a...
I am creating a profitability model for a proposed chemical manufacturing project and some of the parameters that go into this model are subject to uncertainty. e.g. The price of Styrene (a feedstock), or the cost of electricity, cost of coal etc. The goal is to not only estimate the profitability of the project but i...
I want to run the following model: Weight ~ Height*Sex, where * sign means interaction. I got the following result: modell <- lm(df$weight ~ df$height*df$SEX) summary(model) # ... # Coefficients: # Estimate Std. Error t value Pr(>|t|) # (Intercept) 29.5514 43.1282 0.685 0.4...
I am using R to estimate the error in the slope of a regression line. (I will later use the slope to calculate something.) I have some data, call them $x$ and $y$, and will fit a linear regression such as $y = mx+c$. If y has some error associated with it, say $\delta y = 0.1$ for example, what is the error in the slop...
I'm interested in the possiblity of using support vector machines for density estimation. The main source I found for this is a paper by Mukherjee & Vapnik 'Support vector method for multivariate density estimation' (Link) which claims that this approach performs better than for example the Parzen-Window approach. The ...
I've read through this explanation here regarding calculating the variance explained from PCA output. I think I got it right but might be off in my interpretation of R output. In the example below, I would like to calculate the percentage of variance explained by the first principal component of the USArrests dataset. ...
A popular algorithm to determine the (complex) log likelihood function of an ARMA(p,q) process involves generating it through the use of a state-space model and the Kalman Filter. I started reading Maximum Likelihood and the Kalman Filter but the question isn't clear when it comes to the full implementation of it as it...
The $p$-value is used to report how strongly we can presume against an hypothesis. As is clear, this $p$ value is itself estimated from data and if new data where collected in the same conditions, the new $p$ value will very unlikely be the same. Halsey, Curran-Everett, Vowler & Drummond (2015) in a commentary to Natur...