instruction
stringlengths
9
38.7k
The expected value of a distribution $f(x)$ is the mean, that is the weighted average value $$E[x]=\int_{-\infty}^{+\infty} x \, \, f(x) dx$$ The most likely value is the mode, that is the most probable value. However do we expect somehow to see $E[x]$ a lot of times? Quoting from here: If the outcomes $x_i$ are not...
A reviewer of mine is asking for a reason why I have used unweighted data, instead of weighted data. I have discussed the issue with a statistician and his response was along the lines of If you have independent observations and you take the overall mean, its variance is always smaller than the variance from a weight...
I performed bootstrap (10 000 samples) in boot package for R (multivariate model, binary logistic regression with Firth´s correction). One variable in the model has after bootstrap negative value in confidence interval, i.e. CI 95% = (-0,403, 1,103). Can someone explain please what does it mean and how to interpret it?...
I posted this question on LessWrong.com where it was suggested i come here. I also posted there about an open source decision making web site I am working on called WikiLogic. The site has a 2 minute explanatory animation if you are interested. I wont repeat myself but the tl;dr is that it will follow the Wikipedia mod...
Both the GJR and the GARCH-specifications are used quite often in the finance literature. The GARCH is defined as: $$ \sigma^2_t = \omega + \alpha\varepsilon^2_{t-1} + \beta\sigma^2_{t-1}$$ and the GJR-GARCH reads as follows $$ \sigma^2_t = \omega + (\alpha+\gamma \mathbb{I}_{t-1})\varepsilon^2_{t-1} + \beta\sigma^2_{t...
I am trying to see what model performs best. I am considering the Hausman test to see which model is the most stable out of the three. However, I am not sure what exactly my null hypothesis should be when I test three models, and if I should compare RE against Pooled OLS and then RE against FE. Do you think that this i...
I am having some trouble confirming that I am on the right track and I hope someone can help me out. I have a data set with 9 products each of which has received 8 treatments, including the control this makes a 9 Product x 9 Treatment matrix that was organised in a reduced Latin square. Participants in the experiment ...
Suppose we have a dataset where the majority of the features are categorical. Do tree-based methods (such as decision trees, random forests and boosting) generally outperform other classification models on such a dataset? I am aware of this question that discusses some of the potential computational advantages of using...
Is there a formal method/test/proof that one can use to justify the use of sampling weights when using survey data? You could compare the coefficients in both regressions, the R2, etc. But is this enough? I ask this because there tests and estimation methods available for my software (Stata) is restricted when using we...
I'm going through Blitzstein's book Introduction to Probability and on p. 45 there is this exercise: Now, NOT using Bayes' Rule, $P(A|B) = \frac{P(A \cap B)}{P(B)}$. For the exercise, $P(A \cap B) = P(both \hphantom\ girls, at \hphantom\ least \hphantom\ one \hphantom\ girl)$, since the comma means AND. This is then:...
I have gathered the following data sets, 24 readings for 7 days and it is as follows: mydata<-c(0.1083,0,0,0,0,0.0083,0.05,0.1667,0.6583,0.7917,1.0333,1.4333,0.9833,1.0417,0.9917,0.8833,1.15,0.77,1.2083,1.05,1.7833,1.3417,0.9583,1.025,0.175,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1.0583,0.6833,0.8333,0.5917,1.4917,0.8333,1.4583,1....
Quick question: when performing CFA with maximum likelihood estimation, does the assumption of multivariate normality apply to the items or to the latent factors? Initially I thought it applied to the items, but considering the way the arrow points (that factor predicting the item score), I am now rethinking that. Tha...
I understand for squared loss, add a $1/2$ to objective function will simplify many derivations, since the derivative of a square has a constant $2$. Are we doing similar things to logistic loss? If not, why residual deviance is twice the negative log likelihood? Few lines of code to demo my question. fit=glm(vs~mpg+h...
I am quite familiar with statistical significance, but do not understand the clinical significance well. I consulted the wiki but still felt confused with this concept. Could anyone explain for me what is clinical significance and what is the difference between clinical significance and statistical significance?
Is there any other reasons beside numerical problems with finite precision system (ieee 754) ? If our computer can have infinite precision, do we still need log likelihood?
How would you interpret negative correlations between factors in factor analysis, and should they ever be negative? I did FA with oblique rotation (Oblimin) on 30 variables which were intended to measure the same dimension, and I extracted 4 (correlated) factors. All the variables were previously recoded in order to e...
I have a table of frequencies of symptoms between 4 different age categories, and I want to see if the observed frequencies are significantly different between the groups. It is about a scoring instrument which consists of 21 items. We want to see if the frequency of each item differs between the 4 different age groups...
A little background, here is my model: mod1 = glm.nb(Goals~Defense, data = Messi.Liga) summary(mod1) And here is the output: Coefficients: Estimate Std. Error z value Pr(>|z|) (Intercept) 3.05943 1.11817 2.736 0.00622 ** Defense -0.03954 0.01498 -2.639 0.00831 ** Just so you get an idea of what the data frames look...
I was reading the new layer normalization (LN) paper and it mentioned that batch normalization (BN) batch normalization required moving averages. I was re-reading the paper but and it says the moving averages are needed to estimate the accuracy of the model as it trains (by accuracy I take it to mean train, validation,...
I'm trying to measure the impact of teachers' performance on student outcomes. I'm not entirely sure how to do this however. As my dependent variables, I have the grades of the students, mapped onto a 1-10 scale. I have a number of independent variables, including aspects about the students. My concern is in how to i...
As a learning exercise to understand the algorithm, I am implementing gradient boosting for regression, based on the Wikipedia description. I think I get the gist of it, but I have been stumped by a question, which leads me to wonder if I am misunderstanding it. Here is my understanding: * at iteration n, I have a pred...
I know this probably is a very newbie question, but I haven't been able to find anything about it elsewhere. I'm running some OLS regressions on high frequency data of stocks in order to model some imbalances, all done in R and checked with Excel. But, in my tests, I'm constantly seeing that the residuals of the reg...
To the best of my knowledge, the posterior odds satisfies the equation: $$(\text{posterior odds}) = (\text{Bayes factor}) \times (\text{prior odds}) $$ This is a simple consequence of Bayes' rule. The whole point of Bayesian inference when applied to model selection, or so I thought, was to use the information from the...
I've always subscribed to the folk wisdom that decreasing the learning rate in a gbm (gradient boosted tree model) does not hurt the out of sample performance of the model. Today, I'm not so sure. I'm fitting models (minimizing sum of squared errors) to the boston housing dataset. Here is a plot of error by number of...
I'm attempting to work through an LSTM network and have a question regarding the final output. A LSTM appears to function similarly to an RNN with a few additional processes. The question that I have is pertains to the bottom two images. The first image is of a standard RNN and the second is of an LSTM. In the first ...
I have a monhtly data set taken from datamarket. I have applied two different ARIMA models with different periods in R. The estimation results are reported below. Model 1: ARIMA(3,1,1)(0,1,1)[35] Coefficients: ar1 ar2 ar3 ma1 sma1 0.5363 0.0365 0.0545 -0.9199 -0....
Say I have data collected from an independent multinomial sampling scheme that violates Cochran's cell expecteds condition. Instead of Pearson's $\chi^2$ test of independence, can I use the Bayesian method? If so, I would like to make sure that I am making the right interpretations. The raceDolls example in the BayesFa...
I have trained a predictive model based on random forest algorithm, but it took two days to train the model and the results were quite good according to test dataset. The problem i am facing right now is that, every time i shut down my computer, if i need to make predictions based on new data, i have to run the model f...
I'm reading the book "Convex Optimization" by Boyd and Vandenbherge. On the second paragraph of page 71, the authors seem to state that in order to check if the Hessian (H) is positve semidefinite (for a function f in R), this reduces to the second derivative of the function being positive for any x in the domain of f ...
I have recently completed a study where I hypothesised a significant difference between two groups. I hypothesised that Group B would be report a significantly lower score on the outcome variable on average following the experimental manipulation than group A. The t-test testing this hypothesis was non-significant (p =...
Let $X(t)$ be a stationary stochastic process with mean $\mu$, variance $\sigma^2$ and correlation function $\rho(t_1-t_2)$. Let the integral of a stochastic process be: $$I = \int_0^L X(t) \, dt$$ The variance of $I$ is given by (see StackExchange): $$\text{Var}[I] =\sigma^2 \int_0^L \int_0^L \rho(t_1-t_2)\,\mathrm{dt...
I came across Pearson’s companion site of Murray, M. P. (2005). Econometrics: A modern introduction. Pearson Higher Education. While skimming through the related lecture slides here http://wps.aw.com/wps/media/objects/2387/2445250/PPTs/ch18lectr26.ppt, there is something I don’t get. Slide #26-7 of the aformentioned po...
I have data about different teams, players etc. I am trying to figure out the best way to model the outcome of a match, which can end in a win for the home team, a loss for the home team, or a draw. I am having trouble modelling this though. For example, I can use a poisson regression to model the number of goals each...
When speaking about regression, Why is the $SE_y = SD_y\sqrt{1-r^2}$ ? $r$ is the correlation coefficient . I can't really see it.
I have a cancer classification problem (type A vs type B) on radiological images from which i have generated 756 texture-based predictive features (wavelet transform followed by texture analysis, i.e., features described by Haralick, Amasadun etc) and 8 semantic features based on subjective assessment by expert radiolo...
For deep neural networks using ReLU neurons, the recommended connection weight initialization strategy is to pick a random uniform number between -r and +r with: $r = \sqrt{\dfrac{12}{\text{fan-in} + \text{fan-out}}}$ Where fan-in and fan-out are the number of connections going in and out of the layer being initialized...
Consider 3 models (model1, model2, model3) with the following set of prediction errors: residuals_model1=c(-0.0422,-0.0198,-0.0167,-0.0350,-0.0084,-0.0387,0.0232,0.0239,-0.0104,-0.0174,0.0292,-0.0169,0.0456,-0.0068,0.0372,0.0557,0.0003,-0.0090) residuals_model2=c(0.0109,-0.0129,-0.0058,0.0192,0.0055,0.0288,-0.0285,-0.0...
I am trying to fit dshw for the double seasonal times series, and compare the results with tbats() , I used: > dresid.train.dshw <- dshw(dresid.ts,h = 44) Error in dshw(dresid.ts, h = 44) : dshw not suitable when data contain zeros or negative numbers It seems that dshw can not deal with negative or zero values...
I have a question about the role of the MAPE in the ARIMA model optimization. For a daily time series I have found that the best model (using the Box-Jenkins approach) is an ARIMA(7,0,7)(0,0,0). If I check the ACF and PACF of the model residuals, I see that there is no more information I can extract; see the right pane...
I have one categorical predictor coded as 0 or 1 for a sample of about 290. Based on some research, I want to control for 4 covariates. One is continuous (age) and the rest are categorical (gender, ever having used certain drugs as either yes or no). My outcome is number of violent acts - this is what I'm having troubl...
Suppose that for two discrete random variables $X_1$ and $X_2$, we know their conditional distributions. Namely $$X_1~|~X_2 = x_2 \sim \mathrm{Poisson}(\lambda_1 + ax_2),$$ $$X_2~|~X_1 = x_1 \sim \mathrm{Poisson}(\lambda_2 + bx_1).$$ We want to calculate their joint distribution, $p(X_1, X_2)$. My own idea is to divide...
I am trying to undertake some Z-Tests to see the level of effect in Standard Deviations of 8 separate treatments compared to a control mean. However there is one thing that has constantly confused me in all my attempts. How do I set the mean rating of my control as the mean to compare all the other too? My Data ...
I have read this article and those linked to it, but I am still having difficulties fitting a function of this form to data I have using the nls function in R. Invariably, I fail to get convergence regardless of what starting values I choose for A through C. Here is a plot of all six of the relationships I would ultima...
Can stratified sampling be used to deal with the outliers that a data set might have? For the data set that I have, when trying to fit a statistical distribution and calculate a Value at Risk by using the Loss Distribution Approach, I find that the outliers( in my case defined based on the 3 standard deviation rule ) d...
I have 66 indicators of leadership, and I want to check which ones contribute the most to leadership effectiveness. I have performed EFA, resulting 8 constructs from leadership indicators. Should I perform CFA after that or can I move directly to multiple regression analysis? Thanks!
I am using a non linear least squares method to fit an analytical function to some experimental data. I have to provide some initial guess values to the algorithm, so I am trying to figure out how to do this automatically (rather than by eye, which is what I have been doing). This is some simulated data, created by add...
I've recently came across a Wiki article about Concentration of Measure. At the very beginning of this article, in general setting we see the following: Let $(X,d,\mu)$ be a metric measure space, $\mu(X)=1$. Then, $$\alpha(\epsilon):=\sup \{\mu(X / A_{\epsilon} )|\mu(A)>1/2\}$$ In this case $A_\epsilon$ is an exte...
I have results from the same regression on two datasets, namely t statistics and standard errors $t_1,t_2,SE_1, SE_2$, what method would be appropriate for a meta-analysis?
When I'm reading model equations, I want to spot which factor is random or fixed. In this pdf they are showing an equation (see image) and saying that: residual effects are random My question is is there a way to spot just by looking to an equation like this which factor is fixed or random? Also, is there a notati...
I have a series of trials such that $X_i$ takes only binary outcome. There are in total $N$ trials. Denote, $X=X_1+X_2+\ldots +X_N$. For all $i$ $P(X_i=0)=p=1-P(X_i=1)$. However there is correlation, between successive trials, ie $P(X_i|X_{i-1}) \neq P(X_i)$. Given $P(X_i=a|X_{i-1}=b)$, how can I find the distribution...
Some authors are saying that a mean and variance should be set for random variable, but that The means of the random effects are usually assumed to be zero. Later they are saying: If a factor is random, then it is assumed to be a variable that is sampled from a population that has a particular mean and variance...
I am measuring the time between jumps from a jump process. However my observation window starts randomly somewhere in time. Therfore I do not know when the jump before the first observed one occurs. The same thing happens when my observation window ends. In order to have sufficient data I make these observations multip...
I am applying a GLM (using SPSS v. 18) using negative binomial with log link structure for analyzing the effects of different predictors in crash frequency. From what I understand model form is $Y = \exp (b_0 + b_1 x_1 + \cdots + b_n x_n)$ However one of the independent variables is an exposure variable, and its effect...
I have the following boxplots of a quantitative trai by medication group. I would like to compare Med0 against all the other groups. Which statistical test in R would be appropriate in this case?Med0 are basically healthy individuals and med1-4 cases in different medications. All groups contain independent samples. Tha...
My main goal is to model some count data. The dataset is a time series dataset that if I were to perform linear regression, I would difference to make sure the data became stationary. However, if I want to use Poisson GLM, would I still difference it or try to make stationary? My main concern is if I were to apply a tr...
There are likely more than one serious misunderstandings in this question, but it is not meant to get the computations right, but rather to motivate the learning of time series with some focus in mind. In trying to understand the application of time series, it seems as though de-trending the data makes predicting futur...
I have a matrix with $U$ rows and $N$ columns where: $U$ is the number of users on a website. $N$ is the set of possible actions when a user participates (one per participation) The position $u\times n$ of the matrix indicates how many times user $u$ has chosen action $n$. Thus, the sum of values in column $u$ is the...
I am posting to request help understanding a part of a paper [1] on clustering analysis. I should mention that I am new to clustering analysis In [1] the authors use the Earth Mover's Distance (EMD) to cluster a set of approximately 50,000 signatures. They do this in combination with a Complete Linkage Clustering (CLC...
I have dataset with product prices observed during period of time. E.g. day_number | price 1 | 10 3 | 11 6 | 8 12 | 9 15 | 12 20 | ?? Price is recorded in data only on some days - it's missing for most of the days. If we assume that daily price changes are normally di...
I'm trying to explain Y (a count variable), in terms of X, Xsquared, and Size, with random effects for Industry/Firm, by year. My hypothesis is that there is a positive relationship between Y and X, and that this relationship has a inverted-U shape (thus the Xsquared term). I normally do this with normal regression mod...
Suppose that someone gives you a coin with some unknown weighting (maybe it's a fair coin, or maybe it's just 25% likely to get heads, or etc). How many times would you have to flip the coin to determine, within some confidence, the weighting of the coin (the probability the coin will get heads in general)? Edit: To cl...
Suppose I am fitting a logistic regression with intercept only, which is equivalent tho using the count to estimate the outcome probability and make prediction. Can I say following? We are using prior only to make the prediction. I think some persons from CV corrected me, that the word prior has close relationship wi...
I have some clinical diagnostic data from three sites that I have been looking at performance against a reference standard using the McNemar test. How would I set up the analysis to investigate if there are any differences between the three sites? My data (in R) look like: myData <- read.table(header=TRUE, text=' Sit...
This happens to be about poker but I would like to ask it in a general way There are 47 cards remaining in the deck with 2 cards to come Of the 47 cards 9 make my hand - I only need 1 but 2 two also makes my hand $$\frac { \binom{9}{1} \binom{38}{1} + \binom{9}{2} } { \binom{47}{2} } = 0.349676226 $$ Pretty sure ...
Quite stuck so hope someone could help me in the right direction. Some background for the data: For the last 15 years data have been collected on a specific species during the period from early summer to late autumn in three different geographical areas. This have cumulated to quite a large dataset. An overview of the ...
I develop GNU Parallel. For each release I would like to test whether the version I am about to release has a memory leak. I can measure the memory usage. Unfortunately the usage varies slightly given the same input. The memory usage is: base + leak. The base varies slightly and there is an expected leak of 1 bit per j...
I'm looking at a multiple regression analysis in which I'm only interested in 1 of the several variables included in the model. However, the bivariate associations are not reported. I'm wondering if I can somehow convert the standardized regression coefficient into a Pearson $r$? Maybe there's someway to get a Pearson ...
I am running a multiple regression model and looking to use AIC and BIC to select models. However I notice that both measures do not consider the number of variables we can choose from but only consider the number of variables chosen. If I have many many variables to choose from, chances are I will find something highl...
I have a $n \times d$ matrix $X$ containing $n < d$ realisations of a $d$-variate random vector. I compute Mahalanobis distances to assess multivariate normality of the random vector. Since the sample covariance matrix is singular, I use the Matlab function CorrelationMatrix by D. Sun to compute the "nearest" positive ...
Suppose I have two random variables $X,Y$ over some finite set and a function $f$ such that $\forall z \in Image(f) \, Prob[f(X,Y)=z | X = x] = Prob[f(X,Y) = z]$ Intuitively, I would think that if I now consider the function $h(X,Y) = g(f(X,Y))$ I should have $\forall w \in Image(h)\, Prob[h(X,Y) = w | X = x] = Prob[h...
Currently, I am attempting to use the G-Means algorithm to attempt to solve the ill-defined image segmentation problem as it is a very algorithmically cheap solution to the ill-defined high-dimensional clustering problem. The specifics about this particular implementation I'm using can be found at this blog post on The...
I just have a quick question on using sampling techniques in survival analysis. I am currently working on a project where we are trying to predict which patients should get a specific treatment. I have done KM curves, and a Cox analysis, all seeming to confirm what we have previously shown and are trying to nail down. ...
I have a variable whose values range between 1 for strongly disagree and 5 strongly agree. I want to test the hypothesis if the respondents (managers) agree on the new implemented procedure. So I want to check if the mean is 3.5, but the data is not normal so I cannot use a one-sample t-test. What can I use in this cas...
What is the correct way to specify a difference in difference model with individual level panel data? Here is the setup: Assume that I have individual-level panel data embedded in cities for multiple years and the treatment varies on the city-year level. Formally, let $y_{ist}$ be the outcome for individual $i$ in city...
My response variable is a combining of two variables which I would like to rescale with different weights. ratio:0.5/0.5; 0.25/0.75; 0.1/0.9. Now I would like to test which is the best fit. The three models have overdispersion so I used quasipoisson regression. Following former instructions in this matter, I used the F...
I am a bit puzzled. Assume an international forum where governments, NGOs and companies vote either in favor or against a particular agreement/treaty. I want to analyze the determinants of the voting behavior of each actor. What is puzzling in this case is that the number of governments, NGOs and companies is not the...
Anyone know how to find a sample size estimate for nested ancova? G*power only does Ancova. I do not need t done for me (unless you want too :)) but how to calculate the est. sample size. Or How does the nested aspect of the ANCOVA change the sample size needed once it becomes nested. Thanks!
I am just curious about the running output of R caret train function. I am doing a grid search for a random forest model. Here is the code: predCount <- ncol(dfTrain) - 1 rfGrid <- expand.grid( #mtry = round( predCount * c(0.75, 0.5, 0.33, 0.1) ) mtry = round( predCount * c(0.33) ) ) rfTrControl <- trainControl( ...
I am running a model where I regress the change in a party's vote share on a party-level policy variable, a country-level variable that counts the number of effective parties in a political system, and an interaction of the two. Change in vote share ranges from -25 to 25, the policy variable ranges from -.28 to .28 and...
Suppose I have one data point, $x_1=0$ and I estimate the Epanechnikov kernel using bandwith $h=1$. The formula is then: $\hat f(x,1)=\frac{3}{4}(1-x^2)$ for $|x|\leq1$ I use the code: density(x=0, bw=1, kernel=c("epanechnikov")) Yet, I get that instead of getting the parabola from $-1$ to $1$, it has a larger domain. ...
My question relates to regularization in linear regression and logistic regression. I'm currently doing week 3 of Andrew Ng's Machine Learning course on Coursera. I understand how overfitting can be a common problem and I have some intuition for how regularization can reduce overfitting. My question is can we improve o...
I play a game. It is RNG-based and as such, has a chance of success for each sample. Data has shown that in a particular part of the game where one may obtain a character, there is a success rate of 5.67% per sample for a certain type of character. Based upon this data, the Expected Value of obtaining this type of cha...
The arithmetic and geometric averages provide a summary of historical performance. They are both unique in calculation and contain biases (as stated by my lecturer). My question is where exactly are these underlying biases with respect to calculation and under which situation (with example) would a statistician prefer ...
I have an independent variable (that is a group of 5; could be 1 or 2 or 3 or 4 or 5) and a dependent variable (that is categorical; could be either Yes or No). I've run a chi-squred test and found significance. How can I run pairwise comparisons between the individual groups (group 1 vs. group 2, group 1 vs. 3) to ge...
First off, here is my calculation for the confidence intervals: BPLpredictions["upr"] = BPLpredictions$fit + (z * BPLpredictions$se.fit) BPLpredictions["lwr"] = BPLpredictions$fit - (z * BPLpredictions$se.fit) After calculating the running total for all of my predictions, I end up with the following data frame: > BPLS...
I'm brand new to machine learning - let me know if I should correct terminology or extract anything out into separate questions. I'm attempting to create a board evaluation function for Othello. Each input position consists of 64 squares which can be one of {black, white, empty}. The output is the predicted score of th...
Example question: What colors do you like (choose at least 1)? Black White Grey Example data: Black = 90% White = 50% Grey = 10% How can I visualize this and demonstrate that some people that chose Black also chose White?
With respect to support vector machine, there are multiple types of kernels, such as The Gaussian Kernel, The homogeneous kernel, The linear kernel,etc. Are there any ways to calculate the exact formula of feature map for a given kernel function?
Let $X$ be an $n\times p$ matrix. We obtain a matrix $Z$ by removing the mean from each column of $X$. Let $Z=UDV^T$. Principal components are $Z \cdot V$. What is the interpretation of $X \cdot V$?
I searched all over but was unable to find an answer to this question. Please forgive me if I missed something obvious. In order to analyze an experiment, I recently implemented a Hierarchical Beta-Binomial Model like the one detailed in this blog post. This model fit my needs because I had 5 variants and wanted to mea...
In the project, I was asked to determine whether $0.5(\text{Father's Height} + \text{Mother's Height}) +6.5$ correctly predicts the height for boys. To do this, I've collected 50 male students' height and their parents'. $n=50$ However, I am not sure how to run my hypothesis test. I used confidence interval to classif...
I am reading the Wikipedia article on statistical models here, and I am somewhat perplexed as to the meaning of "non-parametric statistical models", specifically: A statistical model is nonparametric if the parameter set $\Theta$ is infinite dimensional. A statistical model is semiparametric if it has both finite...
I have a very big data which have 210k variables and 90 samples. Among the supervised classification methods, partial least squares discriminant analysis(PLS-DA) provided me the best separation. However, not all the variables contribute to this classification and I also would like to see which variables distinguishes a...
I have two related questions: Question 1: In the wikipedia definition of data dredging: Data dredging (also data fishing, data snooping, and p-hacking) is the use of data mining to uncover patterns in data that can be presented as statistically significant, without first devising a specific hypothesis as to the under...
Recently I have applied the Random Projection technique to several datasets. As you might know this method has the nice propoerty that pairwise distances between data points are approximatelly preserved: the Johnson–Lindenstrauss lemma states that: $(1-\epsilon)||u-v||^2 \le ||f(u)-f(v)||^2 \le (1+\epsilon)||u-v||^2~~~...
Variable $X$ is a random variable with know $E(X)$ and $Var(X)$. Variable $Y$ is also a random variable with know $E(Y)$ and $Var(Y)$ and $X$ and $Y$ are independent. What is the variance and expected value of $\dfrac{X}{X+Y}$? The expected value looks simple, but the variance not... I found this post, and from there ...
I have a simple question. I'm doing a regression with countries (346 countries). I have a variable that measures level of previous conflict. I rescaled this variable in a variable that goes from 0.0 (minimum) to 1.0 (maximum) (mean 0.16 and SD = 0.23). I found that I need a quadratic and a cubic term of this variable. ...
I have estimated a time-varying parameter vector auto-regressive model (TVP-VAR) as in Primiceri. (2005). Time Varying Structural Vector Autoregressions and Monetary Policy. I then proceed to compute impulse responses as I would for a constant parameter model i.e. I compute the impulse responses for each time period bu...
There are several evaluation measures for multilabel classification. In the mlr package tutorial you can see some of them: http://mlr-org.github.io/mlr-tutorial/devel/html/measures/index.html and even more in this paper https://journal.r-project.org/archive/2015-2/charte-charte.pdf (e.g. AUC for multilabel) with implem...
Let C be a Gaussian or Student copula and $F_1, ..., F_d$ empirical margins. $C(u) = F(F_1^{-1}(u_1), ... F_d^{-1}(u_d))$ I know how to draw from C and get $(u_{1}, ..., u_{d})$ Imagine that I know $u_{1}$. I was wondering how I can draw from C conditional on $u_{1}$. I don't expect a closed form formula as I have no e...