instruction
stringlengths
9
38.7k
I have recently learned about LS means (estimated marginal means, predicted marginal means) and I am trying to understand what they could be used for and under what circumstances. For concreteness, consider a dependent variable $y$ and two categorical independent variables, $x_1$ with two categories and $x_2$ with thr...
Mr. Effron has published an interesting article in Science magazine with the enticing title "Bayes' Theorem in the 21st Century". The article is quite short and can be found here: http://web.ipac.caltech.edu/staff/fmasci/home/astro_refs/Science-2013-Efron.pdf Mr. Efron present a case where 6,033 cases of genes are ex...
in nearly all code examples I've seen of a VAE, the loss functions are defined as follows (this is tensorflow code, but I've seen similar for theano, torch etc. It's also for a convnet, but that's also not too relevant, just affects the axes the sums are taken over): # latent space loss. KL divergence between latent sp...
Usually, when doing multiple tests to compare means of categorical variables, it is advised to do some correction of the P-values to control the probability or proportion of false positives (Bonferroni, False Discovery Rate). However, the definitions of these correction methods are so general that they seem to apply to...
Scenario 1: Let $X_i,i\in I$ where $I$ is the index set. For simplicity let $I$ be the finite set $I=\{1,2,\ldots,n\}$. Let each $X_i$ be independent and distributed as $$ X_i\sim N(\delta,1), $$ and let $\mathbf{X}=(X_1,X_2,\ldots,X_n)$. Define the index estimator $$ \gamma(\mathbf{X})=\text{argmax}_{i\in I}{\mathbf...
Suppose that we have a dataset with many rows and that we can't afford to run PCA many times due to constraints. In this regard, I have two questions: Is it a good idea to take a sample from the data, run PCA on it to find a good number of components then use this number on the whole dataset? Is it ok to take the subs...
I'm trying to map the information R prints for an ARIMA model to the coefficients in the formulas that I'm familiar with. Here's what I have so far ar1 = $\varphi_1$, ar2 = $\varphi_2$, ... intercept = $c + \varepsilon_t$ ??? ma1 = $\theta_1$, ma2 = $\theta_2$, ... mean = $\mu + \varepsilon_t$ ?????? where an AR(p) m...
Lets say that we want to constraint some of the variables in a model, we denote the model's parameters by $\theta \in \mathbb{R}^n$ and we want to train the model on input data $X$. Normally we would just use EM, but lets say that instead of $\theta \in \mathbb{R}^n$ we have $\theta \in U \subset \mathbb{R}^n$ where $U...
Let $X$ be $Normal(\mu,\sigma^2)$, $\sigma$ is known. I need to find an unbiased estimate for $P(X<0)$. My question is, is it enough to find an unbiased estimate for $\mu$ and use that? That is, is $P(X<0|\bar x)$ unbiased for $P(X<0|\mu)$? I'm thinking it is not. If it is not, how do I find an unbiased estimate then?
Given a Markov switching GARCH model $\epsilon_n=Z_n \sqrt{\sigma_{\Delta_n,n}}$ where $\epsilon_n$ is a time-series of residuals, $Z_n $ is a sequence independent and identically distributed random variables with mean zero and unit variance, and $\left\{ \Delta_n,n\in \mathbb{Z}\right\}$ is a Markov chain. If we assu...
When I see the equations of a t distribution, or a Gamma, or a Chi squared I feel sometimes puzzled and ask to myself: how did they arrive to such not immediate intuitive equation? I've seen derivations of the t distribution or some others here and there, but I would like to know if there's a book/article where it's s...
I understand that classically Jaccard and Hamming work best with binary data, but is there anything specifically wrong with using a Manhattan distance instead with the complete linkage function?
Searching for: Neural Network solutions or implementations (learnable algorithm) for inexact graph matching. Graph matching: Given two graphs GM = (VM , EM) and GD = (VD, ED), with |VM| = |VD|, the problem is to find a one-to-one mapping f : VD → VM such that (u, v) ∈ ED iff (f(u), f(v)) ∈ EM . Inexact graph matching...
I have a particular segment of temporal data for 3 days. It looks like this: Day_1_Hour_14 = [d1x1,d1x2,...,d1xn] and [d1y1,d1y2,...,d1yn] Day_2_Hour_14 = [d2x1,d2x2,...,d2xn] and [d2y1,d2y2,...,d2yn] Day_3_Hour_14 = [d3x1,d3x2,...,d3xn] and [d3y1,d3y2,...,d3yn] When I use these 3 days 1 hour each worth of data on an...
I was comparing results for 2x2 contingency tables and I noticed that the fisher exact test in R was giving the same results for different contingency tables passed. For example: cont_table_1=matrix(c(10,400,70,4000), nrow = 2) #The contingency table: # [,1] [,2] # [1,] 10 70 # [2,] 400 4000 fisher....
In the comments on my answer to a recent question about the sum of random variables, I came across a link to the Wikipedia article on the ratio distribution, and noticed the following peculiar claim there: The algebraic rules known with ordinary numbers do not apply for the algebra of random variables. For example, if...
I have data on 3 species abundances as fractional compositions. Within each sample, the sum of all species abundances is 1. Essentially, each observation is a proportional abundance. Here is an example of this type of data using R: y1 <- rnorm(100, 100, 5) y2 <- y1*2 + rnorm(100,0,10) y3 <- rnorm(100,50,5) spp.y <- dat...
I am working with a data set that deals with performance related metrics and their impact on revenue. I was able to show via regression modelling and time series analysis that there is evidence of these metrics leading to an increase in revenue. One of the questions I have been asked to explore is the effect of perfor...
I've been reading up on time series forecasting, but most of what I've come across assumes that we want to predict the next value in a series. As such, I have access to lagged values (maybe I look at t-4, t-3, ..., t when I predict the value at t+1). Suppose I want to predict the next two weeks worth of values. Now I...
I am working on a deep neural net model to estimate the monthly mortgage prepayment ratio for a large loan portfolio (this ratio is called $SMM$ in finance literature, all you need to know is that $0\leq SMM\leq1$). My basic approach is to extend the methodology in (Papke- Wooldridge 1996) paper on modelling fractional...
I want to look at whether there is a significant difference in mean scores on a personality questionnaire between a high autism trait sample (HAQ) and a low autism trait sample (LAQ). However, the sample sizes of the two groups are incredibly different with 134 people in the LAQ and 10 people in the HAQ. Furthermore,...
I'm completely new at analyzing survey answers, and it will be great if anybody can help me out here with conversion technique. Survey participants were provided answer choices on a ranking scale of 1-4 and we got the average. We're trying to change the ranking scale to 1-5. I understand that there are different schoo...
I am looking for different modelling approaches which are able to build regression trees (i.e. with continuous input and output variables) with multiple input and output levels. The most common approach (e.g. with CART) is to recursively do binary splits. I am looking for methods that could split the target variable in...
I have a number of fish measurements I want to test, for example Condition, HSI, and GSI. These are to be tested against Parasitism (A factor, 0 being non-parasitized and 1 indicating parasitized). I am hoping to see no effect from parasitism. I did preliminary T-Tests for four lakes (pooled over three years) comparin...
What is parameter instability and how can I measure it? If my model is having a hard time to forecast out-of-time samples, could parameter instability or populational instability be the cause of it?
I'm looking to take random draws from a probability distribution and obtain right-skewed results where the mode falls around 0.2-0.3. So you can picture maybe a chi-square-like distribution shape between 0 and 1. Which distribution has this quality so that I can take random draws in R and obtain the probabilities I nee...
I have read that a key difference between Bayesians and Frequentists is their treatment of probability. Frequentists treat probability as the frequency with which something will happen over the long run. Bayesians treat probability as a measure of their confidence in the outcome of a single event. I've also read that F...
I am training an ANN in multiclass multilabel scenario, where only one of the possible labels is observed at a time, let me illustrate on an example: I have a state X and the ground truth label Y for this state is for example [0, 1, 0, 1, 1, 0, 0]. However I can only see a label Z, which contains only one of the ones i...
I'm working on a homework assignment where my professor would like us to create a true regression model, simulate a sample of data and he's going to attempt to find our true regression model using some of the techniques we have learned in class. We likewise will have to do the same with a dataset he's given us. He says...
In my data set, each individual has two properties, a and b. It seems that a + b is close to 10. Which statistic method could I use to test if this is true? I really appreciate your help! Person a b 1 2 8 2 2 9 3 3 7 4 2 8 5 4 6 6 2 8 7 4 6 8 2 9 9...
On Wikipedia, it says: $$ R^{2}= 1-{\sum _{i}(y_{i}-f_{i})^{2} \over \sum _{i}(y_{i}-{\bar {y}})^{2}} $$ However, on other sites, R is defined as the following: $$ R = { n({\sum xy})-({\sum x})({\sum y})\over {\sqrt {(n{{\sum(x^2)-({\sum x})^2})(n{{\sum(y^2)-({\sum y})^2})}}}}} $$ and $R^2 = R \times R$ Am I missing so...
I'm trying to get more into stats and I had a problem that I couldn't wrap my head around. It's a solitaire card game in which you play 4 hands. Each hand consists of putting 4 cards on the table. There are four unique decks to choose your cards from. The decks are Jack (J), Queen (Q), King (K), and Aces (A), one of ea...
I want to perform PCA. But one of the assumptions of PCA is that there has to be a linear relationship between all variables (83 of them). Do I have to do the scatter plot matrix (83x83 matrix) between variables to see either they have linear or nonlinear relationship and filter them out if they're not satisfied? Or ar...
Defining the exponential dispersion family by $exp\left(\frac{x_{i}\theta - b(\theta_{i})}{\phi} + c(x_{i}, \phi, w_{i})\right)$ I'd like to change the usual Inverse-Gaussian density below to the form above. $\left( \frac{\lambda}{2\pi x^{3}} \right)^{1/2}exp\left( \frac{-\lambda(x-\mu)^{2}}{2\mu^{2}x} \right)$ My book...
I'm reading An Introduction to Statistical Learning, currently on page 69, the chapter on Simple Linear Regression. The text says: In the case of the advertising data, we see from the linear regression output in Table 3.2 that the RSE is 3.26. In other words, actual sales in each market deviate from the true regressio...
Let $X\sim f(x\mid \theta)$ and $\theta\sim \pi(\theta)$. The Bayes estimator under squared error loss is $\delta^\pi(x)=E(\theta\mid x)$. How do i show that the Bayes risk of $\delta^\pi$ can be written $$ r(\pi,\delta^\pi)=\int_\Theta \theta b(\theta)\pi(\theta)\,\,d\theta, $$ where $b(\theta)=E[\delta^\pi(X)\mi...
What would be an example of a situation where very correlated terms must be included? When is this more beneficial as opposed to selecting 1 of the terms?
I am using logistic regression for a problem and a colleague suggested trying a MLE solution, with the assumption that some of my features $X_i$ may not have a linear relationship with the target variable $Y_i$. So his idea is that I take my features (assume they are continuous) and "bin" them into $N_i$ buckets. Then...
I need some assistance in explaining a regression analysis table. Can you help me please? This table is from an article. I have to interpret the table.
I built logistic models using self-starting nls logistic models using SSlogis and nls functions in the base 'stats' package in R. I had a couple questions about the biological interpretation of the parameter estimates for asym, xmid, and scal. I can see here what the model interpretation is of those parameters. I would...
I am having a mental blank and need some help with a final part of my study. To summarize: I have a population of cats, they have been scored as either obese/overweight (1) or not obese/overweight (O) using two different methods - a visual scoring method and a verbal scoring method. I obtained results that approx 30% w...
I have a small dataset Friends,Gender,Social 280,female,"13" 250,female,"12" 320,female,"15" 190,female,"14" 320,female,"11" 340,female,"15" 180,male,"10" 220,male,"8" 300,male,"11" 240,male,"9" 270,male,"10" 260,male,"9" social is a score which means how socially active they were with people at their school(range fro...
I am trying to implement an ARIMA model for my dataset. I performed a Dickey-Fuller test on my dataset and it said that it was stationary. I would like to know if the autocorrelation function can state if my dataset is stationary and how do I determine the order of my autoregressive model and moving average model from...
I have a question regarding Bayesian estimation and whether a method such as MCMC is necessary. In the Bayesian setting we have that $$\pi_{\Theta|X}(\theta|x)\propto f_{X|\Theta}(x|\theta)\,\pi_{\Theta}(\theta)$$ where $\pi_{\Theta}(\theta)$ is the prior density of parameters; $f_{X|\Theta}(x|\theta)$ is the density o...
I am trying to reproduce the results from chapter 5.2.2 of ESL which is about logistic regression using splines. The dataset is the african heart disease dataset (downloadable from the website following data -> South African Heart Disease data) I take a shortcut compared to the book since I directly select the relevant...
Suppose I have two distributions over the probability simplex $P_S$ and $Q_S$, so that e.g. $ p\sim P_S $ and $q\sim Q_S$ are vectors such that $\sum_i p_i=\sum_i q_i =1$ with $p_i,q_i\geq 0\;\forall \;i$ (i.e. $p$ and $q$ can be viewed as parametrizing two different categorical distributions). Given independent $ p\s...
I have a classification problem where the main aim is maximising classification accuracy. I am using a random forest, and would like to also use the variable importance in my analysis. For this reason, I thought it best to use cforest from the party package in R since it has been shown Strobl et al. 2007 that it gives...
I'm using mice in R to impute missing values. If I understand correctly, mice specifies a fully conditional model to draw new values from some posterior distribution to fill the gaps. Since my data are split into a train and test set, I don't think I can just impute the entire data set, as this would leak information ...
I collect the data of air pollution over the year. The data is 2D where the first axis is discrete scale (mass of pollutants in integer; 50, 51, 52...) and another axis is continuous scale (intensity). I want to extract the overrepresented pattern of these data. The masses that are found in mostly data should be in th...
I have data that's like as follows $A : 133-134$ $B : 131-135$ $C : 135-148$ I have to check if $A$ is more "similar" to $B$ or $C$ where similarity is defined as smallest "distance" between the initial and final points of the groups (the definition of "similarity" in this case is not absolute and can be changed if a b...
I would like to know the meaning of an autocorrelation graph of a sine wave. When the time lag is 0, then the autocorrelation should give the highest value of 1 since a copy of the signal is completely correlated to itself. By this logic, after a time equal to the period of the signal, the correlation should again be m...
Let $f$ be a mapping from dataset space $\mathcal{D}$ to $\mathbb{R}$, where $$ \mathcal{D}:=\{M_1,M_2,\ldots,M_k\} $$ with $M_i\in\mathbb{R}^{n\times n}$ a symmetric matrix. Typically, $n=36$. We can, for a given matrix $M$, compute $f(M)$; however, even though the function $f$ is well-defined, it is computationally p...
This above example happens in an infinite state space $S = {i}_{i=1}$ By the definition of detailed balance condition, Definition: $\pi\left ( x \right )p\left ( x,y \right ) = \pi\left ( y \right )p\left ( y,x \right )$ The author asserts that the initial distribution given in the example satisfies the detailed ...
What intuitive sense can be given to the word "Local" in the LATE? "Local" compared to what ?
TLDR: Do thin plate regression splines have a probabilistic/Bayesian interpretation? Given input-output pairs $(x_i,y_i)$, $i=1,...,n$; I want to estimate a function $f(\cdot)$ as follows \begin{equation}f(x)\approx u(x)=\phi(x_i)^T\beta +\sum_{i=1}^n \alpha_i k(x,x_i),\end{equation} where $k(\cdot,\cdot)$ is a kernel ...
Suppose we have a model $Y = \beta_1 X_1 + \beta_2 X_1X_2 + \epsilon$ Hence $X_1$ has an effect on $Y$ regardless of the value of $X_2$, but $X_2$'s effect on $Y$ is mediated or enabled by $X_1$. Please fill in the blank: $X_1$ is a ******** variable for the relationship between $X_2$ and $Y$?
I have a discrete categorical variable $X$ with values in $\{1,2,....m\}$, $m$ being rather small (say 10, 100...). I want to estimate the distribution of $X$: the histogram. If my dataset was made of $n$ (say 1000,10000...) observations of $X$ things would be very easy: $$p_i=\frac{\#i}{n}$$ Each line in my dataset is...
I played around with the t-SNE implementation in scikit-learn and found that increasing perplexity seemed to always result in a torus/circle. I couldn't find any mentions about this in literature. Check out some examples below, which is just a slight change to sk-learn's t-sne perplexity example. I would love to learn ...
Assume $μ1$ and $μ2$ are the two means and the standard deviation is $σ$ for two normal distribution. The probability of x in the mixture of these two normal distributions is $$ p(x)=0.5N(x;μ1,σ)+0.5N(x;μ2,σ) $$ How can I prove the second derivative is strictly less than zero for $|μ1−μ2|<2σ$ Really appreciate any tho...
I am trying to find the best model for a log return time series. In SPSS the expert modeller is stating that an ARMA(0,0,0) is the best while in R the best fit is (5,1,0). Why don't they agree on the same model?
I'm trying to figure out how to build a classification model based on some states. I have an arbitrary number of states s1, s2, s3,...,sn that can lead to two outcomes a1, a2 (basically the labels of the classification) And I can have any number of states that can give a classification. For example: s1 -> a1 s1,s2 -> ...
I'm comparing two samples using python's scipy.stats.ks_2samp which returns a D value and P value. How do you calculate n for the two samples to use on the D value lookup table?
I am trying to generate attributed faces using DCGAN. Therefore I changed the code of the original implementation to use celebA instead of mnist. After 15 iterations I am getting the following results: https://i.stack.imgur.com/pgrbb.png Here can you find my modifications to the original DCGAN implementation: 1) Read t...
Let $X_1,X_2,\ldots, X_n$ be $\operatorname{Normal}(\mu,\sigma^2)$ I seem to recall it said that there is no UMVUE for $\mu$ if $\sigma^2$ is also unknown but cannot find why this is so. Is this true?
I've been looking for R packages that allow one to fit a logistic mixed model with an AR-1 correlation structure. I've found that it seems easy to do a logistic mixed model or to fit a linear mixed model with such a structure, but not both. Am I wrong in this, and if I'm not; what would an alternative be?
Imagine a business wishes to audit its transactions. It has a database summarizing the transactions, which constitute a sampling frame for the population. It would be time-consuming and expensive to examine each transaction in detail, so the standard of care in this situation is to sample the population. Using charac...
I could need some help on how to choose the correct way to analyze the data I have collected. I conducted an experiment with two groups (control condition vs. experimental condition). The continuous dependent variable was tested twice after the intervention for each subject. That is, I have one between subjects-factor ...
Let $X_1, X_2,...,X_n$ be iid random variables having pdf $$f(x|\theta) = \frac{1}{x \sqrt{2\pi\theta}}e^{(-[\log x]^2/[2\theta])} I_{(0,\inf)}(x)$$ where $\theta > 0$. Determine the MME of $\theta$ using the first sample moment. My attempt: Since this is an exponential family distribution, this pdf gets factored into:...
Consider a paired-experiment setting. I have a variable $Z=\{1,2,...,N\}$, based on which, I paired the subjects. For each value of $Z$, I have 2 subjects, and randomly assign one of them to the Treatment and the other to the Control. So it looks like this Z T C 1 . . 2 . . ... N . . Let $Y^T$ be random varia...
My data looks like this: |--------------|--------------|--------------|--------------| | POS | VOLUME | LINE | SUM_TIME | |--------------|--------------|--------------|--------------| | 1 | 345 | A | 5 | | 2 | 33 | A | ...
I am currently thinking a lot about the definition of probability and one thing that I am really not content with at all is the frequentist definition of probability as long run relative frequencies of "the same" random experiment, with which I mean the execution of the experiment under similar conditions. It is virtua...
Stats refresher: I have two random variables (x1 and x2) with known mean and variances. I need to calculate the expected value and confidence intervals for the sum of a and b trials respectively. Assume both are normally distributed and independent. For example, x1 mean = 15, var = 5, x2 mean = 10 var =3 What is the co...
Recently I got mix response on the difference between multivariate time series data and panel data. I completely understand the difference between cross sectional data, time series data and panel data. But sometimes it becomes difficult to distinguish between panel data and multivariate time series data. For example, ...
I have fitted a negative binomial regression model to my data, and the summary of this compares latency of 3 resources to that of burrows: NegativeBinomalLatencyModel <- glm.nb(Latency_s ~ Resource, data = Cricket) summary(NegativeBinomalLatencyModel) Coefficients: Estimate Std. Error z value Pr(>|z|) ...
In class, we would run power regression for sets of data points to find variation equations. The power regression takes a set of points and fits it to the model $$\hat{y}=ax^b $$ When doing it on the calculator (TI 89 Titanium if that matters) after it does the regression, it lists two more sets of values into the tabl...
I'm working in Python with statsmodels. I have a response variable y and a design matrix X from which I have already removed the most strongly correlated (redundant) predictors. I add a constant and check the VIFs: > from statsmodels.stats.outliers_influence import variance_inflation_factor as vif > Xc = add_constant(X...
A number of tools now use Nakagawa and Schielzeth's (2012) method for obtaining R-squared values for mixed effects (or multi-level) models (i.e., the MuMIN R package). The r2glmm R package provides for the calculation of semi-partial R-squared values for specific fixed effects predictors. Are there similar, partial R-s...
Here is an interview question. In a model, if we believe some variables should be kept. However, those variables are not significant according to the model output. What are some possible reasons?
I'm investigating causal effect in some financial data, and I'm using two different approaches: propensity score matching with stratification and the CausalImpact package for Bayesian structural time series. Theoretically, should propensity score matching and CausalImpact give similar results? I know there are differen...
I'm working in Python with statsmodels. I estimate a multiple regression model (n=10763; 12 predictors; r^2=0.216; all coefficients have signs pointing the correct direction and are significant). Then I check my residuals. The residuals show no discernible pattern, so there appears to be negligible heteroskedasticity: ...
I've installed a photo slideshow on a small TV in our kitchen, which displays a randomly chosen family picture amongst 3'700, once every 20 seconds. My wife frequently observes "but I saw that one yesterday", when one every 20 seconds seems to imply that she should only see the same photo once every 20-odd (3'700 * 20 ...
I am trying to understand a problem confusion. Say, we have two models (m1 and m2) that predicts probability of "rain" on a particular day. If I am trying to calculate average odds of rain, which one is the appropriate method, and why? # Method 01 - we have probability of rain from model m1 and m2 as p(rain_m1) = 0.55...
I've got a regression from the value of a house on things like x1 = number of bathrooms, x2 = number of bedrooms, x3 = age of the house and a couple more. I have the estimates of the coefficients belonging to those variables as well as their standard error, t-value, p-value and 95% CI. Moreover, I got the number of obs...
Given a geometric Brownian motion: $\frac{dZ}{Z} = \mu dt + \sigma dW$ Is there a closed-form solution to $\mathbb{E}[z_s | (z_s > a)\cap(z_t > b)]$ for $t \geq s$?
Suppose we use nonlinear regression (specifically the nls-package in R) for fitting separate models (e.g. same equation, different values of parameters) for two (or more for that matter) conditions in an experiment. One of the parameters has a clear real-world interpretation and we are thus interested in whether or not...
I was reading the Wikipedia example from the Multinomial Distribution article: In it they say: "Note: Since we’re assuming that the voting population is large, it is reasonable and permissible to think of the probabilities as unchanging once a voter is selected for the sample. Technically speaking this is sampli...
Is the multinomial distribution an example of a multimodal distribution? I was just curious about this. I know of continuous distributions that are multimodal, but didn't know if you could talk about PMFs in the same way.
I have a question on the definition of a random variable. I have read the tickets in a box interpretation here and here, which helped me immensely, but I have some doubts for the case in which the population is infinite. In particular, I am confused on what is the relation among infinite population-continuous/discrete ...
I've spent like 3 hours trying to figure this out. I've found millions of articles on how to remove trends and seasonality in a time series data. However, none of the articles tell me how to incorporate this into a linear regression equation in R without some fancy package. To remove trend, you can add time to your r...
I have a huge matrix of this form, with 1000000 rows and 10000 columns. This is a toy example: A B C Mean 1 3 4 2.66 2 4 3 3 1 3 4 2.66 9 9 9 9 1 3 2 2 2 4 5 3.66 1 2 6 3 2 3 5 3.33 The rows in column "Mean" represent the mean of A, B and C for each row. On the other hand, the global mean of column "Mean" is 3.58. I w...
Between the two, should I use a model's training or validation threshold to get best results (from a distributed random forest binary classifier built using h2o.ai) (especially when their values differ by orders of magnitude)? Details: Used h2o flow UI to create a RDF model and examined the testing and validation thre...
I would like to investigate the correlation of visually and automated assesed amount of emphysema (%) in CT-scans. visual: categorical data (visual score 1-4, score 1= 1-25%, score 2= 26-50%, score 3=51-75%, score 4= 76-100%) automated: interval scaled data (1-100%) Since the data is not parametric, I thought about t...
I'm trying to understand the assumptions in Wilcoxon's Signed Rank Test. From here I understand that "The test is based on signed-rank of observations that are drawn from a symmetric continuous distribution population with unknown median. When the assumption about symmetric distribution fails, it can affect the...
For example, given four datapoints, one of which is null, how can I describe the completeness, or lack theereof, of the dataset? I have been thinking about this as "density". Is there an accepted term?
Here I have a time series (the dots represent measured data, and the line connecting the dots was just added by excel) https://i.stack.imgur.com/l9FYw.png It clearly goes across 3 different states First is approximately linear, with some noise Then goes oscillatory Then turns into a smooth curve (all with noise) The ...
Note: I am not a statistician, though I do have a mathematics background. I know what I would like to do, but I don't have deep subject knowledge. If you use any special jargon, please try to use standard forms I can search for online. An Example: Assume I have a multivariate data set ($n \approx 500$ with ) wherein I ...
Assume there are three types (sets) of variables $X$, $Y$ and $Z$ in a graphical model where $X = \{x_1,x_2,\dots,x_m\}$, $Y = \{y_1,y_2,\dots,y_n \}$ and $Z = \{z_1,z_2,\dots,z_k\}$. Further, $Z$ is dependent on both $X$ and $Y$, e.g. there is a path $x_1 \rightarrow z_5 \leftarrow y_3$ in the model. Let Z be the obse...
If I create a regression model design matrix with 3 uncorrelated variables, I get a small condition number as expected. MWE: > import numpy as np, pandas as pd > n = 1000 > X = pd.DataFrame() > X['x1'] = np.random.normal(size=n) * 500 > X['x2'] = np.random.normal(size=n) * 200 > X['x3'] = np.random.normal(size=n) * 300...
Context: I'm running into a strange phenomenon about treatment effect and causality that I'll try to recreate here. Let's say I'm doing an observational study: Do people spend more time online as a result of blocking ads? Maybe by removing ads, people have an increased enjoyment of being on the internet, so they spend ...
The Uniform distribution is not differentiable. Is there a differentiable distribution that approximates a Uniform?