instruction
stringlengths
9
38.7k
I am currently working on a student project were we do a binary classification. But the data is highly screwed! The train AND test data contains a huge amount of duplicates , were every row is identical. We dont know exactly how to handle this problem because in the test data we have a lot of duplicates as well and we ...
I came across a question 8 at the end of chapter 3 of the book: "Give two simple examples showing a case in which a prior distribution would not be overwhelmed by data, regardless of the sample size" Can anyone provide any examples where this would be the case, because I thought that as the number of data points goes ...
Consider an $AR(1)$ process \begin{align*} y_{t} + a y_{t-1} &= e_{t} \end{align*} for $t=1,\ldots,N$, where $e_{t}$ is a white Gaussian noise with variance $\sigma^{2}$. How do I express the asymptotic variance of the OLS estimate of $a$ using $N$, $a$ and $\sigma^{2}$? Moreover, what is the asymptotic distribution o...
I’m doing supervised classification (SVM and KNN) with Scikit learn and I would like to compare how well each of my 30 features contribute to make the classification succeed. I use the SelectKBest class to get the respective scores of all my features (although I don’t want to reduce the number of features as SelectKBes...
I have data that can be classified into two classes, and I would like a data reduction method that best separates the two classes. I understand LDA is an option, but the problem with LDA that it would only return one component (i.e 1 predictor) given that there are only two classes. I am wondering if there is a way to ...
I'm having trouble finding out how to determine the mgf of a linear transformation. The problem I have gives me an mgf in the form of $\exp(t^2+ct)$, where $c$ is a constant that I'm not mentioning. The range is from $-\infty$ to $+\infty$. The question wants me to find the mgf of a linear transformation of $Z = aX + ...
Suppose I fit a linear model where Y ~ X1 + X2 + error. This model performs quite well. Now suppose I want to reverse this and estimate X1 and X2 given that I have observed Y. I'm curious what is the most appropriate way to do this? Is it fitting two regressions where one of the variables (either X1 or X2) is latent? ...
What is so special about the way Moving average models, Autoregressive models and their combinations (ARMA, ARIMA) are defined that they seem to fit many of the univariate time series we observe in our world ? What is so unique about the way many dynamical systems work that these models or a combination of these model ...
I generating a PA model using lavaan, so I would like to evaluate my model using fit indexes but residuals too. Reading about I found this example: library(lavaan) # The Holzinger and Swineford (1939) example HS.model <- ' visual =~ x1 + x2 + x3 textual =~ x4 + x5 + x6 speed =~ x7 + x8 + x9 ' fit <- lavaan(HS.mode...
I'm researching on abstractive text summarization, and has come across many recent papers. They all seem to be focusing on Sequence to Sequence models based on RNNs. Apart from RNNs, what other approaches are there when it comes to abstractive text summarization? Does ontology-based summarization revolve around the sam...
Suppose data ${Z(s_i ):i=1, ..., n}$ are observed at spatial locations ${s_i :i=1, ..., n}$. To carry out the spatial prediction (predict un unknown $Z(s_0)$ at a known location $s_0$) we can use a method like ordinary Kriging. I've used cross-validation for Kriging to create residuals to compare actual versus model’s...
I have read that the variables must be approximately normally distributed to apply Pearson correlation; However, I came across this answer here that they dont need to be, so I am confused about that. Can i have a clarification about that ?
I'm currently attempting to make a Seq2Seq Chatbot with LSTMs. The data I used is from Cornell's Movie Dialog Corpus. Here's the link to my code on GitHub, I would appreciate it if you took a look at it: Seq2Seq Chatbot You need to change the path of the file in order for it to run correctly. I'm using 2 GTX 1080 with ...
For a symmetric distribution, how the following inequality holds which is given by my teacher: $V(|X|)>V(X)$ What I think is that it should be opposite since for a symmetric distribution the mean is zero. Also, $E(|X|^2)=E(X^2)=V(X). Then, the $V(|X|)=V(X)-[E(|X|)]^2$ which implies that $V(X)=V(|X|)+[E(|X|)]^2$ which ...
In an example about kmeans for exploratory analysis the instructor examines the centroids and affirms that the centroid coordinates with the highest values are those that "drive" “belonging” to that cluster. I am unable to understand that. As an example let’s take a centroid that has, among its N coordinates, coordinat...
I am trying to understand RNNs and then trying to implement them using batch SGD: I am stuck in understanding how it will work: RNN has $t$ time steps, $(X_i)$ is the input at each time step, $h$ is the hidden state, then RNN is just a linear layer with 2 inputs x and a hidden input (i.e 2 matrices). And if we do: for ...
I am just studying the basics of machine learning and had a question about the standardisation and normalisation of the features and its effectiveness. I have read this CrossValidated question and this blog among many other articles but still was not clear on when I should apply which technique. And to make things wors...
Let we have $X_{1},X_{2},..,X_{n}$ as independent and identically distributed random variable from $U(\theta,\theta+1)$. Clearly, the maximum likelihood estimator of such distribution will be $[X_{(n)}-1,X_{(1)}]$. I know that maximum likelihood estimator follows the invariance property. Can any function from these two...
The sklearn documentation for gridsearch (link) puts "3.2.4.3. Out of Bag Estimates" in a subsection under "3.2.4. Alternatives to brute force parameter search." I understand each of grid search and OOB, but I don't understand how it's an "alternative." For example, if I need to determine the ideal max_features paramet...
As my topic suggests, can someone explain me what tied events actually are? I just read that there are different algoriths of handling ties differently in Cox-Regression, but so for I did not understand what "tied event" data actually is. Can someone give me an example? Thanks, KS
I've been asking a few questions about identification lately, so forgive me for another one: Throughout this question, let $\mathbb P$ denote the set of probability distributions consistent with the relevant model. Let $B$ be the set of posible values that $\beta$ can take. If I understand it correctly: Identifiabili...
Here are two examples of binomial model fitting. In the second example, the independent variable is modeled using poly() as a second order polynomial. How do I interpret these 2 results? Why someone would want to use the poly(2)? This would be overfitting in the context of logistic regression, right? I understand that...
Like I undestand MCMC sampling, the fulfillment of the detailed balance equation guarantees that our MC has reached its stationary distribution (given we ensure ergodicity). Detailed Balance is: $\pi(x)q(x\rightarrow x')=\pi(x')q(x'\rightarrow x)$ with $\pi(x)$ being the probability to be in state $x$ and $q(x\rightar...
Bayesian Optimization is currently the best optimization method for deep learning model. Although it already offer a good optimizing time but I want to accelerate by Instead of training every configurations for 100 epochs, I could use... say, 10 or 20 epochs. Instead of training on full training data, I could train...
In my current study I am looking at the effects of creatine monohydrate ingestion on ground reaction force and repeated sprint times. With CM as the independent variable, and ground reaction force and repeated sprint times as the dependent variables, what Bayesian inferential test would be the best to conduct?
I need to calculate the expected value of a random variable $X \sim N(1,3)$. The pdf for this variable is $\phi(x) = \frac{1}{\sqrt{6\pi}} exp\Big\{ - \frac{(x-1)^2}{6} \Big\}$. The expected value is given as, \begin{align*} \therefore E(X) = \int_{-\infty}^{\infty} \frac{x}{\sqrt{6\pi}} exp\Big\{ - \frac{(x-1)^2}{6} ...
I've been working on building some test statistics based on the KL-Divergence, \begin{equation} D_{KL}(p \| q) = \sum_i p(i) \log\left(\frac{p(i)}{q(i)}\right), \end{equation} And I ended up with a value of $1.9$ for my distributions. Note that the distributions have support of $140$K levels, so I don't think plotting ...
I am trying to assess the influence of a product change compared to a hypothetical forecast. I use a time series model to predict a realistic future and compare it to the observed actuals. I am interested in the mean absolute and percentual difference between the prediction and the actuals. How may I correctly estimate...
Please let me know if I am not confirming to the protocols here. Learning Law of Iterated Expectations is a very slow and long process for me. I know the formulae, but I don't really understand it. Without it Crosssectional and panel data by Wooldridge is taking many, many years to master. I think finally I am getting...
I'm currently attempting to simulate a model to measure the impacts of minimum wage increases in the Canadian economy, from the most recent Bank of Canada analytical note in appendix one (page 15 in the pdf.). We adopt a similar framework as in Aaronsson (2001) and estimate the following reduced-form equation: $$\...
Let $\varepsilon \sim N(\vec{0},\mathbb{I}_{N})$. Let $\bf{b}$ be a non-stochastic $(N \times 1)$ vector. How would I go about taking the following expectation? $\mathbb{E}\big[ \exp \{-\bf{b}^\prime \bf{b} - \bf{b}^\prime \varepsilon \} \varepsilon \big]$ Note the term inside the exponential is a scalar, and the ...
Say one wishes - and believes - to fit a mixed effects model where time ($x_{ij}$ below) is included in a linear and quadratic term in the fixed part, but only linear in the random part (hence random intercept and slope). $$ y_{ij} = \beta_1 + \beta_2 x_{ij} + \beta_3 x_{ij}^2 + \zeta_{1j} + \zeta_{2j}x_{ij} + \epsilon...
I have a data as follows Date Paid Jan-14 13392905 Feb-14 11939873 Mar-14 12473667 Apr-14 12237110 May-14 12579693 Jun-14 12030095 Jul-14 12052101 Aug-14 10205025 Sep-14 12102526 Oct-14 1237336 Nov-14 12148331 Dec-14 9842860 Jan-15 11990085 Feb-15 11061740 Mar-15 12076397 Apr-15 11702514 May-15 1139...
In running GAM models on my simulated data, I'm wondering if I actually need to contain splines to pass through a specific point (in my case (1, 1)). From my understanding the default in mgcv is for splines to pass through the origin (0, 0). Perhaps this could explain why my GAMs have been so badly behaved when it come...
Can you recommend any reads/webpages that elaborates when and what estimator to use in random effects model when conducting a meta-analysis?
ReLU activated neural networks with a linear output are continuous piecewise linear functions (CPLF). There are technuques to fit CPLF functions, so comparison of those methods seems very natural, yet I was not able to find academic work which carries this out. I'm doing research in machine learning and am studying ne...
I am trying to run a Markov process. I came across this webpage, which details a simple case of Markov process in R and python. While all the details are clear to me including 1) genotype of the children from given diploid parental cross 2) presentation of this parent-child genotype as matrix 3) preparation of this rel...
The model based on the experiment looks like this: glmer(Y ~ X*Condition + (X*Condition|subject) + (1+X|Trial)) # Y = logit variable # X = continuous variable # Condition = values A and B, dummy coded; the design is repeated # so all participants go through both Conditions # subject = random effec...
I need to analysis the failure of some physical machines in public data set to estimate the reliability. There are enough samples to find which distribution function these physical machines follow. However, the samples and information captured only very small period of lifespan of these physical machines and these peri...
For two random variables $X$ and $Y$, the conditional entropy $(Y|X)$ can be given in terms of the joint entropy $(X,Y)$ by: $H(Y|X) = H(X,Y) − H(X) $ Following page 21 of Cover & Thomas, the Chain Rule gives theorem 2.5.1: $H(X_1,X_2,...,X_n) = \sum_{i=0}^n H(X_i|X_{i-1},...,X_1) $ Unfortunately, this (and all the ...
Let me set this up. We have an AR(1) process: $x_1 = w_1$ and $x_t = \frac{1}{2}x_{t-1} + w_t$ for $t \geq 2$ and where the $w_t \sim N(0, \sigma^2)$. I have read that this process is stationary - and I can see that by looking at the roots of the characteristic polynomial using the backshift operator - but I'm having a...
If I get a log-log model by taking the log of many (but maybe not all) of the independent variables, and also take the log of the dependent variable, does this fall under the category of a generalized additive model (GAM)? Edit to clarify my thought process: My thinking was that, transforming the dependent variable wi...
State duration in HMMs follows a geometric distribution by construction. How can one estimate the state duration, since it is not explicitly modeled (e.g., in HSMMs)? I'm particularly interested in the following packages: hmmlearn (Python) and depmixS4 or hmm (R). For example, a left-right HMM starts in state 1. Suppos...
I am analyzing data using mixture modeling. When I plot the information criteria (the BIC) for a series of models (with different model specifications and different number of mixture components), I notice a very steep decrease in the BIC. E.g., in the photo below, the fitted model represented by the grey lines (and poi...
I am trying to find a correct way to train a DNN based keyword spotting (Deep KWS) with general speech corpus (VS data) described in this paper (Chen, Guoguo, Carolina Parada, and Georg Heigold. "Small-footprint keyword spotting using deep neural networks." In Acoustics, speech and signal processing (icassp), 2014 ieee...
Is there ever a reason to use a first differenced VAR over a VECM when all your variables are I(1) and co integration exists? The reason why I ask is because I see in the most recent Bank of Canada Analytic note on the minimum wage increase (page 15) it seems that opt for a reduced form VAR over a VECM. $$\Delta \tex...
I'm currently trying to train a GMM(UBM) with 1024 Gaussian mixtures for speaker verification. However, after training the GMM, it appears that some mixtures are useless/redundant. (little to no training samples are aligned to them) Thus the Baum-Welch statistics of these redundant mixtures are close to zero, and I thi...
I am working on a specific implementation of bootstrap aggregating (bagging). I want to see how well this bagging works for different base classifiers. But so far, the decision tree seems to be the only option that I'm running into. I tried Naive Bayes but bagging seems to make things worse for some data sets. Can you ...
I am using below small 3D CNN to predict whether 32*32*32 image cube in a CT scan is malignant or not. def classifier(input_shape, kernel_size, pool_size): model = Sequential() model.add(Convolution3D(16, kernel_size[0], kernel_size[1], kernel_size[2], border_mode='valid', ...
In the original paper of (Domingos and Hulton, 2000) where they introduce the Very Fast Decision Tree learner, Table 1 shows the procedure of building the Hoeffding Tree. At line 2 of the procedure, it introduces a symbol $X_{\emptyset}$, and $G_1(X_{\emptyset})$ is obtained "by predicting the most frequent class in ...
I have referred to this post here. In my case, I am trying to normalize the log-likelihoods I obtained from the same data set. However, the approach in the top answer did not work out for me. Below are n = 100 of my log-likelihoods. ll <- c(-35480.7118796417, -2739.42871153509, -8362.32845821982, -8365.34260282213, -...
I am studying the algorithm presented in this paper for "Learning conjunctions of Horn clauses". The algorithm uses equivalence queries and membership queries to produce a formula that is logically equivalent to the unknown formula to be learned. What I can not understand is how you can use this algorithm in practice s...
I am using the R package 'drc' to calculate a dose-response model for continuous data (with the function 'drm'). I then reverse-predict the ED50 value using the 'ED' function. The function returns the value of the ED50 and a standard error, but I cannot figure out how the standard error is calculated. I know how a stan...
In this post, I stated that the loss function criterion does not determine an frequentist estimator (though it determines a Bayesian estimator). However, I am now not so sure anymore, so I'm wondering whether we can somehow pinpoint an estimator based solely on a loss function. I know that if we first constrain the cla...
I have few queries on Precision and Recall in Classification of machine learning. While I was reading, I found that high Precision will result low recall and vice versa. However if someone ask how much % of Precision is acceptable, answer could be? Is recall should/Can be greater than Precision? Or Precision should/ca...
Suppose I have a data set contain three variants, looks like: > head(dta) Sex tumorsize Histology time status 1 0 1.5 2 12.1000 0 2 1 1.8 1 38.4000 0 3 0 2.0 2 69.7333 0 4 1 6.0 3 ...
Mainly for pedagogical reasons, I'm considering the "simple" one dimensional model: $$x=\theta+\epsilon$$ where $\epsilon$ has a known distribution $p$ that is independent of $\theta$. This distribution can be anything, just assuming some regularity conditions, compact support... something that leaves a lot of freedom ...
Say I want to minimize my error term $\epsilon_i = y_i - ( \sum_{n=1}^{N} \beta_n x_{in} )$ given N observed inputs $x_{in}$ and one output $y_i$ for I observations. I am looking for the optimal parameters $\beta$ that best describe my observations. Let's just assume the $\epsilon$ are normal distributed, so we can do ...
I was curious about certain aspects of multi-adaptive regression splines (MARS or earth in R). Taking the equation of MARS from the wiki page: ozone = 5.2 + + 0.93max(0,temp - 58) - 0.64max(0,temp - 68) - 0.046max(0,234-ibt) - 0.016max(0,wind-7)max(0,200-vis) My questions are:...
I want to detect specific number of communities in networks, which require algorithms, where number of communities are specified in advance. Also if there are any, I would like to know how to implement (R, Python).
I feel like I have come as far as I can in statistics while not understanding how design and contrast matrices work. Specifically I am interested in how to code custom contrasts like this and whether such custom contrasts can be integrated into a design matrix via the model.matrix function. Can anyone recommend a good...
I am preparing for an exam and one of the previous examples deals with LDA: The question is to prove that the total-scatter matrix in Multi-Class LDA can be expressed as the sum of the between-scatter matrix and the within-class scatter matrix. See the whole question here: I have found some help online to work through...
A colleague has administered a questionnaire that asked respondents to provide both before and after values and has used the paired sample t-test to check for effect of the intervention on the dependent variable. Is this appropriate? I was of the opinion that there must be two observations that must be performed befor...
I have a dataset with y1 and x1-x90 and up to 16 to 32 observations based on groups. all features are continuous, x1-x90 are on the same scale (i.e. same measurement units). I want to train a model that can predict future ys with a good performance(?) I know my observation are too few, but I need to find a way to be ab...
Wikipedia freely uses notation $P(Y|X)$, to usually mean $P(Y=y|X=x)$. Is there any other use of this notation (random variable within a PMF without mention of a particular value)? In other words, can I (mentally) insert the =value any time I see this sort of thing? Additionally, is this notation well accepted?
I'm working on a multi-class classification problem using a neural network, where my features are rather noisy, with some very similar inputs may belong to different classes for different training examples. On the other hand, I have a very large dataset, so this should offset that problem a bit. I was wondering if ther...
I would like to estimate an underlying linear relationship between two variables x and y. There is significant error in both the x and y measurements, making linear regression inappropriate. However, the error in both x and y should be from the same (normal) distribution, meaning, I think, that ordinarily a principal c...
Greene (Econometric Analysis), states the defintiion of Asymptotic Efficiency. My question is, why does this definition contain a reference to normal distribution? We already know by the central limit theorems that under certain conditions, the estimator will be normally distributed in the limit. So I surmise that ...
I have worked with SVMs in the past and I consider myself quite familiar with their main aspects. But an answer in here surprised me quite a bit. The original poster asked for a simple case of separating 4 2-d points in 2 classes: points were: [ 0,0 ], [ 0,1 ], [ 1,0 ], [ 1,1 ] and labels were: [ -1, -1, -1, 1 ]. The...
I am new in statistics and I have to solve a problem involving hypothesis testing (first of this kind for me). Any help would be much appreciated. Thank you. The statement: From two piles of pieces, each of them made by a different machine, has been extracted a selection of $n_{1} = 10$ pieces from the first and $n_{2}...
I am a little bit confused with the next example given in Brockwell and Davis,Time Series Theory and Methods, page 98. In the example, is computed the autocorrelation, and at some point, the author says that $Corr(Z_2,X_1)=0$ I don´t have clear why, because If I see the expression $$X_t=0.9X_{t-1}+Z_t$$ clearly $X_t$ ...
I found out that the chi square test in R may not be working. I don't know where I am doing it wrong. 1) test two similar distribution # create a sequence from 0 to 1000, seperated by 10 x <- seq(0,1000,10) # create two similar gaussian distribution r1<- rnorm(x, 1000,100) r2 <- rnorm(x, 1000,100) # run the chi squar...
I know that the stepAIC function in R allows us to perform stepwise regression but I was wondering if there's any option (or other function) to perform a F-statistic based stepwise regression ? I've looked in the help of the stepAIC function but didn't find any answer. Thanks a lot
I'm trying to use gam in MGCV to automatically select my level of smoothness using cross validation or some equivalent method for my generalized additive model. reading around online it looks like REML will get the job done (although any advice on interpretation would be appreciated) and i'm just playing with data from...
In my research, I focus on price differences between two regional markets. The price of market 1 is determined by a fundamental model while the price of market 2 is exogenous to this model. I consider different variants of the fundamental model and want to tell which model variant fits the data best. Now, I wonder whet...
In this post it is stated that due to Jensen's inequality the expected value of the reciprocal of a strictly postive random variable $X$ will satisfy: $$\mathbb{E}\left[\frac{1}{X}\right] \geq \frac{1}{\mathbb{E}[X]}$$ My question is whether a similar inequality exists for the variance of $1/X$?
I'm trying to calculate the standard error $\sigma_{h}$ of hypotenuse $h$ of a right angle triangle given sides of length $a$ and $b$ with SEs $\sigma_{a}$ and $\sigma_b$. I don't want to use any of the internal angles because these are inferred, whereas $a$ and $b$ are directly observed. Let's assume errors are normal...
I would like to compare two experimental quantities in two conditions. I have two replicated experiments A and B in control condition, where total number of replications is $N$. Number of successes in the experiment A is $m_{control}$, number of successes in experiment B is $k_{control}$. The frequency of successes for...
My statistics teacher repeated the statement "Under torture, the data may yield false confessions" several times, but without giving a concrete example of what it means. Can you give some good examples that show the aim of the statement?
Z distribution is symmetric. Chi square distribution is not symmetric. Why?
I've been reading the Spark ML documentation, but I can't seem to find any insights into how best to deal with training data that only has positives. In my use-case, I'm attempting to use a list of donors as my training set in order to determine likelihood that another list of people will donate. From all the examples ...
In orthogonal design of lasso, we get $\hat{\beta}_j^{\text{lasso}} = 0 \text{ if abs}(\hat{\beta}_j) \le \lambda /2$. WHY? I've seen the answer and derived it myself, but don't know why. We begin with definition of lasso, $$\hat{\beta}^{\text{lasso}} = \underset{x} {\arg\min} \sum_{i=1}^{n} ( y_i - \sum_{j=1}^{p}\b...
I have the following example data set family name weight height kid smith john 70 1.7 0 smith mary 65 1.7 0 smith lucy 40 1.1 1 jones marc 45 1.5 1 jones ted 30 1 1 miller sue 55 1.6 0 ...
There seem to exist two ways of calculating the $k$-fold cross-validation performance of a model. For each fold, evaluate the performance measure (e.g. MSE) on the hold-out observations. Then, calculate the average of these $k$ values. For each fold, calculate the predictions on the hold-out set. Then, calculate the ...
The vast majority of the statistical inference I do is on the basis of multiple regression models (not always OLS, not always single level). Usually the focus is not on the model, but on particular predictors. For instance, my goal is not so much a perfect prediction of how much Republicans and Democrats dislike each o...
I'm new in generalized linear models (GLM) and I'm interested to know on how would one go about and construct a GLM and fit it with maximum likelihood estimation (MLE) when then link function $h(x)$ would be: $$\mu_y =h(x) = \text{sigm}\left(r\sin(x\beta)\right)\;\;\beta>0, \;x,r\in\mathbb{R},$$ where $\text{sigm}$ is...
Is it possible to include a nested random effect in a formula of glmertree? (https://cran.r-project.org/web/packages/glmertree/glmertree.pdf) I tried it, but it does not seem to work: (R2 should be nested in R1) gt <- glmertree(A01 ~ V1 + V3 |R1/R2 , family="binomial", data = data)
In statistical decision theory the loss function $L(\theta, a)\ge-K > -\infty$ is often chosen for technical convenience (e.g. See [1] p.3 ). Can anyone explain why the above condition is convenient, and if it is feasible, provide a simple example. [1.] James O. Berger, "Statistical Decision Theory and Bayesian Analys...
Suppose $a$ and $b$ are real numbers (positive in my case), $X$ is a real-valued random variable and $F$ is a set of functions. Are the following true? $|a-b| \le E_X|a-X|+E_X|X-b|$ $|a-b| \le E_X [\inf_{f\in F} (|a-f(X)| + |f(X)-b|)] $
The eigenvalues of a PCA model can be used to calculate the variance explained of each principal component. I'm curious how one might train a PCA model on a subset of data, and then use the eigenvectors of that model to calculate the variance explained on unseen (out-of-sample/ test) data. Any suggestions for python...
I meet the term "correction factor" (is it some ratio?) in many foreign publications, but I do not know how it is calculated. I have some nonlinear regression model (power function) with fitted line to my data. One independent (X) and one dependent (Y) variable. I need formula like these: Corrected data = Measured data...
I would like to find some "real world examples" for teaching Bayesian statistics. Bayesian statistics allows one to formally incorporate prior knowledge into an analysis. I would like to give students some simple real world examples of researchers incorporating prior knowledge into their analysis so that students can...
Not so uncommon occurrence when dealing with complex maximal mixed models (estimating all possible random effects for given data and model) is perfect (+1 or -1) or nearly perfect correlation among some random effects. For the purpose of the discussion, let's observe the following model and model summary Model: Y ~ X*...
I have a set of observed values ($y_{1Obs}$) and 3 predictive variables (n = 27). I use multiple linear regression to create a linear model: $Z_1=\alpha_0 + \alpha_1 W_1 + \alpha_2 X_1 + \alpha_3 Y_1$ Where $Z_1$ is my response variable, $\alpha_0$ is the intercept, $\alpha_1 , \alpha_2 , \alpha_3$ are regression coeff...
I am using Andrew J. Landgraf package logisticPCA to perform PCA on 41 binary variables. The purpose is the find main combinations of diseases in the sample and use it to model cost later. There are two questions which I would like to seek clarification: 1) How do I interpret the loadings? Is it the same as regular PCA...
I am trying to solve an equation from a journal. What will be the distribution of \begin{multline} p(\alpha|y,all) \propto \prod\limits_{i}N(\gamma_{i} \mid AX,\Sigma_{\gamma}) \times \prod\limits_{j}N(\alpha_{j}|0,\sigma^{2}_{\alpha}\mathbf{I}_{3}) \propto \Sigma_{\gamma}^{-1} exp[(\gamma_{i} - AX) ^{T} \Sigma_{...
There are lots of choices for kernel functions $k(\textbf{x}, \textbf{y})$ in continuous spaces (e.g., $\textbf{x}, \textbf{y}\in \mathbb{R}^d$), such as the RBF kernel, etc. However, what are some common kernel functions for vectors on discrete spaces (e.g., $\textbf{x}, \textbf{y} \in\{0,1\}^d$, or even $\textbf{x}, ...
I have ordinal data from two groups over time. I want to know the if the data are different between the two groups at each time point. I know it should be a non-parametric test but am not sure how to get the multiple comparisons that I want. Currently using Graphpad prism for analysis although I can also use R. Thank...
If Co-variance (X, Y) = 0, does this necessarily mean that X and Y are independent? I have read in previous posts that Co-variance equal to 0 implies that (1) X and Y are independent AND (2) X and Y could be independent, but are not necessarily so. These two interpretations, however, are obviously contradictory.
I want to analysis using lmer, glmer in R. There is variables. In fact, I have more variables like that. I think, the data cases are sufficient. random effect : item, test, id using lmer; random intercept : (1+item|id); random slope : (1+test|id); categorical independent variables(range) : sex(1,2), item(1:20), test(1:...