instruction
stringlengths
9
38.7k
In many machine learning algorithms, feature scaling (aka variable scaling, normalization) is a common prepocessing step Wikipedia - Feature Scaling -- this question was close Question#41704 - How and why do normalization and feature scaling work? I have two questions specifically in regards to Decision Trees: Are the...
If I have 6 products ($x$) and 11 manufacturers ($y$) some products manufactured by some of these manufacturers; ($x,y$) may equal none or any other value. For each combination of $x$ and $y$ there is and expected values for cost, time and transportation petrol according to distance between the manufacturer and the wo...
I have already got a poisson estimated lambda, and actual result y, and I would like to see if the model is good. To start with, I check if the dispersion is alright. glm(y ~ 0, offset=log(lambda), data=data, family=quasipoisson) And then I would like to see if there is zero inflation factor by using pscl package. zer...
We've run a split test of a new product feature and want to measure if the uplift on revenue is significant. Our observations are definitely not normally distributed (most of our users don't spend, and within those that do, it is heavily skewed towards lots of small spenders and a few very big spenders). We've decided ...
With the below code, I have run Holt's linear and Holt-Winters forecasts using Excel / Solver. I wanted to replicate this using R (Excel can be a pain) but I am getting the below error with hw(). It is my first time running this with R so I am trying to go by the docs. I assume running the function will pick the initi...
I must be doing something very wrong here, as auto.arima in R is completely dying, but I can't see what it is. I have the latest version of forecast and R and I think this happens on both Windows and Unix. It works for some/most time series I tried (equities) but fails for others. It seems to fail more often when I ...
Given the Naive Bayes graphical representation below, I want to calculate $P(X|Y_1,Y_2)$. Are the calculations below correct? The factored joint distribution regarding the system is: $$P(X,Y_1,Y_2)=P(X) \cdot P(Y_1|X) \cdot P(Y_2|X)$$ $$\frac{P(X,Y_1,Y_2)}{P(X)}=P(Y_1|X) \cdot P(Y_2|X)$$ $$P(Y_1,Y_2|X)= P(Y_1|X) \c...
I have just run the same survey on websites in different countries and I want to be able to tell whether there are significant differences between countries. For example if 20% of Germans donate to charity, 30% of British and 40% of Dutch, can you confidently say that the Dutch donate twice as much to charity as the G...
In a nutshell: Two treatments are thought to result in comparatively different outcomes depending on when they are administered, with one possibly being better for patients who are treated soon after symptom onset, and the other being better for patients who are treated later. How can I determine what the cut-off time...
I am starting to dabble with the use of glmnet with LASSO Regression where my outcome of interest is dichotomous. I have created a small mock data frame below: age <- c(4, 8, 7, 12, 6, 9, 10, 14, 7) gender <- c(1, 0, 1, 1, 1, 0, 1, 0, 0) bmi_p <- c(0.86, 0.45, 0.99, 0.84, 0.85, 0.67, 0.91, 0.29, 0.88) m_edu <...
I have two series of $m$ observations each $n_i,X_i$ where $ i=1,....m$, and a related probability $p$. $n_i$ is large and $p$ is small, so we can assume that $X_i \sim Poi(n_ip)$. What is the maximum likelihood estimator of p in this situation and what is the expectation and variance of the estimator? Thanks in advanc...
Suppose I am comparing the computational time of two algorithms A and B. They are solving randomized problem P. Let's say I solved the problem for seeds $ 1, 2, \dots, n $ with both A and B and got the times: $ a_1 , a_2, \dots , a_n $ for problem A and $ b_1 , b_2, \dots , b_n $ for problem B. I can use the Wilcoxon ...
I'm studying for some time and I´m trying to do a logistic regression (using GLM in R) and now it´s extremely difficult to know what to do. I have a binary dependant variable and 15 independent variables. As result of running GLM I've got: glm(formula = y ~ ., family = binomial(link = "logit"), data = crs$dataset[crs$t...
I'm a physicist who has some issues in data treatment, so sorry if I get the maths wrong. I have some diffractograms, which are displayed as counts vs. angle. The points have standard deviations estimated from a poisson statistic on the bins (an external program does that). Getting the average of different spectra is s...
I ran an experiment on my website where I randomly assigned users to either the treatment or control group, and have two questions about how to correctly compute significance of the results. Some context: The outcome variable is the total number of actions they took on my website. I am computing the mean number of acti...
I've read through the following posts that answered the question I was going to ask: Use Random Forest model to make predictions from sensor data Decision tree for output prediction Here's what I've done so far: I compared Logistic Regression to Random Forests and RF outperformed Logistic. Now the medical researchers I...
I have this confusion related to PCA. Lets say I have a 100 dimensional data, then the projection into the first principal component is given by the average over all the dimensions. How is it so?
I'm measuring electric signals from humans, who I have put into two different categories A and B. I would like know whether there is some difference between the two groups. My total sample size is $N = 14$ (seven subjects in both groups). Now, I do something to the signals and in the end get one number for each subject...
If $f(x,y)=2x , 0\leq x\leq 1 ,0\leq y\leq 1 $, find $ P(Y < e^{-X} \cap X > Y)$ Given X and Y have joint distribution. Here is my approach: $$ P(Y < e^{-X} \cap X > Y) = 1- P(Y > e^{-X} \cap X > Y)$$ = $1- P(X > Y > e^{-X})$ = $P(e^{-X} \leq Y \leq X )$ =$ \int_0^1\int_{e^{-x}}^x2x dydx $ = $2e^{-1} - \frac{1}{3}$ ...
I know the rank of $\Sigma^{-1}m m'$ is $1$. How can I find the eigenvalue and eigenvector of it? ($\Sigma^{-1}$ is the inverse of a covariance matrix and $m$ is a mean vector.)
Let's assume there is a time series Y of length n with Y(1) being the most recent observation. In MA process we plot auto-correlation function (ACF) to see how many lags to use. If we look at MA(3) process for example that implies the correlation between: Y(1:n-1) and Y(2:n) Y(1:n-2) and Y(3:n) Y(1:n-3) and Y(4:n) ar...
I heard that adjusted R-squared from two model are comparable only if two models use the same response variables. So if the response variable in one model is Y and the other one is log(Y), then I should not use adjusted R-squared; rather I should use AIC, BIC, etc instead. Is this true?
I'm using external validation to measure the success of a clustering algorithm. I don't consider my categories to be definite, so I'm looking for a measure that is forgiving to the following extent: If two clusters are merged into one, then this shouldn't be unduly penalised as it is still a good match (but still to b...
I want to remove seasonality from daily electricity demand (a time series). My understanding is there is weekly (high demand on Tue, Wed, and low demand on Sat, Sun) and annual seasonality (high demand on Winter and lower on Summer). I tried to build a model to forecast daily electricity demand in R, and plot my data a...
Let's say I have 200 employees with a mean wage of 34 dollars and standard deviation 17 dollars, with maximum wage \$89 and minimum wage \$13. How do I describe the standard deviation in words in term of the wage?
I'm studying graphical models myself and reading contents about bayesian networks. When I am reading in page 371, section 8.1.4 Linear-Gaussian models, in Pattern Recognition and Machine Learning, I cannot derive myself the equation of $$\mathrm{Cov}[x_i, x_j] = \sum\left(w_{jk} \mathrm{cov}[x_i,x_k]\right) + I_{ij}v...
Wikipedia has an acceptable definition of covariate, which matches exactly the Dictionary of Epidemiology. According to Webster, the first known use was in 1965. But the Google n-gram viewer has it showing up earlier, although I suspect many of the early documents are erroneously dated. None of this really answers my ...
Can one please refer me to a formalism and optimization algorithms of SVM which outputs not only 0/1 but a vector of 0/1's, i.e. I'd like to train multiple classifiers at once for the same input. Thanks!
I've bootstrapped two means - each sample had 10,000 observations so I resampled each mean with replacement of 10,000 numbers from each sample. I did this over 50,000 iterations I've plotted the distributions of the bootstrapped means and it looks like they are different. However I'm lost in the next step. Is someone...
We've run a split test of a new product feature and want to measure if the uplift on revenue is significant. Our observations are definitely not normally distributed (most of our users don't spend, and within those that do, it is heavily skewed towards lots of small spenders and a few very big spenders), so we've decid...
It is well known that it is problematic to choose a statistical test based on the outcome of another statistical test, as the p-values are difficult to impossible to interpret (e.g. Choosing a statistical test based on the outcome of another (e.g. normality)). However, this is still standard practice in many applicatio...
Wondering if anyone has an opinion on whether bootstrapping the difference in means is the right method given I have a situation with extreme data points. I've decided to use this as I don't think a t test is appropriate I have about 30k observations per group (3 groups) My situation is about spend, and I have extreme ...
I have to solve the following issue: I run my linear regression model many times (let's say 1000 times) with two variables: y - continuous dependent variable, x - continuous independent variable (mean of several consequent measurements). The independent variable in each model was randomly drawn using its mean and stan...
Is it possible to plot a partial dependency plot to display the class probability and estimate the effects of a predictor for a GBM model? Something similar to partialPlot from randomForest package. According to this article, a partial plot is doable with gbm. Thanks in advance for your help.
I have a survey based on a Likert-scale (1-5) with around 20 variables and 140 cases. Since some people only cross from 1 to 3 for all questions (variables) and others cross 1-5, I want to standardize the values. So I want to calculate the average of all variables of one person to use the result for the standardization...
I am not a statistician but a Java/R programmer. So even the topic could be wrong. Please bear with me. I am collecting details from production servers. These details could be the number of active sessions, CPU utilization etc. I draw graphs. So for example, I have a R graph showing Time(x), Web Server hits(left y-axis...
In Dixon, Coles (1997), they have used the maximum likelihood estimation for the two modified independent Poisson models in (4.3) to model the scores in soccer. I am trying to use R in order to "reproduce" the alpha and beta as well as the home effect parameters (pg. 274, Table 4) without using any packages (using the ...
After some frantic googling I do believe the answer is yes, but more so I am frustrated that the relation between the two parameters seems to be nowhere described explicitely so I do it here. (I hope this isn't against the rules of stackexchange.) This very nice article states: we will denote the random variable Y havi...
Member of parliament can vote or can be absent during voting. Let assume: If, for a given MP, there is a pattern present-absent-present (010) in consecutive voting, this absence is strategic - MP does not want to reveal his preferences. For each MPs I have a data in the format: 00011001000101_00001000_10_011_00000 ...
I try to fill the gap of linear regression by following the textbook Patterns Recognition and Machine Learning by Cristopher M. Bishop. It's known that the error function for linear regression is $E(w)=\frac{1}{2} \sum_{n=1}^{N} (y(x_n,w) - t_n)^2$ (defined on page 5) where $y(x_n,w)$ is a hypothesis, a linear functio...
Let's say I have a binary variable to explain using "some" logistic regression approach. The set of variables I have at disposal are exhaustive for a given period of time and for a longer period a subset of those data are missing. I think this is a very common issue and was looking for some references about the classi...
Suppose that I have a huge data set with high number of dimensions (components). For computational purposes I would like to take just a sample of this data set and work with it instead of working with the huge data set itself. Is there a good way or technique to sample a dataset? I was thinking to choose a sample rando...
I don't know enough about R. Here are two possibilities that I envision regarding the use of R: You are fluent in R. You are able to readily use R for almost any kind of analysis. If you do not have experience with a package, you can learn it very quickly (minutes) and use it, assuming you are familiar with the analys...
Does it makes sense to standardize (z-transformation) all ordinal variables (I only have Likert-scale questions) before running a PCA? Or is the z-transformation only used when having variables with different scales?
I have half a year long data of purchases in e-commerce site (100K purchases by 60K customers). In simplest A/B testing framework random customers got a discount on the next purchase after order completion ( disc = 0/1 below). I want to estimate to what extent disc influenced an interval between orders (diff). Followin...
PCA performs a linear transformation on a data set to obtain a new data set, this time with eigenvector basis and eigenvalue loadings. If Z is our data set, P our linear transformation, and Y our new data set with eigenvector basis, the transformation is: P*Z = Y . but, quiet often Z is not our original data set. If th...
I'm writing a series of blog posts on the basics of machine learning, just for fun, mostly to validate my understanding of Andrew Ng's class. As I'm currently studying generalized linear models (GLMs), my method so far is to generate a small 2D dataset for each regression algo, and apply batch gradient descent on the c...
I am working with Breiman's random forest code (http://stat-www.berkeley.edu/users/breiman/RandomForests/cc_manual.htm#c2) for classification of satellite data (supervised learning). I am using a training and test dataset having sample size of 2000 and variable size 10. The data is classified into two classes, A and B....
Background Information: (scroll for question) Attempting to find correlation between the average number of fouls committed by each basketball team in a game and the referees calling the game. Such a relationship would provide a predictive model for the total expected number of fouls predicted in any match. With the ext...
Someone claims that the adjusted $R^2$ will increase with the addition of an extra variable. I wonder why, as it is called adjusted (in contrast to the normal $R^2$). The only condition it has to satisfy (to increase the adjusted $R^2$) is that the F-value (by the way, how is it simple to calculate it?) of the null ...
I'd like to have a seasonal ARIMA model implemented with Statsmodels ARIMA. Specifically, I'd like to log before the weekly seasonality and then be able to make forecasts. Perhaps an example with ARIMA's from_formula method could accomplish this. I'd also love to be able to do this with patsy. Here's my sample code for...
The best way to ask my question is to present an example scenario: Let's say that the outcome of interest is lung cancer (1 = lung cancer; 0 = no lung cancer) and a researcher has 200k records (where 20k patients have lung cancer (cases) and 180k patients do NOT have lung cancer (non-cases)). Since only 10% of patients...
I have a data set with about 6,000 Fishers exact tests. If I want to do a multiple testing correction to control the FWER what are the advantages of one of these methods vs the other calculating a q-value for each test Cite Using a Benjamini-Hochberg control of the FDR Hochberg's step up method or Holm step down metho...
I have an experimentally observed distribution that looks very similar to a gamma or lognormal distribution. I've read that the lognormal distribution is the maximum entropy probability distribution for a random variate $X$ for which the mean and variance of $\ln(X)$ are fixed. Does the gamma distribution have any simi...
I'd like to know if there is statistical techniques that aims to find the rhythm/tempo of a music based on audio signal :
I have the following relationships logY ~ logX1 + logX2 + logX3 + logX4 + logX5 and X1 ~ Z1 + Z2 + Z3 + Z4 + Z5 X2 ~ Z1 + Z2 + Z3 + Z4 + Z5 X3 ~ Z1 + Z2 + Z3 + Z4 + Z5 where Y and Z1, Z2, Z3, Z4, Z5 are endogenous (Say while the Z's play a role in determining Y, the values of Z's are fixed depending upont he values of...
I have been given this task and was stumped. A colleague asked me to estimate the $x_{upper}$ and $x_{lower}$ of the following chart: The curve is actually a cumulative distribution, and x is some kind of measurements. He is interested to know what are the corresponding values on x when the cumulative function started...
I need to compare microarray data, where all of the "cases" were hybridized in one batch and all of the "controls" in another, so I have no way of removing this batch effect. What would be the best strategy to detect differentially expressed genes (if at all possible)?
Say I have an SEM model with 1 predictor variable (IV), 2 mediators (MV1, MV2) and 1 dependent variable (DV). Amos reports combined indirect effects for an IV on a DV. So the combined indirect effect would be the sum of the component indirect effects (i.e., the IV-MV1-DV indirect effect and the IV-MV2-DV) indirect effe...
This question has come up in another thread that I started so I thought I would get more people's opinions on it. My question is Is the residual, e, an estimator of the error, $\epsilon$? The reason that I ask is the following. In OLS, the variance of the residuals, $\frac{\text{RSS}}{(n - K )}$, is known as the varian...
I have just delved into the basics of maximum likelihood estimation and expectation maximization. The latter is really difficult to follow and I am having a tough time in figuring how I can apply the EM method for parameter estimation.
I recently received the following email, which I paraphrase below: I want to do binomial logistic regression with the data and I have non-normally distributed IVs. I tried doing square root transformation on the non-normal IVs. This was successful in normalising the distribution; however, when I did the logi...
I recently received the following email: I have a sample of 100 and approximately 6-7% missing data on each independent variable of interest, and non-normally distributed IVs. I have square root transformed the non-normal IVs so I could use EM imputation in SPSS to impute missing data. I then back transformed the ...
Students have completed a test containing 20 questions at both T1 and T2, with an intervention in the interval. Scores for each question are either 0 (incorrect) or 1 (correct). I am interested in knowing whether the improvement in students' scores was significantly greater for some questions than for others. I am thin...
There is some confusion with respect to the measurement error. What is the definition in statistics and definition in psychometry ? The statistics does not seem to recognize the measurement error popularly called construct bias in psychometry.
I am doing a study of two schools, and at each school I am sampling three groups. I am trying to determine why the person chose to go to that school and not another. I will be asking each group various questions about the school and options they may have had for other schools, etc. I want to be able to detect: a diff...
I am having trouble understanding why centering seems to only work with simple linear models and not with splines for example. I am using centering to report the estimated group differences at different $x$, but also statistical values (ignoring multiple comparisons for the moment). set.seed(1) # simulate data N <- 10...
Let $X$ be a random variable having expected value $\mu$ and variance $\sigma^2$. Find the Expected Value and Variance of $Y = \frac{X−\mu}{\sigma}$. I would like to show some progress I've made so far, but honestly I've been thinking about this problem for the past few days but just have no idea where to start. Any hi...
I want to know how to check a data set for normality in Excel, just to verify that the requirements for using a t-test are being met. For the right tail, is it appropriate to just calculate a mean and standard deviation, add 1, 2 & 3 standard deviations from the mean to create a range then compare that to the normal ...
I have data for a network of weather stations across the United States. This gives me a data frame that contains date, latitude, longitude, and some measured value. Assume that data are collected once per day and driven by regional-scale weather (no, we are not going to get into that discussion). I'd like to show grap...
In OLS regression: $$Y=\beta_0+\beta_1 X_1+ \beta_2 X_2+\beta_3 X_3 + \beta_4 X_4+\beta_5 X_5+\beta_6 X_6 + \varepsilon,$$ what is $\varepsilon$? Is it Gaussian noise or random error? What is a difference? Why we add it to multiple regression model? In most of papers authors refer it to random error but without clari...
I am using the Kaggle Scikit data to learn R. I am using the R e1071 SVM function to predict classes. When I use: svm(train, trainLabels, scale = TRUE, type = NULL, kernel = "polynomial") I obtain this level of accuracy on a sample of the Train data: > table(pred, trainLabels) trainLabels pred 0 1 0 478 8...
Suppose I have N methods and M benchmarks. I have an AUC statistic (and some other similar statistics) for each combination of method with benchmark. What test should I use to test if one method is better than the rest? I have seen some authors do pairwise comparisons using a one-sided Wilcoxon signed-rank test but I w...
Why we take eigenvalue greater than 1 in factor analysis to retain factors? And how can we decide which variables are to be chosen as factors?
I am new to statistics and was asked to develop a statistical model, which I had started, they ask me to carry out concordance and discordance now, however I don't know anything about these terms except that the concordance is the probability that a pair of individuals will both have a certain characteristic, given tha...
I am using the R e1071 library for the SVM (Support Vector Machine) algorithm. And I used tune to find out the best Cost and gamma parameters. Though the plot doesn't seem to provide the actual best prediction. Here is some details: gammalist <- c(0.005,0.01,0.015,0.02,0.025,0.03,0.035,0.04,0.045,0.05) obj <- tune(svm,...
I have a question. I have a dataset with some missing values that were not MCAR. I imputed them with fully conditional specification method iterations. I then executed my analysis on the basis of the imputed dataset. The results of the original model (with missing values: listwise deletion) did not change much in the ...
I have the following regression $children = \beta_0 + \beta_1 \log(earnings) + \beta_2 grandparents + \epsilon$ and $\beta_1>0$ with $p$=0.01 and $\beta_2>0$ with $p$=0.01, and N is large (N>10.000) and grandparents takes values 0,1,2,3,4. Then I add the interaction term ($\log(earnings)*grandparents$) to equation 1, s...
If say for a random variable $X$, I have observation of $x_1,x_2,x_3,\ldots,x_n$. Let $m$ be the sample mean, and $s$ be the sample standard deviation. Does the new random variable $(X-m)/s$ follow some distribution? It's not $t$-distribution I guess, since for it to be $t$ distributed, $m$ needs to be replaced by true...
I have a problem like the following: 1) There are six measurements for each individual with large within-subject variance 2) There are two groups (Treatment and Control) 3) Each group consists of 5 individuals 4) I want to perform a significance test comparing the two groups to know if the group means are different fr...
I am an expert GIS user moving towards R more and more. I have been using R for some basic regressions and such, but I would like to begin to use and manipulate GIS data in R. How can I create a basemap graphic similar to the one in this post: Showing spatial and temporal correlation on maps Again, I am a beginner in ...
I have a regression problem where the independent variables are all factors (categorical). I've been looking at the literature on missing data, and so far it all seems concerned with missing training data. I was wondering if there is a standard way of dealing with missing data in the prediction set. That is, you hav...
The data contain category and sub-category distributions. The categories are topics in a quiz such as: Music, Sports, Business. Each category has three levels to choose from: Basic, Standard and Advanced. For example: A user might take a quiz on Music across different levels. Say the number of questions attempted is ...
I am using squared return as a proxy to calculate volatility, however i'm not sure whether to use raw return or percentage return. Under raw return all return estimates are below 1, however under percentage return there is a mix of return greater than 1 and less than 1. Percentage return below 1 would end up as a volat...
In my experience and readings, Kaplan-Meier has always been used to calculate differential survival between a certain number of groups. However, I'm looking to assess how time to recovery from a certain event as measured by activity levels. At time zero, everyone is essentially "dead" (non-mobile), and with time they r...
I'm trying to generate sets of causally connected random variables and started off doing this with a monte carlo approach. The baseline is a 2-dimensional measured histogram from which I draw random values. In my concrete examples these variables are acceleration $\bf{a}$ and velocity $\bf{v}$ - so obviously $v_{i+1} =...
I am interested in finding a procedure to simulate data that are consistent with a specified mediation model. According to the general linear structural equation model framework for testing mediation models first outlined by Barron and Kenny (1986) and described elsewhere such as Judd, Yzerbyt, & Muller (2013), mediat...
I have two time series that have a roughly similar trend, though both variables are noisy. This graph shows means and standard errors throughout a season of measurements. I'd like to be able to make a quantitative statement about the relationship between these two data sets. While the two data sets were collected from...
Assume I am looking for a normal distribution $\mathcal{N}(\mu,\Sigma)$. For simplicity let's say we only have 2 random variables $x$ and $y$ and a known $\mu=0$. Is it possible to estimate $\Sigma$ by observing the variance along multiple directions? For example, I measure the variance $\sigma_1$ along the vector $\ma...
I would like to conduct some analysis on some biological traits with regression model. The response variable is continuous. One important independent variable is the SNP information (wildtype, heterozygous, or homozygous). There are different ways to code it. It can be treated as a nominal or a ordinal variable (like 1...
I have read that the sum of Gamma random variables with the same scale parameter is another Gamma random variable. I've also seen the paper by Moschopoulos describing a method for the summation of a general set of Gamma random variables. I have tried implementing Moschopoulos' method but have yet to have success. What ...
The scenario is like this: I have a cohort with 2000 people, half of them taking DRUG, the other half not taking it. I would like to check interactions between DRUG and the other variables in the model: Method 1: Firstly I got a original model: y1=a1*AGE+b1*BMI+c1*DRUG,[DRUG is binary: yes-1, no-0]; I got a likelihood...
The convergence theorem for Gibbs sampling states: Given a random vector $X$ with components $X_1,X_2,...X_K$ and the knowledge about the conditional distribution of $X_k$ we can find the actual distribution using Gibbs Sampling infinitly often. The exact theorem as stated by book (Neural Networks and Learning Machines...
I put this question because while reading the benefits of standardizing explanatory variables or not, I read good but contrasting opinions about standardizing when there are interaction in the model. Some talk about how problems of collinearity are removed when standardizing (e.g. Collinearity diagnostics problematic...
I am trying to do a box-cox transformation with swift. I have a dependent variable, annual foreign sales of companies (in US\$ thousands) which contains zeros, for a set of panel data. I have been advised to add a small amount, for example, 0.00001 to the annual foreign sales figures so that I can take the log, but I t...
here is my situation. I am weighting a packet of material that has 10 individual units in it. In the end of the day I would like to know the average weight and variance of the individual units but the problem is that I cannot weight each unit individually since I would have to destroy the packet to get to the individua...
It seems to me that normalized ERR (Expected Reciprocal Ranking) scores (ERR scores of your ranking algorithm divided by ERR score calculated for the ground truth ranking) are more useful than the unscaled ERR scores, but I have not seen normalized scores being reported in the literature. Is there a good reason that th...
I have $N$ pmfs, and for each each $L$ samples. Each sample has a variable amount of $x$ values, but the $x$ values that they have can be matched. So for example: $$sample_1 \rightarrow\ x_1 = 0, x_2 = 0, x_3 = 0.2, x_4 = 0.4, x_5 = 0.4$$ $$sample_2 \rightarrow\ x_1 = 0.3,x_2=0, x_3 = 0.4, x_4 = 0.3,x_5=0$$ I'm using a...
I am a TA for a stats course for engineers, and I had a really good question from a student today, which I don't know the answer to. We were going through the following word problem: "4 computers run continuously for the Toronto Stock Exchange. The probability of a computer failure in a day is estimated at 5%. Assuming...
I'm looking at a dataset that has pre-post test measurements on users' stress, depression and anxiety levels collected from a website's online health assessment. On average, the healthier participants at baseline got worse over time, and the sicker participants at baseline got much better, and the middle group gets a l...