instruction
stringlengths
9
38.7k
I have found the following test results: Source: Link Could you tell me what does it mean and how to interpret the following quantities: $Pr<W$, $Pr>D$, $Pr>W-Sq$ and $Pr>A-Sq$? For example I understand that $W$ is the value of statistic computed in Shapiro-Wilk test, however we cannot see here the critical value of s...
just not to invent the wheel: what is the standard approach to compare two variables coded by two-sided scale where the best value at the center and two types of the worst outcomes on the ends (too high-just OK-too low)? Two-step procedure comes to my mind: recode to one side to learn which variable is "better" and the...
The bias-variance decomposition can be expressed as: \begin{align} \newcommand{\Var}{{\rm Var}} E[(y_0 - \hat{f}(x_0)) ^ 2] &= (E[\hat{f}(x_0)] - f(x_0)) ^ 2 + E[(\hat{f}(x_0) - E[\hat{f}(x_0)]) ^ 2] + \sigma ^ 2\\ &= [{\rm Bias}(\hat{f}(x_0))] ^ 2 + \Var(\hat{f}(x_0)) + \Var(\varepsilon) \end{align} I tried to ...
From a news report: Through the Kaplan-Meier plot, researchers indicated that time from schizophrenia diagnoses to death was significantly short for those with HIV than those without (P < 0.001). Controlling for sex, baseline age, and injection drug age, HIV status was significantly associated with mortality in patien...
I'm creating a linear model for a data set with a fairly small amount of observations (roughly 40). I've found that one observation has a significantly larger value than the others for the response variable in my model. The data point is not an mistake, it is a correct value but it just happens to be an extreme value. ...
I have a training data size of about 80k. I plotted a learning curve to check how much of the training sample is required to train the model. Although, after plotting my learning curve looks like this: From How to know if a learning curve from SVM model suffers from bias or variance?, I came to know two main points:...
So far as I know, we have the following scenario: stochastic: The error is calculated for each sample s. So, we can calculate the gradients for s. And we can update the weights of the network according to these gradients. An epoch involves a complete iteration over the whole training set. So, if we have N samples, in e...
I am taking a class in statistics which uses The Elements of Statistical Learning: Data Mining, Inference, and Prediction as a textbook. However, I find this book very terse. Could anyone please recommend a book which has similar topic coverage but contains more examples and detailed explanations and does not omit mat...
Linear Regression assumes that the errors (εi) are random and independent, following a Gaussian distribution with mean of zero. Equation is given by: $y_i = x_i + \epsilon_i$ , say i = 1...n Does this mean each error($\epsilon_i$) has Gaussian distribution and the value of εi will any one value from the distribution (a...
I recently discovered that method = "bstTree" does not peform as well as I expected. bstTree is a method from the caret package that fits boosted trees to data. Here is what I tried libarary(caret) set.seed(118) n <- nrow(iris) trainindices <- sample(1:n, 0.8*n) iris.train <- iris[trainindices,] iris.test <- iris[-tra...
I study the behavior of municipal authorities towards their neighbors. The theory is that some properties of municipalities (like a level of indebtedness) make them more 'aggressive'. I have a database of the statements each municipality made per year, and the number of those categorized as negative (like threat to fil...
So I understand that turning features into log space can be useful if one wants to represent relative differences, whereas linear features show absolute differences. As I understand it though, normalisation achieves a kind of relativity as well (i.e. normalising a picture still leaves the shapes and content intact) and...
I'm trying to solve a marginalization integral \begin{equation} \int p(y,w) dw \end{equation} in order to compute the density $p(y)$. I assumed the following model: \begin{equation} y = (u+w)^2 + v \end{equation} in which $w$ and $v$ are independent and both follow an exponential distribution with rate equal to 1, and ...
Wikpedia defines "parametric statistics" as: ...a branch of statistics which assumes that sample data comes from a population that follows a probability distribution based on a fixed set of parameters. Many hypothesis tests usually characterized as parametric, such as the classical one-sample $t$-test for the sam...
Consider a feature set containing values of operating condition of an automation unit such as pressure of the valve, temperature, fuel consumption. I want to discover unknown relationship between these variables, to come up with some functional relationship as well. Another case can be to detect fire from sensor nodes...
I need to predict 2 values from a database. For now, I just predict one value with svm regression and I add a coeff to every prediction like that : mypred_SUP <- mypred + 0.5 mypred_INF <- mypred - 0.5 Is there a better way to predict two values ?
The r value I have obtained is -0.190 and p = 0.410. As scores on stress increase, scores on eating habits decrease. I know from my textbook that criterion validity is about whether your measure is correlated with a relevant outcome. In other words, criterion validity evaluates whether the measures under consideration...
I am now taking Andrew Ng's Machine Learning course on Coursera. This is my first exposure to Machine Learning. In the discussion of logistic regression, the course contents describe a decision boundary defined by parameters $\theta$, and the classification of input $X$ being defined as $\theta^TX>0$. The model for log...
When I run non-parametric tests on my dataset, I get p-value as 0.0 (so, p < 0.05, also p<0.005) and Cliff's delta value is around 0.3. So can I confidently say the null hypothesis rejected? I am running python program.
Given independent and identically distributed (not necessarily normal) random variables $X_1, \dots, X_n$ with unknown mean $\mu$ and unknown variance $\sigma^2$, the Central Limit Theorem states that the sample mean (equiv. sum) approximately follows a normal distribution. In particular, we have that $$ \frac{\bar{X}-...
In Hinton's paper "Layer Normalization", on the first page he says Feedforward neural networks trained using batch normalization converge faster even with simple SGD. By this I think he means do batch normalization with batch size one. So the variance (across the batch) is always zero, and the mean (across the bat...
I have curvefitted a differential equation model to a data set. The model itself has the equation $$\frac{\mathrm{d}Q}{\mathrm{d}t} = \alpha(1-Q^2) - \gamma\frac{Q}{4}$$ Again, I have values for $\alpha$ and $\gamma$. They are $0.09$ and $0.45$ respectively. I wish to do a hypothesis test on these parameters. Do I do t...
I was working on an exercise that asks me to get a k-dimensional approximation of a data vector using PCA (containing 4096 dimensions - the faces data set). I did this in R, but the last section asks for a "short mathematical expression for how you construct the approximation where you need to account appropriately for...
I am working on 35 observations with three variables, the natural log of the variables are non-stationary at levels but they become stationary at first difference. There exists no cointegration between the natural logs of the variables, when i run a VAR model of their first difference I get to have most lag length crit...
I am trying to compare a printed word dictionary with a digital dictionary that included added features like sound and video feedback. For this I have selected 60 participants and asked 5 questions (same general questions) with regards to printed and digital one. A likert scale was used to give points to these question...
I have data collected over two years where: Year 1 = 34 successes in the representative sample of 49 taken from the finite population of 122, and Year 2 = 45 successes in the representative sample of 68 taken from the finite population of 175. What test do I use to see if there is any significant difference between ...
I am using SPSS to do a Spearman test on data from a Likert scale style survey. I correlated two questions, one of which 81.9% chose "1" and 10.2% chose "2", and less than 5% choose 3,4,or 5, with a question that had a similar trend in the results: 59.3% choose "1" and 16.4% chose "2", 16.8% chose "3", and less than 5%...
I have read a few papers in causal inference where the authors would use a spline to estimate a propensity score model. I am wondering what would motivate such a decision?
How would one interpret the strength of prior belief associated with a parameter with a prior beta(10,8) distribution, compared to a beta(0,0) prior, (with data from a binomial distribution)? Some intuition and calculations to support your answer would be really appreciated.
My approach was as follows, select 3 people from 23 and then assign any one of the 365 days, then assign the remaining 20 people any of the 364 days and divide it by the total possibilities, which comes out to be the following :- $\frac{{23\choose3}*365*^{364}P_{20}}{365^{23}}$ I would like to know what is wrong in my ...
The acf plot exponentially decays after a lag spike at 2 and the pacf plot cuts off after lag 0. So, this indicates that the time series is stationary. But after doing adf.test and Kpss test, the result tells difference story. Augmented Dickey-Fuller Test data: ltc.ts Dickey-Fuller = 1.7982, Lag order = 3, p-va...
I am reading this paper on how yolo defines loss function. https://arxiv.org/abs/1506.02640 I did research on other posts, but these posts did not seem to answer my confusion: (How to calculate the class probability of a grid cell in YOLO object detection algorithm? & Yolo Loss function explanation) Sum-squared error ...
I am confused about two assumptions of Central Limit Theorem that are as follows. Could you please clarify why do we need these two assumptions for CLT to be valid. And what would it be if we fail to meet one of the assumptions. Thanks so much. Independence Assumption: The sample values must be independent of each othe...
I am comparing a model's outcome with the actual values for a span of 9 months. I am expecting a very large error, however my MAPE implementation yields 1404512.56 using python, pandas. Here is my implementation: def mean_absolute_percentage_error(y_true, y_pred): y_true, y_pred = np.array(y_true), np.array(y_pred)...
I am investigating the effect of an intervention treatment on a group of samples over 5 time points (a period of 2 months in total) For example: Subject 1 - Timepoint 1 (Dose 1), 2 (Dose 1), 3 (Dose 2), 4 (Dose 3), 5 (No dose) Subject 2 - Timepoint 1 (Dose 1), 2 (Dose 1), 3 (Dose 2), 4 (Dose 3), 5 (No dose) etc. The de...
I have a dataset with 98 independent variables (or features in the multivariate machine learning case), 1 dependent variable (or target) with a N = 54. Now I would like to explore which set of variables best predict the target variable. I the first case I would run a stepwise regression to finally end with the set of ...
I am confused as to why my summary table is missing NeonicfCLO and Treatment:NeonicfCLO? I guess it has something to do with the intercept but I am not sure! Neonicf<-factor(neonic$Neonic) whole <- glm (cbind(Correct, Incorrect) ~ Treatment + Neonicf + Treatment*Neonicf, data=neonic, family=binomial, type="III") sum...
My apologies, I am not even sure how to phrase this question clearly. I am essential trying to get meaningful statistics to present tomorrow. All I have managed is this. However, I am very confused how to phrase the descriptive statistics or whereabouts they even are. I am trying to come up with something like: The wa...
Let $X_{1},X_{2},..., X_{10}$ be i.i.d. with continued, strictly increasing distribution function $F$. Let $X_{1:10},X_{2:10},...,X_{10:10}$ be the order statistic. Let $m_{X}$ be the median of random variable with c.d.f. $F_{X}$. Find $\mathbb{P}(X_{3:10} \le m_{X} \le X_{8:10})$. I don't really have an idea where to ...
I am working on an online learning problem, in which I need to detect whether two independent samples (possibly of different sizes) come from the same underlying distribution. Let us call the samples $S_{1}$ and $S_{2}$, such that $100 \leq |S_{1}|, |S_{2}| \leq 1000$ and both can come from any kind of distributions (i...
I'm working on a multivariate linear regression. I performed a Durbin-Watson test to test for auto-correlation and found it in my model (p-value <0.05 of Durbin Watson test). I then randomly changed the order of the row of the dataframe with the following R-command: df=df[sample(1:nrow(df))]. I re-ran the auto-correlat...
I have started trying to do some stock price forecasting, and would like to know what some accurate yet simple methods are. I've covered the basic methods (naive, seasonal naive, average, moving averages) and would like to take the next step. Any tutorials, videos, etc that would be good for beginners?
Suppose I have a logistic regression output as follows. Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) -5.8700887 0.0506436 -115.91 <2e-16 *** f1 0.0511820 0.0005718 89.51 <2e-16 *** f2 10.8470102 0.0992892 109.25 <2e-16 *** f3 ...
Given a Matrix $X\in\mathbb{R}^{m\times n}$ and a target vector $y\in\mathbb{R}^m$, I am searching for a vector $x\in\mathbb{R}^n$, such that $$A\cdot x = y.$$ To solve this problem I am using sklearn Ridge regression. Since the problem may not be exactly solvable, we introduce a regularization parameter $\alpha$...
This is a question about repeated cross sectional and panel data analysis. I have scoured through related questions on this site and Stack Overflow but haven’t quite found what I am looking for. Data description The primary dataset contains yearly information on anonymous individuals’ gender, age range, income, occupat...
Given a dataset $\{(x_1, y_1), (x_2, y_2), \dots\}$, we can compute incrementally (or "online") the linear regression for those points. In other words, given a new point $(x_i, y_i)$, we can recompute in time $O(1)$ the coefficients $\alpha$ and $\beta$ to get the best fit for the equation $y = \alpha x + \beta$. To do...
Searching this site, I see over 1,000 posts triggered by the search term "variable importance", mostly machine learning related. However, I've never encountered the definition before. Is it a term that applies to a specific (set of) model(s)? If so, what does it measure and how is it measured? Furthermore, does it mean...
I want to get a bit familiar with diagnostic plots for count data. I generated these two plots but I don't understand what they should tell me. Maybe someone can sum up few important things?
Suppose I wanted to explore the relationship between smoking (X; yes/no) and an disease outcome (Y; eg. visual analogue scale of depression from 0 to 10). But, I know that irrespective of X, Y is different between men and women. I then hypothesise that the effect of smoking on depression (coefficient of X) will be diff...
I want to build a neural network to classify different soccer team formations like 5-3-2 or 4-3-3 (defense, midfield, attacker). For this purpose I generated labelled 2d spatial data representing each of the 10 players on the field (no goalkeeper). The pitch has the following dimension: [-55, 55, -30, 30]. One datapoi...
This question is somehow related to Is the residual, e, an estimator of the error, $\epsilon$? I also found some information here: Confidence interval of RMSE Let's say, I got a model that explains sampled X by mean(X). Using suggestions from Mr. @whuber I reproduced calculations of the PI from predict.lm in R. ## lm P...
I have a variable that reflects the prices of a product. It has the typical amounts such as 9.99, 14.99 sometime more random like 18.95 etc. I believe, I can still consider it a continuous variable?! What would be my interpretation if my outcome variable is sale success (binary, using a logistic regression). What exact...
I have used best subset regression with various selection criteria (e.g. Mallow's Cp and AIC) to compile a list of possible regression models to explain the response variable "Length". Below is the best model of the bunch, Length = 5.770 + 0.1180 Max flow field width + 0.02691 time until ff + 0.1897 Duration of FF - 0....
I want to train a neural network to predict real-valued scores $s(x)$ for items $x$. I use a dataset of examples $(x_p,X_n)$ where $x_p$ is a "positive" item that should be assigned a higher score than all "negative" items in $X_n$. I train the network with stochastic gradient descent minimizing a max-margin loss: $L(...
I am doing a comparison between two parametrical non-linear models with different amount of parameters. I am using Akaike information criterion (AIC) with the following formula: 2*k + N * log(RSS / N) where k - number of parameters, N - number of experimental points and RSS - sum of squared errors Models describe physi...
I'm hoping to do a validation study on a measure of anxiety (called the AISCs) in a stroke population, using convergent and divergent validity. A test demonstrates convergent validity if it correlates highly with another measure of the same theoretical construct (one that has already been validated), while divergent v...
When plotting a continuous PDF, the y axis is not a probability of an even (since the probability of any single point is 0), but something that is proportional to probability. Does this y-axis density have any direct interpretation? Or is it just some value proportional to probability and that's it?
I have some data that shows the distance from a position in a genome pos to the nearest location (min_dist) of a genomic feature -- essentially the start sites for all genes in the genome: a transcription start site (TSS). It actually doesn't matter that this is a defined genomic feature, it could be anything. Here is...
I need to validate that my simulation results are correct. So I have two sets of data, my simulation results, and calculations I obtained from an established commercial software to compare against. But I'm not sure what is best way to do it. I don't know if this is relevant, but the datasets are large (> 20k points). T...
I am training a GAN using the following loss functions: _, d_real_logit = discriminator(x_d) _, d_fake_logit = discriminator(generator(z_g)) loss_d_real = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(labels=tf.ones_like(d_real_logit), logits=d_real_logit)) loss_d_fake = tf.reduce_mean(tf.nn.sigmoid_cross_entr...
I'm a software developer and not a data visualization expert by any means. I was sent a screenshot of how my client wants some data visualized. Each bar is the average score for your team. The points in the line are supposed to represent the overall average of all users in the system so that a team leader can figure o...
I get stuck while reading Goodfellow's paper on adversarial networks. In the explanation of the Figure 2 he stated that: b) The sign of the weights of a logistic regression model trained on MNIST. This is the optimal perturbation. I am wondering how I can get such an optimal perturbation. I have searched the Googl...
This is my first post,I hope this is the right forum for such a question and I formulate it correctly. I am working with a time series data set where the response y seems to follow a mixture of two normal distributions. i.e. hist (y) draws two 'bell shapes' with means m1 and m2 which seem to be partially overlapping. ...
McFadden's pseudo-R² is a well-known coefficient of determination. If I am right, it can be calculated by 1-(mod_deviance/null_deviance), where mod_deviance is the deviance value for the fitted model and null_deviance is the deviance for the null model which includes only an intercept as predictor. Can we calculate McF...
I am fitting a linear mixed model with lme4 in R. The model has a single factor (des_days) with 4 levels (-1,1,14,48), and I am using random intercept and slopes. The model fit looks like this: > lCtr <- lmeControl(maxIter = 5000, niterEM = 500, msMaxIter=1000, msMaxEval=1000, msVerbose = FALSE, opt = 'optim') > lev.lm...
In class, we talked about finding Maximum Likelihood Estimators but there is something I don't think we talked about. How is the MLE different for distributions with constrained bounds? For example, for an iid random sample $X_1,\ldots,X_n$, if we compare the MLE for $\theta$ from a Bernoulli distribution versus the M...
I have noticed that we can provide class weights in model training through Keras APIs. However, I could not locate a clear documentation on how this weighting works in practice. Say I have two classes with sample size $1000$ (for class $0$) and $10000$ (for class $1$). Now, to balance this how should I assign class we...
At train time, the KL divergence term drives $Q(z=\mu(X)+\epsilon \times\Sigma(X) | X)$ toward $N(0,I)$, where $\epsilon\sim N(0,I)$. It can't drive $Q(z|X)$ to exactly $N(0,I)$ because the reconstruction loss of the encoder/decoder pair would explode (the $Q(z|X)$ network would destroy all information about $X$). Ther...
Suppose $N_t$ is poisson with parameter $\lambda t$. Suppose further that $T_1$ is the random variable that represents the time until the first arrival. I understand very well that the event $\{N_t = 0 \}$ corresponds to the event $\{T_1 > t \}$ because of course saying that I had no arrivals unitl $t$ implies that the...
I would like to perform logistic regression with few categorical variables. I started from fitting univariable models, just to check the relationship of independent variables in the absence of other variables. One of my variables (let's denote it as X1) has 18 levels, so I end up with 18 coefficients (1 intercept and 1...
I have found differing formulas to calculate the $Fbeta$ score, which changes the weight (influence) of $PPV$ ($Precision$) or $TPR$ ($Recall$) from the default of equality (i.e. $0.5$). For example: $Fb = 1 + ( fbeta * fbeta ) ) * ( ( PPV * TPR ) / ( ( ( fbeta * fbeta ) * PPV ) + TPR )$ $Fb = 1 / ( fbeta * ( 1 / PPV )...
I'm working in Python with statsmodels. I estimate an OLS multiple regression model (n=10763; 12 predictors; r^2=0.29) The model coefficients all have signs pointing the correct theoretical direction and are significant. Multicollinearity is not a problem (VIFs and condition number are good). The residuals show no disc...
I'm wondering if someone can assist me in extracting GLM relativities when using splines? I have searched CV and cannot find an easily understandable answer. Here is some code in R (my apologies as I do not know python). #load segmented package for plant data library(segmented) #load splines package lib...
I have a dataset I am working with to model the proportion of fish caught at length conditioned on the total catch at length. I have paired observations (n=96). The paired observations consist of a 10 minute tow and a 15 minute tow. Data collected are length measurements in 1 mm intervals, number of fish at length, ...
I have a set of data, where each data is of the form $(X, Y)$, $X := (x_1, x_2 \dots x_m) $ and $Y := (f^1_1(X), f^1_2(X) \dots f^1_m(X))$ or $Y := (f^2_1(X), f^2_2(X) \dots f^2_m(X))$. In a data if image of any $x_i$ is from $f^1_i(X)$ then images of all other $x_j$ are from $f^1_j$. For example, consider following ...
I have a question about the proper usage of Kendall's coefficient of concordance (Kendall's W). Suppose a series of questions were asked how democratic certain organisations are. Each question was the same for each organisation. There were five possible answers ranging from the most democratic to the most non-democrati...
I am running a logistic regression where the outcome is sale success. I include different IVs, and variables such as talk time to the customer and the amount a customer is paying receive an odds ratio of 1. Which means both outcomes are equally likely. In how far do these 2 variables contribute to the model? What is th...
In every literature I've read each principal component is expressed as a linear combination of input variable. And the coefficient matrix is called factor loading. But why in John Hull's book (where he quoted Fyre 1997), an input variable is expressed as a linear combination of principal components? So he concluded tha...
I'm seeking direction for the fit of a 5-point Likert scale attitudinal survey response to a 4-point scale that omits the center or Neutral response. I am challenged by a very large corporate customer to assign and justify the assignment of the mid-range respondent answers to a 4-point model ranging from very satisfied...
I am a novice in R, and fitting a linear model with lm(). Here is a summary of my linear model. Here are some assumption checking plots The normal histogram and qqplot looks okay to me, but there are strong patterns appearing in the residual plot. Anybody have a clue why that might be happening? I logged my depend...
I try to see if between the weight, the BMI and body surface area, which one des cribes the best my data. The R² for these 3 variables are very close to each others. Is there another way to try to see if one is better than the others?
I'm on the hunt for an example to illustrate the difference between frequentist and subjective Bayesian probability. In particular, I'd like a type of event for which frequentist probability doesn't make sense. This is the example I have: What is the probability that it will rain on March 14th, 2018 in London UK? As f...
I'm aware that Logistic Regression works in odds, not probabilities. More specifically, it reports the variables in how they increase or decrease the odds. That makes sense, but when I think about it more, I'm wondering do probabilities really work like this in real life examples? So if there is a variable with a large...
I am trying to forecast hourly wind speeds for a couple of years. My dataset contained trends and seasonality so a applied a difference of 24 to remove seasonality and then another difference to remove trends. This is the resulting autocorrelation and partial autocorrelation function. I would like to know how to dete...
I recently watched this talk by Eric J. Ma and checked his blog entry, where he quotes Radford Neal, that Bayesian models do not overfit (but they can overfit) and when using them, we do not need test sets for validating them (for me the quotes seem to talk rather about using validation set to adjust the parameters). H...
Say, i have a fitted multi-variable linear model, multicollinearity may leads to small effects of some variables, how can i say one variable is just noise(not related to the target variable) rather than effected by multicollinearity?
I am really don't know what I am missing. So, please help me. I am doing a time series analysis. What I want to do is find the predicted values. Here is my data. 848852 705558 829983 761070 826599 795067 840063 764453 885627 797778 781298 915712 810750 701044 I know this is a really small sample to doing ...
I am trying to prove if cross-entropy loss for MaxEnt models is convex. My first attempt at approaching this problem is to compute the Hessian matrix of second-order partial derivatives and showing that it is positive semidefinite. However, I am not able to find the second-order partial derivatives.
I'm 90% sure my definition is right, but it's such a core concept that I want to be sure. When we're talking about a normal neural net, the definition of a hidden unit to me is clear. But I learned about ConvNets from taking Andrew Ng's Deep Learning specialization, where in the context of ConvNets he normally talks ...
Question: For $U_1 , \dots, U_n$ i.i.d. $U \sim \mathrm{unif}[0,1]$, we want to find the asymptotic distribution of $Z_n = n(1-U_{(n)})$ where $U_{(n)} = \max(U_1 , ... , U_n)$ I found this: Asymptotic distribution of uniform order statistics But find it is not detailed enough as to the steps to take. Could I have so...
Please refer to an excerpt from a text titled Essentials of Stochastic Process by Durret. Here comes a Lemma, built on the above argument. Lemma: $N\left ( s \right )$ has a poisson distribution with mean $\lambda s$ proof: $N\left ( s \right ) = n$ IFF $T_{n}\leq s< T_{n+1}$ This follows from the fact that the nu...
Recently, I fell in love with the pointwise/elementwise/componentwise/Hadamard/Schur functions and compositions of random vectors such as Hadamard squares and products of random vectors. Here is one example: https://mathoverflow.net/questions/293955/normal-approximation-to-the-pointwise-hadamard-schur-product-of-two-mu...
A bag contains 5 white balls. The following process is repeated. A ball is drawn uniformly at random from the bag (that is each of the five balls have equal probability (= 1/5 ) of being drawn in each trial). If the color of the drawn ball is white then it is colored with black and put into the bag. If the color of the...
I'm trying to interpret the following situation. In an economy, let $T$ denote the remaining lifetime (a stochastic variable) with exponential distribution and a Cumulative distribution function satisfying the following differential equation: $$F'(t) = (1- F(t))p$$. I would like to interpret this equation and the param...
I split my data into 80% training and 20% testing data set. Using the 80% split and 10 cross-validations, I build the model and get the training accuracy. Then I test my model on the 20% split and get the testing accuracy. The question is: which is important training or testing accuracy? If I used 10 different machin...
I have a fairly large data set with 500000 observations for 100 variables. Observations are randomly assigned to treatment and control group. How do I infer that treatment has indeed been randomized in the data set. I ran t-tests on a couple of explanatory variables. Some have given significant p-values, some insignifi...
I am working on an online course of statistics. The exercise is shown below. My feeling is that the exercise has a defect: The sampling is on 114 pregnant women who smoke, whereas the population is all pregnant women. So, it seems to me applying the central limit theorem does not make sense. Do I misunderstand somethin...
Statistics is my weakness, so details are important for me to understand what is going on. I was reading through this introductory website on statistics and they say the following (emphasis mine). When Pearson’s r is close to 0… This means that there is a weak relationship between your two variables. This means th...
In a longitudinal study, the hand grip strength of subjects is measured. Each subject is measured at 7 times ($T_1-T_7$): $T_1-T_6$ are measurements at different days and different but fixed hours (at 7, 10, 13, 16, 20, 21 hours). The starting time was randomized. For example, one subject's $T_1$ could be 13 o'clock w...
I have two distributions, $X$ and $Y$ (shown on the horizontal X axis and vertical Y axis, respectively, see image), that represent different ways of scoring some complex system. For a subset of states of a complex system, I have calculated both a score $x$ using the $X$ method, and a score $y$ using the $Y$ method (i....