instruction
stringlengths
9
38.7k
Let $\mathbf w_1,\mathbf w_2,\ldots,\mathbf w_n \in \mathbb R^p$ and $\mathbf v \in \mathbb R^n$ be fixed vectors, and $\mathbf x \sim \mathcal N_p(\boldsymbol{\mu}, \mathbf{\Sigma})$ be an $p$-dimensional Gaussian random vector. Consider the random variable $s(\mathbf{x})$ defined by $$sm(\mathbf{x}) := \frac{1}{1 + ...
I already searched the topics here but couldn't figure out clearly what to do so I'm asking here. I have thousands of fiber tracts (the outputs of a tractography algorithm on brain diffusion MRI) that I'd like to cluster them. Each tract is essentially a series of points in 3D Cartesian space. Not all the tracts have t...
I am curious about how interaction terms are calculated within a multiple linear regression model. I understand that in a simple linear regression, the following holds: $$y_i=\beta_0+\beta_1x_i+\epsilon_i $$ $$\hat{\beta_1}=\frac{\Sigma(x_i-\bar{x})y_i}{\Sigma(x_i-\bar{x})^2}$$ $$var(\hat{\beta_1})=\frac{\sigma^2}{\Sig...
It´s probably basic question, but I am wondering, what is meant by the term "joint observations"? I´ve seen this for the first time, and in the literature (statistical one) I am using, it´s not wisely interpreted. So, does somebody know, the meaning of it? The sentences, where it ossurs are: Turning to bivariate dat...
I have a question about the label bias problem in HMM and CRF. I understand that HMM and MEMM suffer from the label bias problem, which is a preference for states with fewer transitions. The problem is due to the fact that in HMM and MEMM use local probabilities (each probability has to sum to 1), and thus, states with...
Within the social sciences there is a popular technique called Factor Analysis and I am interested in generating random correlation matrices that uniformly sample all the space parameterized by one specific type of factor-analytic model called the one factor model. Under the one-factor model, data is assumed to follow ...
I have some data that is gathered once every 5 minutes and I'd like to create an ARIMA(p, d, q) (P, D, Q) m model for it in order to forecast what might come next. I have a week's worth of data, being gathered at every 5 minutes, there are 2016 data points in the set. The data looks like this: The data is clearly seas...
At the model level, to assess predictor contribution/importance we can use: Model Specific Techniques – e.g. purity (Gini Index) for a tree-based model, model coefficients where applicable etc. Model Independent Techniques – e.g. Permutation Feature Importance, Partial Dependence etc. What this does not convey is for...
Let $P = (f_{\theta} :\theta \in \Theta)$ Suppose we have $X_1$ and $X_2$ iid with density: $f_{\theta} = \theta * x^{\theta - 1}$ ( $ x\in [0,1]$) I want to show, that $T(X_1,X_2)$ is sufficient for $P$ where $T(x_1,x_2) = x_1x_2$ Definition of sufficient statistic: $f(x|T(x)) = \frac{f_p^x(x)}{f_p^T(T(x))} = \frac{...
The question (slightly modified) goes as follows and if you have never encountered it before you can check it in example 6a, chapter 2, of Sheldon Ross' A First Course in Probability: Suppose that we possess an infinitely large urn and an infinite collection of balls labeled ball number 1, number 2, number 3, and so...
When it comes to multiple predictors, I've seen conflicting interpretations of MARS models and hoping for some clarification. Some fake results, let's say it's predicting household income via years of age and education... estimate (intercept) 50000.00 h(age-40) 50.00 h(40-age) -100.00 h(16-e...
Simulated data: dput(test) structure(list(xx = c(11.68, 11.29, 11.17, 10.41, 9.36, 9.52, 8.67, 7.69, 8.36, 6.97, 7.05, 7.08, 6.62, 6.35, 5.96, 4.91, 7.25, 8.66, 7.85, 9, 8.14, 6.99, 7.23, 6.16, 6.42, 6.6, 5.47, 4.85, 5.12, 4.76, 4.72, 5.32, 5.04, 5.32, 4.83, 4.83, 4.95, 5.28, 5.53, 6.01, 6.16, 6.08, 5.81, 5.3, 4.94...
I am running a multi regression y~lm(x1 + x2 + x3 -1) i.e., no interception I built the model and calculated $\hat{y}$ which is $\sum(\beta_{1} x1+ \beta_{2}*x2 + \beta_{3}*x3)$ I compute $R^2$ as $\frac{SSR}{SST_O}$. It is positive, so I thought the model is working. however, I found that $y$ and $\hat{y}$ are neg...
I'm finishing up a project to migrate a website to a new technology stack. I want to make a data-driven decision on the impact to the website's error rate. I have data like this: Type: Before Count: 100 Type: After Count: 10 Type: Before Count: 50 Type: After Count: 20 These counts are a sum of all errors on the we...
This is a follow-up from this question. In the cited article, which uses a bayesian framework to identify prioritized gene lesions, one posterior is defined as the following: $$P(D|S) \quad \stackrel{\text{def}}{=} \quad ∑_iP(D|M_i)·P(M_i|S) \tag{1}$$ which translates to "the posterior that the gene $D$ is a driver gen...
I just started learning about simple linear regression, and I have a question about one of its assumptions. One of the assumptions is that the errors are normally distributed. Does this mean that if I get every $y-\hat{y}$ point, those points should be distributed as a mound shape?
I wanted to ask you an opinion about this exercise. I don't understand how compute sufficient statistic in this case important point, to compute the log and derivate and find my MLE.
Some have stated that kurtosis is the "movement of probability mass from the “shoulders” of a distribution into its center and tails" where "center" is defined as the range between $\mu \pm\sigma$. I was trying to find a proof for this but was unsuccessful. Can anyone point me to a proof of whether (i) larger kurtosis ...
Hi I was trying to verify law of total variance, by creating 3 groups from a random sample of a standard normal. Can some tell me if my understanding or the code is wrong? The Result is not ~ 1 which is the variance of a standard normal. import scipy # get 1000 random numbers from a normal dist. # So Variance is ~ 1 ...
Let's say our data set contains 1 million examples, i.e., $x_1, \ldots, x_{10^6}$, and we wish to use gradient descent to perform a logistic or linear regression on these data set. What is it with the gradient descent method that makes it inefficient? Recall that the gradient descent step at time $t$ is given by: $$w_{...
I have this problems to solve. There are 4 areas. Each area has 4 switches. For example, here are areas: A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 D1 D2 D3 D4 Conditions: 1) If one switch in one area is down, the other areas can handle the corresponding load. 2) Even if one full area is down BUT all other 3 areas are f...
I am trying to simulate the diet of the participants of an observational cohort (say n=10,000 - but could be larger). The purpose is two-fold: first I would like to use this to test some scripts, but second it would also be useful for teaching (to provide students with data as close as possible to real life without usi...
I am interested in the mean and variance over n random variables $x$ where each $x_{i}$ is independently distributed with an unique mean and standard deviation, $x_{i} ~ \sim \mathcal{N}(\mu_{i}, \sigma_{i})$. For example, suppose I measure the length of n persons multiple times to get for each person an average lengt...
I am trying to understand the description of variational auto-encoders here to quote the excerpt: Before we can say that our model is representative of our dataset, we need to make sure that for every datapoint $X$ in the dataset, there is one (or many) settings of the latent variables which causes the model to ge...
I'm studying methods for time series analysis, using gretl. I have this time series. I used TRAMO and X12-ARIMA to detect probable outlier, but I found nothing. So I used difference-log of first order to make the serie stationary, and I had this: It seems that there is something in the end of 2008. Infact TRAMO found...
I have N time series of DIFFERENT lengths with i number of data points in each observation. I would like to compute the similarity of each time series and generate M number of clusters. I have tried Jaquard simliarity, and followed the link below Time Series Similarity : Differing Lengths with R but am looking for a s...
I am trying to fit a spatio-temporal epidemic type after schock model to an Earthquake catologue using ETAS package R. However, I do not know about it too much. Without good initial parameter set the algorithm diverges. I have not found anything in the documentation of the package and in literature about it? How can I ...
Consider the (hierarchical) Bayesian inference problem with two unknowns $(x,\theta)$ and data $y$. I'm using a very simple ("independence"?) approximation $$ p(x,\theta|y) \approx p(x|\theta_\star,y) \, p(\theta|y) \, ,$$ where $\theta_\star$ is the mode of $p(\theta|y)$ -- using other point estimates for $\theta_\sta...
I would like to test the hypothesis that the distribution of windspeeds of Atlantic hurricanes in more recent years (1967 - 2016) has shifted to higher values when compared to earlier years (1900 - 1949). For that I condition the data for each distribution on year and windspeed (as I only include windspeeds greater or ...
In Example 5 here, the authors discuss polling. Voting for candidate 'A' is given the numerical value of 1, and voting for 'B' has the value of 0. The CLT says that the average of a sample of $n$ people has the approximate distribution $$\overline{X} \approx N(p_0,\sigma/\sqrt{n}) $$ where $p_0$ is the true proportion ...
So after going through some machine learning courses, I tried to implement my own logistic regression, just to get a feel of it. My code: sig <- function(x) { return( 1/(1+exp(-x)) ) } logistic_regression_gradient_decent <- function(x, y, theta, alpha = 0.1, loop = 100) { cost_vector = c() m = nrow(x) wh...
At first: I have individuals represented by vectors with four entries/properties: Individual1: Height Age Blood Gender 171 24 A w Individual2: Height Age Blood Gender 179 21 B m Individual3: Height Age Blood Gender 181 33 B w (..) It's just an arbitrary example but assume I want to measur...
In the original LDA paper (Blei2003), EM algorithm estimates $\alpha$ and $\beta$ in Fig.5. So, what is the result for Fig.7? Will it give estimation of $\alpha, \beta$ or $\alpha, \eta$? And, if I get $\alpha, \eta$ in Fig.7, how do I get $\theta, z, \beta$, which is what I am actually interested in?
Is there a relationship between the applicability of Maximum Likelihood Estimation and Pitman-Koopman-Darmois Theorem? I mean if the dimensionality of the sufficient statistics depend on the sample size, does this mean MLE cannot be applied? Clearly MLE can be applied to say estimating parameters of Student-t distribut...
I am using Multilayer Perceptron MLPClassifier for training a classification model for my problem. I noticed that using the solver lbfgs (I guess it implies Limited-memory BFGS in scikit learn) outperforms ADAM when the dataset is relatively small (less than 100K). Can someone provide a concrete justification for that?...
I have a time series for daily records of concentration of Total Phosphorus (TP) in a riiver and the water flow in the year of 2014. While I have complete data for the flow variable, I have missing values for the TP variable. I am trying to impute the missing values of the TP variable based on an AR(1) model for TP wit...
In my time series class, we got taught, that an MA($\infty $) process with $$ \sum_i^\infty \theta_i^2 < \infty $$ is weakly stationary. Obviously the mean exists and is time independent, but why does the second moment, so the covariance, also exist? From the assumption I can only derive, that the variance, but not t...
I have a dataset of dimension 3,000 x 24,000 (approximately) with 6 class label. But the data is very sparse. The number of non-zero values per sample ranges from 10-300 (approx) out of 24,000. The non-zero values in the dataset are real numbers. I need to perform feature selection/reduction before the classification. ...
I'm trying to fit MGCV GAM with constraints on linear terms. I feed a dataset with factor variable G. Number of rows is about 30-40k. Number of model parameters - 100-200. This means I have to use bam for initial estimate. mf <- Y ~ 0 + G + X1:G + s(X2, bs = "cc", k = 12) # model form # fit big gam cl <- makeCluster(4...
Define $e_i$ to be iid random variables drawn from an exponential distribution with parameter $\lambda=1$. $a_i$ are numerical constants. I am interested in the probability that $a_1 + e_1 < a_2 + e_2$ ie, that $a_1 +e_1$ is the min. The solution is $\exp[- (a_1 - a_2 )]/2$ if $(a_1 - a_2 )>0$, and $1-\exp(a_1 -a_2...
In the Temporal Difference update rule that is given in Sutton and Barto section 1.4, it suggests back up of the values only after greedy moves are made. Is it not important to make updates even when exploratory moves are made? If we do not make updates after exploratory moves and actually bump into a good exploratory ...
My data is monthly CPI(https://fred.stlouisfed.org/series/CPIAUCNS). Here is the original plot: There is an exponential trend here, but variance isn't necessarily increasing with the trend. I tried a log transform, and here's what I got: The first 1/3 of the plot's variance increased, but the exponential trend is g...
I recently want to test my network estimation algorithms and need to sample some data from undirected graphs. The natural way I think of was: Generate a sparse symmetric Precision matrix $P$. Calculate SVD: $P=USV^T$ adding a constant $\hat{S}=S+c$ to make sure min$(\hat{S})\geq 0$. (So $c$ can be determined very wi...
So I had a probability test and I couldn't really answer this question. It just asked something like this: "Considering that $X$ is a random variable, $X$ $\geqslant$ $0$, use the correct inequality to prove what's higher or equal, $E(X^2)^3$ or $E(X^3)^2$. The only thing I could think of was Jensen's Inequality, but I...
This is the question assigned to me: Let X and Y be two continuous random variables having joint pdf $\ f_{X,Y}(x, y) = \frac{1 + xy}{4} , −1≤x≤1,−1≤y≤1 $. Show that $X^2$ and $Y^2$ are independent. This is the work I have so far: $$ W=X^2, Z =Y^2 \implies X =\pm\sqrt{W},Y =\pm\sqrt{Z} $$ $$ J = \begin{vmatrix} ...
I am estimating a linear regression model with the dependent variable $y$ and $k$ explanatory variables $x_1, \ldots, x_k$: $$y=\beta_0+x_1\beta_1+ \ldots+ x_k\beta_k + \epsilon.$$ In the estimation I want to impose the following type of constraint: $$\beta_i \geq 0, \quad i=1, \ldots, k, \text{ and } \exists \ell \,...
I've implemented my own gradient descent algorithm for an OLS, code below. It work's, however, when the learning rate is too large (i.e. learn_rate >= .3), my approach is unstable. The coefficient's explode and I get an overflow error. I understand that if my learning rate is too large, I get bad results. The algor...
In reading this article, I came across the likelihood function for logistic regression which is defined as below (for discussion reasons, please assume discrete case): $$L(X|P)=\prod_{i=1,y_i=1}^{N} P(\mathbf{x}_i)\prod_{i=1,y_i=0}^{N} (1-P(\mathbf{x}_i))$$ I'm trying to make some sense out of how this equation was der...
So the question was the following: Let $t_1,...,t_n$ be a sample from a normal distribution with an mean that is unknown, $\kappa$, and a known variance $\sigma^2$. We can assume that the prior density for $\kappa$ is an exp density with the mean of $\kappa_0$. The objective is to fin the posterior density of $\kappa$...
I am concerned with the formulas I've seen for the AIC or BIC when using a squared-errors instead of likelihood. On the AIC wikipedia page, there is the cryptic formula for LL: $ -{\frac {n}{2}}\ln(2\pi )-{\frac {n}{2}}\ln(\sigma ^{2})-{\frac {1}{2\sigma ^{2}}}\mathrm {RSS} =-{\frac {n}{2}}\ln(\mathrm {RSS} /n)+C_{1} $...
Where has the author got the blue 3 from, in line 2 of the code shown?
Hi, I am learning loopy belief propagation for MRF. The general roadmap is to define a Bethe approximation, which is exact for a tree but wrong for general graphs. I'm currently stuck at the point to compute the Bethe entropy. Let's consider a pairwise tree in here (p. 21). where $b(\cdot)$ is a belief (marginal distr...
I was reading documentation of function posthocTGH (the "Note" section, where authors expressed doubt about additional corrections to p-values) and linked discussion (particularly this answer in which opinion that Games-Howell test does not need additional corrections) and this answer (that Conover-Iman test, which is ...
I am doing a spectral analysis in R using the spec.pgram() function. Suppose I have observations for $y_1$ to $y_n$ which are a time series with annual observations. From my understanding if I run: per <- spec.pgram(y,taper=0,log="no") a) per$spec stores the periodogram values for frequencies $1/n, 2/n, \ldots, 1/2$. b...
I have a survey with 25 variables (160 observations for each var). Most are categorical, some are continuous. The variable of interest is categorical (binomial). If I do: model <- glm(Y~., family=binomial(link='logit'), data=...) I get a warning message: 1: glm.fit: algorithm did not converge 2: glm.fit: fitted pr...
I am building a model for predicting airline prices. I have 19 relevant predictors and and 114000 observations. I am getting an $R^2$ predicted of 95.87 (Minitab displays $R^2$ predicted after applying the PRESS Statistic for cross- validation). Do I need to test for the five assumptions of a linear regression model ...
Perhaps a basic question, but is there a method or definition of how to choose the optimum bin size for some data with the intent to plot as a histogram? At present the best option I can think of is to fit distribution functions to the histograms and choose the bin size where the fit is best. Is there a definition base...
Consider the situation in which one should investigate, which treatment or treatments (of A, B, C, D, E, F, G, H) is/are the most effective (highest decrease) and which is/are the worst (lowest decrease, see figure below). One made an ANOVA/Kruskal-Wallis-like test, which showed a statistically significant difference....
In the first step of K-means Parallel, every point $x_i$ is added to the initial cluster centers $U$ with probability $p_i$, as shown below: I can understand why a high oversampling factor $l$ and a larger distance from the cluster centers would be desirable traits to have in a new point in our set of cluster centers....
It appears from reading Scikit-learn χ² (chi-squared) statistic and corresponding contingency table that sklearn does not perform a standard contingency table analysis when calculating the χ² statistic between two categorical variables. For example, given the data below # libraries import scipy.stats as sps import pand...
I need to create a desired light pattern (car front light) from a large number of normal distributions (small LEDs, maybe different size). One approach would be to use an evolutionary algorithm, but I was wondering if there is a smarter mathematical approach to this. Is there a way to decompose a desired pattern, say ...
Suppose the 1 x N vector $V\in \{0,1\}^N$ comes from the pdf $f(V) = VWV^T$, where $W$ is a N x N positive definite matrix. If the weight matrix is given, I can use gibbs sampling to generate a random sample of those vectors. But now I want to do the reverse process. If I have a sample of vectors $V$, how can I est...
I need to develop a recommendation system for a relatively new retail website. They mainly sell electronics items. Currently, the only data that is available is the transaction data (user, item, quantity, date, price). Based on my preliminary research, recommendation systems come in two flavours: Explicit feedback (r...
I have survey data for women and men following a binomial distribution. Their means are $p_1$ and $p_2$ respectively. I have calculated $(p_1-p_2)/p_2$ and would like to attach a confidence interval to this percentage. How can this be done? Given the number of people surveyed, a normal approx would be fine here.
I am wondering how shuffling will influence ANN training. I assume, we a batch training using the entire data for training at each epoch. Shuffling does not change the value of the error $$ E={\frac {1}{2n}}\sum _{x}\lVert (y(x)-y'(x))\rVert ^{2} $$ Hence it does not make sense to me that it influences the training re...
I know that Deep CNN's is all everyone cares about today, and there are a lot of papers about state of the art CNN's for image classification; Alexnet, (Googles) Inception, Microsofts ResNet etc. However, I do not feel these networks is the right answer to most peoples problems. While most of the big CNN's focuses on...
I have a (feed-forward single layer) neural network with which I try to predict an environment-related variable from two financial variables (regression). I use the "train" function from the caret package. I use the nnet() algorithm in the caret package. I have two continuous predictors, and 420 data points. For theore...
I am performing a text categorization with bag of words and logistic regression. I have already heard about L1 and L2 regularization and used them for classification but with problems handling way less features, that were not about text. Is it useful in the context of bag-of-words features?
To get rid of the problems in AdaGrad, the learning rate is changed from $\frac{\eta}{\sqrt{G_{t, ii}+\epsilon}}$ to include only gradients in a small window size $w$. But as the function approaches the optimal value, won't the denominator become small in the case of AdaDelta because the gradients become small? Isn't t...
Let's suppose the true regression model is: $$Y = \alpha + \beta X + \epsilon$$ where, $Y$ is dependent variable, $X$ is independent variable, and $\epsilon$ is residuals. My objective is to estimate beta from the empirical data but the problem is that $X$ is unknown and what we know is proxy of $X$. Now suppose that...
I would like to use a t-test for hypothesis testing on the amount of calories consumed by women per day. The distribution of this variable is right-skewed and a log-transformation increase its symmetry but it shows also an outlier on the lower-tail. I know that, since the sample has more than 200 observations, I could ...
I have three questions below. Please also feel free to point out flaws in my understanding! A time series of $N$ samples $(x_1, x_2, \cdots, x_N)$ is a realization of some discrete-time stochastic process $\{X_t\}$ indexed by $t(=1, 2, \cdots, N)$. In this case, $(X_1, X_2, \cdots, X_N)$ is a random vector that is full...
I am using preProcess in caret to knnImpute. As far as I understand, the imputation should include all the variables in the analysis and KNN imputation can only be done effectively if data is on the same scale. (Ex - if one 'satisfaction rating' variable has range of 1 - 10 but 'likelihood to recommend' has levels 1 - ...
I would like to combine results of multiple studies, that used permutation test (or sometimes called randomization test) to obtain their p-values. The dependent variable is shuffled many times, within exchangeability blocks, to obtain null-distribution of a specific test statistic. Furthermore, the test statistic they...
I currently have a dataset with y and x that seems to experience heteroskedasticity. Are the results consistent/within expectations? (The standard error for x from my GLS is even higher than that of the common OLS.) Next I want to try using feasible GLS to estimate the regression equation. regress y x [aw = 1/h] #...
I'm working with time series and I need to simulate a time-dependent AR(2) model like this: $Y_t = a_tY_{t−1} − 0.5Y_{t−2} + \epsilon_t ,t =1, 2, ..., 1024,$ where $a_t=0.8*cos(t)$ How can I implement that ?
I am doing a research on the effectiveness of multimedia instruction to classroom performance of students vs traditional approach. This is my plan but I am not sure what is the name of this research design that I'll be using: I have two groups: One group to receive traditional teaching approach while another one will b...
I am estimating a nonlinear model as follows: $$Y=B_0+B_1X_1+B_2X_2+B_3aX_3^{1-b}+B_4$$ I have estimated $B_0$, $B_1$, $B_2$, $B_3$, $B_4$, $a$, and $b$ using least squares in Excel (minimizing SSR using solver). I was wondering how to get the t-values for all of the estimates/coefficients.
I am performing experiments on the EMNIST validation set using networks with RMSProp, Adam and SGD. I am achieving 87% accuracy with SGD(learning rate of 0.1) and dropout (0.1 dropout prob) as well as L2 regularisation (1e-05 penalty). When testing the same exact configuration with RMSProp and Adam as well as the init...
I am using Tensorflow Object detection API to detect 2 objects. I need negative samples because it sometimes detects something random as one of the images . How should I annotate an image to be a 'negative sample'? I am using LabelImg to annotate the images. Do I draw the bounding box around the whole image and label i...
I am trying to train a keras model for recognising human motion, where the input are the extracted features, such as 2D position of face, torso, etc. Recently, I have managed to train a model with high accuracy for subject-dependent case, where the derivatives of the original human motion were recognised correctly with...
I have a table: https://i.stack.imgur.com/NaFxd.jpg The columns represent weight of groceries in a room, the rows represent temperature of the room. The values represent a likelihood the food goes bad (it's some original likelihood I came up with, not percent). Anyways, I now have new data that I want to classify using...
I will follow the notation in the following article in this question Williams, D. (1987). Generalized Linear Model Diagnostics Using the Deviance and Single Case Deletions. Journal of the Royal Statistical Society. Series C (Applied Statistics), 36(2), 181-191. doi:10.2307/2347550 My impression is that when people talk...
The most widely used statistical techniques assume a normal distribution for inputs. The most widely used normalization procedures take a: square root (assuming polynomial distribution), log (assuming exponential distribution), or ratio (assuming the denominator scales the numerator, eg per capita) Give a large numb...
import tensorflow as tf import numpy as np from tensorflow.python.ops import rnn_cell, rnn data = np.random.randint(0, 10, size = (1000, 18)) batch_size = 10 chunk_size = 6 n_timesteps = 3 rnn_size = 128 x = tf.placeholder('float', [batch_size, n_timesteps, chunk_size]) y = tf.placeholder('float') def neural_network...
In linear least squares the parameter estimates are: $\hat{\beta} = \left(X^{\top}X\right)^{-1}X^{\top}y$. In Ridge regression the standardized parameter estimates are given by $\hat{\beta}_{\Gamma} = \left(X^{\top}X + \Gamma\right)^{-1}X^{\top}y$. Variance covariance estimators use leverage values to account for bias ...
I have the following data (R code): rm(list=ls()) sampleA<-c(20,30,NA,50,50,30,10,NA) sampleB<-c(NA,30,40,50,NA,60,20,30) par(mfrow=c(1,2)) plot(sampleA,xlim=c(0,11),ylim=c(0,60)) plot(sampleB,xlim=c(0,11),ylim=c(0,60)) Is there a way I can infer the NA values with a given degree of confidence?
I have two datasets plotted on two axis like this: The datasets can be interpreted as a series of counts. The x and y arrays that form the blue line, for example look like x = [0, 1, 2, ...] y = [20788583, 4731125, 2534681 ...] The interpretation is that there are 20.8 million counts at index 0; 4.7 million counts a...
When modeling a percentage outcome from two categorical predictors, the error family choice should be binomial or quasibinomial as far as I know. For prediction the choice does not make even the slightest difference, and I don't understand why. Can anybody here help me understand this? I wanted in this model to include...
I recently encountered the following decomposition in a paper, may I know whether anyone on CV happened to know the name of the decomposition and a proof of it? $B$ is a regular stochastic matrix and can be decomposed as: $$ B = B^* + \sum_{i>1}\lambda_i B_i$$ where $\lambda_i$ is the eigenvalue, $B_i = f_i \pi_i$ ($f_...
I was reading a post on this website and it said: For linear models the deviance equals the RSS (SSE) $\ D_i=−2∑n_{ik}~log(p_{ik})$ so, $\ SSE=Di=∑(y_{j}−μ_{i})^2,$ I can not see why this is true , also is there a good source for this kind of material. Thanks What is Deviance? (specifically in CART/rpart)
I am looking for methods (and preferably references) for assessing model fit for Bayesian analyses of binary data. Specifically, I am fitting Bayesian parametric and nonparametric item response models to dichotomous data, and want to make appropriate comparisons of model fit.
I've a question concerning the specification of a panel regression with: unit and time fixed effects ($\alpha_i$ and $\delta_t$); interaction term between continuous variables ($x_{it}$ and $z_{it}$). Let's start with a model with no interaction effect. Model (1) looks like: $ y_{it} = \alpha_i^{y1} + \delta_t^{y1} +...
I'm finishing All of Statistics, by Larry Wasserman, which is very good to get a broad picture of Statistics. Now I would like a specific book that deals with regression, but I would like a mathematically detailed book, one that proves the results and that just not simply shows the formulas.
I'm diabetic and the Dr. prescribed me new medicine. So I recorded glucose samples before I started the medicine (PRE) and after I started the medicine (POST). Now that I have decent amount of data accumulated I'm wondering which test to use to see if there is a significant change in the glucose levels. Do you know wh...
How can we Prove that the sum of slacks $\sum \xi_n$ from the objective function of the SVM formulation with soft margin is an upper bound on the number of misclassified training examples? Some references: https://www.cs.colostate.edu/~asa/pdfs/howto.pdf My current knowledge: Optimization problem is minimize w,b 1/2 $|...
This should be straightforward. I come from a frequentist background and I'm trying to understand bayesian logic. If I use a flat prior for my parameter to allow "the data to speak", what's exactly the benefit of bayesian over frequentist? As I understand it, I'm not allowing any shrinkage so I'm not really using any p...
The question involves a regression of $Y$ on $11$ predictor variables $X_1$ through $X_{11}$. The problem asks me to identify the variables involved in the collinearity using the eigenvectors that correspond to small eigenvalues. Using R, I have calculated the $11$ eigenvalues and eigenvectors, but I am not sure how to...
Automobile claim amounts are modeled by a uniform distribution on the interval [0, 10,000]. Actuary A reports X, the claim amount divided by 1000. Actuary B reports Y, which is X rounded to the nearest integer from 0 to 10. Calculate the absolute value of the difference between the 4th moment of X and the 4th moment ...
So the context I am working with is defining signatures to classify different cell types (I have 7) in order to then use with statistical deconvolution by regression. So far, I have been using a multinomial GLMnet with elastic net penalties. While the features thus selected generally do a great job at informing regress...