instruction
stringlengths
9
38.7k
Let $X \thicksim B(n,p)$ then show that $E[X(X-1)\cdot\cdot\cdot(X-r+1)] = n(n-1)\cdot\cdot\cdot(n-r+1)p^r ,\;r = 1,2,...n$ To prove above statement, I had chosen to prove below claim first claim : $X, X-k$ are independent when $k = 0, 1,...r-1 $ First I had used the property $E(X\cdot X-k) = E(X)\cdot E(X-k)$ but ha...
column0 c1 c2 c3 new column abc|cds|oko abc cds oko oko avd|afd avd afd |gs gs gs asd asd asd I am trying to split the Column0 by | pipe operator and making column c3 content as new column, suppose if the c3 column is blank than c2 content to be...
The advantage of Bayesian A/B testing is that it considers our prior belief about the distribution. However, sometimes we do not have this, so we set prior to be uniform and work with visits and conversion counts. Why would one still use Bayesian A/B testing rather than a frequentist testing?
Excel offers an exponential smoothing function. I currently use Excel 2013. In the Documentation it says: Calculates or predicts a future value based on existing (historical) values by using the AAA version of the Exponential Smoothing (ETS) algorithm After some research, I found that the ETS (exponential trippl...
I have built a random forest regression model in sklearn. I can obtain a lists of features along with their importances. However, is there a way to determine whether these features have a positive or negative impact on the predicted variable?
Are the marginals of the Multivariate t distribution with $\nu$ degrees of freedom univariate Student t distributions with $\nu$ degrees of freedom?
I have used a Log10 transformation on my data to transform some non-parametric data to normally distributed so that I could run a Pearsons correlation. Field (2013) states that only problematic variables need to be transformed to attempt to achieve normality, so this is what I did, and a pearsons correlation between my...
We got a machine learning task in a lecture regarding deep neural networks this semester. I already have an approach which works but I am 100% sure that there is a better one. Thus I request you to give me feedback/critic on my approach and comment how to improve/tweak it. Description The task is to create a neural net...
Approach 1: I regress $Y$ on $X$, obtaining estimates $\hat{\beta}$ and its covariance matrix $S$. Approach 2: I first partition $X$ into $X_1, X_2$ using some method (e.g. k-means). Then I separately regress $Y$ on $X_1$ and $X_2$, obtaining results $\hat{\beta_1}, S_1, \hat{\beta_2}, S_2$. Did approach 2 improve over...
I'm trying to fit logistic regression with formula like this: mod <- glmer(response ~ factor1+factor2+numeric1+numeric2+numeric3+numeric4 +(1|factor3), data=myDataset,family = binomial, control=glmerControl(optimizer="bobyqa")) Factor1 and factor2 are categorical variables with (5 and 2 catego...
Let $X \thicksim B(n,p)$ then I would like to evaluate kurtosis and skewness of X. First I want to use the fact that kurtosis $k_3(\dfrac{X-\mu}{ \sigma})=\dfrac{k_3(X)}{\sigma^3}$ and skewness kurtosis $k_4(\dfrac{X-\mu}{ \sigma})=\dfrac{k_4(X)}{\sigma^4}$. To use above identity, one needs to derive 3 and 4-th cumulan...
I am writing a meta-analysis on the complication and reoperation rates after 5 treatment modalities of distal radius fractures. Currently I am doing a post hoc analysis on the differences of 7 types of complications between the 5 treatment modalities seperately(4 comparisons, 4 of the treatments compared to the gold st...
I am comparing the manual calculation of ridge regression again lm.ridge function, however, it seems like the answer of the 2 techniques do not match. They only match when $\lambda=0$. set.seed(1) x <- rnorm(1000,1,2) x <- matrix(x,ncol=10,nrow=100) y <- rnorm(100,2,5) xs <- scale(x,T,T) ys <- scale(y,T,T) p <- dim...
I'm interested in modelling a trait Y using variables X1, X2, X3. I'm using a linear regression model to predict trait Y using the independent variables and therefore want to avoid multicollinearity in my model. However, in order to test internal validity I might wish to calculate Cronbach's alpha which gives a good va...
I have a number of data points, which result in the array of box plots similar to the below. For each diagnosis, I tested two different times, P1/P3, in two different conditions, "all" and "subset". I would like to test whether the difference between the difference between P1 and P3 is significant for each metric, fo...
Scenario: I want to give advice on how long a post should be for maximum number of interactions (lets call "Likes"). I have Description Length and Likes for each post. (I've excluded posts with no Likes, is this valid or a statistical faux pas?) Scatter plot of Likes v Description Length: I could just look at the plo...
I have been trying to fit a lasso model using cv.glmnet. I tried to implement four different models (3 using cv.glmnet and 1 using caret::train) based on standardization. All the four models gives very different coefficient estimates which I can't seem to figure out why. Here is a fully reproducible code: library("glmn...
Can we perform fine tuning using the pre-trained weight file when the network is slightly changed? I have changed the CNN from classification to regression network and rest of the network is the same. I have a pretrained model file for classification.
I've got a two conceptual questions about RNNs, particularly LSTMs, which I just can't figure out on my own or with the tutorials I find on the internet. I would really appreciate if you could help me with the following: If I understand correctly, the states learned within a LSTM are only relevant for one sequence. So...
I have 10 subjects and want to analyse the predictors of overall survival and progression free survival using log rank test . Will conducting log rank test on such a small sample size will be statistically sound ? can we plot a overall survival curve for entire 10 subjects? what should be the minimum sample size for...
Assume a Gaussian linear model $y=X\beta+\epsilon$ where $\epsilon \sim N(0,\sigma^2I_N)$. In Hastie's Elements of Statistical Inference, it is stated that a $1-2\alpha$ confidence interval for $\beta_j$ is $$(\hat{\beta}_j-z^{(1-\alpha)}\sqrt{v_j}\hat{\sigma},\hat{\beta}_j+z^{(1-\alpha)}\sqrt{v_j}\hat{\sigma})$$ where...
Can anyone point me toward tensorflow code for the reparameterization trick for non-normal distributions? (uniform, beta, poisson, negative-binomial, etc?) Both for the sampling stage and the KL loss stage? I am trying to understand and implement latent variables in tensorflow models. I roughly understand how the repar...
Do i need to do another test after KW to account for covariates or is there a way to account for covariates when doing the initial KW test in SPSS?
I'm a little bit confused about the posterior distribution for Gaussian processes. If we consider the case with noise-free data, we have a prior $f|X \sim N(0, K)$. If we are given $\{(x_i, f_i): i=1.,\ldots, n\}.$ The joint distribution of training outputs $f$ and test outputs $f_*$ according to prior is $$\begin{bmat...
It is possible to add features to internal layer that add additional data to an image, things like where or when or who or temperature other known things that can influence in the prediction? I think that it must be introduced in the fully connected layers but don't know who to do it. I'm using keras or tensor flow
I have read through most of the threads on this forum and several must-read materials on HLM/mixed effect models. Most empirical settings where people use this method focused on education (i.e. student-> class -> school) or natural grouping process as a result of social-economic segregation (i.e. residents -> county ->...
To make it a bit easier I am using round numbers (integers) in this example. We have to calculate the value for consumer acceptance. Therefore we have the following input variables (fat = 3; salt = 2). The transformation function used is g(x) = 3x. The weights (e.g. -3, 2; -2) and biases are displayed in the scheme a...
I'm working on a homework problem involving conditional probability. A simplified model for the movement of the price of a stock supposes that on each day the stock’s price either moves up 1 unit with probability p or moves down 1 unit with probability 1 − p. The changes on different days are assumed to be independent...
Suppose we have a continuous random variable $X$ and a transform $f(x)$ which is strictly increasing. Let $Y=f(X)$ be the variable after transforming. If $m_x$ and $m_y$ are the medians of $X$ and $Y$ then we have a nice property that $m_y=f(m_x)$. This should be obvious because 50% of the values of $X$ are below $m_x$...
I have been stuck with a problem for a couple of days regarding the distribution of outcomes from a two-stage process. Specifically, what is the distribution of the number of successes in a poisson process followed by a series of bernoulli trials, where the number of trials is determined by the result of the poisson pr...
Sorry for the bad screengrab. I'm trying to figure out why the conditional probability values in the question below are the values that they are. The values for d1 and i1 are unconditional probabilities just assigned to those conditions and the table are the conditional probabilities for each variable combination. I'm...
If one aims to maximise the likelihood of a quantity modelled with a Gaussian with respect to another quanity, an expression as follows may be maximised(Gaussian Log Likelihood): $P(f(\mathbf{x}_{i}) | f(\mathbf{x}_{j}), \mathbf{\Sigma}) = - \frac{N}{2} - \frac{1}{2} \sum_{i = 1}^{N}(f(\mathbf{x}_{i}) - f(\mathbf{x}_{j...
I m a PhD student in the biomedical field. I have an issue about the use of Pearson correlation coefficent (PCC) in the context of my experimental procedure. I have several slices of tissue where I measured the content, the localization and the intensity of two proteins. So I have obtained two images of the same tissu...
I have a variable X with 100 samples, each is 1 (success) or 0 (failure) Thereafter I perform somekind of manipulation, and recollect data, so I get 100 more samples that are 1 or 0, How can I check for significane rise
I have a set of data with lots of events and I want to try and predict the outcome of the event. I have built a basic conditional logistic regression model but I want to add categorical variables that describe the event. When I add them in either as binary [1,0]'s or factors they are removed, presumable this is becaus...
Say I am responsible for reducing crime rate in an area and I build a causal graphical model for the local crime rate. Assume I can only conduct observational study. How do I evaluate my model?
I looking for examples where someone has graphed the results of a simple linear regression model where the dependent variable is continuous and the predictor variable is categorical with more than two categories. For example, predicting mean temperatures from 3 different types of ovens. I am finding plenty of graphed e...
I've got 700 data rows with about 6 features and there are 300 different class labels. Most of the classes have got only 2 data rows (ca. 250 classes). I know there are too many classes for this data set. But I have to do some kind of classification with Machine Learning (scikit). I already tried SVM, but the result wa...
I am reading the book, "Machine Learning in Java" published by Packt publishing, and written by Boštjan Kaluža; and there is a paragraph at the book, and I can not understand. At the book, there is a concrete dataset that comprises real traffic to Yahoo services, along with some synthetic data. Here is the snippet of ...
I apologize that I can't be completely explicit because this is for review of an unpublished article. The design involved a cluster randomized trial of a new procedure to monitor an illness. Health care centers were randomly assigned to treatment or control. They were also matched on two relevant conditions - but the...
Question: Let $Z_{i}$ ~ $N(0,1)$ be independent random variables for i = 1,2,... . Obtain the limiting distribution of $$\frac{1}{\sqrt{n}}\Bigl(\sum_{i=1}^n\Bigl(Z_{i} + \frac{1}{n}\Bigr)\Bigr)$$ using moment generating functions. So far I have: Let $Y_{n}=\frac{1}{\sqrt{n}}(\sum_{i=1}^n(Z_{i} + \frac{1}{n}))$ $\\M_{y...
I'm trying to help a colleague with a proposal to assess the impact of an intervention (let's call that "Variable A") and understand why the intervention is working. The intervention has three conditions (one of the conditions is a control group). My friend thinks that the intervention will impact Variables B, C, and ...
I have recently been looking through an Ipython notebook that analyzes the Iris dataset. At one point in the notebook I read the following: I'm confused about this statement. Why would delteing these 5 rows bias our results, and how would mean imputation help with this? Thanks
Noob here trying to make sense of log odds calculation. I am trying to do some transformation on unemployment rate data. I read one paper that suggested performing log odds and this is denoted by: x(t)=log(u(t)/(1-u(t) )) When i applied that transformation as is, I get negative unemployment values. Is that normal? une...
Let $x_i's$ and $\epsilon_i's$ be iid $\sim normal(0,1)$ i$i=1,2... n$ $n>=3$ The objective is to find the MLE for $\theta$ in $y_i=\theta x_i+\epsilon_i $ and check if it is unbiased. The MLE I got is $\theta^*=\frac{\sum_{i=1}^ny_i}{\sum_{i=1}^nx_i}$ When I try to check for unbiasedness, i run into a problem: $E(\the...
Let's say I am taking a sample size of n=1000 of a country population, and every one of them decides with '1' (for a specifc political party) or with '2' (for another political party). Which distribution is given if I want to calculate the confidence interval for a proportional value pi?
I want to know how to show that $$p(a) = \int \delta(a - w^T x) q(w) dw$$ is gaussian, where $q$ is gaussian and $x$ is fixed, and $\delta$ is the dirac function. Everything below is just some motivating background and thoughts on the problem. In bayesian logistic regression, we end up with a posterior distribution on...
Currently I'm doing research about distribution. I am trying to find the best distribution fit to some continuous data. I'm using 3 goodness of fit tests, namely Kolmogorov-Smirnov (KS), Anderson-Darling (AD) and Cramér-von Mises (CVM): library("fitdistrplus") library("actuar") x<-c(1.89,5.73,5.27,6.77,1.08,7.5,4.24,1....
I'm trying to do some analysis on customers behavior. Basically, I have information on customer's loyalty points activities data (e.g. how many points they have earned, how many points they have used, how recent they have used/earned points etc). I'm just wondering how should I go about clustering customers based on th...
I am trying to build a CNN from scratch to understand how it works. I am having problems designing the convolution layers, specifically with its depth. Suppose that each image I put at the input is in grayscale and of size 256x256. That means that the initial dimension is 256x256x1. According to what I've read and unde...
Do we need to mention we used the cross-validation technique in our statistical section of the publications? If yes, is there any standard format for how to state this?
I am running normal glm model in R, where glm(outcome ~ treatment + covariates, family=binomial(logit), data=data) Pooled model with fixed effects of panel wave shows a significant effect of treatment on the outcome variable. However, when I conduct the same model by panel wave, glm(outcome ~ treatment + covariates, ...
I was going through this this as an introduction to gradient boosting to get an overview. The algorithm described for regression is Let n be number of samples and be the response variable. and be the model/prediction for be the Loss for , Let it be least squared error. Hence negative gradient w.r.t will be S...
I'm a bit confused on interpreting the coefficient estimates for a multiple linear regression model with categorical variables and their interaction. The dependent variable is pesticide levels (DDE ng/g) in songbirds. The independent variables are Status (migrant vs resident) and location (Texas, Yucatan & Costa Rica)....
I have asked N individuals for their estimate of the presence and quality of phone numbers in a database, i.e. missing, wrong, correct. I have received triples of percentages, e.g. (20, 30, 50) How do best summarize the result and provide confidence intervals?
I have a problem understanding the solution of an exercise: $F_x(x) = 1-(\frac{\sqrt{3}}{2}x + \frac{3}{2})^{-3}$ for $x \geq \frac{-1}{3} \sqrt{3}$, $0$ elsewhere and i am asked to compute the expectation. I know: $\int{}^x_{\frac{-1}{3} \sqrt{3}}$ $f(x)dx$ $:= F(x)$ $\int{}^\infty_{\frac{-1}{3} \sqrt{3}}$ $f(x)dx$ $=...
I found an outlier using the outlierTest function in the car package. However, I can see from the results that the Externally Studentized Residual and p-values. This is a result. This indicates that the 718th observation has an outlier. right?? The code to derive the result is as follows. credit<-read.csv("german.csv"...
We, bayesians, usually use non-informative priors for the parameters like $p(\beta)\propto 1$. Someone told me that such a flat prior is informative to some extent for non-linear functions of the parameters $\beta$. I thought this sort of prior was always uninformative for any kind of functional form. I would apprecia...
I have a data set with 22990 samples. I am training a binary classification model (logistic regression) and use 67%/33% splitting for train-validate/test sets. The model is 10-fold cross validated. To assess the stability of the metrics on the test set due to random splitting, I repeat the train-validate/test procedure...
Assume that $A$ and $B$ are two independent random variables both following a normal distribution with a zero mean and a variance $\sigma^2$. How to calculate the distribution of $m \cdot (A+B)^2+n \cdot \mathrm{abs}(A-B)$ ($m,n$ are constant)?
Let $(x_1,y_1)(x_2,y_2)... (x_n,y_n)$ be independent pairs such that $y_i=\theta x_i+\epsilon_i$ where $x_i$ and $\epsilon_i$ are iid Normal (0,1) for $i=1,2..n$ It was previously computed that $f(x,y)=\frac{1}{2\pi}e^{\frac{-1}{2}x^2-\frac12(y-\theta x)^2 }$ And that the MLE for $\theta$ is $\theta^*=\frac{\sum_{i=1}^...
I'm using lme4 package to run a mixed-effects logistic regression. I have a glmer model, and to assess its goodness of fit I created the binned residual plot. Unfortunately, 95% of the bins are not within the +/- 2 limit lines. So what to do now? Here is the plot: I tried to use the influence.ME package to detect the ...
I would like to know CAGR() on ratio variables is possible. For example, A = num of item sold / number of customers, and I have series of A ratios for five years. Then, is it okey if predict sixth year of ratio A using CAGR?
I am testing a hypothesis with emotion as my (Y) dependent variable. I am wondering if you can refer to emotion as a deep/broad dependent variable? Becausse it is may be influece by a broad range of factors. Definition of broad: "covering a large number and wide scope of subjects" I wanna say that the variable is being...
Let's say I have two independent random variables $X$ and $Y$. Because of this independence, I can evaluate (for example) the following functions: $$f(X,Y)=X+Y$$ $$g(X,Y)=|X-Y|$$ But I can't necessarily extend this independence property and say that: $$f(X,Y)$$ and $$g(X,Y)$$ are independent, can I (and therefore evalu...
How can I transform multi response probabilities to a logit space such that: $$ \pi_{i,j}=\frac{exp(p_{i,j})}{\sum^J_{k=1}exp(p_{i,k})}$$ For the binary response this transformation is: $$ p_{i}=log(\frac{\pi_{i}}{1-\pi_{i}})$$ But is there a formula that generalizes to multinomial respons or does I have to resort to ...
In an answer to another question it is asserted that the Welch correction to the t-test makes it non-parametric, and this assertion isn't challenged by a frequent contributor with a deep level of statistical knowledge. In what way does the Welch correction make the test non-parametric? Is it simply that the change in ...
Let $X_1, X_2,..., X_n$ from $N(0,\sigma^2)$. What I want to get is not $E(median(|X|))$ , but $E(median(|X_1|,|X_2|,...,|X_n|))$ Reason why I need it is because I'm studying LOWESS, and in using bisquare wieght function, weight of residuals within the 6m(m is a median) will be 1, elsewhere its weight would be 0. And ...
I am trying to forecast a time series based on other monthly time series variables. The variables are: endog -> number of users; exog -> marketing campaigns(in euros), Number of Updates, number of partners, Google Search views and Release(binary). I found that the VAR model is a good approach to do that. However, on...
I am trying to enhance the contrast in the images I get after scanning a surface using Thermography (Principal Component Thermography ~Rajic, which is basically an application of Principal Component Analysis) to see the defects clearly. But my question here is to understand the difference between empirical orthogonal ...
I would like to evaluate models based on their goodness of fit with data. Each model produces predicted values that should be correlated to the data but are not necessarily scaled the same way. So far I have compared different models by looking at the correlation between predicted values and the data but correlations d...
can anyone please give me some idea or links as to how the autoregressive neural networks work for time series? I tried to go through the thesis of Sebastian Dietz, but I could not able to understand the network intuitively. Any help is appreciated, thanks in advance.
I've uni-variate demand data (Weekly data for 2 years), and wish to do a directional forecast based on the data. Magnitude of the forecast is not important here, but directional accuracy is of foremost importance. Please suggest what robust methods can be chosen?
There's a deep learning course on Udacity made by Google Brain. One of the course's videos talks about validation and test sets size. That video explains that a change in 30 samples is usually significant, but no demonstration is provided. I want to know why they say that a change in 30 samples is significant and wher...
I have a categorical dependent variable (emerged/not emerged) and two predictors 1) treatment (continuous time, 28 to 35h) and 2) group (test/control). I want to know if test group emerges earlier than control group. I have a n=20 in each group+treatment, but I get structural zeros as control group never emerges before...
The wikipedia page for multilevel model states: The dependent variable must be examined at the lowest level of analysis. I am interested in predicting measures at higher levels of analysis. In simple cases, I understand there are ways to aggregate lower level data. However, if we had unequal number of lower level o...
While reviewing the basics of ordinary least squares (OLS) regression in a matrix context, I stumbled upon the variance covariance matrix of the residuals. In an OLS context, the population model is usually assumed to be (for a cross-section of data): $ \begin{aligned} & y_i = \textbf{x}_i' \beta + u_i. \end{aligned} $...
For a linear regression model, the data for a continuous input variable X is such that 90% of the data lie at a value far short of the maximum possible. For example, say the range of X (in months) is between 1 and 100,the median of X is 25 and the 90th percentile is 60 months. Most of the input X values (90% in the exa...
This might be a little unusual, but please bear with me. I'm working on a theoretical exercise in chromatography (chemistry), a method that is used to separate different molecules. It is assumed that after performing the chromatography procedure, two different molecules separate from each other along a one-dimensional ...
I understand that the forward pass of a feed-forward neural network can be thought of as a hidden layer-wise composite function, and backpropagation works by recursively applying the chain rule to that composite function to find local gradients. What exactly does each application of the chain rule during backpropagatio...
I'm trying to compare a set of four linear mixed-effect models (run in R, lme4::lmer), and, judging by what I've read, there seems to be some debate as to the best way of doing so. I was hoping someone might provide some much needed input. I started with two models: m1 <- lmer(IA_DT_PC ~ CONDITION * IA_LABEL + (1 | PAR...
I am trying to prove a result: intuitively, the GMM estimator should have a larger variance under homoskedasticity than LS and vice versa under heteroskedasticity. We are working with various probability (VP) sampling with $b(X_i)$ being the probability of $i$th observation to be retained in the sample, so, in order to...
Is it a big no no to double data in order to increase sample size? I have a sample size of 27 which really doesn't give me much to work with when running tests. Would this be statistically incorrect? Probably an easy answer to this but I can't find anything about it.
I have a data set with 45 responses for an open ended question from a survey. The two raters classified each of the response into 7 nominal categories. Each rater was allowed to select more than one category to classify each response. That is rater 1 can say a response can fit into category 1 as well as category 7. Ca...
Copula data is the data in [0,1] with unifrom margins. Also, pseudo data is in [0,1]! In copula packages copula and VineCopula, we need to transform the data to be pesudo observation even if we generate them using rCopula, Why? If I use copula model, then when I can use copula data and when I need to use pseudo data? A...
Background What equations are used for calculating a two-way ANOVA across 4 groups consisting of genetic knockouts ($KO$) and wild-type ($WT$) specimens some of which have undergone treatment the rest have been maintained as a control: $KO_{control}$ X $WT_{control}$ X $KO_{treatment}$ X $WT_{treatment}$ The control gr...
I have a set of observed ($X$) and theoretical ($Y$) data of length $N$: $$X:\{x_1\pm \sigma_{x1}, x_2\pm \sigma_{x2}, ..., x_N\pm \sigma_{xN}\}\\ Y:\{y_1\pm \sigma_{y1}, y_2\pm \sigma_{y2}, ..., y_N\pm \sigma_{yN}\}$$ I know that their relationship is linear, and I need to find the best fit $(a, b)$ parameters for $y ...
Let's say I have a model of the form: mdl <- lm(y ~ x1 + x2 + x3, data=dat) I am interested in knowing the relationship between x3 and y when x1 and x2 remain unchanged. To do this, I do the following: dat$x1 <- mean(dat$x1) dat$x2 <- mean(dat$x2) dat$x3 <- dat$x3 pred <- predict(mdl, data=dat) mean(pred) If I inte...
Suppose I have a binomial test, with 9 successes in 12 trials, expected p=1/3. In other words, in R you might do: binom.test(9,12,p=1/3) Now, I'm under the impression that relative risk is an appropriate effect size measure. In this case, RR=0.75/(1/3)=2.25. First - is this actually an appropriate effect size measure?...
In ordinary least squares, for example in an experimental design case, I obtain the regression coefficents by: $ \hat B = {({X^t}{X})}^{-1}X^ty$ Then, my null hypothesis for each coefficent is: $H_0 : \hat B_i = 0$ $H_1 : \hat B_i \neq 0$ Next, by assuming the coefficents follows $t$ distribution: $t_{calculated} = \df...
I have 1 week of data formatted in the following way in R. $$ \begin{array}{c} \text{Category1} & \text{Category2} & \text{Category3} & \text{Date} & \text{Metric1} & \text{Metric2} & \text{...} & \text{Metric7} \\ \hline X & a & 1 & 7/1/17 \\ X & a & 2 & 7/2/17 \\ X & b & 1 & 7/3/17 \end{array} $$ My goal is to predic...
To demonstrate the correctness of a frequentist estimator, it is common to simulate an experiment N times (with N being large), then show that 95% of the resulting N confidence intervals cover the true parameter values. What's the equivalent simulation exercise for Bayesian model? The Bayesian credible interval quantif...
Problem Have a time series of data and want to look at changes over long periods so want to use overlapping changes, then want to compare these overlapping changes to overlapping changes from a normal distribution in a QQ plot. Questionso far I have had to resort to creating overlapping data via Monte Carlo from a norm...
I got a test data set to work on in order to implement feature scaling and get better results with gradient descent. It looks like this: x_0 x_1 x_2 y 1.00 1.31 -2.26 3942934 1.00 -1.9 2.32 2384832 ... ... .... ... If you are wondering why the x_0 feature is always 1, it's because as I use a mult...
I am looking for an appropriate statistical test that will compare two frequency distributions, where the data is in the form of two arrays (or buckets) of values. For example, suppose I have two distributions, where A, B, and C are observed outcomes from a software logging system (such as whether customers clicked on ...
I have 2 questions. 1)My Bayesian output is providing some trouble. I have data that will vary across 5 countries. This means my group level has a small n of 5. This results in my data hovering around the mean and provides different results from the frequentist. When trying to decide how to interpret the data and ul...
One answer to this question (why squares in variance?) explains, that it is derived from the assumption, that the error is normaly distributed. Unfortunatly I fail to see, how exactly this leads to the definition of the variance/sd.
for example the data has a binary response y, a numerical predictor week, and some categorical/factor predictors: ap, hilo, ID, trt: y ap hilo week ID trt 1 y p hi 0 X01 placebo 2 y p hi 2 X01 placebo 3 y p hi 4 X01 placebo 4 y p hi 11 X01 placebo 5 y a hi 0 X02 drug+ 6 y a...
I have u survey where respondents answer with I use/I don't use on 30 questions (30 dependent variables). One independent variable is age (16-74). I have a large sample N=1138 (unequal groups). The question is whether Point-biserial correlation is the right test to find a correlation between each pair of variables (sca...
Let $X= B(n,1/2)$, $Y=B(n,1/2 + \delta)$, for a small $\delta >0$ be two Binomial Distributions. Question 1. I am looking for a lower bound on the Total Variation Distance the two Binomials $X,Y$. My attempt at deriving a lower bound is the following: Since $X, Y$ have huge variance we can approximate each of th...