instruction
stringlengths
9
38.7k
I'm looking for more machine learning online self-study materials. I have taken Andrew's CS229 course, and participated few Kaggle competitions and found that they are very good self-studying materials, and love them very much. I want to go deeper into math and, at the same time, train myself to apply machine learning ...
I have an air pollution variable (PM2.5 measurements) for a dataset of 9,506 participants based on geographical location. Because many of the participants live in the same general area, there is a large proportion of observations with the same exact value for PM2.5. For example (biomeclean being my df and avgpm25 being...
I'm reading Judea Pearl's smoking and lung cancer example illustrating the front-door criterion for counterfactual analysis (p. 225 from Pearls' The Book of Why: The New Science of Cause and Effect). One of the assumptions is the mediator variable measuring tar deposits in subject's lungs is exclusively caused by smok...
$Q:$ When should I consider pre-stratification(blocking) vs post-stratification? From experiments, I would certainly consider pre-stratification but post-stratification seems to homogenize the sample after the study. $Q':$ How do I justify each usage in general? Note that in ANOVA, blocking depends upon the efficiency ...
I'm reading two descriptions of the VQ-VAE objective: Kingma claims in page 18 that we want to maximize the ELBO, and shows that it can be written as $ELBO = logp_{\theta}(x) - KL(q_{\phi}(z|x)||p_{\theta}(z|x))$, the marginal likelihood of the data - the KL divergence between the approximate posterior and the true pos...
I have a dataset with classes [a, b] where during training I have made sure that the dataset is equally balanced. I have trained the network using cross-entropy loss with equal importance. I am able to achieve an accuracy of around 90% for both classes a and b. However in reality I would prefer to network to have much ...
I have two datasets coming from the same monitoring device. One dataset measures speed based on GPS and the other measures the speed based on acceleration. Assuming GPS data is the most accurate, I need to compare the datasets to see how similar or different they are. When data are compared visually, I can see they are...
Autoencoders cannot process large-scale data sets efficiently, due to its serial implementation. can you please explain why it happens? Thanks in advance!!
Intro I built a clustering algorithm for a specific problem I have. The clustering algorithm wasn't my main goal, I just had to be able to separate the data into clusters prior to further processing, and I wanted to see if I could cluster the data so that I can later run my further processing on unlabeled data. Some De...
In the Wikipedia definition, the feature vector is defined as a histogram, as well as in this popular and well-done YouTube video. However, if the features are words, then the variable is nominal and, therefore, the distribution cannot be estimated by a histogram (rather, it would be a bar chart). Are these two sources...
R's documentation behind ?runif states that the default RNG is "Mersenne-Twister": From Matsumoto and Nishimura (1998); code updated in 2002. A twisted GFSR with period 2^19937 - 1 and equidistribution in 623 consecutive dimensions (over the whole period). The ‘seed’ is a 624-dimensional set of 32-bit integers plus a ...
In order to better understand some statistical concepts I generally try to run simulations to get to those results and see how the results match the theory. While reviewing the Poisson and the Exponential distributions I decided to simulate a Poisson process following my understanding of it. However I ended up using Be...
In the Bayesian setting, we update prior distribution $\pi(\theta)$ to posterior distribution $\pi(\theta | x)$ given data $x$. So data $x$ provides an operator $T_x$ on the set of distributions on the parameter space. $$T_x: Dist(\Theta) \to Dist(\Theta)$$ In many cases, people argue on which prior distribution to tak...
I want to test my theory against a set of scenes. Specifically, I have 10 2x2 contingency table with observation and expected frequencies. Since there is only one model rather than 10 different models, I want an overall p-value covering all data. My assumption is that my theory can predict the success rate of ALL scene...
Cross entropy for a random variable $x \sim p$ and a distribution $q$ is defined as: $$H(p,q) = -\sum_{x\in\mathcal{X}} p(x)\log q(x) = \mathbb{E}(\log q(x))$$ $\mathcal{X}$ is all possible values that the random variable $x$ can take. However, in the neural network world, the cross-entropy loss is defined as $$loss = ...
Model Details After some thought about previous questions I've posed here, I've decided to add splines to non-linear terms in my logistic GLMM. However, there are a number of questions I have about doing so, and the answers on here seem fairly non-specific to my issue. My original model is a logistic GLMM that goes som...
I have read multiple tutorials that talk about tuning the number of trees (n_estimators or num_boosting_rounds) as a hyperparameter. However, when I train the tuned model, I can see that the loss curves do not fully plateau. My question is, why do we tune the number of trees if it is not going to minimize the loss duri...
To use AR/MA/ARMA models, the data needs to be stationary. Detrending data by taking differences between sequential data points seems to do this. However, does decomposing the data do the same thing? By separating data into seasonal and noise data, isn't the noise the same as the "detrended" data? If we remove the tre...
I am new to this but I was wondering how to prove this. I can reduce A†A to (VΣ†UT)(UΣVT). Would I have to reduce the UT and U to the identity matrix and just continue to simplify? I would get something like (VΣT)...(ΣVT), I guess I need help doing a full simplification of A†A
According to the definitions: The correlation matrix reports the correlation of each variable with each dimension. Contribution refers to the contribution of each category of each variable to the dimension. I have two questions regarding the interpretation. How to interpret these correlations and, how is it different f...
$X$ is a random variable with mean $\mu$, variance $\sigma^2$, skewness $\gamma$ and kurtosis $\kappa$, and $ \mathtt{Var}[X^2]=0.$ Under what conditions can $\mathtt{Var}[X]=\sigma^2 >0$? Is my reasoning below correct or can it be done in a simpler way? We have that $$ \mathtt{Var}[X^2] = \sigma^2 \left( (\kappa-1)\s...
I want to explore the effect of time of a day on 4 different medicine types in a between group design. My data looks like: Medicine Type Participant Time of the day First 1 Between 9 am - 12 noon First 1 Between 12 noon - 3 pm First 1 Between 3 pm - 6 pm First 1 Between 6 pm - 9 pm First 1 Between 9 pm ...
I fit a model with transformed data with log10 transformation. I would like to report the results using the original scale and not the transformed means. I know you can back transform the log means by taking 10 and raising it to the power of the log-mean. I would also like to have the standard error back-transformed. I...
Let $X$ be the number of hits in $N$ tries, I know that the probability of the next hit is $P(\text{Hit}) =X/N$. How can I get the generic expression for the probability distribution function of hitting $x$ hits in $N$ tries, knowing that the probability of hitting the first shot is $p_1$? I've been trying to find the ...
I'm wondering how the cumulative incidence function for a single event type is computed when you specify that you want to get separate curves for, for example, treatment vs placebo. One curve ends up above the original curve (generated independent of treatment group) and one below, whereas I thought they would both be ...
This question Why are all regression predictors in a balanced factorial ANOVA orthogonal? asks why all predictors in a balanced ANOVA setting are orthogonal. My question is in what sense are the predictors orthogonal? The model $$y_{ijk} = \mu + \alpha_i + \eta_j + \gamma_{ij} + \epsilon_{ijk}$$ can be understood as a ...
If $X \rightarrow_d aY$ and $W \rightarrow_d Y$ where $a$ is a constant in $\mathbb{R}$. Is $$X + W \rightarrow_d (a + 1)Y$$ true due to the fact that the limiting random variable is the "same"?
I'm training a Sarimax model using recent 20 observations sampled monthly, PACF and ACF plots of the series are: I'm fairly new to time series, but according to tutorials and articles, I've come to an understanding that lags under the confidence intervals are insignificant and lags above it are considered significant...
I apologize in advance if this question has been already solved elsewhere, I have search for it but I could not find a solution for my problem yet. I want to assess the effect of forest cover on species presences and absences using logistic regressions (glm family=binomial). I have a large dataset (data compiled from d...
In flexsurv the var-covar matrix of the parameters can be produced with the vcov() function. This will produce a var-ovar matrix for the shape and scale parameters provided by the function coef(). Rather than use shape, I want to find the var-covar for m = exp(scale)^(-exp(shape)) and scale. I was wondering how I would...
Let $Y_1, . . . , Y_n$ be a random sample from a Poisson distribution with parameter $\lambda > 0$. One observes only $W_i = I_{Y_i>0}$ (indicator function). Compute the likelihood associated with the sample $(W_1, \ldots, W_n)$ and the MLE in $\lambda$. I attempted this problem, but have not obtained results that seem...
In my recent project I keep encountering asymmetric copulas like this: However, most of the common parametric copulas I could find are symmetric. While there are some resources on asymmetric copulas I can't figure out if any of them would be a good match to describe the relationship of these random variables.
What does a jagged / v-shaped residuals vs fitted plot mean? I am doing a multiple linear regression with three explanatory variables I used a linear regression model with the data and indicators below, there are 217 data points: emissions.urban=lm(EN.ATM.METH.KT.CE~AG.LND.AGRI.K2+AG.LND.FRST.K2+SP.URB.TOTL,data=wbcc) ...
I have got a question, that I cannot solve for myself. I´m modeling with R and plan to compare diffrent GARCH-Models (GARCH only, no ARCH) in modeling and forecasting the standarddeviation of several time series. My current overview is SGARCH, NGARCH, EGARCH, GJRGARCH and TGARCH. The plan is to compare two symmetric GA...
I'm using the Gini coefficient to evaluate the performance of a model. Making some changes (feature selection, hyperparameter tuning, etc.) I created variant models with different Gini coefficients. How can I prove that the improvement in the Gini coefficient is indeed statistically significant? NB: This question was a...
I am experimenting with VAEs. There, there is a parameter that you need pass when you create the NN, which is the dimension of the latent space. In the typical MNIST example we have the following data: # Load digits data (X_train, y_train), (X_test, y_test) = keras.datasets.mnist.load_data() # Print shapes print("Sha...
I am revising lecture slides and came accross this definition but it lacks any further explanation: Def:A stochastic process ${y_t}_t>=1$ is strictly stationary if for all $t_1, ..., t_n$ and all $h>=0$; $P(y_{t1},...,y_{tn}) = P(y_{t1+h}, \ldots, y_{tn+h})$ What is h here?
relative rookie here so apologies if the answer to this is obvious. I am trying to find the correct approach/technique for this problem. I have object A and a data set. The data set contains 2 columns, a score representing how similar object A is to 10 other objects and a value for all other objects - something like th...
I tested using a CFA two versions of the same questionnaire: the long version (i.e., 30 items) and the shortened version (i.e., 20 items). It is possible to compare these factor structures using AIC and BIC indices? The sample size is the same as well as the estimation method (CFA implemented using ML). Thank you.
In statistical Hypothesis testing, let's say we are testing for a change in a test statistic, for example, the change in proportion of the population that are over 45 years old, although the test statistic could be anything. The test is done from a sample of the population, and the sample proportion is compared to the ...
Would it be advisable to use the F1 score as an 'error', to represent both omission and commission error rates in this areal masking process? Would it be advisable to treat the RMSE and F1 as standard deviations, and add them in quadrature to produce an error estimate? Would it be appropriate to then use this error te...
This question is about the correct interpretation of the results obtained from a linear mixed effects model. Lets imagine I have a simple dataset with three columns: One grouping variable for subjects, one continuous predictor variable x and one continuous response variable y. I have 20 subjects and about 30 values for...
I have heard the following but I cannot be totally convinced. The DAG is shown below. $Q:$ Why does unmeasured mediator–outcome confounding possibly remain even in randomized control trial? Should not randomization remove almost all possible confoundings? In other words, the treatment should be independent of everythi...
I am trying to implement the bias-corrected and accelerated (BCa) bootstrap confidence interval (CI) for parameters from discrete distributions. The way to compute the acceleration constant "a" is to use a jackknife estimate (leave one out). However, I cannot find any other options. As far as I know, the jackknife esti...
When forming the null and alternative hypotheses, are we able to use data from the sample? For example, say we sent marketing materials to two groups. We want to know if the difference in Revenue per Buyer outweighs the difference in Cost per Buyer. So we set up the following hypotheses: Null: H_0 = (Group A Revenue pe...
I have an IV and a DV which are both scale scores. I have categorized the IV and dependent variables based on previous studies. I wanted to do this to calculate the prevalence of DV and IV. I also used an independent sample t-test to compare the means between the categorized IV and continuous DV. Finally, I did a corre...
I have the following questions (all related): Suppose we have variables $\mathrm{x}^1, \mathrm{x}^2, \mathrm{y}$ and they are normalized to have mean 0 and variance 1 . It is known that the sample Pearson correlation coefficient between $\mathbf{x}_1$ and $\mathbf{x}_2$ are $0.7$. Consider a univariate model, that is,...
I am trying to find optimal threshold that can differentiate the two classes well but i am getting negative thresholds using roc_curve and precision_recall_curve. I have build a CNN-LSTM architecture. I am not sure if these information are enough to find the solution, but i want to know what would be the first thing yo...
I am performing a machine learning task. I have data, 8163 observations in total, with which I will need to split into a train and test (holdout) set. I am also performing cross validation with the train set to prevent overfitting. My question is that does the distribution of the train, each validation fold and test se...
I can calculate the standard error of the mean as: $SEM=\frac{\sigma }{\sqrt{n}}$ where $\sigma$ is the standard deviation and $n$ the sample size. I would imagine that the equivalent for the median is simply: $SEMedian=\frac{MAD}{\sqrt{n}}$ where $MAD$ is the median absolute deviation. But I cannot find any mention of...
I have a longitudinal dataset where I want to predict future sales of products, however, the dimension of the timeframe across products are not constant, for example product 1 has data for months between January and August and product 2 has data for months between September and December. Each product exist in a categor...
I am having a really hard time interpreting results from a zero altered negative binomial model. This is related to my question but some things have changed. I am doing this in R. Quick background on my data...I am trying to model bythotrephes prey found in fish stomachs. My data is zero inflated and overdispersed. Aft...
I am using for the first time the tools of autocorrelation and partial autocorrelation and I am facing some difficulties regarding the interpretation of the results. (Maybe I misunderstood what partial autocorrelation was?) To illustrate my problem, I use the number of daily views on the famous Wikipedia site between 0...
I am trying to predict a financial variable that is highly skewed. I thought I should log transform it, but that is causing difficulties, as I am also concerned with accurately modeling the overall mean of the data. When I exponentiate the predictions, and take the mean, I underestimate significantly the true mean. I a...
I am using PCA to examine the relationships between environmental factors of a couple of different types (physical properties, concentrations, relative abundance of genes). I have log-transformed the data, which I think solved issues with scaling. However, when I run the analysis, the points (locations) are very far fr...
In a balanced incomplete block (BIB) design, what is the best way to ensure each treatment appears in all positions/orders? Should I randomize treatment order within each block, so that participants within each block see the treatments in a random order? Or, should I randomize the order of treatments in each block onc...
For example, questionnaire 1 has 20 items scored from 1-5, questionnaire 2 have 10 items, and it is a True/False scale (so the final score is like true =1, false =0, and add them up), can I still do a Pearson correlation between them? If I had to standardize the score, how should I standardize them? just merely averagi...
i think i'm with a little problem. I was working with a dataset but the dependent variable was not normally distributed, so i decided to used log in that variable. To see the difference between them i made a model with log transformation and a model without the log transformation. So in my model with the log transforma...
I have many (several thousand) statistically independent time series of the same stochastic process and want to test for stationarity. Due to the large sample size I can easily calculate many statistical measures: There are no obvious trends, constant mean, the autocorrelations only depend on time-differences and the p...
I understand that, in most cases, one calculates a standardized change between two scores as (Lakens 2013) i.e., the mean of the change scores is divided by the standard deviation of the change scores. My question is: Why don't we divide by the standard deviation of the scores at baseline, instead? It seems more intui...
$Y=\frac{x_1x_2}{β_0+β_1x_1+β_2x_2}$ It was written on some slide of my econometrics class that such a model could be expressed in the form of a linear model, but I am struggling to derive it by myself. Here is what I have attempted so far: $\frac{1}{Y} = \frac{\beta_0+\beta_1x_1+\beta_2x_2}{x_1x_2}$ $\frac{1}{Y} = \fr...
I am performing a permutation (exact) test on some data and would like a sound check or to be schooled if what I’m doing is statistically valid or not. I have multiple time series that might experience an event on any given day which leads to my hypothesis that on any given day the event occurs the day-to-day percentag...
Consider the situation where I sample $x$ from $N(\mu, \sigma)$, and then I sample $y$ from $N(x, \sigma')$ where $\mu$, $\sigma$, and $\sigma'$ are fixed parameters. Is there a closed form PDF for the random variable $y$? Does this kind of situation (i.e. allowing a distribution parameter to be a random variable) hav...
I am estimating a logistic regression model to investigate how various factors influence second-year college retention. I include a variable indicating whether a student is in a minority racial-ethnic group and, as expected, find that this negatively impacts the probability of second-year retention. However, when I i...
Background I'm trying to use fisher's exact test for to measure data-drift detection between two features. The usecase is , I can retrain my model if the data has drifted. I'm trying to use fisher's test as I found out that it is able to handle low cell counts where chi-square assumptions fail. I'm using scipy.stats.fi...
If I have an imbalanced response variable 80% majority, 20% minority, and my decision tree is not finding any splits. Could this potentially be because of the imbalance in my response?
I have been struggling with this demonstration and I can not finish it, I want to demonstrate that for Gaussian samples (of $\sigma$ and $\mu$) the maximum likelihood ratio test holds for a $\chi^2$ distribution. I want to prove it with a test statistic (z-test), $$Z^2=\frac{n(\hat{x}-\mu_0)^2}{\sigma^2}$$ The likeliho...
In my current assignment I'm supposed to implement a method using GREG-estimators. In order to understand those, I'm looking at Horwitz-Thompson estimators. These I think are described in quite vague terms: Is this a reasonable explanation and what does this mean exactly? In the simplest case with independent random s...
I don't know why gradient vanishing/exploding is a bad thing? If the gradient of a parameter is small by gradient descent and back propagation, it is the power of Mathematics Rules (Chain Rule) that told the gradient should be this small to get a optimized function value. So by definition, the gradient value should alw...
I have tried looking here and elsewhere for information about sample sizes for nonlinear regression, but I'm finding it difficult to get concrete answers on this topic. Specifically, what is the established number of subjects or observations that are generally required? I will be potentially modeling a crossed random e...
The question I am asking has its reference here. I will list it out simply below. Since I am learning probability properly for the first time, there are a lot of confusion that I want to clarify. Imagine that we are data scientists tasked with improving the ROI (Return on Investment) of our company's call center, wher...
I have a simple probabilistic graphical model: $z \longrightarrow x$ where $z_i \sim Exp\left(\lambda_i\right)$ where subscript $i$ denotes the $i$th dimension and $x|z \sim \mathcal{N}\left(f\left(z\right), \sigma^2\right)$ where $f$ is some real valued function (usually non-linear). I'm using variational inference to...
I understand one-hot encoding is linearly dependent and if I drop one column, it would become linear independent, but I don't know how to prove it, can someone give me a mathematical proof.
I have the following problem: I want to estimate the following regression models: $$ Y_1 = \beta_1 + \beta_2X $$ $$ Y_2 = \beta_3 + \beta_4X $$ I.e., I have different dependent variables and the same independent variables. I want to test the following hypothesis: $$H1:\beta_2=0$$ $$H2:\beta_2=\beta_4$$ I have found sev...
I have a data frame in which I have some categorical variables, some are ordinal and others are nominal. How can I deal with nominal columns/variables that have too many levels? For example, I have a column native_country which would be a nominal variable. Is there a way of converting such columns like the one mentione...
Which statistics would be ideal for comparing two groups with three unpaired data points in each group? With just three data points, I suppose a t-test would not be ideal.
I need advice on how to create a train-test-split with a small data set of correlated time series to predict historical values. My data consists of 30 different time series covering each 4000 periods, which are spatially and temporally correlated (e.g. GDP in different countries, measured daily across several years). I...
I am going through an old metrics tutorial using instrumental variables regression. In one question we are supposed to estimate the Average Treatment Effect (ATE) using a control function approach. We predict the residuals $\hat{R}$ from the first stage of the instrument $Z$ and other controls $X$ on the (multi-valued)...
My dependent variable is "mental health score" (discrete numeric, 1-10), and my independent variable is "dose" (continuous numeric, 0-500mg). I want to do a pairwise, post hoc analysis to see which dosage produces the highest mental health score, but I can't do this if my dependent variable is continuous; if I set "dos...
I have the following data: Score Treatment 1 Treatment 2 >=50% 10 16 < 50 % 21 7 I need to describe the differences in the proportion of individuals with score <50% in the two treatment groups. How would I go about doing this? I am trying to do this in R. Would I need to run a chi-squared test or possibly...
I have some high-dimensional spectral data I want to use in modeling plant productivity using a supervised model like random forest. I want to use the model for inference as well as for prediction in a model comparison. I initially wanted to use PLS to reduce the dimensionality and then (instead of performing a regress...
I am running a fixed effects regression with a panel dataset of roughly 7M rows. The objective is to measure the effect of some event on the outcome variable, Y, which represents the amount spent on a good, say alcohol, in a given week. I am controlling for Person and Week fixed effects and clustering standard errors...
I'm analyzing a ratio metric in the context of an A/B test (e.g. "Clicks / Impressions"). Since the randomization unit and analysis unit are different (users vs impressions), I'm applying the Delta Method to correct the variance. I'm using the formula from a paper by Deng et. al (https://arxiv.org/pdf/1803.06336.pdf): ...
Say we have a random number generator. It generates 2000 numbers that we put in two arrays, 1000 numbers each. Like this (here shorter arrays used to illustrate the point): [4, 20, 5, 6] [7, 21, 3, 3] Then we sort each array and get: [4, 5, 6, 20] [3, 3, 7, 21] Then we compare corresponding numbers in arrays and genera...
I have patients (20 total) that took both "treatment1" and "treatment2" and I am analyzing the change of a response variable, I use paired wilcoxon test to analyse this data. But I have been asked to use a resampling method to give more "reality" to the results since I have a low sample size. How Can I use a boostrap m...
I have a cohort of patients for which I have 2 separate polygenic risk scores. I would like to produce a quantile plot such as this one: To do so, I have first divided the PRS score into quantiles, generating the weight_total_PRS_quantile factor with 10 levels, and then produced a logistic model, and finally calculate...
I am interested in understanding which of the following situations will be better approximated by this hypothetical model. Simulate a dataset where one of a model's random (or mixed) parameters is normal $(\beta\sim\mathcal{N}(\mu, \sigma))$. Then try to approximate the distribution of this parameter (incorrectly) spe...
Problem: Which method should I use to observe whether there is one common factor/component explaining six different measures (i.e., face and objects)? Study: In this study, we have four measures of faces and two measures of objects. Of the 6 measures, half were measuring memory, and half were measuring perception. We w...
I am new to this so please be nice. I have longitudinal data for my control and group 1. Within control and group 1 I have more groups. e.g person id number. Essentially I want to know the best stats test to compare longitudinal data in my control and my response group. I've managed to do LMER analysis for my control a...
In the xgboost paper, in Section 4.1, they state that: In the exact greedy algorithm, we store the entire dataset in a single block and run the split search algorithm by linearly scanning over the pre-sorted entries. We do the split finding of all leaves collectively, so one scan over the block will collect the statis...
I am trying to make time series forecasting with keras. Has any one observe the phenomenon where the model can predict the next value after the current (the one that should predict)? If in fact I move the the forecasting values one position to the left (starting the predicted dataset from 1 instead of zero) the accura...
Is it possible to compare the standardized pearson residuals for two given cells from two different chi-squared tests? The respective variables have different numbers of factor levels. I am not looking for an inferential test. I just want to say that cell a_xy in table A contributed more to the overall significance tes...
Reading the definition of MLE, it sounds like it is: "Given a likelihood function, estimate the most likely parameters." When I read that, it sounds like it has the same goal of what backpropagation does in neural networks - find the most likely parameters given the "likelihood function" of the neural network. My quest...
Does a L2 consistent, consistent in probability, or almost sure consistent estimator have a asymptotic variance equal to rao-cramer or better? With almost-sure consistency, why doesn't the estimator have a variance lower than that of the Rao-Cramer lower bound?
This is a question I had in my interview: we have $N$ i.i.d Uniform$(0, 1)$ random variables. Define a good neighbor for $x_i$ as the point that is closest to $x_i$ in absolute value. We call a pair $(x_i, x_j)$ a good pair if $x_i$ is $x_j$'s good neighbor and $x_j$ is $x_i$'s good neighbor. What's the expected numbe...
Edit: 5 mo. later. I was misunderstanding mixed effects models. I was treating the random effects as if they were fixed effects. I was unaware of the constraint imposed on u that results from assuming u ~ N(0, s). The more we move the u's, the more variance they get and thus the likelihood decreases. In the simples...
I have a massive dataset of social media posts. I want to assess whether several variables are related to a binary outcome. Because some people posted more than once, I am trying to account for this dependence by using a multilevel model (specifically, I am using lme4 in R). I was unable to create a reproducible exampl...
In the context of the article BiRank: Towards Ranking on Bipartite Graphs specially the Bayesian interpretation section 5.2. I want to make inference on the vector non-negative vector $\mathbf{u}\in \mathbb{R}^{n_u}$. Thus, I want to sample from a distribution with the following log-likelihood: $$ \mathcal{L}(\mathbf{u...
How to find the density function of a bernoulli variable y =1, -1 ? i know the formula for y=1,0 but i want it for y =1, -1
According to wikipedia and here and here, the lower bound on the probability that an element is $\epsilon$-typical is $1-\epsilon$ for sufficiently large $n$, and this is derived by using the asymptotic equipartition property which states that the limit of this probability as $n$ goes to infinity is $1$. But why $1-\ep...