instruction
stringlengths
9
38.7k
The values of my outcome variable range from 0 to 2 and my data is zero inflated (See histogram below). 0 signifies almost no mental health symptoms and 2 signifies moderate to high symptoms. My sample size is around ~11000 and sampled 5 times over a 3 year period (with missing values for some people and some time poin...
I have two types of time series, stationary time series dataset and non stationary time series dataset. Now I need to know if these two series predictable or not. I read about the models of predictability and the measure of predictability like mean ,RMSE,... But really I am very confuse because I do not know how to kno...
I have given the following Bayesian network. I already know the fundamentals, for example, pairwise dependencies and how to calculate the total joint probability: $$P(M,B,S,C,H) = P(M)\cdot P(S|M)\cdot P(B|M)\cdot P(C|S,B)\cdot P(H|B)$$ But now I want to calculate $P(M|S,C,H)$. I can easily apply Bayes Theorem to get:...
I have seen other posts about averaging p values. I believe I have a special case where average may apply. Finding the exact probability distribution of my data is an NP hard task, so I am using a non deterministic algorithm to estimate my p value. The algorithm was published and validated on experimental data. Because...
Let $X_i\sim Poisson(\theta)$ for $i = 1, 2, ..., n.$ Let $\theta \sim Gamma(\alpha, \beta)$ be the conjugate prior distribution. It is easy to show that the posterior $$ \theta|\textbf{x} \sim Gamma(n\bar{x} + \alpha,\beta+n), $$ If we already know how the posterior distribution behaves, do we need to use loss functio...
Recently, I did a project where I modelled a dataset of Gold price. I used ARIMA(1,1,1) and ARIMA(2,2,3) to model the data. The results that I get was ARIMA(1,1,1) was not stationary but the MSE value is low (118) and the ARIMA(2,2,3) is stationary but the MSE is high (170).
So, the idea is that I have many histograms, each one representing results for something. So, I have histogram_1 for object_1, histogram_2 for object_2,...,histogram_20 for object_20. How can throw out an outlier histogram? I mean, I am searching for an entirely outlier histogram here in comparison to the mainstream of...
I'm trying to reconstruct a function, $A(x)$ from the results of some detectors. Essentially, I have a set of $n$ points which are $ V_{i} = \int_{-\infty}^{\infty} A(x) e^{-(x - v_{i})^{2}} dx $ Effectively this means I have a set of functions detecting about a small window, where $V_{i}$ gives me the integral of that...
I am trying to test whether there has been a statistically significant increase in the prevalence of a condition between two years of a complex survey using R. The samples are partly overlapping meaning that there is a longitudinal sample of participants (paired subsample) as well as people only participating in year 1...
Im doing a medical research in which i have a cohort of 59 patients. I have data for each one about their blood level of a specific marker and data for each one about how many organs the disease I'm researching has affected. Basically I want to see whether or not the disease extension (how many organs are affected) is ...
summary of problem: I have a group of 15 images (15 samples). I have performed data augmentation on these (rotation, inserted noise, etc.): 7 variations of each image (+original img), resulting in a total of 120 (15*8) images. I want to select a certain region within these 15 images. This is done in 3 algorithms: manu...
Suppose $X_t\sim Poisson(\lambda t)$. I'm looking at an exercise problem where two probability statements are given, and the exercise is to algebraically determine the value of a third probability: $P(X_1=1)=0.36788$ $P(X_2=3)=0.18405$ $P(X_1=2)=\ ?$ I know $\lambda$ could easily be solved for algebraically if $P(X_t=0...
I have two independent groups. Group 1 with 16 samples and group 2 with 10 samples. I want to know if the means are statistically different so I was thinking of a t-test for 2 means for equal variances. To test for variance I run a Levene test and result a p value of 0.45. When I do anderson-darling for normality with ...
I have annual time series data from 2000 to 2020. The brand has introduced new marketing camping in 2010 and I want to investigate the impact of this policy, that's why I am trying to explore the trend. In case of monthly data I would decompose it into seasonality and trend components but I only have annual data and th...
I only have one variable Y which contains roughly 100 numbers in it, and there is a X has the same length as Y. Then, we use take the sum(Y) and sum(X). Distance is defined as the difference between aX and Y, so simply make ax-Y close to 0. To make some clarifications, a is a number, X and Y are vectors with same lengt...
I know the basics of machine learning from Andrew Ng's course, but I'm quite new to the practice with tensorflow. I'm creating a model with 12288 nodes in the input layer, 100 in the hidden, and 2 in the output. It receives low resolution images and classifies if they're a cat or not, but when I plot the graphs, they l...
Suppose I have an ANN which has one input layer of size $128$, one hidden layer of size $64$ and one output layer of size $10$ for a classification problem. Let's assume we have a training sample of $1000$ vectors of size $128$. Suppose I want to use the mean squared error loss (I know this is not the best loss for a c...
What is the symbol to the right called, and is it available in Latex or MathJax? I found it at the bottom of this page, the other symbols have pronunciations or are Greek letters, but this one does not.
I am trying to do a Difference in Differences/Dynamic Event Study but my data doens't easily lend itself to a classic staggered treatment DiD nor a simple 2X2 DiD. My dataset has 1-min readings from 100 immobile sensors in a neighborhood. The treatment is a gas being released (this only lasts for 30 mins-1 hour). The s...
Is there a way to separately specify conjugate priors for the variance and correlations of a multivariate normal? The inverse Wishart is conjugate if you want to specify the covariance, but covariance matrices aren't very intuitive. Is it possible to instead specify a prior over the correlations, and separately a prior...
I have infant appetite trait variables that are ordinal and non-normally distributed, therefore I used Spearman's rank correlations to test their association with infant weight and BMI z-scores. I want to go further and test the association between the appetite trait variables and infant weight and BMI z-score while co...
There is a library on GitHub called timeseriescv which implements Combinatorial CV. I am trying to use it in conjunction with GridSearchCV. However, unlike normal sklearn cross validators which have a function called "get_n_splits" which returns the number of splits, this package does not have this function. The docstr...
I have a binary classifier which outputs a given score to differentiate normal (low score) from abnormal (high score) cases. The score itself however is non-interpretable to others. I know a ROC plot is typically used to select a threshold to map these continuous scores onto binary decisions. The threshold is selected ...
Suppose I have a sample $\mathcal{D}=\{(\mathbf{x}^{i}, y^{i})\}_{i=1\dots M}$ of binary variables $\mathbf{X}$ ($N$ of them) and a continuous variable $Y$ that I want to predict based on a linear regression with second order interactions: $ \begin{align} y^{i} = \beta_{0} + \beta_{1}x^{i}_{1} + \dots \beta_{p}x^{i}_...
I am interested in plotting the PDF of a zero-one-inflated beta distribution so that I can overlay an empirical density function of the observed data, with a PDF using the parameters I estimated from a regression fit using the brms package in R. I understand how to generate a PDF for a discrete zero-inflated distributi...
Reading some papers, I've been seeing notions of "Gaussian detrending" https://royalsocietypublishing.org/doi/10.1098/rsbl.2019.0713#d3e1047 I've seen the notion of Gaussian smoothing and such, but I am having some trouble studying Gaussian detrending. Could someone link me a good resource on the topic or explain it t...
I am trying to compare how often members from two groups of turtles (adults vs juveniles), fed in 1 of 3 locations (sea floor, free-floating, or surface). I don't think I can use a chi-squared or Fisher's as the turtles could have fed in multiple locations in the same 'test'.e.g 10 times on the sea floor, 2 times in fr...
I have a dataset where I am trying to identify what group of people (i.e the predictors) are most likely to do X. I have ~25 predictors, ~5k cases and a binary outcome Y. The predictors are categorical with many levels. I am mainly interested on what drives the outcome the most - it would be helpful to have coefficient...
I have a question about how exactly the Benjamini-Hochberg method for multiple hypothesis testing works. The Wikipedia page for False discovery rate says: For a given $\alpha$, find the largest k such that $P_{(k)}\leq {\frac {k}{m}}\alpha$ Reject the null hypothesis (i.e., declare discoveries) for all $H_{(i)}$ for ...
Variational inference is about finding an estimation Q(z) for the posterior P(Z|x). According to all the variational inference papers, this is done by minimizing the KLdiv(Q||P). I want to understand why they choose to minimize this KL div and not the KLdiv(P||Q)? and how this choice is beneficial for variational infer...
Let $Y$ be a random variable which is a function of another random variable $X$, such that $Y=aX$, where $a$ is a constant. Is it possible that the moment generating function (MGF) of $Y$, is given by, $$ \phi_Y(s)=[\phi_X(s)]^a, \tag{1}\label{1} $$ where $\phi_X(s)$ is the MGF of $X$. For our analysis, let us consider...
I am averaging volumes over a couple of shapes using different orientations and plane views. I think I read somewhere that the variability can be reduced in proportional to the square root of the number of shapes that is being used for the average, but I can't find any references to this. Is that statement about variab...
Let's say I have an urn with $n$ balls, with $K$ different colors of balls, where each color has the same number of balls: $\frac{n}{K}$. Given I reach into the urn and grab a ball (without replacement) $m$ times, what is the probability of getting $k$ different colors of balls? I asked the same question here, and has ...
Sometimes I find that the likelihood function is written as $L(\theta|X)=p(X|\theta)$ while other times $L(\theta|X)\propto p(X|\theta)$ where it is mentioned that $L(\theta|X)= K\times p(X|\theta)$ for some positive contant $K$. which is correct? If $L(\theta|X)\propto p(X|\theta)$, then what is the constant?
I have a dataset with repeated measures (each plantID is tested at 4 different ppm of CO2 - image below). I have tried analyzing the data with and without a random effect of plantID: lm(CER ~ ppm, data = dataset) and lm(CER ~ ppm + (1|plantID), data=dataset) The output is identical in both cases. This even happens when...
For the following regression model, $$ y=\hat{\beta}_0+\hat{\beta}_1\cdot|m(a)-m(b)|+\sum_{k=0}^{12}\hat{\beta}_{k} 1[|m(a)-m(b)=k|] $$ The fitting plot not a linear. Why the blue line (that is fitted using a regression model that assumes a linear trend) is not a linear line?
I'm trying to perform univariate cox regression in many different subsets of my data frame. In order to give you a good example, I'll use here the colon dataset as a model. library(survival) library(survminer) colon2 <- subset(colon, rx == "Lev+5FU" | rx == "Obs" ) OS_colon <- as.formula(paste('Surv(time, status) ~ rx...
I am developing a model framework in the context of online marketing: the dependent variable is purchase, the independent variables includes a mix of continuous (e.g., impressions, ad spend) and categorical variables (e.g., day of the week, channel). One of the categorical variable is creative which has about 20 differ...
I'm new to ARIMA modelling, and am trying to use the xlstat app to model alcohol sales using ARIMA(0,1,0) based on yearly data. These are the data points I'm using: The dickey-fuller test shows that the data is stationary and looking at the acf and pacf I decided to use an ARIMA(0,1,0) to model the data. When I model...
I am performing a meta-analysis. Most of my data does not have an odds ratio with a Confidence Interval. The majority of the studies I have included in my meta-analysis only have a p-value for a particular question with a sample size. Can I create a plot with only the sample size and p-values for each study? Is it poss...
Repost from MSE. I struggle to get any response to this on MSE and on MO. If you like you can recast everything below as a problem about drawing $k$ balls of $M$ different colors from an urn without replacement. There is a famous trading card game that is abbreviated as YGO. In this game you may select the deck of card...
I created a statistical model with one categorical factor with six levels and performed a posthoc test to obtain the significance level for every contrast (15 comparisons). I wonder if I should apply the Bonferroni correction to account for multiple comparisons. Say that I have a vector named "p.values" with the 15 p-v...
I have no problem understanding the question at Statistics Show How To Question 3: A wedding caterer gives you three choices for the main course, six starter choices and five options for dessert. How many different meals (made up of starter, dinner and dessert) are there? as giving me 3x6x5=90 meal combos. However I ...
Context I'm following Lewis (1995) exposition on normalized cross correlation for template matching (Section 2). The cross-correlation of the image and the feature at $u,v$ is denoted by $c(u,v)$ and defined as $$ c(u,v) = \sum_{x,y} f(x,y)t(x-u,y-v) $$ where $f$ is the image and the sum is over $x$, $y$ under the wind...
In this scenario, the end goal is to determine which columns are most important. I use this term very very very loosely, because I know that interpretability is never straightforward but I just want to get a general idea about a ranking for column importance. Say that I have 5+ different tree-based models that I train ...
I'd like to understand the basic logic for control variables in observational studies. According to Wikipedia, one should control for confounding variables, which "in this context means other factors that not only influence the dependent variable (the outcome) but also influence the main independent variable." But shou...
I have about 15 month time series data of average flight occupancy. I wish to forecast how the average flight occupancy would look like 1 year from now. There are alot of work done on this it seems (Example: https://www.icao.int/Newsroom/Pages/Latest-air-traffic-forecasts-illustrate-encouraging-recovery-and-higher-grow...
I would like to extract all coefficients from the linear regression model. By default, the reference category coefficient is omitted, but I need it along with the other coefficients. Consider the following data: library(conjoint) data(chocolate) And this function: Conjoint(x = cprof, y = cpref, z = clevn) 1 interc...
I have a question about the numerical method, which is used to find Calculating water consumption volume and cost. I have the following flow speed datasheet. https://docs.google.com/spreadsheets/d/1akC9YkCNEHHHAunEr6TYJ88Ps_osbCianbH-wiZXSrM/edit?usp=sharing The data taken above is Flow Speed. before the data is conver...
I have a question regarding the odds ratio. A paper that I submitted was sent back for revision after peer review. However, one of the authors asked a question that has left me quite confused. In this research, I reported the Adjusted Odds Ratios, 95% Confidence Interval, and P-value for a Logistic Regression Generaliz...
I'm trying to solve a problem using Chebychev^' s Inequality: "Suppose that X is a random variable with mean and variance both equal to 20. What can be said about P(0<X<40)?" P(|X-μ|≥kσ)≤1/k^2 Restating the original equation: P(0<X<40)=P(|X-20|≤20) Rewriting to match Chebychev's Inequality P(|X-20|≤20)≤1- 1/k^2 ;k>0 ...
So I am trying to implement the most basic Exponential Random Graph Model implementation using Python. Concretely I'm trying to estimate the maximum pseudo likelihood estimate, which can be formulated as a logistic regression problem which should be easily estimable using basic optimization software. I'm using the flor...
I am new to loss functions in Bayesian analysis and from what I understand are: Squared error loss function - the estimator will be the posterior mean. Absolute error loss function - the estimator will be the posterior median. I came across another loss function named as Weighted Squared Error Loss function which int...
I want to compare the logistic regression model and support vector machine regression. odds ratio is used in logistic regression. can we use odds ratio in support vector machine regression.???
I'm trying to replicate NBER's business cycle dating which consists of a binary dummy variable with 0 = expansion, 1 = recession. The way I've done this is by taking the 6 underlying economic indicators, transforming the measures to annual growth rates and taking a simple average to form a composite indicator. This pro...
I have been looking for a simple moving windows exponentially weighted regression implementation. I came across this: # This gist demonstrate the use of a linear algorithm to compute exponentially weighted rolling linear regression between two time-series. # benchmark rolling linear model using R's lm function # out...
I'm having a conceptual problem related to using different types of predictor variables (i.e., count data vs. continuous data) in Poisson regression. My field method was walking transects and counting items. For an example, let's imagine we're counting the number of scats as the response variable. Because my transects ...
My B2C company partners with multiple companies and sells their products on their behalf. Our specialization is distribution and sales across different US regions. Product focused companies outsource sales and distribution to us. The company receives a commission on final sales. Sales teams are regionally distributed a...
Trying to understand how log-transforming a count variable changes the regression equation. The reason I ask is because I see a lot of researchers log-transform their data so they can use OLS. Say you have a Poisson GLM: $$ y = exp(\alpha + \beta x) \implies log(y) = \alpha + \beta x $$ where $y$ is a Poisson random va...
Let $X$, $Y$, $W$, and $Z$ be random variables where $X$ and $Y$ are different metrics of the same data point and $W$ and $Z$ are also different metrics of the same baseline datapoint. The assumption is $X$ and $Y$ are linearly correlated as are $W$ and $Z$. Given an instance of $\frac{X}{W}$ I want to know or predict ...
I understand in general MSE, RMSE and MAE means average distance between the actual and predicted value, and the lower the MSE, RMSE and MAE, the better the model fits the dataset. I try to understand these concepts more thoroughly by interpreting the following result - I have used model 1 and model 2 to predict each s...
This question comes from page 142 of the book "Pattern Recognition and Machine Learning" by Christopher M. Bishop. Since it takes pages to arrive at the result, I excerpt the major settings as follows. The goal is to derive the maximum likelihood solution for parameters $\bf w$ in a deterministic linear model with addi...
In the original ResNet paper, when pre-processing their dataset, the authors subtract the mean, but they don't scale the images by STD (or by 255): The plain/residual architectures follow the form in Fig. 3 (middle/right). The network inputs are 32×32 images, with the per-pixel mean subtracted. The first layer is 3×3 ...
I have a quick question regarding working out the probabilities of a bivariate normal distribution. To my knowledge, there is no nice closed-form for a cumulative distribution function for the bivariate normal distribution (Botev, 2016) so instead, we must numerically integrate through the bivariate normal distribution...
Let $X$ and $Y$ be independent random variables which follows Poisson distribution with rate $\lambda_1$ and $\lambda_2$ respectively. I would like to know and find (if it is possible) the distribution for $R=\frac{X}{X+Y}$. Does the distribution of $R$ exist and if yes, how to find it? A part of me suggests that the d...
I have a question about logistic regression. I am trying to make a model to predict 0 or 1 from several continuous and categorical variables. I know that one continuous variable X is normally distributed in the pool of participants, but I cannot get the dependent variable for all of them due to the cost. Therefore, I ...
I am trying to understand what the zero conditional mean assumption ($\mathbb{E}[u\vert X]=0 $) encompasses in addition to a zero-correlation assumption ($\text{Corr}(X,u)=0$). I assume it must be "stronger" (by stronger I mean covers more cases) assumption, as otherwise we could replace it with a zero-correlation assu...
I'm trying to estimate the following CFA model with the lavaan package and get the warning: The variance-covariance matrix of the estimated parameters (vcov) does not appear to be positive definite! The smallest eigenvalue (= -2.941160e-15) is smaller than zero. This may be a symptom that the model is not identified. F...
Going back to the basics for a second. Say we have a random variable Y that is normally distributed: $X$~$N(\mu_1,\sigma_1^2)$. That means the pdf of X is: $$f_X(x)=\frac{1}{\sqrt{2\pi}\sigma_1}e^{-\frac{1}{2}(\frac{x-\mu_1}{\sigma_1})^2}$$ We also have a variable Y that is normally distributed: $Y$~$N(\mu_2,\sigma_2^2...
I have measured the learning rates of two neural network models, and now I have the average reward plotted against time, for both models. What statistical test can I use to compare the 2 lines to see if there is a significant difference or not? The models are both the same, but are initialized differently to see whethe...
I have been studying multivariate analysis and hypothesis testing , and came across this question in back exercise Define Mahalabonis measure of distance squared between two populations with a common positive definite dispersion matrix and show that it is a non decreasing function of the number of characteristics. I ...
In VAEs, it is hard to calculate the posterior: $p_\theta(z|x)$ because that reduces to: $$ \frac{p(x|z)p(z)}{p(x)} $$ which is difficult to calculate because $p(x)$ is hard to calculate. But why exactly is $p(x)$ hard to calculate? Is it because you must do the following to calculate it: For each image, loop over eve...
Say I have some pretrained model with an ok but not great accuracy. I can augment my existing training data with new datasets and retrain to increase performance. Say there are two datasets available, $S_1$ and $S_2$. Let's say $f: \mathcal{S} \rightarrow [0,1]$ denotes the increase in accuracy (or another metric) when...
I am conducting a randomized controlled trial, and after intervention, the numbers of patients with some characteristics (for example, prediabetes or IGT) have changed. I want to compare the percentages of some characteristics in the intervention group before and after the intervention. And, I think Pearson's chi-squar...
suppose I have different "scores" that can be computed for every data point in a time series. The score quantifies how anomalous the point is. The scores are very different in nature, so its not like an ensemble of identical algorithms on different features..... I want to understand what possibilities I have to combine...
I would like to find the MLE estimate for the following model. I am given $x_i, t_i, \sigma_i, Z_i$ for $i = 1, \ldots, n$. I am also given functions $f_j$ for $j = 1,\ldots, m$. $$Z_i = \sum_{j = 1}^m c_j \cdot f_j(x_i, z_i) \cdot Y_{ij} + N(0, \sigma_i^2)$$ Where $Y_{ij} \sim N(0,1)$ and $<Y_{i_1j},Y_{i_2j}> = \exp(-...
I am new to spatial statistics and am trying to fit some spatial models using the nlme package in R. I fit three different models, using the same set of predictors for different variable specifications. To assess spatial correlation of the residuals, I would like to produce a semivariogram. All examples online show a s...
I am currently writing a paper for uni and stumbled across the following problem: I want to use the 10 Fold Cross Validation method to validate the results of a logistic regression, but I am unsure when to use methods like the Likelihood Ratio Test and Wald Statistic in order to also validate the function and coefficie...
I have time series data and I am confused about the output of correlation and cross correlation. This is my data: y x1 Min. : 0 Min. :23.47 1st Qu.: 18 1st Qu.:27.28 Median : 751 Median :28.00 Mean : 1601 Mean :27.99 3rd Qu.: 1744 3rd Qu.:28.78 Max. :1...
Consider two sequences of random variables. At each point in the sequence $X_n \sim F_n$ and $Y_n \sim G_n$, and let $F_n(t)$ and $G_n(t)$ denote their respect CDFs. The distributions $(F_n, G_n)$ are not guaranteed to be continous. Suppose that both random variables converge to the same limiting distribution. Formally...
Having read around on the topic I understand its application as a close approximation of the normal distribution with a nicer mathematical form, but where does its name come from? Is it associated with computer logic and its binary nature?
This is for QR at two well know trading firms (think jane street, HRT, Citadel, Jump ...)(not BB bank). Question prompt: Given n iid Uniform distributed r.v.s. $x_i$ ~ U(0,1). $x_1$ is drawn first, then $x_2$, then $x_3$... Let $r_1$, $r_2$, $r_3$,..., $r_n$ be the order of $x_1$, $x_2$, $x_3$, ..., $x_n$ after all n d...
I've trained a regression model to predict some process' monthly output based on monthly aggregated data - for example mean of January, Feb, March etc-. The model doesn't care about seasonality. Now, I want to use this model to decide whether this process has already output the predicted value in any given time. For t...
So I am running some hypothesis testing on a data set with a binary response (presence/absence data). My response variable is the use or lack of use of a given resource (0 or 1 respectively), over ~6 different resources. I am looking across populations using the glmer function in R with my individual as a random effect...
The authors get the Monte Carlo standard deviation of the empirical standard deviation as follows. My question is how to get the MCSE of the EmpSE? For bias, the MCSE of $\frac{1}{n}\sum \hat{\theta}_i-\theta$ is just $$ \sqrt{Var[\frac{1}{n}\sum \hat{\theta}_i-\theta]}=\sqrt{\frac{1}{n}Var[\hat{\theta}_1]} $$ The es...
A popular approach in topological data analysis is persistent homology (Chazal and Michel 2021 for an intro), but it is not clear to me what sample sizes are appropriate. Some talks seem to use samples of $10^4-10^6$ for real data, and for demos I have seen as few as 50-100 points successfully identify the right Betti ...
I'm in the middle of a replication project in some previous studies using another stimulus space than these previous studies. I want to test whether the estimation was made based on one or the other standard. In the previous studies, researchers utilized Von Mises distribution to fit their data for their sets of data c...
I found a study that compared minor physical anomalies(MPA) between certain group of patients with the control group to determine if MPAs occur more frequently among these patients compared to the control group. One of the MPA item is epicanthus which is an extremely common trait among Asians(esp. Chinese, Japanese, K...
I'm new to Time Series and I'm confused by some assumptions relating the classical regression model and time series. Econometrics, Fumio Hayashi's book, when introducing the classical regression model, makes some caveats for the case of time series. For example, in page 45: But, as emphasized in Section 1.1, the stric...
I wish to forecast electricity power demand at a mall. Data is collected daily, but, the data has multiple seasonality : data/power consumption is generally similar from monday to thursday but see a change on friday, saturday, sunday (weekly seasonality) ? power consumption vary with month. Summer months the power co...
For whatever reason I am struggling to understand how to model the following scenario. Suppose that I have a panel data set covering some arbitrary number of individuals over the period 2000-2020. Moreover suppose that there exists some economic relationship that can be modelled as follows: $$ y_{it}=\beta x_{it}+\mu_i...
When using a Binomial distribution, the bulk of literature assumes that the probability of success $p$ is known, or deterministic. I would like to get the distribution for a Binomial RV with unknown probability of success $p$, conditional on previous sampling, e.g. with $g$ successes from $M$ trials. Using Bayes rule, ...
If I have annual international trade (from 2000 to 2022) data and Country A has implemented a new policy in 2012. What is the benefit of detrending in this case if I want to investigate the impact of this new policy on trade?
I am modelling Dow Jones returns using a GARCH(1,1) model but I also want to estimate a GARCH(1,1) by inserting a covariate to check if this covariate affects the volatility in some ways. The covariate I want to insert is an index called EnvP which measures the salience of US environmental policy over the 1981-2019 per...
I'm looking for a model to learn relationships within and between a set of partially observed time series in order to generate predictions for any timepoint in any of the set of time series. More specifically, I have data on the proportion of available team minutes played by soccer players (range 0-1), aggregated per y...
Let us assume we need to maximize the likelihood $p(x|\theta)$ of an observed variable $x$ given a set of parameters $\theta$. However, this likelihood also depends on a set of hidden variables $z$, that we cannot observe. Updating the parameters $\theta$ in an optimal way, would require the knowledge of $z$, that is n...
Let's say my null hypothesis distribution looks like this The red lines form the distribution and I've marked black lines corresponding to a significance level of 0.05. Now I run an experiment and get a uniform distribution that looks like the larger green rectangular region below. The interesting thing is, the mean ...
I have a vector of event dates where multiple events can occur on the same date. I have sorted these dates in chronological order and have also generated a table of times between events. Here is an example of the data: > table(table(sorted)) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ...
I understand that the joint density of two random variables $f(x,y)$ can be decomposed as the product of its marginals and a copula: $f(x,y) = g(x)k(y) \times c(G(x),K(y))$. Alternatively this may be written using CDFs as $F(x,y) = C(G(x),K(y))$. Is it possible to directly estimate the joint density $f(x,y)$ or the joi...
I'm trying to understand the solution to a problem from A First Course in Probability (Ross): There are two misshapen coins in a box; their probabilities for landing on heads when they are flipped are, respectively, .4 and .7. One of the coins is to be randomly chosen and flipped 10 times. Given that two of the first ...