instruction
stringlengths
9
38.7k
I am doing a study on time series data. In a lot of examples, ARIMA model is used to forecast a time series data. On what basis ARIMA model chosen to predict a time series is my primary doubt. Is ADF(Dickey–Fuller test) or Kwiatkowski-Phillips-Schmidt-Shin (KPSS) test is used to justify the reason for choosing ARIMA ...
I have a dataset (30k), where Event = 82% and Non-Event= 18%, is it possible to use normal way of modeling (ie. regression/decisiontree/etc) to do a model (so far, i couldn't get a good result), or i should reverse the Event to 18% and Non event to 82% to do the modelling? Thanks.
I am interested in why the 2016 presidential election polls did a poor job in forecasting the result. One hypothesis I heard is that many of the polls conducted before the election were correlated, and a sensitivity analysis can be done to the datasets to figure this out. My understanding of sensitivity analysis is the...
I'm analysing possible interdependencies between annual returns on art objects and returns on traditional investments (S&P500, commodities etc). For most variables TS length is around 20 years. For example, I have two variables - art index(var_y) and S&P500 index (var_x) As far I understand from STATA help, STATA list,...
I have estimated the parameters of a non-homogeneous poisson space point process using Metropolis+gibbs from some observation data. I know: $N$: Number of points inside my observation window $\lambda$: Intensity function and the parameters associated with this intensity function. If I want to generate a pattern of poi...
This is (I think) a routine question, but I haven't seen an answer here. In the past I had to fit logistic regression models with linear constraints on the coefficients, in the case when some of the predictors were categorical. Until now I've been using glmnet, which by the way only allows bound constraints ($a_i\leq\...
I am stuck with a problem since days which is to find a right set-up for an Autoencoder that learns dense representations of sparse textual representations, word order is not relevant which is why I did not use skip-gram or CBOW. I would like to use these embeddings as features for another neural network. Data structur...
I have a situation where I worked on two different flavors of a website say A and B (using some fictitious numbers for illustration). For A the amount of time spent by users went up by 1% for 1 million users and for B the amount of time spent went up by 1.01% for 1 million users. How can I determine if B is better than...
So I am using a linear regression with time as a trend variable (specifically, I am taking the # of months since user's first activity as the linear feature of time, and also including the log, sqrt, squared, etc., transformations of that for non-linear time features) and dummy variables for 11/12 months of the year to...
I understand that a trained convolutional neutral network allows us to generate predictions for subregions in a new image. But, when training a convolutional neutral network, how does the sliding window approach work? It seems like labeling an entire image as a bird, for example, would be problematic because the networ...
I have CSV files that contain data of cache performance of a source with different workloads for a particular time period. For each time interval, data is recorded, includeing columns like ReadHits, WriteHits, Cacheusage, ReadMiss, etc. Example contents: Interval,ReadHits,WriteHits,Cacheusage,ReadMiss 1 ...
I have been reading about imbalanced dataset lately and new to data science Domain. I came across this article which talks about various methods to solve this problem in R. Considering e-commerce data, we have Baseline sales(sales without promotion) and Incremental sales(sales with promotion). As this will be a true ex...
Say we have a $K$ sided (unfair) dice, that has unknown probabilities $p_k$ of rolling each side. We roll $N$ trials and observe $n_k$ occurrences of each side (so $N = \sum_{k=1}^K {n_k}$). The average roll $\hat a$ of our trial is $\hat a = \sum_{k=1}^K k n_k/N$. I would like to find a confidence interval on $a=\s...
I'd appreciate help in clarifying my understanding of how to valid kernel functions, using the following two examples: $K(x, t) = x^Tt - (x^Tt)^2$ $K(x, t) = e^{(x_1t_1)}$ where $x_1\ and\ t_1$ are the first elements in the $x\ and\ t$ vectors. As I understand it, I can either: Find a feature map $\phi(x)$ such that...
Scenario: Roughly 50 million voters vote for a certain Yes/No poll. Results start to come in and when the 10% of the votes are counted the difference between “no” and “yes” is roughly 3 million on behalf of “no”. The net difference (3 million) go almost unchanged until 80% of the votes are counted. At the end,...
I am given the PDF of a random variable X and I am asked to calculate the PDF of the random variable Y = g(X) = 1/X (Y's domain is the interval [0,1]). By observing that g is monotonic I apply the formula that uses the inverse function. However I end up with a negative PDF (see image). Could you pinpoint the error? ...
My question: How to establish evidence of any clustering in data (compared to clustering from randomly generated data)? Are there established approaches? And does this approach outlined sound reasonable? In some uses of cluster analysis, different numbers of clusters are specified and the output is compared (i.e., wit...
Why is the power analysis for a univariate logistic regression (one binary predictor) different depending on whether you treat the power analysis as 'power for the difference in proportions between two independent samples', or power for an odds ratio based on the same two proportions? Specific example: Some interven...
I'm modelling a university applicants dataset using PROC LOGISTIC in SAS (9.2). The target variable is 'Enrolled y/n', and i'm modelling against a range of 13 variables (a mixture of indicator, continuous and class) including: Number of applications submitted, number of events attended, Applicant Age, etc. I'm using 50...
I am trying to model a basketball game using play by play data. Each team has a transition matrix representing what they will do next on offense and defense in any given time remaining in the game. Problem I have is establishing the interaction between teams. How do I account for a different transition matrix based on ...
I have a PDF with angle $\theta$ as the independent variable: $R(\theta)$. $\theta$ is defined up to mod $\pi$ -- accordingly, $R(\theta) = R(\theta + \pi)$. I need to express this PDF as a function of a different independent variable, $\psi$. $\psi$ and $\theta$ are related by a constant offset, i.e. $\psi = \theta + ...
Suppose that we have 30 plants (that are the same exact plants). Suppose that we choose 15 out of a sample of 30 plants and we seeded them with a drag. We then want to test whether this drag has an effect of making them grow faster. So we have 15 plants with a drag, and 15 plants with no drag. Let's suppose that the ...
I have observed that when I significantly reduce the dimensionality of my data that the silhouette score drastically increases. I have reduced the dimensionality so that only 10% of the variance is retained. With no dimensionality reduction, I get on average silhouette scores ~0. With dimensionality reduction, only ke...
(I am aware of a similar question here but I feel the answer on it is too open-ended) Assuming that the population is unchanged between both sampling stages and that we're using sampling without replacement, we would have the following probabilities for selection at each stage: $$P(x_i \in S_{pilot}) = \frac{n_{pilot}}...
I'm trying to detect multicollinearity in my model, it has count response variable and some proportional and one categorical explanatory variable called site. In R the model looks like this: glm(Total ~ percent_flower + Percent_typeofflower + Percent_ohtertypeoflower + Site, family=poisson, data=...
The amount of sugar needed in one day in a sugar refinery has an exponential distribution with mean 4 tons. How much sugar should be stocked each day to ensure the chance of running out is only 0.05? I am struggling to identify the definition for the random variable in this situation and how I would find this I have a ...
Suppose I have a random variable $X \sim f_{X}(x \mid \lambda)$ with support over $(0, \infty)$ and I find the Fisher information in $X$ about $\lambda$, i.e., $$I_{X}(\lambda)=\mathbb{E}\left[\left(\dfrac{\partial\ell_X}{\partial\lambda}\right)^2\mid\lambda \right]$$ where $\ell_X$ is the log-likelihood of $X$, which...
I have a dataset where I am looking at two different flowers with different heights. I have standardized the height and are doing a t-test to see if there is a difference in means for the two flowers in terms of heights. When I do the t-test for the standardized heights (as opposed to the original height in the data) ...
I am developing a churn model for a subscription business. The churn rate is 7% yearly for it. The training data was prepared in such a way that customer information is tracked at the start of the year where only active customers are tracked. By the end of the year, the customer tag of churned/active customer is taken....
Let $X$ have the gamma $(r, \lambda)$ distribution. Show that $P(X \ge 2E(X)) \le (2/e)^r$. I do not know how to approach this. I am thinking of Chernoff Bounds, but what trips me up is how to minimize the bound.
So I'm a bit confused about the bridge between urn type Bayes problems and more complex stuff like categorical distributions and dirichlet priors. What want to look at is the probability of an exit geofence event on a phone (a circular region in space that the phone monitors) being triggered as a function of velocity. ...
The PDF of a random variable X is given by: $$f(x) = \left\{\begin{array}{ll} 2 & : -c \le x < 0\\ 2e^{-4x} & : 0 \le x < \infty\\ \end{array} \right.$$ In this example, how would I calculate the value of c? In all of the previous examples I've encountered in the book, they are of the form of: $$f(x) = \left\{\begin{ar...
Assume the learner is proficient with artificial neural networks. What are some good resources (books/videos/papers/GitHub repo/etc.) to get started with generative adversarial networks (GANs) and become proficient with them?
How can I calculate the value of the constant c, given the joint probability distribution below? $$ f_{X,Y}(x,y) = \left\{\begin{array}{ll} ce^{-({\frac {x^2} {8}} + {4y})} & : -\infty \le x < \infty, y \ge 0\\ 0 & : otherwise\\ \end{array} \right. $$ I've attempted to plug the integral into tools such as `https://www....
I am working on a undirected, binary graph (derived from functional neuroimaging). I would like to alter this graph to change specific graph-characteristics (e.g. a specific value for the global clustering coefficient or the average minimal path length) while keeping all other graph-characteristics constant (or as many...
When we do graph partitioning or graph clustering how does one give the graph as input? Is it by means of an adjacency matrix? What if the graph is very large?
A few days ago I asked this question. I only got one answer and I did not really understand it. Now I think this question is a special case of a more general question I have, namely: Do re-estiamted HMM parameters still need to be normalized? In all sources I read, it nowhere says so. However if normalizing was a neces...
I'm working on a project dealing with different treatments on the number of medical service in 1 year. I used negative binomial regression to estimate incident rate ratio after adjusting other confounding factors in this problem. Because there are more than 2 levels in the treatment arm, I'm trying to consider multiple...
Let $N$ random variable taking positive integer values, with mean $a$ and variance $r$. Let $X_i$ i.i.d. random variables with mean $b$ and variance $s$. Let $Y_i$ i.i.d random variables with mean $c$ and variance $t$. Let $N$, $X_i$, $Y_i$ independent. Let $A = \sum_{i=1}^NX_i$ Let $B = \sum_{i=1}^NY_i$ What is $\math...
I'm trying to use the example described in the Keras documentation named "Stacked LSTM for sequence classification" (see code below) and can't figure out the input_shape parameter in the context of my data. I have as input a matrix of sequences of 25 possible characters encoded in integers to a padded sequence of maxim...
My AR(1) model is $y_t = \phi y_{t-1} + \epsilon_t \quad where \quad \epsilon_t \sim \mathcal{N}(0,1) $ Here $\sigma^2 = Var(\epsilon_t) = 1$ Basically in this code I generate random values for phi and then try to recover that value using a dlm model just to see if I am using dlm correctly. Method 1. Do for i = 100 tim...
Recently I've been studying Bayesian statistics. Often when I see this $$p(y|x, \theta)$$ I treated as a probability of y given x and $\theta$. This made sense when solving linear regression since $\theta$ was a fixed value/vector. I think it's also written this way: $$p(y|x; \theta)$$ But with Bayesian, $\theta$ be...
Let's say, I completed a training with 10k images on neural network with a certain number of epoch, which means all of 10k images went through forward and backpropagate epoch times. Let' say, I get extra new 100 more data and wanto to train my machine further. Do I have to start all over again from cleared weight with ...
Not even sure this is the correct SE site to ask this, but here goes. If I have a random vector field, for simplicity I'll make it 2D and on a grid. I generate it by (python, since I'm not sure how to communicate it in math-ese): import matplotlib.pyplot as plt import numpy as np u = np.random.random((10, 10)) - 0.5 ...
I have a time series containing n values (numbers) $t = v1, v2, v3... vn$. For example, the time series could be: $50,6,7,8,90,10,25$ For a value $v_i$ ($1 \leq v_i \leq n$) from the time series, I would like to know if that value is significantly greater than the other values in the time series. For example, is th...
We use supervised learning algorithm to detect fraud, but we have fewer or even no positive samples, is it reasonable if we use rules to label positive samples? if so, is the supervised learning model is meaningful? If we make use of anomaly detection to catch fraud, we use rules to label data in model evaluation pha...
I want to calculate the sample size for my AB-Test with the power.prop.test() in R. Let's say I expect an uplift in an acceptance rate from 0.33% to 0.34% and want to know how big my sample size has to be. I use the power.prop.test() power.prop.test(n = NULL, p1 = 0.33, p2 = 0.34, ...
I'm reading some of the educational material for a new therapy that can help treat PPMS (Primary Progressive Multiple Sclerosis). I'm having difficulty understanding their use of statistics. Let's first talk in general terms: If person A has 100 oranges, and person B has 75 oranges, then person B has 25% fewer orang...
I'm comparing Bayesian (generalized) linear methods vs Frequentist ones in the case when $p>n$ ($p,n$ being respectively number of regressors, number of samples). In the frequentist context when $p$ > $n$ I cannot invert the design matrix $X$ since it is not full rank. Of course there are methods like Ridge Regression ...
I want to predict a variable $Y$ given a set of variables $X_i$. To account for nonlinearity, my $X_i$ are put in several quantile dummies, so that I prefer transforming my $y$. My $Y$ variable are different kinds of capital income, therefore always positive and skewed with high value variables. My explicative variable...
I have a classification dataset, which I partitioned into a training and a test set. The test set I put away in a bank vault and have not touched since then, planning to use it only to evaluate the final model. I do model selection and parameter tuning using 10-fold cross-validation on the training set. The question is...
Let $\mathcal{P}$ an homogeneous unit rate Poisson process. It's conditional intensity function (star indicating conditioning on the history) can be written as $$\lambda^*(t) = \lambda = 1$$ meaning that it does not depend on either the history, and is constant with time. It's compensator is by definition $$\Lambda^*(t...
How should I efficiently sample from the following distribution? $$ x \sim B(\alpha, \beta),\space x > k $$ If $k$ is not too big then rejection sampling may be the best approach, but I am not sure how to proceed when $k$ is large. Perhaps there is some asymptotic approximation which can be applied?
With the upcoming French presidential election (first round on 23th of April 2017) many opinion polls are ordered and presented in the news. There are several initiatives to track the results of these polls, see Les Décodeurs or Wikipedia. The following table sums up 20 most recent results for the 11 eleven candidates ...
I am looking at different airports and have data on the amount of passengers per month for years 2012-2016. I need to be able to compare the extent to which traffic fluctuates from month to month, over a year. I am looking for a formula and/or method that will produce a value indicative of a market's vulnerability (how...
I am trying to run an outlier detection algorithm using python and I have used OneClassSVM and Isolation Forest on a dataset of about 30 points with 5 outliers. I have trained on the 25 points and using it for remaining 5 points but I am getting almost all training points as outliers and also all the 5 points are outli...
I'm searching for a ready-to-use model, preferably in TensorFlow, that learns embeddings for words from a corpus, but without taking word order into account. So far I have a vocabulary of 8822 words corpus of ~1.5M documents of variable length (mean: 11, median: 8) The corpus reflects users and items that hold tags (...
I'm reading about EM; It seems that transforms the likelihood $$Pr(X| \theta)$$ in $$\sum_h Pr(X,H=h |\theta)$$ with $H$ hidden variable that is a not observed variable which could, hypothetically, influence the data $X$. My questions are: so, EM is possible in any case? hypothetically, any data could be "decomposed"...
I have data on the percentage of their 24h day that animals spend doing certain activies. One response for one animal may look like 30 % spent hunting 30 % spent sleeping 30 % spent eating 10 % spent mating And then of course we have many covariates. Our interest lies in measuring the effect of these covariates on the...
Assume I have two time series, A(t) and B(t). I do know the exact signals in A(t). I want to find out when a known signal in A(t) is causing a signal in B(t). In case of pure noise the data in both is distributed around the mean (not necessarily Gaussian, as there is systematic noise even after pre-whitening/detrendin...
I'm using the MATLAB code released by Eric P. Xing, related to their NIPS 2002 paper (pdf): "Distance metric learning, with application to clustering with side-information. Eric P. Xing, Andrew Y. Ng, Michael I. Jordan and Stuart Russell". The code is available for download (.tar.gz) at this webpage. When using the New...
I have the following question given in Communication Systems by Dr Sanjay Sharma :- "Show that the random process $X(t) = A cos(\omega t + \theta)$ where $\theta$ is a random variable uniformly distributed in range $(0, 2 \pi )$ , is a wide sense stationary process." In the solution while calculating the mean, the auth...
I have implemented Soft Plus for my training research with GoLang. $$ \frac{1}{1+e^{-x}} $$ Implementation: func SoftPlus(x float64) float64 { return (float64(1) / (float64(1) + math.Exp(-x))) } math.Exp(-x) returns 0 or infinity with large values of x (actually...
Consider a case where I have developed a predictive model using logistic regression. Now the logistic models gives a probability even when all the inputs are zero (because of the intercept). Now consider the case of predicting if a subject has disease or not. Here the probability carries a lot of significance. In this ...
I am using Scikit-learn for a multiclass classification task and would like to find out what are the most important features for each class. I have three classes (say class_a, class_b and class_c), and achieved Cross Validation scores of around 70% using Decision Tree classifier. There is a feature_importances_ attrib...
So I have a study that I have carried out with 40 test subjects. The study consisted of reading two different texts using different methods and answering a number of questions corresponding to each text. Half the population read text $t_1$ using method $m_1$ and $t_2$ using method $m_2$. The other half read text $t_1$ ...
I am currently working on a way to transform two different phosphorus test values into each other. Background There exist many (extraction) methods to measure plant available phosphorus in soil. Different countries apply different methods, hence to compare P-fertility across countries it is necessary to calculate P-te...
I want to predict the approx. number of open parking lots for a car park for a given time slot (hour of day / day of week etc.). Using GradientBoostingRegressor, results seem quite ok so far. However I'm wondering how I could weight/punish certain regression errors. E.g. I want my model to be able to be pessimistic for...
In AdaBoost, the weight of a weak learner $\alpha$ is set as $\alpha_t = \frac{1}{2}ln\frac{1-e_t}{e_t}$ under the assumptions that $e_t = \frac{1}{2} - \gamma$ and $\gamma > 0$ Therefore: $\alpha_t = 0$ for $e_t \geq 0.5$ So what happens in the case of the XOR problem and AdaBoost with Decision Stumps? No weak learner...
I came across an article where, after finding null results for their hypothesis (higher pain threshold for PTSD patients), the researchers decided to conduct another, different analysis. They didn't reanalyze the data, but rather used another method to detect pain threshold (longer stimulus). They mention this was due ...
I have some problems with respect to the degrees of freedom of my lmer model. This is the output: lmF3<-lmer(var ~ cond + (1|subj) + (1|blocks) , data=data) Estimate Std. Error df t value Pr(>|t|) (Intercept) -0.12844 0.04238 2.30000 -3.031 0.0794 . B 0.28143...
Suppose $X$ and $Y$ are two arbitrary random variables, and we have the following inequality that conditional on $Y=y$, $$\textbf{Pr}(X \ge a_0 | Y=y)\le f(y),$$ where $\textbf{Pr}(\cdot)$ denotes the probability of the event, $a_0$ is a constant, and $f(y)$ is an increasing function with respect to $y$. I want to kno...
The universal approximation theorem states that a feedforward neural network (NN) with a single hidden layer can approximate any function over some compact set, provided that it has enough neurons on that layer. This suggests that the number of neurons is more important than the number of layers. But in practice deep ...
I have a Random Forest model for a dataset with 3 features: rf = RandomForestRegressor(n_estimators=10) rf.fit(X, y) If I look at the importance of each feature I get: rf.feature_importances_ > array([ 0.45453475, 0.23246138, 0.31300387]) I know that feature 1 is the most important but how do I interpret these res...
If I had a maths degree with a little foundation in statistics, what would be the top $100$ questions/posts on CrossValidated or MathStackExchange or MathsOverflow or Stack Overflow that I would have to study in order to become a data scientist? And if not possible, could you give me an idea of the steps (skills, knowl...
I've seen posts similar to this, but I've yet to come across a satisfactory answer. Given that... I've recently begun to study trend analysis, and I came upon a report that stated, "...there was a statistically significant downward trend in cancer mortality from 2000 through 2010." Later in the document, it stated that...
Suppose we have $N$ patients and two groups. For each patient, he can have one or two measures. Theses measures are classified by the group. Therefore one patient can contribute to both groups. My purpose is to compare the difference between the group means. However, there exist correlation across the multiple measu...
I am working with censored data and would like to employ a selection model. As far as I can see, the most frequently applied selection model is the Heckman selection model that assumes a two stage process. First we have a partly latent variable $Y\in \mathbb{R}$, where we only observe $\Delta Y \in \mathbb{R_+}$, with ...
Given a set of samples $S$ from an unknown multidimensional real-valued distribution, I use the multivariate normal distribution $N(\mu(S),\Sigma(S))$ to compute its upper entropy limits. This is possible, since the normal distribution is the maximum entropy probability distribution for a given variance $\Sigma(S)$. Is...
I'm trying to build a regression from the results of a campaign of physical experiments, consisting of 7 different test campaigns. In each test campaign, all test points are repeated two times, once with a vertical excitation and once with an horizontal excitation. The reason is that at the time of the tests, people we...
Convolutional neural networks - What is done first? Padding or convolving? Suppose the code below : network = lasagne.layers.InputLayer(shape=(batch_size, 1, 11, 11), input_var=input_var) network = lasagne.layers.Conv2DLayer(incoming=network, num_filters=20, filter_size=(3, 3), stride=1, pad=3) network = l...
Given a neural network with one hidden sigmoid layer and softmax output layer, I want to derive the gradient of the cross entropy loss with respect to the first weight matrix. This is equivalent to the network described in this question, but in my derivation the dimensions mismatch. \begin{align*} &J = CE(y,\hat{y}...
I am trying to solve an exercise from Time Series Analysis: with Applications in R by Cryer and Chan. Suppose that ${Y_t}$ is a zero mean, stationary process with $|\rho_1|<0.5$ and $\rho_k=0$ for $k>1$. Show that ${Y_t}$ must be representable as an MA(1) process. That is, show that there is a white noise sequence ${e...
I have some data about some shipments. It includes the weight of shipment, origination destination, distance , airlines and a column with two values where it says if a shipment is late or not. I would like to see if I can predict for a given shipment with these parameters, will the shipment be late or not? I started bu...
So, for the purpose of my master thesis I'm trying to predict pfofitabilty on times series data using Elastic net and XGBoost. I split the data 80/20 (50k instances, 3k+ features). I do not use cross validation (tried it, system crashed everytime) or a validation set. I train and tune the model on the training set and ...
I have 3 set of items: sample1 -> #trump: 25, #hilary: 0, #hillarycrooked: 2, ... sample2 -> #hilary: 1, #notmypresident: 15, #trump: 0, ... sample3 -> #obama: 5, #tcot: 10, #hilary: 0, ... I wanted to use the chi-square test to see how my sample2 and sample3 are similar to my sample1. So I wanted to compare the resul...
Im currently studying Fan and Li (2001) on Penalized Likelihood and its oracle properties. In the proofs they note that the following two statements are standard arguments and I somehow don't understand. 1. $n^{-1}\frac{\partial L(\beta_0)}{\partial\beta_j}=O_p(n^{-1/2})$ $n^{-1}\frac{\partial^2 L(\beta_0)}{\partial\b...
There are a few books out there on how to do multivariate regression, but of course the literature isn't as massive and detailed as univariate regression models. So why bother with multivariate regression at all? Sure, what you gain from the ability to be able to model the strong correlation structure between the respo...
I had 8 objects and asked 80 people to score them on three attributes, say A, B, and C. Now I want to check if these 8 objects can be classified into categories based on the similarity between the scores they received on those three attributes. Do you know any methods in R or SPSS that can do this task?
I have the following problem: 20 % of the exercises daily, with no difference between men or women. A random sample of 32 men and 32 women are asked whether they exercise. What's the approximate probability that in this sample at least 10 % more men than women exercise? I'm not sure how to approach this. It seems tha...
The score plot from the PCA is represented in the diagram. I performed the Mann Whitney U test for the Scores values for enzymes( blue dot in score plot) and non-enzymes ( red dot) for both PC1 and PC2. I found out that for both Pc1 and PC2, the enzymes and non-enzymes values were significant( both had p-value 0.00). ...
I have a question regarding the confidence bands of impulse response functions. I see that some empirical studies report confidence bands around impulse response functions either as 95% confidence bands or as +/- 2 standard errors (SEs) confidence bands. As I am not well educated in statistics, I want to ask whether b...
I have a 21 x 3 matrix of probabilities (values between 0 and 1). I would like to get estimates of multivariate log-normal variances and covariances. Is there a straightforward way to do this in R or SAS? I was using the following formulas to get the univariate estimates of variance for each column based on the norma...
This is probably a stupid question. I'm mathematically literate, but my knowledge of statistical methods is embarrassingly hopeless. I have multiple time series representing various quantities for different systems, obtained through computational (molecular dynamics) simulation. I would like to state the mean and stand...
I have created two different models that include the same variables but not the same relations between them. form=status~(A1+A2+ B1 + ... + B10 +  (1 | C)) Mod <- glmer(form, data = dadosesc, family = binomial)  form1=status~(A1+A2+ B1 + ... +   (B10 | C)) Mod1 <- glmer(form, data = dadosesc, family = binomial)  ...
I have a data-set consisting of the Analytical and Label nutrient values for certain food (their mean and standard deviations). I was checking the consistency of the calculations. I believe that there are two major flaws with this analysis and would be glad if someone could address them. The Mean Percentage discrepanc...
I want to prove that the set of all random variables with finite variance and $\langle X,Y\rangle = E(XY)$ is an inner product on this set. I want to see that $\langle X,X \rangle = 0$ iff $X = 0$. My first problem is that I've never been told what the zero element of this space is. The second problem is that when I wr...
I would like to estimate the conditional mean of counts assuming a negative binomial distribution. I can estimate the unconditional mean using MASS's glm.nb function: fit <- MASS::glm.nb(Days ~ 1, data = quine) mu <- exp(coef(fit)[1]) size <- fit$theta And I can verify the parameter estimates, again using the MASS pa...
I am fitting a linear model to a data set with a lot of variance. Basically, I have sales for the first few months of similar, but not exactly the same objects, and am trying to predict sales a year from now. I am taking the log of the variables for variance stabilization. A simple version of the model looks like the f...
Let X be a Bernoulli Random Variable whose parameter is a Uniform Random Variable Q which takes values in the domain [0 , 0.1]. We want to find var(X). My reasoning is the following: Using the Law of Total Variance we have: var(X) = E[var(X|Q)] + var(E[X|Q]) = E[Q * (1 - Q)] + var(Q) = E[Q] - E[Q^2] + var(Q) = E[Q] - ...