instruction
stringlengths
9
38.7k
On pg. 378 of "Cryptography with Tamperable and Leaky Memory", Kalai et al. claim two probability distributions are $e(k)$ close if the distance between them is at most $e(k)$. What is significance of two distributions X and Y being "close to" or "far from" each other? Why would anybody care, especially in cryptograp...
In the dark ages, we would map the results of a Student's t-test to a null hypothesis probability p by looking up T and degrees of freedom in a table to get an approximate result. What is the mathematical algorithm that generates that table? ie, how can I write a function to generate a precise p given an arbitrary T a...
I'm trying to understand the effects of adding non-conditionally independent features to a naive Bayes classifier. Let's say I have the features vector $X = [x_1,x_2,x_3,x_4]$ and that for each value of $x_3$ I get the same value for $x_4$: For all $i \in \{samples\}$, $x_{3}^{i} = x_{4}^{i}$ I could say that the condi...
I understand that in a linear regression model like: $y_i = b_0 + b_1 x_i + \epsilon_i$ I can have a null and an alternative hypothesis: $H_0: b_1 = 0$ and $H_1: b_1 \neq 0$. And then I can reject $H_0$ or fail to reject $H_0$. But what if I want to accept that $b_1 = 0$?
I have performed a log transformation on my skewed data, however on my DV it went from positive skew to negative skew after the (log) transformation, further data was missing from my DV after the transformation. Please help
I am trying to get a good grasp on the EM algorithm, to be able to implement and use it. I spent a full day reading the theory and a paper where EM is used to track an aircraft using the position information coming from a radar. Honestly, I don't think I fully understand the underlying idea. Can someone point me to a n...
I read in Wilcox, 2003 p. 247 that the standard error of the difference between two sample means is (assuming the normality and homoskedasticity assumptions): $\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}$ Rather than simply adding the two sample standard errors as in: $\frac{\sigma_1}{\sqrt{n_1}} + \frac{\si...
I want to do a logistic regression in SPSS. However, since I analyse unemployment spells the subjects are sometimes repeated (violating the independence assumption of the regression). One way of removing the within subject variation is by applying a Genlin model with the repeated subject subcommand (in essence a GEE mo...
I'm using the scipy.stats.gaussian_kde function to generate a KDE from a set of $N$ points in a 2D space: $A = \{(x_1,y_1), (x_2,y_2), (x_3,y_2), ..., (x_N,y_N)\}$ Each one of these points has a given error attached to it. So for example, the point $(x_1,y_1)$ has errors $(e_{x_1},e_{y_1})$ and so on. I can assume the ...
Having performed a linear regression, I can find the confidence interval for the response conditioned on a particular x value. However, I am interested in a C.I for the mean response for a set of N new observations. That is, I need to combine the N prediction intervals. The closest post I could find was Calculating th...
6 neighboring countries have the following disease instances: $y = (y_1, y_2,...,y_n)$ with a population of $x = (x_1, x_2,...,x_n)$. The following model and prior distributions are considered: $y_i|\theta_i,p_i \sim \text{Poisson}(\theta_i x_i)$ $\theta_i | \alpha, \beta \sim \text{gamma}(\alpha, \beta)$ $\alpha \sim...
I'm using the scikit-learn's implementation of Gaussian processes. A simple thing to do is to combine multiple kernels as a linear combination to describe your time series properly. So I'd like to include both the squared exponential kernel and the periodic kernel. Linear combinations of valid kernels produce valid ker...
There are three random variables, $x,y,z$. The three correlations between the three variables are the same. That is, $$\rho=\textrm{cor}(x,y)=\textrm{cor}(x,z)=\textrm{cor}(y,z)$$ What is the tightest bound you can give for $\rho$?
I'm trying to find multiple break points by using processStream from CPM package on R. Can someone enlighten me on what is ARL0 how does one determine what ARL0 should be used for? processStream(ret.fin.chn,"Kolmogorov-Smirnov",ARL0=500,lambda=NA) $changePoints [1] 59 75 250 286 443 448 663 1037 1042 1261 ...
Here is a problem from a practice test. Suppose that $$X_i = \mu + \epsilon_i,\quad i=1,\ldots,n\quad \epsilon_i\sim N(0,\sigma^2_1)$$ $$Y_i = \mu + \delta_i,\quad i=1,\ldots,m\quad \delta_i\sim N(0,\sigma^2_2)$$ All $\epsilon_i$'s and $\delta_i$'s are independent. The paramters $\mu, \sigma_1^2, $ and $\sigma_2^2$ are...
I want to express the joint probability of $\Phi_A$ and $\Phi_B$: $p(\Phi_A, \Phi_B)$ conditioned that $\Phi_A$ and $\Phi_B$ are both greater than some value C. How would I express this mathematically? I guess my intuition says: $p(\Phi_A, \Phi_B | \bf{\Phi} >C)$ Is this correct? Is there a better way to express thi...
There's a question for textbooks here, but I would like to ask similar question about handbooks: what econometrics handbooks would you recommend? Assumed audience is researchers and graduate-level students. It needs to include the material of Greene's Econometric Analysis and Wooldridge's Econometric Analysis of Cross ...
Suppose that I have daily data on the population of a small village, given by $Y(t)$, as well as daily data on various factors that are relevant to the size of the population in the future, given by vector $X(t)$. These explanatory variables include untransformed variables as well as features engineered to be informati...
Any statistical distribution is described in terms of shape, scale and location parameters. But what do these parameters mean, geometrically, statistically and for a layman with minimum statistical knowledge? I have explored wikipedia and still, this doubt continues to exist.
As statisticians, we come across many distributions under the banners "discrete" or "continuous", and "univariate" or "multivariate". But can anyone provide a good reason behind the existence and motivation for so many distributions? How do we get them? And what can a layman understand from it? What is the logic behind...
What is the fundamental difference between: Linear regression Non linear regression Parametric regression, and Non-parametric regression? When should we use each type? How do we know what to choose? What kind of data are required? What are the assumptions unique to each? At times, if you go through papers you...
A penalized regression provides biased estimates of the regression coefficients (bias-variance trade-off principle). Therefore, standard errors and confidence intervals are regarded as not very meaningful for those biased estimates arising from (frequentist) penalized regression method, see e.g. the discussion Estimat...
TL, DR summary: Is there any theoretical or empirical basis to support the following statement being true as a general rule of thumb? "When estimating a mixed model, typically the estimated variances/standard deviations of random effects associated with 'higher-order' terms (e.g., random effects of two-way, three-way, ...
I am working on the numerical integration of an integral of the following functional form: $$ \int\limits_{R^{G}} F(x_{1},x_{2},\text{…}x_{G})d\text{Φ}_{\text{Σ}}(x_{1},x_{2},\text{…},x_{G}) $$ Here $$ \text{Φ}_{\text{Σ}}(x_{1},x_{2},\text{…},x_{G}) $$ is the G-dimensional multivariate normal distribution with correla...
I am fitting a generalized linear model (glm). The explanatory variable is categorical with three levels (control, treat1, treat2). The response variable is 0 or 1. The response rate for each treatment level is ploted as the figure below (from left to right: control, treat1, treat2): There seems to be a big treatment ...
I've got 2 gamma-distributed random variables $(X,Y)$ with arbitrary scale and shape parameters. Further, $Y$ should be a non-linear function of $X$, lets say $Y=\sqrt{X}$. What I am interested in is the joint probability $F_{X,Y}(\cdot)$. All suggestions or general comments are welcome. Thank you in advance
I am looking over slides for a big data class. The slides suggest doing a pairwise plot of data (if not too many variables) to evaluate the quality of output from k-means clustering -- with each data point color-coded by its cluster. The slides say: If the (colored) clusters look separated in at least some of the plo...
Is it true that (and if so, how does one prove) the following. $$E\left|\hat{Var}_{n}(X)-Var(X)\right|^{2}=O(n^{-1})$$ where: • $X$ is a random variable with mean $\mu$ and variance $\sigma^{2}$ • $\hat{Var}_{n}(X)$ is the sample variance of $X$ from $n$ i.i.d. random variables $X_{1},\cdots,X_{n}$ with mean $\mu$...
Actually, I have read a pair of books about time series analysis, but I am still not sure about how to treat deterministic components, like trend and seasonality, in the exogenous variables in a time series model. Do I have to detrend and deseasonalize the covariates before I use them as axplanatory variables in a time...
What is 95% confidence interval for the fraction of 5 successes out of 12 trials? Is it possible to compute confidence intervals for a sample of this size?
I have a data.frame with 800 obs. of 40 variables, and would like to use Principal Component Analysis to improve the results of my prediction (which so far is working best with Support Vector Machine on some 15 hand-picked variables). I understand a prcomp can help me improve my predictions, but I do not know how to u...
Consider the problem of the choice of estimator of $\sigma^2$ based on a random sample of size $n$ from a $N(\mu,\sigma^2)$ distribution. In undergraduate, we were always taught to use the sample variance $$\hat{s}^2 = \dfrac{1}{n-1}\sum_{i=1}^{n}\left(X_{i}-\bar{X}\right)^{2}$$ instead of the maximum likelihood est...
I have computed and plotted the survival function for a subscription-based service and the following is the result. The problem is that there does not seem to be enough data to get a full curve. This is because most of the oldest accounts are still active. So my question is would it still be useful to compare surviva...
I have samplings of one-dimensional data of two classes: $A$ and $B$. I have to predict the posterior probability of class $A$. $$\tilde{P}(A|x) \approx \frac{N_A\tilde{f_A}(x)}{N_A\tilde{f_A}(x) + N_B\tilde{f_B}(x)}.$$ $f_A$, $f_B$ are the estimation of densities of classes $A$ and $B$. I estimate the densities as nor...
I have two sets of acceleration data in terms of time. In one set the acceleration increases more linearily than another set. How can I show the linearity difference of the two set of data best? Should I use Pearson Correlation or Linear Regression? If I get r = 0.8 and 0.98 by Pearson Correlation, how I can interpreta...
I have the following data Individual Heart rate Weight Hours of exercise per week 1 72 134 3.2 2 81 201 3.5 3 60 156 7.1 4 82 148 2.4 5 ...
I have weekly data of number of warranty claims from week of manufacturing. I want to use this historical data and predict the number of claims that may arise in next few weeks. I have read about count data models like Poisson regression and NB regression but they expect the counts in the range of 0~30 (is this correct...
$$Y|X=x \sim N(x,1)\\X\sim N(\mu,\sigma^2 )$$ What distribution does $X|Y=y$ follow? My initial startegy was to $f_{Y|X}f_X=f_{X,Y}$ and solve for $f_{X|Y}=f_{X,Y}/f_{Y}$ . Computing for $f_{X,Y}$, I get the following: $$f_{X,Y}=\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left\{-\frac{(x-\mu)^2}{2\sigma^2}\right\}\frac{1}{\sqrt...
I would like to classify individuals of a database by a single quantitative variable. Is hierachical clustering suitable to do this? If it is possible, how the algorithm work? If use hierachical clustering is not right, which other procedures or techniques could I use? My purpose is not classify the variable, but indiv...
I was wondering if someone knows or if there exists an application in statistics in which strong consistency of an estimator is required instead of weak consistency. That is, strong consistency is essential for the application and the application would not work with weak consistency.
I am trying to perform some logistic regressions (and I am a neophyte user of R). Initially I used "glm" to compute coefficients, AIC and p-values; this worked great until I ran across a data set suffering from complete separation. In [1], Gelman et alia suggest using an (informative) prior to address this problem; th...
I have several exercises to solve that deal with sample space of PMF. One is: Let $X_1,\dots , X_n$ be independent random variables with pmf $p(x;\pi) = (1-\pi)^x \pi$ What is the sample space of $X_1?$ Try to give a probabalistic interpretation of such a sample space. Hint: for example. a Bernoulli random variable can...
I'm trying to apply a polynomial approximation for a given function (via Genetic Algorithms), and so far the results are not so good: # or any other GA package require(gaoptim) # for polyval require(pracma) # polynomial of degree 10 ndeg = 10 ndim = ndeg + 1 # search limits search.low = rep(-1, n...
The summary of my GLM shows day 12 of factor Date to be significant, but anova(model, test="Chisq") shows Date to be not significant overall. I know how to report the statistics from the Chisq table, but as I have z values in the summary table I am unsure how to report, or if I should report, that day 12 is significant...
Is there a requirement that the measure used in Nearest Neighbor methods be a proper metric distance? What will happen if I use an arbitrary function (e.g., one that does not satisfy the triangle inequality)? How can you convert an arbitrary function to a valid metric distance?
I need to collect a two group sample for a comparison analysis (perhaps using logistic regression). The population that I need to extract a sample from is all firms from country A with activities in country B. The firms are classified into two categories: having a subsidiary in country B (S), or not having a subsidiary...
Let's say I'm optimizing MRR with a GBM in R: library(gbm) generate.data <- function(N) { # create query groups, with an average size of 25 items each num.queries <- floor(N/25) query <- sample(1:num.queries, N, replace=TRUE) # X1 is a variable determined by query group only query.level <- runif(num.queries...
I have a three level multilevel model (therapists, patients, repeated measures) in which I have included 4-way interactions, for instance: therapist self-efficacy * treatment condition * patient on track (yes/no) * time This tests the hypothesis that therapist who are in condition A and are higher no self-efficacy have...
Suppose the probability of a "random" event is very small (call this probability $p$). In real life, true randomness seems impossible. So would the actual true probability of the event be greater than $p$?
I'd like your opinion on a very strange behavior that I recently encountered running glmer(). The problem is that when I make the dependent variable into a logical vector, glmer behaves weirdly. My dependent variable is Accuracy, and it is coded in terms of 1 (accurate response) and 0 (wrong response). What puzzles me ...
I have this partition function Now if I take the derivative of log(Z(x)) wrt $\lambda_k$ the result is I didn't get how this was derived. This is the paper
I am working with some two-regime autoregressive models first introduced by Hamilton in 1989. The specific models is of no great concern to my question, but some variables within my autoregressive models are latent binary variables - non-observable binary variables, that is. I have a dataset and use MCMC to find poste...
Suppose we consider all the people in the planet. We are interested in randomly selecting 10 people who have heart disease. Is it better to repeatedly sample 10 people and then choose the one selection in which all 10 people have heart disease? Or is it better to only look at the people who have heart disease and sampl...
My prof claims that raising a symmetric r.v., like N(0,1), to an odd power gives a distribution with expectation 0. What's the best way to see this?
Why is the F-test for overall significance (OLS regression analysis) invalid when residuals are heteroscedastic? Is there a way to calculate it in a consistent way under heteroscedasticity? Is there any function in R to accomplish that?
I am working on a research topic where I need to add together two AR processes and I was wondering if the distribution of these processes is of a recognizable form/structure. More formally, if $x_t$ is a AR(p) process with characteristic polynomial $\Phi_x(u)$ and $y_t$ is a AR(q) process with characteristic polynomia...
I'd like to make a prediction about a subject's likelihood that a certain outcome will occur based on a series of measurements taken over time. The easiest way to explain the problem is as follows. Imagine that I'm tracking an individual over time to generate a probability of ever getting lung cancer. The training dat...
How do you describe, or what do you call, a test that uses two factors as independent variables but uses a dependent variable that is a difference between two measures taken repeatedly from the same individuals? Usually, repeated measures means that multiple independent variables are measured on the same individuals. H...
I am running a general linear model in which I have two predictors: X and X-squared. I entered both these predictors in my analysis because I think X might explain the variance in the outcome measure partially linearly and partially in a quadratic fashion. Obviously, there is multicollinearity in this example. However,...
I understand that NA means data is missing, null or not present. But what do the letters NA stand for? "Not Available"?
This is my very first post on CV so comment if I can improve my post. I have two webs that sell very similar products and also have a very similar group of customers. I was trying to prove that concept that "Fast Moving Inventory From Web A Will Also Move Fast on Web B" I have the daily snapshots of the inventory of bo...
Estimate 3 parameters of beta exponential distribution in the case of censored type 1 samples via L-moments
In multiple regression, if you have just an ANOVA table, and nothing else, no specific data, how can you do a partial F test on X1, given X2 is already in the model? So, you have the ANOVA table: source df SS MS F ----------------------------------- regression 2 1.44 0.72 9.72 error 3 ...
If you have 3 separate models in a multiple regression problem (and 3 ANOVA tables), which would be best given that you have the coefficient of determination, $R^2$, and mean-squared error values? So you have 1 table, with just $X_1$, another with just $X_2$ and a third with $X_1$, $X_2$ combined. Which is best given s...
I have more than one file of data from different experiments. For the sake of the argument here, let's say I have three files E1.txt, E2.txt, E3.txt. I anticipate that I will have more files in future, say E4.txt, E5.txt, etc. Each of these files has two columns, Time(h) and Growth. Plotting data from one file, for i...
I have 1 short string of text (let's say it's a tweet, max 140 characters): "A review of my beloved Roku 3 media player" I also have a larger body of text (like a blog article, hundreds of words) which I know is related to the tweet: "The Roku 3 media player is a great way to watch your favorite ...." The tweet and blo...
I don't have a very solid foundation in measure theory, and this always seems a bit confusing to me so I would appreciate any help. We are given $ E \left( X_{n+1} | Y_0,\ldots,Y_n \right) = X_n. $ Prove or disprove $ E \left( X_{n+1} | Y_0^2,\ldots,Y_n^2 \right) = X_n $ I am thinking that if $F=\sigma \left(Y_0,\ldot...
How to find a tax/subsidy in an income probability density function situation? I am asked the following question: Suppose all families with $Y \lt 20$ are given transfer payments equal to $(20-Y)/2$; and suppose the cost of these transfers is raised by taxing all families with $Y \gt 20$ an amount $t(Y-20)...
I'm using R's 'astsa' package and I get the following output from sarima. Which AIC value would I use to compare this model (let's call it A) against others? When trying another model (B), model A's fit$AIC (858.19) is greater than model B's, but model A's AIC (12.38841) is less than model B's, so I'm not sure which m...
I need to calculate the probability of $P(L,D)$, where $L$ and $D$ are not independent. I have estimated $P(L)$ and $P(D)$ with two distinct models and I also know $P(L|D)$ and $P(D|L)$. As far as I can see it I have two different estimates of $P(L,D)$: $P(L,D) =P(L) * P(D|L)$ $P(L,D) =P(D) * P(L|D)$ Am I best off ju...
In particular I am interested in the scale estimator. Hopefully it is much better than that of IQR.
I read that the $Cov(\hat{\beta})=\sigma^2(Z'Z)^{-1}$, where $\hat{\beta}=(Z'Z)^{-1}Z'y$. However, I have yet been unable to find a proof of this fact online. Could anyone please provide a proof and/or a reference?
25 patients receive treatment, and they each get a difference score (After-Before). 18 of them get positive scores. I would like to test the null hypothesis that p=0.5. I know that 1-pbinom(17,25,0.5) gives me the probability of 18 or more patients getting a positive score. My question is, to calculate the p-value, why...
Suppose we have some logistic regression modelling problem; $f(X) = Y$, where $Y$ is binary and $X$ is a vector of normally distributed variables. In industry it is sometimes the case that practitioners will delete rows of data where 'nothing happens' (according to an algorithmic criteria), often to reduce the dimensi...
I have a retrospective dataset of patients treated with a certain drug (treatment, $n=46$) or with placebo (control $n=96$). The stored variables are age, sex, stage of disease. I want to assess the effect of treatment on overall survival with propensity score. Here are the steps I followed: I calculated propensity sc...
I am attempting to build a model to forecast attendance in a given week in the current year based on this year's attendance values up until the present, and data from two previous years. My data looks like this: Week 11-12 Cumulative ADA 12-13 Cumulative ADA 13-14 Cumulative ADA 1 0.9941 ...
I'm working on my final project, and it's a QUEST algorithm, and it uses the chi-square test. I have a problem where the expected value = 0. What should I do? What does it imply to the chi-square test or to the QUEST algorithm?
I am trying to learn some statistics using the book, Biometry by Sokal and Rohlf (3e). This is an exercise in the 5th chapter which covers probability, the binomial distribution, and Poisson distribution. I realize there is a formula to produce an answer to this question: $$ n = \frac 4 {( \sqrt{p} - \sqrt{q} )^2} $$...
Suppose, the data below shows the mean response time on a task for respondents among four different groups: A B C D 1.2 2.3 4.5 6.7 In order to assess which one of the means are different from one another I do a multiple comparisons test (after an omnibus ANOVA test is cleared) and the multiple compa...
I already wrote a similar question on StackOverflow but was not welcomed there! So I decided to ask it from the folks here. I have wrote a code in Python for CRP problem. I think everybody here is familar with the subject but nevertheless: Short description of it: Suppose we want to assign people entering to a restaura...
I am working on vector auto-regression (VARs) and impulse response function (IRFs) estimation based on panel data with 33 individuals over 77 quarters. How should this type of situation be analyzed? What algorithm's exist for this purpose? I would prefer to conduct these analyses in R, so if anyone is familiar with ...
I have a multicollinearity problem in a linear regression model and ridge regression was suggested as a solution. So I have spent quite some time researching different ridge regressors in the literature (there's at least a dozen), however in the course of my research I have found that Principal Components Regression ca...
I have a variance test based outliers detection algorithm. The algorithm is exposed with a visual application where the user can configure its parameters namely the multiplier. The question is what is the range of values for the algorithm multiplier? the algorithm basically is calculating the mean and standard deviat...
This questions is two part: 1) What happens when you apply the backshift operator to a constant? For example, if I have the AR process $$(1-\phi B)(y_t-\mu)=\epsilon_t$$ does that equal $$y_t-\mu-\phi By_t-\phi B\mu = \epsilon_t$$ which (I believe reduces to) $$y_t-\mu-\phi y_{t-1}-\phi \mu = \epsilon_t\longrightarro...
I have corpora of classified text. From these I create vectors. Each vector corresponds to one document. Vector components are word weights in this document computed as TFIDF values. Next I build a model in which every class is presented by a single vector. Model has as many vectors as there classes in the corpora. Co...
I currently have a data frame with 98 observations and 107 variables. All of the variables are numeric, but one variable is binary (yes or no). My goal is to determine which correlation and/or variable give the greatest segregation between the yes and no samples. I have been using the pairs () function to do this, b...
I need to calculate the following expression: $$\sum_{k=1}^N a_k b_k$$ ${a_k}$ and $b_k$ are real positive numbers. N and k are integers. I know the average values of $a_k$ , defined as $\overline {a} = {\sum_{k=1}^N a_k \over N } $ and $b_k$ , defined as $\overline {b} = {\sum_{k=1}^N b_k \over N } $. I also know the ...
I have a data set of videos from which I need to recognize the emotion of the speaker. For that reason I have some markers on the face of the speaker. I detect their movement as the speaker speaks and for every frame find the change in the marker coordinates. There are a total of 65 markers (blue dots) on the face of a...
I have a problem understanding the posterior for computing LDA, stated in page 7 of Blei (2007). From my point of view, it's not exactly consistent with Bayes' theorem, as described here. Could anyone give me a simple explanation of how this formula was derived? I don't really understand how the $p(\beta, \theta, z, w)...
I'm trying to explain why some complex process obeys Central Limit Theorem. The process is a chip compiler that runs complex place & route algorithms. The input is an integer seed. It initializes the algorithms in a random way. The output is a real number, which determines quality of results; the higher the number - th...
I like Peter Flom's answer to an earlier question about multicollinearity in logistic regression, but David Garson's Logistic Binomial Regression states that there is no valid test for multicollinearity for binary-dependent logistic regression, even if the independent variables are ratio scale. Can anyone supply one or...
Are conditional multinomial logits used for recommendation engines? Although they are commonly used in econometrics, I've never heard it used or discussed in the context of recommender systems. Economists use multinomial conditional logits to model which of several options a person would choose and how much they value ...
Background I have a colleague interested in a particular disease and specifically if the continuous variable $X$ is different between controls and patients. Preliminary results suggest that patients have higher values of $X$ than controls. The straightforward approach would be a unpaired t-test to test if there is a di...
How can I analyze the $\lambda_U$ and $\lambda_L$ results (estimated by non-parametric method)? What does higher or lower coefficients mean? Does $\lambda_U = 0.5$ mean there's some kind of linear dependence between $X$ and $Y$? This is what I mean by $\lambda_U$ and $\lambda_L$:
Recently, I built a classification model based on the imbalanced data set(positive sample is minority and negative sample is majority), and the model gave the following result for the test set: True Positives = 0 True Negatives = 139 False Positives = 0 False Negatives = 10. My question is: for the result, can Matthe...
I am fitting a gam model in R (using the gam function in mgcv) to account for some non-linear effects in my data. A stripped down example of what I am doing in R is: mod=gam(y~s(x)+s(z),data=df) However, I want to add a slightly more complicated variance model to my regression of the form $$\epsilon \sim N(0,\sigma^2...
I am trying to use bfgs algorithm in order to fit a set of $\{(x,y),f(x,y)\}$ to a function in the form of let's say $a\cdot cos(x)+b \cdot y=f(x,y)$. I try to understand how to use bfgs algorithm with liblbfgs, but I don't understand the example and it is not clear what function the author tried to fit.
I have aggregated death counts and some categorical predictors e.g. era, drug use, and I'm running a Poisson GZLM in SPSS, also a glm in Stata (generalized linear model). There are many, but not excessive, zeros and it has been suggested to me to add 0.5 to the observed values. When I do that the GENLIN procedure in SP...
I am fairly new to Stata, currently taking an undergrad time series econometric class. The economic significance of the regression I am running and attempting to forecast is all but zero; this is simply my learning how to use Stata somewhat efficiently. I have run an Autoregressive Distributed Lag (ADL) regression of I...
I understand that discriminative models, such as CRF(Conditional Random Fields), model conditional probabilities $P(y|x)$, while generative models, such as HMM(Hidden Markov Model), model joint probabilities $P(y,x)$. Take CRF and HMM for example. I know that CRF can have a larger range of possible features. Apart fro...