instruction
stringlengths
9
38.7k
I suppose this is more of a question about the notation. Let $x_i$ be a $p$-dimensional random vector with $x_i \sim \mathcal{N}(\mu, BIB^T + I\sigma^2)$. Let $z_i$ also be a $p$-dimensional random vector with $z_i\sim \mathcal{N} (0,I)$. I am asked to show that (as I quote) "the joint distribution of $(x_i, z_i)$ is a...
When increasing the value of the latent variable k for LDA (latent Dirichlet allocation), how should perplexity behave: On the training set? On the testing set?
Suppose that there are two sample covariances $s_{jk}$ and $s_{lm}$ obtained from $n$ observations following normal distribution that satisfy $E(s_{jk})=\sigma_{jk}$ and $E(s_{lm})=\sigma_{lm}$. Then, what is the exact expression for $E(1/s_{jk}^2)$ or $E(1/(s_{jk}s_{lm}))$ or $E(1/(s_{jk}^2s_{lm}^2))$? Although the r...
I am using keras with Tensorlow as backend, It is normal fully connected sequential network . It is giving me 97.8222% accuracy with 5.5769% loss. However my issue here is that when I will deploy this model on production it is sure that it will give False positive and False Negative results on some dataset. I want to f...
$Y = (\bar{X})^2$, where $\bar{X} = (X_1 + · · · + X_n)/n,$ to estimate $ E[X^2]$, where $ X, X_i $ are i.i.d. $ ∼ N(µ, σ^2)$. How do we estimate the bias of the estimator Y here? The way I tried it is, $E[(\bar{X}^2)] = \frac{1}{n^2} \sum_{i,j=1}^{n^2} E[X_iX_j ]$ but I couldn't get to the solution with this, clearly...
In R, when we use glmnet package. We use cv function as cross validation in finding the value of lambda. In the package, we will find two options in the bottom, lambda.min and lambda.1se. If I use Lasso selection, which lambda should I pick in Multinomial Logistics Regression using Lasso? Some recommended in using lam...
I have time series of cars' speed (speed observed over time for 50 different drivers driving the same car). I want to find the groups of "similar" driving styles based on these speeds. Therefore, I first apply DTW to compute a dissimilarity matrix between each pair of car speeds. And then use Hierarchical clustering us...
In Gaussian mixture models, every iteration computes the mean and covariance matrix for each cluster using soft assignment. $$\mu_k = \frac{\sum_{i=1}^n p(c_i=k|x_i)x_i}{\sum_{i=1}^np(c_i=k|x_i)}$$ $$\Sigma_k = \frac{\sum_{i=1}^n p(c_i=k|x_i)(x_i-\mu_k)(x_i-\mu_k)^\mathrm{T}}{\sum_{i=1}^np(c_i=k|x_i)}$$ In contrast, it...
How to train LSTM model on multiple time series data? Use case: I have weekly sales of 20,000 agents for last 5 years. Need to forecast upcoming weekly sales for each agent. Do I need to follow a batch processing technique - take one agent at a time, train LSTM model then forecast? Any better ways?
Let $\vec x$ be a random unit vector (that is, a random vector on the unit sphere). Let $x_i$ be the $i$'th coordinate (if it is easier, you can assume we are in 3-dimensional space). What is the distribution of $|x_i|$? More specifically, what is the expected value $\langle|x_i|\rangle$?
It is common practice to standardize (0 mean, 1 stdev) regressors in a regularized setting such as lasso, ridge regression, etc. Pretty much everybody agrees on the fact that this gives a fair treatment of each regressor in terms of how much shrinkage applied to the coefficient of each regressor. There are of course is...
I have data measuring two events in space and in time. More precisely, I have two rectangular data matrices $A$ and $B$ which both have $20$ time rows and $1\text{M}$ space columns. I want to analyse the interaction between these two events. In particular, I want to do a Canonical-Correlation Analysis (CCA) on their pr...
I am familiar with Python's NumPy library and its broadcasting feature that allows to perform operations with vectors and matrices of different sizes. I might be missing the mathematical connection as to what a broadcasting operation translates to. To be more clear, take a look at this example. Suppose we are calculati...
In many applications, an SVD of a matrix is used to determine which features are important and which ones less important. For example, in image compression, the smallest singular values are often thrown away, making the data smaller without losing much information. What is the relation between the eigenvalues of a mat...
I'm preparing a test of proportions regarding a campaign redemption of several groups which have all common "demographics" but have been stimulated into different ways. At the same time I have a big group of people with the same demographics but which have not been stimulated into any way. My question is, does it make ...
I would like to compare prediction qualities of three different dynamical models (model A has three free parameters, model B has two free parameters and model C has zero free parameters). To achieve this I computed correlation coefficients between simulated and empirical time series for each model and tested parameter ...
Consider the measurable space $(\Omega,\mathcal{F})$ where $\Omega$ is the sample space and $\mathcal{F}$ is the a set of observable events. Further assume that we are estimating a linear regression $GDP_i=\alpha+\beta_1 POP_i+\beta_2 TECH_i+\epsilon$ where the dependent variable is GDP of a country and independent var...
I'm analyzing the prepayment options on a data set of loans. In order to estimate the associated risk of my hazard rate, I want to analyse the effect of a continous time-dependend variable (interest rates) on the prepayment risk. So far, I found out that modelling time-dependend variables in a Cox-Regression modell sho...
It is often recommended to do feature scaling (e.g. by normalization) when using a Support Vector Machine. For example here: When using SVMs, why do I need to scale the features? or also on wikipedia: Application. In stochastic gradient descent, feature scaling can sometimes improve the convergence speed of the algori...
I am trying to understand how people derive the Likelihood for simple linear regression. Lets say that we just have one feature x and the outcome y. I do not doubt the expression with the normal density itself and I also do not doubt that one can factor the product into simpler factors due to independency. I doubt how ...
I am testing the following model: mdl <- aov(score ~ status * evaDim * dimManip + Error(id / (status * evaDim)), data = XL) with statusand evaDim as within factors and dimManip as between factor. I would like to obtain the partial eta squared for each of the 7 terms in the model. I tried with etaSquared(mdl) from the ...
I wanted to test for the effect of question type on students' use of strategies. A four-item (there are four question types) written test was given to students. The results are recorded in a contingency table like the following, where $x$ is the frequency count. For example, $x_{11}$ means there are $x_{11}$ students ...
I have a conditional logistic regression model with significant sample size (well into five figures of groups and six figures worth of observations) and, overall, excellent outcomes in predicting future events. However, every once in a while, the forecast is way off. What are some strategies, techniques or approaches u...
This sort of question has been asked on this site before and I was partly satisfied with the answer here (How does centering the data get rid of the intercept in regression and PCA?) where the images show that without the demeaning we might have our principal component not necessarily along the direction of maximum va...
I would like to know to which degree the width of a confidence interval can be used as a measure of variability of a statistic. For instance, the confidence interval for the mean is given by $[\bar{x}-t^*\frac{s}{\sqrt{n}},\bar{x}+t^*\frac{s}{\sqrt{n}}]$ and the width of the confidence interval can be calculated accord...
In expressions such as $ P(X,Y|Z) $ and $I(X; Y|Z)$ (mutual information) there are two interpretations for a student, and the correct one does not seem to be mentioned in textbooks. "joint probability of (X and Y) given Z" and "(mutual information of X and Y) given Z" "joint probability of X and (Y given Z)" and "mu...
I have the following example. The car produced on some plant contains a lot of details. We are interested in quality of some certain detail type. Particularly we know, that the car contains N details of this type. Each detail can have a defect with 0.05% probability. The defective car is defined as a car containing at ...
Suppose that we have independent samples $X_1, X_2 \sim \text{unif}[0, 1)^d$. I'm asked to show that $Y_1 = X_1$ and $Y_2 = X_1 + X_2 - \lfloor X_1 + X_2 \rfloor$ are also independent uniform samples from $[0, 1)^d$. I'm able to show that $Y_2$ is uniform on $[0, 1)^d$ by using a convolution for $X_1 + X_2$ and then re...
I have fit a linear model to my data, because a (somewhat) linear model would greatly simplify my analysis. Requesting second opinion on whether my data plot, as well as my residual plots, imply somewhat linear data as well as normal residuals. i.e. can i get away with using a linear model If not, may you recommend a...
Sorry if my question is insultingly elementary, or if this isn't the right place to ask this. Though it's really just a matter of semantics, this question has been bugging me for quite some time. Suppose you're measuring some quantity with some instrument. The raw precision of your measuring instrument and/or the numer...
I have $f_{\alpha, \beta}(y)=\frac{\alpha}{\beta}(\frac{\beta}{y})^{\alpha +1}, y\ge\beta,\ \ \alpha,\beta\gt 0$. Both $\alpha, \beta$ unknown. To find estimators using the method of moment, we equate $E(Y)=\frac{ \alpha\beta}{\alpha-1}=\frac1n\sum y_i$, $E(Y^2)=(E(Y))^2+Var(Y)=(\frac{ \alpha\beta}{\alpha-1})^2+\frac...
I am working with a fairly small dataset (20 < N < 40) and I would like to compute a Reference Interval. As per this field's guidelines, the preferred method is to test for normality or transform the data to a Gaussian distribution, then compute the reference interval -- as opposed to using non-parametric methods like ...
Upon reading the Wikipedia article for Covariance I came across the following definition of the cross covariance matrix for random vectors: For random vectors $X\in\mathbb{R}^m$ and $Y\in\mathbb{R}^n$, the $m\times n$ cross covariance matrix is equal to $$cov(X,Y)=E[(X-E[X])(Y-E[Y])^T]$$ $$=E[XY^T]-E[X]E[Y]^T$$ Is the...
I am selecting manually several hundreds Google Alerts (GA) texts those that are indeed relevant for my research vs those which are not (despite they are all triggered by some relevant search keywords). Basically each week I get several hundreds GA email such as: https://www.dropbox.com/s/u7rp0ez1tamq001/Alerte%20Googl...
I am forecasting a series of daily volumes in terms of units processed for a particular time period (the period around Christmas). Historically, I have used a Holt-Winters model, with the minor modification that time period t-364, rather than t-365, is used for the seasonality component and parameter estimation, since...
I am using a script. It is for core records. I have a dataframe which shows the different elemental compositions in the columns over a given depth (in the first column). I want to perform a PCA with it and I am confused about the standardization method I have to choose. Has anyone of you used the clr() to prepare your ...
We have a coin with radius r and surface pi*r^2 and a 3x3 chessboard, the coin's center is equally distributed along the board. $E$ = event that the coin with same probability, randomly lands fully in $(B,2)$ (no coin parts are out of the square) Book answer, which I don't understand : $P(E) =(1-2r)^2/9$ if $ 0\le{r}\...
I am attempting to interpret the PACF plot generated from the daily return of the market index. As it can be seen on the graph, AR(1) seems to be the most appropriate model since the partial autocorrelation is significant at lag 1. However, according to a lot of examples shown in the internet, I found that most of the ...
I am pooling two similarly designed randomized trials data, each trial with the same intervention and control. I am using a cox model to determine differences in treatment vs control for mortality in the pooled population. How do I ensure that it is appropriate to pool these studies in terms of heterogenity? Do I strat...
I am trying to figure out why do the principal components in a PCA analysis always pass through the centroid of the input data. The books and articles all mention that the components pass through the data centroid but no explanation is usually provided for this. Does it have something to do with that there is some prop...
I'm sure this problem could be presented in more abstract way, but let me paint the picture of what I've encountered when exploring data. Let's say I have a big proximity matrix of some books (A through ZZ). This matrix was created by examining people's libraries (sets of books each individual has). After visualizing t...
Is it known who originally introduced the term "machine" used in terms like machine learning, support vector machine or gradient boosting machine? Could it be defined as an "algorithm that fits a statistical model"? OLS could then be called "least squares machine"... Is there an official definition of the word "mac...
I've read a few sources that describe ANOVA on ranks, and I am still confused on how the calculation is done, and why. Specifically: Is ANOVA on ranks just applying a rank transformation to the data (combined across all groups) and then doing regular ANOVA on the transformed data? If not, how is it different from tha...
Here is a general question in machine learning: Suppose I have a random forest to predict a failure event in an experiment, the variables consist of both categorical(e.g. type of equipment) and continuous types (time of exposure/amount of reactant). When it comes to make recommendations to the user (such that he is not...
I've read some of the comments about trying to do log transformations on data that has 0 values. In my data I have two treatments that would be helped with a log transform except each treatment has a spike at or near 0, so I can't make the data normal. Can you still compare 2 such data sets with Anova if each one has a...
I want to maximize a likelihood function $L(\theta)$, $\theta \in {\mathbb R}^P$. The likelihood function has a complicated expression involving splines, and an numerical integral for each observation. Is there a general way to implement the EM algorithm for such model or the EM only works in nice cases where one can c...
I am trying to include a random slope of time for two random factors in my lmer model. My research design has four experimental groups who attended five tests at five time points. I would like to compare the effects of the different treatment types assigned to the four groups (between-subject independent variable) on s...
This question arose from the conversation on a previous question of mine. Also, I purposely came up with a ridiculous attention-grabbing title and question to facilitate the discussion more easily. I am not actually interested in measuring the size of a molecule with a ruler. [Here is the seeming paradox]: Give a ruler...
Bear with me, I cannot format on Stack Exchange, but I will do my best to explain. I need to calculate the proportion of claims above a certain point. I have my expectation and variance hats. I'm being told I should calculate this data from a lognormal distribution above a given point, but to do it via TI 84 I must c...
I encountered this statement from Statistical Learning by Stanford University. Can anyone give me an example?
The performance function of K-Means is minimum distance form the observations to the centroid of the closet cluster. For ideal solution we must find the real centroid of each cluster, but in ordinary K-Means algorithm the centroids will be approximated randomly and then iterately refined until converge to local optimum...
I am working on an experiment where there are 100 groups and 4 versions of a product. The product version allocated to the group should be in such a way that the Group1 receiving Product A should not get Product A tomorrow. i.e. for each group the product version must rotate through the list before coming back to the i...
I have a dataset with three variables: 1) mutual fund returns (MF), 2) stock index returns (SI), 3) oil price returns (OP). I have computed a rolling (overlapping) window of correlation coefficients between i) MF and OP, and between ii) SI and OP. I get two vectors of N correlation coefficients each. The eyeball-metric...
In linear regression, such as: $$ Y = \beta_0 + \beta_1X_1 + \beta_2X_2 + \epsilon, $$ we are often told that if $X_1$ and $X_2$ are perfectly collinear, we cannot find a solution (non-unique?) because linear regression needs a 2-d space when we have two variables. However, I am failing to understand geometrically why....
I have seen in many books that they will tell you to normalize independent variables in a linear regression before model fitting. My understanding was always one of making sure your betas would be interpretable on the same scale. However, if we normalize by taking the values of $X$, the independent ones, and subtract e...
I have read through the topic and have seen two major factors:- I have seen the intuition around this and sort of understand it However, I keep seeing two other points which are mentioned here. The error term in ordinary least squares regression is assumed to be normally distributed for the sake of inference. With ...
Edit: the most obvious way forward would be to convert the data to a linear form. The data below seem to be a polynomial of order five. My question is do we know of any way to convert a polynomial of order five to a linear form? I have data for the effective changing VPIP of a poker agent over 86 hands. Need help deter...
I have a data frame: age <- c("10-20", "10-20", "21-30", "21-30", "31-40", "31-40") happy <- c(TRUE, TRUE, TRUE, FALSE, FALSE, TRUE) df <- data.frame(age, happy) I want to do a statistical analysis testing the null hypothesis that there is no difference between age classes in terms of happiness. Would I use a chi squ...
So I know how to do factor analysis on a Likert based questionaire. However, now I have a huge dataset consisting of baseline answers for a Likert based questionaire, AND follow-ups with the same questions after some periods treatment (this is a study about patient quality of life after cancer treatment). 3 months, 6 m...
I'm working on the following problem, but I'm confused as to what kind of problem this is, how to select an appropriate model, and what metric I should be optimizing. The problem is as follows: Team of experts is given a recording of someone performing a piano piece. As a group, they give the recording a score from 1 ...
I've been trying to run boosted regression tree modelling on spatial data using the caret package in R. My predictor variables were all extracted from raster files on the environment, fx. soil type and landcover. Since these two latter variables are actually factors (but the codes are numeric), I have been creating dum...
I wanted to compute some gini coefficients for different populations of differents sizes. In R I used the ineq package containing a Gini coefficient implementation. One of the paramater (i.e. corr) corr (logical). Argument of the function Gini specifying whether or not a finite sample correction should be applied. ...
I am conducting an individual patient level data meta-analysis using the survey package in R (I tried Stata 13 but I get stuck with an error). As per meta-analytic practice, I would prefer to conduct both fixed and random effect analyses, but it appears no such option is available with the survey packages in either Sta...
I am modeling a SVAR to explain how oil price shocks have an impact on stock price, after downloading time series from the FRED database I noticed that Consumer Price Index is seasonally adj. unlike the other time series. Can I implement CPI or do I need to remove seasonality from the other time series?
I have a panel dataset for stocks. My goal is to model and predict if the stock will close positive (1) tomorrow based on today's close (1/0) and other macroeconomic and firm-specific variables.So I guess the model will be a time series logit model with lagged dependent and independent variable. Am I correct? Please su...
I'm aware of the established array-shuffling algorithms, such as Knuth-Fisher-Yates. I'm interested in proving (or disproving) that my self-made shuffling algorithm is broken. It seems to be the reverse of KFY and requires the same number of random numbers. Here's the algorithm: for i from 0 upto n-1 do: j = random i...
I am converting an R script to Python. The developer uses an R GLM, formulated as y ~ day.of.week+hour+minute. I find it confusing on the one hand: these factors are nested, they seem written as independent. On the other hand, I think the intention is to predict y as a weekly recurring pattern, in which the minute 11:0...
Let $Y_t$ be the amount of sales at time $t$ and $X_t$ be the amount of expenses in marketing activities. I want to estimate the effect of $X_t$ on $Y_t$. However, we suppose that $X_t$ is determined by the sales in previous period, so $X_t$ depends on $Y_{t-1}$. Does this problem involve a case of simultaneity? Consid...
I have data with two between-subjects factors (each with two levels; bs1 has levels ‘hi’ and ‘lo’, and bs2 has levels ‘happy’ and ‘sad’) and one within-subjects factor (ws1, with levels ‘good’, ‘neutral’, and ‘bad’). Participants complete two trials in each within-subjects condition. That is, participants are split int...
Mean deviation can give us a sense of how much data is dispersed from one of the average measurements (mean,mode,median). Mean deviation depends on the difference between the data and the average measurement.$MD=1/n∑(x - y)$ where x is the different data values and y is the mean/mode/median.I don't think it really depe...
There are two methods to calculate a confidence interval (CI) around a measure of effect size: you can either construct a CI around the noncentrality parameter of the corresponding noncentral distribution, or bootstrap an empirical distribution of the measure. I wonder which one to choose for Cohen's $w$. There is some...
I have some difficulty assessing the level of measurement of these two variables... When time spent reading a book has been measured with the categories 0 (=never), 0.5 (about 1 hour), 1.5 (about 2 hours), 2.5 (about 2 - 3 hours), 3.5 (more than 3 hours). I would say this is an ordinal / categorical measure, due the un...
Setup I have a dataset where ~3k unique customers can buy any of ~15k unique products, over a three year time span. I'd like to use a technique that would let me learn when we haven't heard from a customer in a particularly long time - but what constitutes a "long" amount of time can vary by customer. If we have a cus...
I've recently picked up attention for AutoML algorithms; Meta-algorithms that intelligently search the space of machine learning models to find the "pipeline" (preprocessing/feature selection method/prediction technique etc.) that attains the best predictive power on a certain classification/regression task. Examples a...
Consider the following time-series process $$y_{t+1}=y_{t}-x_t+\epsilon_{t+1},$$ where $\epsilon_{t+1}\sim N(0,\sigma^2)$ (and i.i.d. over time) and $x_t$ is a stationary process. I am interested in forward solutions of $y_t$. Specifically, we can iterate this forward to obtain $$y_t=\mathbb{E}_t\sum_{j=0}^{\infty}x_...
The problem: You play a game, where you start with two coins. Every round, you bet a coin. You have a 1/4 chance of losing your coin and a 3/4 chance of winning a new coin. So, if you have 3 coins, you can end the round with 2 or 4 coins. You play the game, either forever or until you go bankrupt. What is the probabili...
How can I perform a multilevel meta-analysis without sampling variance? Is it possible to weight the observations by the number of replicates in this way: dat$we<-1/(dat$Replicates) res <- rma.mv(yi, we, random =~1|Experiment/ID, data=dat) or are you supposed to use the "weight" argument in rma.mv instead? I am conduc...
I have time-series data of national-level population estimates from 1990 to 2015. I also have subnational-level population estimates (thus, the distribution of national data), but only for years 2000 through 2015. With only a small subset of countries from which I can knowledgeably assume there were no events that caus...
I'm currently facing the following situation. We have run a marketing campaign providing to some members one of two type of coupones. In addition to this, some of these members were already contacted in the previous one by another campaign. So I have the following dataset, where: -mixpre3M= is a flag variable telling u...
I have a skew variable and I want to use box-cox transformation (log) but around 50 observation out of 200 are between 0 and 1. My initial thought was to add a constant to all observations before taking the log. Is it a good idea? If I do add this constant, how can I determine the back transformation function?
I have a list of medians and pass rates for national exams (scores go from 0 to 100) and need the SD. I do not have access to the individual scores. I am assuming normal distribution. How do estimate the SD knowing only the median and the % of students that passed, i.e. had a score of 60% or higher? My current solution...
I am looking for clarification on whether it is acceptable to treat ordinal values with an underlying order as continuous when extracting residuals and in exploratory factor analysis (EFA). Does taking the residuals from a linear regression make sense if the independent variable is ordinal (ie: 1,2,3,4,5,6,e...
I try to understand interactions in multiple linear regression and especially how to plot them and there is one uncertainty that emerged I hope somebody can rule out for me. So if you have done the MLR and the interaction term is significant and you now want to do the post hoc test. We have to do this in a homework. M...
I have to calculate intraclass correlation to quantify intra and inter-reliability. However, I am not totally sure whether the classical two-way ICC is appropriate because of the correlation among sample units. In the experiment, each patient has more than one vessel that will be evaluated by 2 readers. The sample unit...
Goal : I have to make my incomplete data into useful one. Here is example data product_id date sales_volume sales_ranking A 1001 95.75 3 A 1002 30 3 B 1002 5 4 C 1001 NA 1 D ...
I am trying to prove this statement, "if $P(S_n) \to 1$ as $n \to \infty$, prove that there exists subsequence $\{n_k\}$ such that $P(\cap_{n_k}S_{n_k}) > 0$". As $lim_{n \to \infty} P(S_n) = 1 \ne 0 \Rightarrow \sum_{n=1}^{\infty} P(S_n) = \infty$. If sequence $\{S_n\}$ is independent, then I can use Borel 0-1 law to ...
Consider that you want to test the performance in school between two schools. The dependent (observable) variable is whether a student passed a course or not. I want to compare proportions of students who passed courses between the two schools. There are 4 courses in total. A simple way would be to perform a proportion...
Assuming a simple, fully connected Multilayer Perceptron network with one input layer, one hidden layer with multiple nodes and one output layer. In this case the nodes in hidden layer are interchangable apart from the weight and bias values. Yet, based on the same inputs, each node will produce different outputs for t...
Suppose the event of interest occurs in approximately $10 \%$ of the cases where the number of cases is around $5,000$. Should you use a penalized logistic regression for this or is regular logistic regression okay? In other words, what qualifies something as a rare event?
All the major federal surveys come (American Community Survey, Current Population Survey, others) come with survey weights, such that the individual household observations times the population weights is approximate representative of the population as a whole. I would like to use survey data like this to estimate incom...
I am trying to define a model for an experiment comparing 3 groups of samples, with 8 observations in each group. The purpose is to assess if observations in groups 2 and 3 are smaller than in group 1, and if so, how much. From the biological background of the experiment the response is supposed to be log-normally dis...
Suppose that an dependent variable y depends on a number of dependent variables which take discrete values in their domains. Given a set of input-output data, how can such relations be found out ? Do regression models work in such cases as well or are there dedicated methods to handle such cases?
I am trying to identify what combination of independent variables (5 variables) explain a dependent variable and I have a few questions: 1) Is it possible to use multiple linear regression analyses to identify what independent variables predict the dependent variable and discard some variables? In this case, is it O.K...
I am trying to compute mutual information for 2 vectors. I made a general function that recognizes if the data is categorical or continuous. It's really difficult to find simple examples of this calculation and I have only found theoretical implementations (e.g. How to calculate mutual information?). I have counts da...
I need to test the effect of X on Y through M. Based on knowledge, I know X does not have direct effect on Y. X has to act on Y through some mediator(s). In this case, do I still need to estimate the direct effect of X on Y (c') in my model? Is it ok if I only estimate a (effect of X on M) and b (effect of M on Y), and...
Let's assume that we are investigating how tobacco smoking is associated with incident lung cancer in a population. In the full population, the true relative risk of lung cancer associated with tobacco smoking is 2. Next, we collect 100 random samples from the population. For each sample, we calculate 95% confidence in...
I would like to know if it is possible to do a model-selection under the approximate Bayesian computation paradigm and using particular sets of summary statistics (e.g., S1 and S2) that differ for each model (e.g., M1 and M2). Sets S1 and S2 are obtained from the same data (i.e., S1(D) and S2(D)) but the composition in...
I want to fit a linear mixed model for my data, after reading around now I am slightly confused which one of the three models I had mentioned below is correct for my data. In my data I want to check difference in drug concentration in two treatment conditions. For which I have data on 5mice in each group and from each ...
Suppose $X_{1}$ and $X_{2}$ are two random variables, what does $E\left ( X_{1}|min\left \{ X_{1},X_{2} \right \} \right )$ mean. I am not getting the intuition behind it. While describing conditional probability terms on the right side of vertical bar are things that we take for granted have already occurred and there...
I have 3 raters that have rated 9 subjects. Similar tests have been done with different raters and different subjects, and I need to compare in how far the different raters have agreed on their respective subjects. I have chosen Kendall's W since I am using ordinal data (1 = do not agree at all, 5 = agree completely). ...