instruction
stringlengths
9
38.7k
I need to know the difference between a non-linear neuron vs non-linear activation function AND linear neuron vs linear activation function.
(Sorry that I've previously formulated the question in a wrong way, which confused everyone including myself. This is a better version of the question. Thanks!) Here's another order statistics question that I wish to ask. Question Consider $n$ random variables $x_1, x_2,\cdots x_n\overset{iid}{\sim} D$. Where $D$ is so...
If a neuron uses a non linear activation function such as a sigmoid function, then the output of that neuron can be any value between 0 and 1. suppose if the activation function results in value like 0.6, what will be the output of that neuron? Should it be 0.6 or 1?
I recently came across the distribution $U(\theta, k \theta)$ (where k is known) in the context of statistical theory (as a nice toy example for finding MLE and the likes). However, I was wondering if there are real use cases where one might wish to use this distribution for modelling something. But I couldn't seem to ...
There are two main probabilistic approaches to novelty detection: parametric and non-parametric. The non-parametric approach assumes that the distribution or density function is derived from the training data, like kernel density estimation (e.g., Parzen window), while parametric approach assumes that the data comes fr...
I have data sample size of almost 15,000 cases. The dependent variable is a dichotomous variable stating whether the patient has the disease or not, Yes=1, and No=0. I have 12 more independent variables which are continuous as well as dichotomous. My question here is, before I apply the logistic regression, I need to k...
I am trying to calculate if there is a dependence between two categorical columns, or a significant cooccurence of two categorical variables. Let's say I have columns A and B, and and out of 200K rows A is '1' 13683 and B is '1' 35171 times. Out of this, 2871 rows have both A and B '1' at the same time. How do I calc...
I have computed a truncated normal distribution, which total probability density (i.e. area under the curve) is equal to 0.92. The distribution represents well the reality of the phenomenon I am investigating, i.e. I am expecting that when x = 0 the probability will be positive (non-zero). The mode is also where I exp...
I heard somewhere that in astrophysics, there are more bayesians than frequentists (although in general, I think that bayesian community is smaller). Is there something special about "astro" data what makes it more suitable for bayesian methods? EDIT: The motivation for my question was also this kaggle competition, whe...
Let $F$ be a distribution function on $(\Omega,\, \mathfrak{F},\, P)=\left((0,1),\ \mathfrak{B}(0,1),\ \lambda\right)$ where $\lambda$ denotes Lebesgue measure. Define $X:\Omega \to \mathbb{R}$ by $X(\omega) = \sup(y \in \mathbb{R}: F(y) < \omega)$. 1 Show that $\forall x \in \mathbb{R}, (\omega: X(\omega) \leq x) = (...
The restricted boltzmann machine is a generative learning model - but it is also unsupervised? A generative model learns the joint probability P(X,Y) then uses Bayes theorem to compute the conditional probability P(Y|X). However, the RBM is an unsupervised feature extractor. There is no Y! How can the RBM be said to be...
I want to generate random numbers according to a distribution curve like the inverse cummulative normal curve. But the curve should allow parameters to adjust the parameters as shown in the image, namely, the slopes (A, B, C), min and max values, between 0.0 and 1.0 in a meaningful manner like in terms of variance, mea...
Two quick questions: What's the maximum likelihood estimator of the parameter of an homogeneous Poisson counting process? To estimate $\lambda$ I'm currently using number of events/total time, $N(t)/\Delta t$. What distribution does this statistic follow?
I'm new to statistics and the only software i know how to use is SPSS. I need help.... I have 3 independent groups with sizes: 24, 27, 37. I wanted to test the difference between the means of their ages using ANOVA. *mean age ± SD* *Group1: 40.7297 ± 6.01225 ...
I'd like to run a chi-squared test in Python with scipy. I've created code to do this, but I don't know if what I'm doing is right, because the scipy docs are quite sparse. Background first: I have two groups of users. My null hypothesis is that there is no significant difference in whether people in either group are ...
I want to estimate a covariance matrix from data with some missing values. Ideally I'd like an R package but python could be ok. R has some built in ways of doing this. You can use cov.mat=cov(X,use='pairwise') Or the same using cor (correlation). The trouble is that if you do this with cov, the matrix will not be g...
I have a large data set that I would like to cluster using spherical K means algorithm. However, I am relatively new to this subject and R in general. Most of my knowledge is self taught and I am still in the beginning stages- I have read all about K means clustering in the past few days and I would like to apply it to...
I have an unbalanced panel data set with more than 400,000 observations over 20 years. My panel variable is a person id and my time series variable is the year. The persons are from all over Germany which means that they are from different regions. To account for possible correlations between the persons within the sam...
Players of a certain TRPG have characters with 6 ability scores, each ability score ranging from 3-18. One method of generating those is by rolling 4d6 drop lowest for each of the scores. That means four six-faced-dice are rolled, and the three highest results are added. What's the expected highest difference in the su...
I was talking with a colleague who told me that at the time of making logistic regression across a population did not have to worry about assumptions such as multicollinearity, because when analyzing the entire population estimated betas are "actual parameters" and since to "multicollinearity only affects the significa...
I have a dataset containing a binary response variable and a few numeric predictor variables. I would like to use Conditional Inference Trees algorithm in R using the ctree function in party package. However, the outcomes in the dataset are correlated because a single individual is contributing to more than one record...
In meteorology we have the concept of monthly rainfall, which is just the sum of daily rainfall over that month. Now, given this extreme example: Situation 1: First day of month: 210mm All remaining days: 0mm Monthly rainfall = 210 + 0 + ... + 0 = 210mm Situation 2: All days of month: 7mm Monthly rainfall = 7 * 30 = ...
I have some data and I would like to test the hypothesis that they come from a homogeneous Poisson process. I can of course look at the inter event times and test if these are exponentially distributed. However this misses lots of reasons why it might not be Poisson it seems . Is there a list of tests, or a particular...
If I have 3 groups that I want to compare with a t-test (correcting for multiple comparisons afterwards) but one of the groups has different variance than the other two, should I use a Welch correction for all comparisons or just for the comparison involving the group with unequal variance?
Can anyone explain why having too many p-value less than 0.001 is alarming? Like what happens to my model right now: All independent variables are categorical except for Calendar_Year. There are 682211 observations in my data set.
I can't find any worked (non-trivial) practical example for a likelihood ratio test, believe me I have spent hours looking. Here is a question I've been trying to complete but I can't get any further. Can anyone show me how to complete this, and also tell if I am on the right track with the work I have done? Question T...
I am trying to quantify degree of inflation (ie. how best the observed data points fit to expected). One way is too look at QQ plot. But I would like to calculate some numeric indicator for inflation - means that how well the observed fits the theoretical uniform distribution. Example data: # random uniform distribu...
When modeling time series one has the possibility to (1) model the correlational structure of the error terms as e.g. an AR(1) process (2) include the lagged dependent variable as an explanatory variable (on the right hand side) I understand that their are sometimes substantial reasons to go for (2). However, what ar...
I'm trying to model the probability of a song reaching Billboards top 10 over time. My data has the columns "Day since release", "If reached top 10". For example, [12,1] means the song hit top 10 on the 12th day since release, and [350,0] means the song has been out for 350 days and has not become a top 10 hit yet. Any...
I am trying to fit a quadratic curve across a scatter plot of two variables. Since both variables are noisy I cannot use an ordinary least square regression (OLS) and I would like to have a symmetrical answer regardless which one I choose to be the independent variable. Total (orthogonal) least squares regression seem ...
I have fitted a zero-inflated beta regression model to my data in R, using the gamlss package. However, I am unsure of how to assess the fit of the model to my data, i.e. finding a coefficient of determination. Does anyone know if this can be easily calculated from a zero-inflated beta regression model?
I have two time-courses. Both are the same length. Both are univariate. Each represents the average EEG signal from a unique subgroup. The two subgroups do not have the same number of subjects. I would like to find individual time-points where the difference between the two groups is statistically significant. It seems...
I am wondering if the following equality holds - $Var(X + U | X) = Var(U)$? where $X$ and $U$ are two independent random variables? It seems can we say $Var(X + U | X) = Var(X|X) + Var(U|X) = Var(X|X) + Var(U)$ as $U, X$ independent? And then $Var(X|X) = 0$? But that doesn't seem right. Can someone clarify this for me,...
I know Gaussian Progress Regression is completed determined by its mean and covariance functions. For given training and test data, I can compute the covariance matrix correctly like a machine, and I can also describe the main procedure of GPR (compute the joint probability over training data and estimation point, cut ...
I have two sets of continuous multivariate observations $X=\{x_1, x_2, ..., x_d\}$ and $Y=\{y_1, y_2, ..., y_d\}$. How can I justify if they are statistically independent or not? For simplicity, I assume another variable $Z=\{x_1, x_2, ..., x_d, y_1, y_2, ..., y_d\}$ by concatenating $X$ and $Y$. Moreover, I assume mul...
I have calculate the estimates through Maximum Likelihood procedure with model of six latent variables(presented in big ellipse) with respective observed variables (presented in rectangle) in AMOS 20.0. The relationship between latent and observed variable represent factor loadings which should be greater than 0.5 in m...
Consider the AR(1) model with iid innovations with finite mean and variance. Also, let $X_0 = 0$. \begin{align} X_t = \phi X_{t-1} + \epsilon_t \end{align} The goal is to derive the asymptotic distribution of the sample mean, when $|\phi| < 1$ as well as when $\phi = 1$ or $-1$. From what I know, to derive such a resul...
I am attempting to update the design of an annual survey which measures the percent-deficient of 26 different asset inventories. Most of these assets don't occur on every sampling unit and some of them are quite rare (occur on around 5% of sampling units). The asset deficiency rates can be estimated by either a simple...
the following is part of a proof from van der Vaarts book on asymptotic statistics: I want to show that if for a continuous distribution function F $$P\left(\frac{\hat{\theta}-\theta}{\hat{\sigma}}\leq x\mid P\right) \rightarrow F(x) \mbox{ and } P\left(\frac{\hat{\theta}^\ast-\theta^\ast}{\hat{\sigma}^\ast}\leq x\mid ...
Let's say I want test the consequences of assuming a normally distributed response variable in a glm model when it is really Poisson. I simulate some data with some quadratic terms. set.seed(1) N = 1000 x1 = rnorm(N,0,1) x2 = rnorm(N,0,1) b1 = 0.2 # I set the linear terms equal but opposite sign b2 = -0.2 g1 = 0.2...
I have a problem with the forecast function for ARIMA models in R. It calls predict that calls KalmanForecast. Ok...here's the deal. the mean one-step forecast of the Arima object produced by this call forecast(Arima, h=1)$mean[[1]] is often significantly different from the result of a manual forecast by conditional e...
I have samples from a highly skewed (looking like an exponential distribution) dataset about users' participation (e.g.: number of posts), that have different sizes (but not less than 200) and I want to compare their mean. For that, I'm using two-sample unpaired t-tests(and t-tests with the Welch’s factor, when the sam...
I am trying to apply the method proposed by Chib in Marginal Likelihood from the Metropolis Hastings Output to calculate the marginal likelihood of a logit model the includes latent variables. Specifically, $Pr(Y=1)=\exp\frac{\beta x+z}{1+\exp(\beta x + z)}$ where an unobserved variable $z \sim N(0,\sigma)$. I will b...
First I'm sorry I couldn't figure out the most accurate title for this question (suggestions welcome). Here's the case: I want to implement spinners like the ones on this page: http://www.nytimes.com/newsgraphics/2014/senate-model/ I more or less get the idea: for each state I will need a separate instance of a Gaussia...
General background I've administered two types of questions to students multiple times. Type 1 I've administered six times, and type 2 I've administered five times. The two questions get at the same basic idea but in different ways. Each "question" is just a single multiple-choice question; students provide just one an...
Estimating Unknown Sparsity in Compressed Sensing is a paper about sparse signal. I am just learning the concepts. In the first paragraph, it says that when the number of observation data samples $n$ is less than the signal dimension $p$, then the desired signal $x$ is sparse. I have never come across he term signal di...
I am learning the concepts of Sparse regression and facing initial hurdles in terminology. sparse regression model explains the definition of what is meant by sparse. When the number of samples $n$ is less than the signal dimension $p$ then we say it is sparse regression model. For a model, $x_t = a1x_{t-1} + a2x_{t...
In SVMs, is the solution to the minimization problem $$\textbf{w} = \sum_{i=1}^{n} \alpha_i x_i y_i $$ and once we know $\textbf{w}$ we can get $\textbf{b}$? In plain English can somebody please describe the solution above? Basically the hyperplane that separates the data with the maximum margin is a linear combination...
I've conducted two separate HLM analyses, each with two IVs predicting to the same DV in the same sample. The problem that I've encountered is that I would like to compare the magnitude of the resulting coefficients across each analysis to determine if they are equivalent. I'm using dyadic data, which is why I used HLM...
I have a spreadsheet with seven parameters and their values for 9000 samples. I need to determine which are dependent parameters and which are independent, i.e. which parameters control the changes in the other ones. Please let me know which algorithm might be helpful. I have thought of PCA and regression but I did not...
I am trying to run a model validation/fit in AMOS using 18 items and three factors. The data is ordinal (1-4 scale) for each item. My data is non-normal both on a univariate and multivariate level. I am unsure whether I should estimate using Bayesian techniques or whether I should use a ML method and adjust using the B...
They are both regression methods for discrete dependent variables. I have a discrete dependent variables like $\{A, B, C, D, E\}$, and $A$, $B$, $C$, $D$, $E$ can be cardinal data(10, 20, 30...) or non-cardinal data(like car, train, and ship). Which model is proper for each case?
Suppose there exists a simple linear equation, where the dependent variable y(time series; measurements available) depends on x1 and x2. If the parameter multiplier of x2 is time dependent and the multiplier of x1 is a deterministic variable. How to find the pdf of the parameter multiplier of x2. Given the time series ...
Most texts I have read about Poisson-regression assumes that the data is available in an already grouped form, i.e. counts are given for each unique covariate combination. For instance, we have (in R) DataGrouped<-data.frame(Gender=as.factor(c("M","F")),Counts=c(6,2)) DataGrouped Gender Counts 1 M 6 2...
My data set is an annual panel data set on individual income, the year of unemployment and a number of demographic variables. I run an OLS regression of the form $y_{it} = \sum _{j=1} ^n D_{j,it} \beta_j + \sum_k x_k\delta_k + u_{it},$ where $y$ denotes income and $D_1,...,D_n$ are $n$ mutually exclusive dummy variable...
I have a question concerning tests between a large control cohort and a smaller number of cases in a simple comparison. In particular I was wondering about the differences of baysian and frequentists approaches. The question is partly inspired by this recent question. So lets say I have $n_a=10000$ and $n_b=10$ with $p...
I have a problem.. I'm trying to create a multiclass SVM with probability output. The SVM is working so far, what means, that the accuracy is ok (see the last picture). But the probability estimation does not work so far. I use the one vs one multiclass encoding. Now as Platt (http://en.wikipedia.org/wiki/Platt_scaling...
I'm trying to calculate a bivariate normal distribution in matlab(with mvnpdf), but the pdf I obtain has a strange shape with several peaks. This is the code I use: s=[3,1]'; C_ee = [0.0473 -0.1446; -0.1446 0.4440] x1 = -5:.2:5; x2 = -5:.2:5; [X1,X2] = meshgrid(x1,x2); F = mvnpdf([X1(:) X2(:)],s',C_ee); ...
I have a huge data set that looks roughly like this: x = [x1, x2, x3, ..., x800] x is how much percent the real project cost is different from the planned project cost y1 = [y1.1, y1.2, y1.3, ..., y1.800] y1 is the estimated project cost in dollar (or another currency) y2 = [y2.1, y2.2, y2.3, ..., y2.800] y2 is the r...
We sent out a survey to find if educational material about a type of surgery would potentially influence the decision of subjects. Prior to giving them this educational material we asked them demographic questions (e.g. sex, job, etc.), several questions on a 5 point scale to assess their priorities (e.g. "How importan...
If a Gamma distribution is parameterized with $\alpha$ and $\beta$, then: $$ E(\Gamma(\alpha, \beta)) = \frac{\alpha}{\beta} $$ I would like to calculate the expectation of a squared Gamma, that is: $$ E(\Gamma(\alpha, \beta)^2) = ? $$ I think it is: $$ E(\Gamma(\alpha, \beta)^2) = \left(\frac{\alpha}{\beta}\right)^2 +...
Can we use duplicate data as an input to SVM? The duplicate data that I mean is, let say we have 50 of same data (maybe being duplicate) from total of 100 data. Will this kind of data effect the performance result that we obtained from SVM? Do we have to avoid any duplicate data for SVM?
I am carrying out a difference in difference estimation. Regarding control variables addition I am kinda confused. Am I to add control variables which affect the dependent variable or control variables which affect the dependent variable but would not affect the policy effect on the dependent variable.
I am modeling my data with ARIMA and to check if my model is good I have to compute the residuals and plot the correlation function and partial correlation function of the residuals. If the results of the functions are between $1.96 \pm 1/\sqrt(\sigma)$ that means that the residuals are drawn from Gaussian process, hen...
In going over some example problems from class notes, I came across the following problem: "Suppose we have a regression model $y=\beta_0+\beta_1x_1+\beta_2x_2+\beta_3x_4+\beta_4x_4+\epsilon$. We wish to test the null hypothesis that $H_0: \beta_1=\beta_2$. Express the hypothesis in terms of $A\beta=c$, provide $A$ and...
How can I get a good estimate of parameter $\nu$ of the Rice distribution based on a set of $(x,y)$-coordinates? Edit: Given whuber's excellent comment, I'm not looking for an unbiased estimate. Instead, I'd like to know whether there is an estimate that takes advantage of having available the 2D points themselves (not...
Given a set of rule such as: $A \rightarrow B$; $B \rightarrow C$; that satisfy minimum confidence in the context of apriori algorithm meaning: $$\text{Conf}(A \rightarrow B) \geq \text{min. confidence}$$ and $$\text{Conf}(B \rightarrow C) \geq \text{min. confidence}$$ Is it possible to state that $\text{Conf}(A \righ...
This question has two parts, as I do not understand whether my problem is theoretical (identification of the parameters) or practical (insufficient R skills). Econometrics Most "probit" style models are identified through a normalization of the standard error to one. In my case, I would argue that this is not necessa...
I have a KDE obtained with a large sample ($n=10000$). Given that this is defined as the mean of the kernel evaluated at $n$ points, the evaluation of this kernel slows down my code (I need to evaluate it thousands of times). I was wondering if there is a trick to avoid taking the mean of the $n$ points every time I ev...
How can I compute the error on the interquartile range of a sample? By error I mean its std deviation (e.g. error on the mean = $\frac{RMS}{\sqrt{N}}$. The sample is from a unimodal distribution, similar to normal distribution, but with asymmetric tails.
I want to do a multiple imputation of missing data using SPSS. I have a nominal (categorical) variable X with missing values codified as '9' and not applicable values codified as '8'. How can I constrain imputed values to X, for not imputing '8' (not applicable) to a '9' (missing value)? Since this variable X is catego...
If I understand correctly, a Linear Discriminant Analysis (LDA) assumes normal distributed data, independent features, and identical covariances for every class for the optimality criterion. Since the mean and variance is estimated from the training data, isn't it already a violation? I found a quotation in an articl...
I have a doubt whether the uniformly distributed random generator is the most appropriate to use for simulating biased coin toss. https://stackoverflow.com/questions/477237/how-do-i-simulate-flip-of-biased-coin-in-python Let's say a chance of Democrat winning in a state is 0.6. Ok, so I thought at first it makes sense...
Suppose I create a dummy scenario as such: > A <- rnorm(10000) > B <- rnorm(10000) > C <- rnorm(10000) > Y <- A*B + rnorm(10000,sd=0.1) Doing a simple ANOVA correctly identifies that none of the variables are significantly predictive of the outcome: > anova(lm(Y~A+B+C)) Analysis of Variance Table Response: Y ...
I have built a cox proportional hazards model in the R survival package. I want to score new data set using this model. I thought the survfit function would doing this using survfit(original model, newdata), but it only seems to predict only the outcomes for the original data, not the original model using the new dat...
I am fitting a series of Bayesian spatial models with an intrinsic conditional autoregressive (iCAR) structure. In these models, I begin by fitting an empty model (null) and then add successive sets of covariates based on a conceptual foundation. I then map quantiles of the mean posterior spatial random effects, highli...
Suppose ($h_1,h_2,...,h_n$) is an $n\times 1$ vector. Let $h_i=g_iX_i$, where $g_i$ is a non-random variable which can vary across $i$ and $X_i$ is a random variable with Pareto Type I distribution. $$f_X(x) = \begin{cases} {\alpha x_m^\alpha \over x^{\alpha +1}}, & \text{if $x\ge x_m$} \\[2ex] 0, & \text{if $x\lt x_m...
Suppose I have repeated time observations for 800 meter sprint for a group of athletes over the course of a season. I would like to test the hypothesis that all the times are drawn from the same unspecified distribution (i.e., that the distributions of each athlete's finishing times are all the same). The number of tri...
We often average models together to create an aggregate prediction model. Some recent research suggests that simple model averages perform as well or better than model averages weighted by functions of information criterion scores. Weighted or simple, model averaging often (but not always) performs better than choosing...
A new virus breaks out on a cruise ship. I want to test the hypothesis that males and females are equally likely to contract the virus. I am going to test 100 men and 100 women. Presumably if I find 87 women infected and 89 men I cannot safely reject the null. If on the other hand I find 11 men are affected and 20 wome...
I'm working with a dataset consisting of degradation rates for proteins in an organism, a total of approx 3750 rates in total. Obtaining these rates is difficult, so the majority of rates are reported with only n=1, however a small subset have been reported with n=2, so the sample standard deviation for each protein ca...
Background: I would like to offer readers a statistic that conveys the similarity of two sets of numbers. I thought that I had what I needed with correlation coefficient (indeed, I have a coefficient of determination/r2 of 98.7). But I've just realized that r and r2 conveys only that the two sets of numbers are correla...
Are we still able to interpret the parameters in the same manner as we would in ordinary logistic regression? I'm asking this because I'm toying with the german credit data https://archive.ics.uci.edu/ml/datasets/Statlog+(German+Credit+Data) and doing a lasso logistic regression model to perform feature selection. I'm...
I am not familiar with the concept of multivariate model and just learning about regression model. I am familiar with Autoregressive model and Moving Average. Multivariate regression model provided cues to look into what a multivariate model is but I could not follow the question as such in this thread. My problem is i...
A large dataset with more than 100 variables including a target variable. A small portion of target = 1 cases are fraud or due to other errors. I want to identify these target = 1 cases, i.e. fraud or error. Assuming most cases are good, I intend to use decision tree to classify cases. In one leaf with a high percent ...
I play Hold'Em on an internet site and it seems that far too often I see 4 sequential cards being flopped in the full 5 card flop; which is an easy setup for at least one of the players to make a straight. For instance, "3-4-5-6" or "8-9-10-J". I want to know what is probability of getting 4 such sequential cards in ...
I am using fMRI data (n=25) to predict performance on a behavioral task. At each of 12 time points, I train a linear model on data from n-1 subjects and use this model to predict the left-out subject's performance during a different period of time. For example, I use neural data at time point 1 to predict performance d...
Assumptions / Context: Let's assume that I have data that can be modeled as a dynamic linear model. To estimate the parameters (e.g., covariance matrix of the state/system equation), I use a Gibbs sampling or other Markov Chain Monte Carlo procedure. Problem: The problem is that to use the Gibbs sampler I use the FFBS ...
I am interested in performing a regression on data on a population. This population causes events X and Y. I have monthly data for population, event X, and event Y. Do I need to change my variables X and Y into rates (X divided by population) before running the regression? Some details about the model: the population a...
I work at a company that sells clothes, and I've had good results with using cosine similarity to determine which products are "similar" to each other simply based on who owns them. I wanted to take product recommendations a step further and recommend a "compatible" product (like a solid tie for a striped shirt) using ...
I have two types of missing data (non-responses and "Don't know or does not apply") and I want to replace only the non-responses (with mean or by using EM or by using Multiple Imputation) and to see if this is a good solution. How can this be done in SPSS? Even in the simplest case, when replacing missing values with m...
I am representing my 3d data in covariance matrix. I just want to know what the determinant of a covariance matrix gives. If the determinant is positive, zero, negative, high positive, high negative, what does it mean or represent? Thanks EDIT: Covariance is being used to represent variance for 3d coordiantes that I ha...
I was asked this question. My initial conclusion is that there isn't enough information to calculate the probability. I would appreciate it if anyone could provide provide their insight. Scenario: Department of Defense is looking to purchase a good. Department of Defense has determined that a fair price is 1.0000 and t...
Apologies in advance for poor terminology / description below; I'm trying my best but I do not know the correct wording. Let's say a "sample" is some fixed number $n$ of boolean values (I'll use 1=true, 0=false): 1 0 0 0 1 0 0 1 1 1 1 1 0 Now I have a list of samples all of size $n$, and the order of items in the list...
Suppose we are given $\mu$ and $\sigma$ for a lognormal distribution with random variable $X$. $\mu$ is the mean of the variable's logarithm and $\sigma$ is the standard deviation of the variable's logarithm. Then if $Z$ is sampled from a standard normal distribution ($Z$ has mean 0 and std deviation 1), $$X = e^{\m...
I am using PBmodcomp from the pbkrtest to perform a parametric bootstrap model comparison. However, for some of the comparisons a warning message stating that the models failed to converge appear. A example of the R script for my lemr models can be found here: https://stackoverflow.com/questions/25111939/error-runnning...
Just like what I am asking in the title. I see nearly all the financial datas take logs before the data analysing step, Why? Dose it have nice properties?
I've obtained a logistic regression model (via train) for a binary response, and I've obtained the logistic confusion matrix via confusionMatrix in caret. It gives me the logistic model confusion matrix, though I'm not sure what threshold is being used to obtain it. How do I obtain the confusion matrix for specific thr...
I got there example graphs bishop's PRML (8.2.1) 1. a <- c -> b $$ p(a,b,c) = p(a|c)p(b|c)p(c) --(1)\\ p(a,b) = \sum_c p(a|c)p(b|c)p(c) --(2) $$ Q1: Can I use a new graph to represent the p(a,b) in formula (2) ? 2.a->c->b $$ p(a,b,c) = p(a)p(c|a)p(b|c)--(3)\\ p(a,b) = p(a)\sum_c{p(c|a)p(b|c)} = p(a)p(b|a) --(...
I am trying to implement unsuccessfully a function in matlab, to compute the effective sample size after a MCMC chain, with a posterior with 3 coefficients. Source: Sims MCMC $ VAR(1) / Y_t=\mu +AY_{t-1}+ \epsilon_t$ I think that I need to compute $ T\Gamma(0)/\sum_{i=1}^{n}(\Gamma(J)$ If a VAR(1) is stationary $\Gam...