instruction stringlengths 9 38.7k |
|---|
Here is the question that bothers me for a long time. I used an example to describe my question.
For example, if I asked the same participants to answer the two questions:
Q1) do you think that other students have cheated at least once in college? yes/no
Q2) do you think that you cheated at least once in college? yes/n... |
I am self-studying Bayesian statistics from the book Computational Bayesian Statistics by Turkman et al, but I am stuck on Problem 6.3 from the book:
Suppose we want to consider a Binomial (unknown $\theta, n) \land$ Beta model, in particular, a binomial sampling model $x \mid \theta, n \sim \text{Bi}(n, \theta)$. Assu... |
In the book "all of statistics" the author brings the following interpretation of confidence intervals with the following exmaple:
Interpretation:
"On day 1, you collect data and construct a 95 percent confidence interval for a parameter $\theta_1$. On day 2, you collect new data and construct a 95 percent confidence i... |
I am working on a problem wherein I am trying to predict how much 'percentage a student will score exams' based on the 'number of hours the student study', 'number of hours the student play', 'student's attendance in class', 'students hobbies', 'gender', 'his parents education' etc.
Now the challenge I am facing is tha... |
If I have say 1 year daily close price of a stock and I divide it in ratio of 80:20 as train:test data.
Now I use TimeSeriesGenerator to fit the model on train data.
After fitting the model I want to test for that I would use say last 20 records from train dataset to predict the next record inorder to compare with the ... |
My goal is to identify the best n-feature linear model, i.e. pick the model with only n-feature from total N features (n < N) and lowest Mean-Squared-Error (MSE). The experiment is on the Lasso and Ridge regression from sklearn.liner_model. I thought Lasso will do a better job as it tends to eliminate redundant variabl... |
Say that I have the model $Y=AX + E$ where $Y,X \in \mathbb{R}^{n\times m}$ and that $A$ is an unknown $n \times n$ matrix and E is a matrix of observation noise. When I place an uninformed prior on the parameters in $A$, NUTS sampler (specifically in PyMC) tends to throw an error that the gradients vanish. When I plac... |
Suppose I have a jar of colored beads. The jar contains about 15000 of those beads and they come in 10 different colors. I want to know whether there is a a difference between the true population proportions for each color.
I sampled randomly from the jar four times using a small cup (approx. 120 beads total per cup) a... |
We have a random variable $X\sim Pois(\lambda)$ with $\lambda$ unknown, and given any random sample $S=\{s_1, \ldots, s_{|S|}\}$ generated from $X$, we define $$\text{numsum}(S)=\sum_{i=1}^{|S|}s_i$$.
Our problem is then,
Given a natural number $L$ and a real number $p\in[0, 100]$, we have to find the biggest natural ... |
As general perception over training and validation accuracy is that if training accuracy is high and validation accuracy is marginally low, then it is most probably over fitting.
Consider a case of simple LSTM model in which training accuracy after 200 Epocs is 0.91 but validation accuracy is 0.08.
What is possible ver... |
The following problem emerges from coordinate ascent variational inference in a mixture model with Dirichlet-Multinomial components. I want to compute the expectation of the log likelihood. Since my likelihoods are Dirichlet-Multinomials, that requires taking the expectation of a bunch of log(gamma function(random vari... |
For a multilinear regression model, I'm trying to find the expected value of the sum of squares of regression (SSR). I have so far,
$$E(SSR) = E(\hat y'\hat y) = E((X\hat\beta)'(X\hat\beta)) = E((X(X'X)^{-1} X'y)'((X(X'X)^{-1} X'y)) = E((Hy)'(Hy)) =$$
And that's the extent of my matrix algebra skills :(
|
So I know that ANOVA is normally done for multiple hypothesis testing but it cannot be done for time series. However, what I have found for time series is only for two datasets. Here I am looking at several time series, call them Data1, Data2, ..., DataN, which are various observations in time. These are all subsets of... |
I have three variables: LAPOP05_10, LAPOP1_10, and LAPOP1_20. I have run a principal component analysis (PCA), and have obtained the following results:
Importance of components:
PC1 PC2 PC3
Standard deviation 1.649 0.51274 0.13824
Proportion of Variance 0.906 0.08763 0.00637
Cumulat... |
I am working on calculating the top k accuracy of a model my model output logits (I am working on pythorch) so in order to calculate the top k accuracy using sklearn i was wondering what would be the difeerence if I calculate the top k accuracy using the logits vs the softmax probabilites ?
Thanks in advance
|
I am baking bread and I want to know how the amount of water in the dough affects the volume of the finished bread.
I assume the relationship is linear, like so:
$Volume = \beta_0 + \beta_1Hydration + \epsilon$
The standard range for water in bread dough is 55% to 85% of the weight of flour. Let's say I want to take 7 ... |
I came across this question online that's from a math/stat challenge a while back. Would love to get some thoughts on what the correct answer should be:
You're trying to assess transit usage trends in a region that exhibits significant tourist traffic. It seems that your data may be heteroskedastic, as none of your pre... |
I have encountered a situation wherein I am trying to ascertain the causal effect of X on Y through an IV approach in a cross-country panel study, but the exclusion restriction is not entirely valid. As per my theoretical understanding of the phenomenon, the causal graph looks something like this:
Z is the instrument,... |
I'm following a blog that is modelling soccer scores using a parameterised poisson process. Each team has an attack rating $\alpha_{i}$ and defence rating $\beta_{i}$.
When coding up the model and optimising the parameters, the blog does as so:
My question is this: why does forcing the parameters to sum to nought make... |
In the f statistic formula
In the numerator, why do we multiply the sum of squares with the sample size?!
Scenic we are interested only in the variation of sample means from the grand mean.
|
I am trying to simulate a tbats model to give me an annual total and prediction interval when I have used monthly data to develop the tbats model. I tried the following:
nsim<-10000
h<-12 #forecast ahead
sim.3<-numeric(nsim)
set.seed(1234)
for(i in seq_len(nsim))
sim.3[i]<-sum(simulate(model3,future=TRUE, nsim=h))
m... |
Let's say, for whatever ungodly reason, I want to precisely calculate p-values by hand, without looking up tables for approximate values.
What is the exact specific formula for arriving at a p-value, given a t-stat and degrees of freedom?
|
I am trying to understand the difference between bias-variance and overfitting-underfitting. If a modal overfits the data it means that it will not generalize well on new data because it over learns the training dataset. I can also say that this overfitting model is biased for the training examples. Now the question is... |
I'd like to learn a model from many features.
As a pre-processing step, I will remove constant features.
I'd like to remove almost constant features as well, i.e. I'd like to set a low variance filter.
Would you have any guidance on how to implement this filter?
My concern is that some features are around 100 (in which... |
If you have overdispersed observed abundance of multiple species including zero inflation the negative binomial distribution seems to be a reasonable choice. But if some species occur much more frequently than others, is there any reason to consider estimating species specific dispersion parameters?
I am not quite sure... |
With $\tau=3,\ell=4$, and all the information available:
For $X_1, X_2$ two random variables, with $X_1\sim N(\tau, \ell+1)$ and $X_2\sim
N(-5\ell, 2\tau+1)$, and $Cov(X_1,X_2)=0$.
What is the distribution of $X_3=3X_1-2X_2$?
If I knew $X_1, X_2$ were independent, it would just be adding up means and variances, but ... |
I'm using Lasso Regularization to avoid overfitting & multicollinearity between two features (X1 and X2), nowing that I have 14 independent features. I got some good results for some features, Lasso was able to reduce the coefficient to 0, but for other features the linear regression coefficient was less than Lasso (sa... |
This question might be trivial, but I have problems understanding this line taken from here:
The balanced_accuracy_score function computes the balanced accuracy, which avoids inflated performance estimates on imbalanced datasets. It is the macro-average of recall scores per class or, equivalently, raw accuracy where e... |
I am analysing a large household survey. I specified the survey design based on the survey ids, stratum, weights, and data. So far have been able to get results using the original design. Presently, I have had to recode some risk factors of interest into 0 and 1. I will put the total count of the risk factors into a Po... |
Came across this question in my notes and I wish for some confirmation in my answer. The full question is : why don't we just model the hazard ratio $\phi= \frac{\lambda_{1}(t)}{\lambda_{0}(t)}$, directly as a linear function of the covariates Z using the $\log(\phi)$? I think the answer lies in the scenario where $\la... |
I am writing because I would like to ask more experienced people in Deep Learning about the (possible) topic of my master's thesis. I am not sure if it is not too complex and even possible to finish in 1 year for a student who has no professional background in deep learning and just finish a few related courses on Cour... |
The exercise is asking for the stationary distribution, the estimated time to get from state $0$ to state $4,$ and to conclude if the chain is time-reversible.
So I have the following transition matrix:
$$P=\left[\begin{matrix}
1/2&1/2&0&0&0&\cdots\\
1/2&0&1/2&0&0&\cdots\\
1/2&0&0&1/2&0&\cdots\\
1/2&0&0&0&1/2&\cdots\\
... |
I have been looking at how to split my data for training/validation/test for a timeseries using LSTM and came across: QA1 and QA2
Given I should implement walk-forward splits my depiction of it is:
Where each line is a Run followed by obtaining the best model.
How should the best model be decided. More specifically, ... |
I'm slightly embarassed to be asking this question, but I couldn't locate a satisfying reference. I'm a complete novice in Bayesian regression, working through the textbook Statistical Rethinking. In an example where weight is regressed on height, the author explains that it is sensible to restrict the coefficient on h... |
Given the Prussian Horse Data here:
https://www.randomservices.org/random/data/HorseKicks.html
Is there a way to find out which corp has an unusually high number of deaths?
(Note that Prussian horse data is a classic data that conform to Poisson distribution)
|
External research R1 (Stock Prediction with ML: Walk-forward Modeling by Chad Gray on 18/07/2018 at alphascientist.com) led me to believe that a sliding window is
more favourable than an expanding window but this was on Linear
Regression, does this still hold true for LSTMs?
By more favourable, I mean that according to... |
I have a dataset of about 300 patients of which 100 have repeated observations of the outcome (2-6 observations per patient) and 200 have only 1 observation of the outcome.
To determine what the risk factors are for change in the outcome over time/age, I have fitted a linear mixed model (with a random intercept per pat... |
I am trying to analyze hunting harvest data with response-variable being individuals/1000 hectares and a series of explanatory variables to describe it. Response variable is continuous (fractionals), with a mean of 2.86. However, in some hunting areas, the annual harvest is zero, thus the variable includes many zeros. ... |
Consider a boring count data model of citations of an article in relation to its page number and the price of the journal. I prefer an ordinary negative binomial regression.
Can it be that the marginal effects and the incidence rate ratios are exactly the same?
To showcase my problem using the mfx package for R:
librar... |
I need to calculate or at least estimate the expected value of this term
$$ \mathbb{E} \left[\frac{1}{(L-K \cdot\left \| \mathcal{N}(0,\Sigma) \right \|_2)^2}\right] $$
where $L,K\in \mathbb{R}>0$ are constants and $\left \| \mathcal{N}(0,\Sigma) \right \|_2$ stands for the 2-Norm of a zero mean multivariate normal dis... |
Is my first post, I hope do well.
I have this estimator, from Rao-Blackwell:
$t(t-1)/n(n-1)$ where $t= \sum_{i}^n X_i$. And $X_i \sim \text{Bernoulli}$.
And don't know how prove the consistency. Tchevyshev maybe? I will need the Variance, but I don't know, I'm confused. Please help me if you can. Thanks all
|
I'm currently working with a data set that includes multiple variables associated with each of 10 years of data. The basic structure, with (example hypothetical) variables in caps, is from YEAR to year, TV WATCHING increased, which led to less HAPPINESS and less SLEEP.
I want to test whether TV watching increased as ti... |
I've recently implemented the architectures of Transformer and BERT and found that they both have common property - masked layers among one of them. I have come to questions like below.
As far as I know, the technique of "masking" has been first introduced in Transformer. Is this true? (Weren't there anything like "ma... |
This is a general question for R users that are familar with interval censoring in survival analyses. I have clinical registry data at hand and aim to compare the one-year incidence for two groups (size about 1k each) for an outcome (amputation) with an incidence of about 10%.
1st challenge: Interval censoring
The outc... |
I'm graphing a regression in Stata with a dummy variable, but my results look like this, which makes sense because obviously the dummy variable is either 1 or 0. But s there a better way to graph this result? This is my current code:
graph twoway scatter rating_value late_ind
|
It is easy to show how a linear transformation affects the mean or the variance of a distribution. It is easy to find over the internet that a linear transformation does not change the shape of a distribution.
My question is, why a linear transformation does not change the shape of a distribution? Is it an easy to show... |
I'm trying to simulate a logistic regression and see the different parameters that I've modelled.
Here is a reproducible example and the output.
set.seed(98765)
n = 20
x1 = rnorm(n = n, mean = 6, sd = 1)
# Rescale the data
x1z = scale(x1)
z = 0 + 2*x1z # this is the equation that gives the LOG odds. Note $p = odds/(1+... |
I'm working with a time-series dataset where my dependent variable is measured annually from 2018-2021 but my covariates are not all measured over the same period. For instance, $x_1$ is measured from 2010-2016, $x_2$ from 2010-2019, etc.
I'd like to predict the value of $x_1$ for 2017-2021 and for $x_2$ for 2020 and 2... |
KNN is an algorithm where the "Curse of Dimensionality" applies extremely literally and directly.
Let's take some kind of basic, 50/50 balanced, binary classification problem. I'm wondering if there's any commonly accepted "ball-park" figure of how many features/dimensions will make the KNN too sparse to be an effectiv... |
I want to run a probit or a logit model and I am curious about the choise regarding the data sample size that I have. In a previous answer in a question 'Probit vs Logit' I read that "Probit is better in the case of "random effects models" with moderate or large sample sizes (it is equal to logit for small sample sizes... |
I have the following data:
I need to calculate the correlation between this data. How do I go about this? I can't use product-moment correlation or rank correlation coefficient as my data is neither linear nor monotonically.
I have found Lowess, but this seems to be for regression, not correlation. If Lowess is the a... |
Okay so if I have a equation that says the deflection of a beam is
$$
D = \frac{L*F}{R}
$$
Where
D is displacement
L = length
F= force
R= resistance
And I was told that The force and the resistance both have lognormal distribution with
$$
\mu_R = 500\\
\sigma_R = 50\\
\mu_F = 10\\
\sigma_F = 2
$$
How to express D as tw... |
I have data where each person can take 5 potential values of $(0, 0.25, 0.5, 0.75, 1)$. Each person is part of a larger group of 3 people, so that the reported value for each group is the average of 3 people's values, which is between 0 and 1.
For example,
Group Name Scores Average of Scores
Group 1 (... |
I'm a novice at using neural networks.
I've developed a good solution for a problem using a neural network that has two branches: a feed-forward network and a bi-LSTM, that receives different kinds of inputs. After, the outputs of these two branches are concatenated in a block of layers.
I'm writing a paper for present... |
I am conducting a meta-analysis and have encountered a study that provides both correlation coefficient and multiple regression statistics for the same effect.
Is using effect sizes from multiple regression better than raw correlation coefficients?
Thanks in advance!
|
Trying to solve this problem of mine (you don't actually need to read the linked problem, the problem is rephrased below with a different assumption):
Estimating a sample size such that its sum has some probability of not crossing some upper bound
I started with the assumption that the mean $\lambda$ is known, to see h... |
I am running a multiple regression and I have problems fixing the assumptions. Therefore my question is pretty simple:
How many variables can I exclude because of extreme values?
I have a set of about 3600 variables and right now I deleted almost 230. And to predict I most likely need to exclude more than 100 more to g... |
my area of focus is within pure math, but I've found myself in a situation where I need to run some sort of statistical test, and I am hoping someone can point me towards the correct test or framework. Apologies in advance if my language is incorrect or imprecise, and please correct me if any of my assumptions are wron... |
I have a multivariate time series forecasting exercise with sales data for past one year at daily level along with exogenous variables as number of buyers, price and promotions all at daily level. Say we have sales data from 01-Jan-2021 till 31-Dec-2021 at daily level.
I have to forecast the sales data for next month i... |
In the context of Strict Exogeneity on the classical regression model
$$y_i = \beta x_i+ \varepsilon_j$$
we have:
$$E(\varepsilon_i | x_i , x_j )=0,\quad \forall i,j$$
Under the linearity assumption, we have that $\varepsilon_i$ is a function of $(y_i, x_i)$
But, if $(y_i,x_i)_{i=1}^n$ is an i.i.d. I want to show that... |
I saw the R prop.test returns the Chi square p-value, and it got me thinking this:
Is the z-test with pooled standard error corresponding to score test, and the one with unpooled SE corresponding to Wald test?
|
Consider the situation in which 4 boxes exist, as well as 4 keys. Each key is stored inside of a randomly chosen box. Now suppose we chose a box at random. What is the probability of the chosen box to contain a given amount of keys?
My thoughts were as follows. The odds of any given key to end up in any given box is P ... |
I was trying to understand the meaning of intercepts from here
I would like to discuss about a specific example from the above link
1st example - Gym membership with activation fee (constant) and monthly gym fees is input variable.
In the example, they suggest that activation fee is the intercept and input variable is ... |
I have an NLP problem(fake news detection) and I used the code below, can I use svc for classification? and is my cross-validation accurate?
k = 10
kf = model_selection.KFold(n_splits=k, random_state=None)
svc=SVC(probability=True, C=100)
y_pred3=cross_val_predict(svc,scaled_X,y,cv=kf)
result3 = cross_val_score(svc , s... |
I am dealing with a dataset that has -
many "measurements" (say X, Y and Z)
a tremendous amount of data (at least considering we need to query it on the fly)
and a user base that is interested in joint probabilities of measurements (e.g. P(X >= x & Y <= y) | P(Y <= y))
**NOTE**: All measurements of interest are binne... |
The whole idea around ignorability is still leaving me a bit confused. I did read this post from the site: Strong ignorability: confusion on the relationship between outcomes and treatment. It had made things a bit clearer. But I'm trying to figure out what is the difference between ignorability and strong ignorability... |
I sample $n$ dimension vectors (each sample is a vector). My objective is the detection of outliers. In case those elements would distribute normally, for outlier detection, I could use Standardized Euclidean Distance, followed by extraction of the survival function based on the $\chi^2_{n}$ distribution. Unfortunately... |
If the vector $(u,v)$ is independent of the vector $x$, then I would like to show that
$$E(u|x,v)= E(u|v)$$
The only thing I can derive from the definitions is that if $(u,v)$ is independent of $x$, then $E( (u,v) | x)= E((u,v))$.
I can no longer attack this problem!
Help
|
I have been looking at how to split my data for training/validation/test for a timeseries using LSTM and have some conflicting thoughts I would like to get a bit more clarity on.
I came across: QA1 and QA2
Firstly isn't walk-forward somewhat redundant for Long Short Term Memory
Networks?
Initially I was under the impr... |
https://colab.research.google.com/drive/13wMNCXxKs_uqFVzuJqE2zxhsxWK8Ya4k?usp=sharing
Hello guys
I’m having a hard time trying to figure out what I am doing wrong here.
I used 4 pretrained models from huggingface and tokenized each model with same data.
Then I’m trying to ensemble the predict values from 4 models.
The ... |
I have read in several papers, that one can regress the squared residuals of some conditional mean regression of a variable $X$ on a set of predictor variables and interpret the fitted values as the conditional variance of $X$. E.g.:
One can regress excess returns onto a set of conditioning variables.
The resulting sq... |
I came across a cnn code of rgb images where kernel_size was mentioned only 3 not 3,3,3. So does 3 means 3,3,3. and for greyscale images kernel size was mentioned 3,3 so for grey scale images 3,3 I understood but I am confused about rgb images that have only 3? Code is below:
|
My goal is to test the weak-form efficient market hypothesis using time-series on prices of various stocks listed on S&P 500. According to theory, a particular stock is said to be weak-form efficient if it follows a random walk. I would like to ask if using tests such as ADF, KPSS and Elliott-Rothenberg-Stock (which al... |
I have a requirement, I need to predict Y from 2 X_variables, I plotted two scattered plots ie Y vs X1, Y vs X2, As you can see the below pics, the plots are sparced. There is poor correlation between Y and X_variables, I also plotted a correlation plot, which also shows a poor correlation between X_variables and Y. I'... |
When the predicted future value actually materializes, does it matter if it is outside the predict interval?
The value of prediction intervals is that they express the uncertainty in the forecasts. If we only produce point forecasts, there is no way of telling how accurate the forecasts are. However, if we also produc... |
Let's say I have a basic regression model being used in production and now I want to implement periodical model retraining (i.e. once a month) where I take a batch of new data from last month and fit old model on this new batch with one epoch only.
Assuming that model is using MinMaxScaler as feature normalization mech... |
I am reading a book which has a chapter on mixed effects models, but I am a little confused by both the model and the underlying assumptions.
Suppose we have the following basic mixed effects model:
$$y_{ij}=\mu+\alpha_{i}+\epsilon_{ij},$$
for levels $i=1,...,a$, observations $j=1,...,n$, and where the $\alpha_{i} \sim... |
Because some series contain negative raw data, and data is normalized by MinMax.
Can VECM be used after second-order difference where the series are stationary? If can, whether the number of lagged difference is the p-1 or p-2 through VAR(p)?
From Comments:
integrated of order two (Δ2) for all series. My data is not on... |
What type of factors can be used as random effects in mixed linear regression? I am working on a picture naming task. Subjects named pictures as quickly as possible. Some images appear more times, while others appear once or twice. Therefore, we include the number of times the image is present as a fixed effect. I was ... |
I am working on a binary classification using random forest and explanation using LIME. I already referred the posts here, here and here.
I have the feature contribution info from LIME like as shown below (for predicted class = 1)
Predicted class probability 0 = 0.22 (blue)
Predicted class probability 1 = 0.78 (orange)... |
I am currently working on a binary classification with 1000 records. class distribution is 75:25
I tried both logistic and random forests, My results are better for random forests.
However, when I try Xgboost, they are even better than random forests.
Meaning, the recall for minority class increases by 3 points (from 3... |
I am looking at the difference between genders on a mobility metric and I would like to evaluate the temporal patterns of this metric, I have already assessed the differences in the distributions, and volumes.
My objective is to plot a box plot per day of the week (or month, or hour of the day) for each gender and comp... |
I have used sci-kit learn RFE and RFECV to select the best features. https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.RFE.html, It gives the ranking of the features. can anyone explain the ranking based method that is used in scikit-learn RFECV.?
There are several methods for ranking the ... |
Imagine a cluster randomized trial with a binary outcome. Now let's say that the clusters aren't too large (e.g. 10 observations per cluster) and that in the control arm, the event is not so abundant (e.g. 10% - event is a positive thing).
The natural approach of analyzing the resulting data - as I see it - would be a ... |
I have $N$ subjects, $s_1,s_2,\dots,s_N$. I calculated the similarity of each pair of those subjects based on certain features which results in a similarity matrix, $S\in\mathbb{R}^{N\times N}, 0\le S_{ij}\le1, S_{ii}=0$. I also have the ages of the subjects, $a_1,\dots,a_n$. I want to test the hypothesis that if two s... |
I have a question regarding training a Machine Learning regressor for cyclic values. For instance, consider phase values. We cannot use conventional regression methods for this as for example the difference between 1 degree and 359 degrees is not in fact 358 degrees!
What tricks should one use to train the machine lear... |
Would this data set be considered stationary or are there too many anomalies around 60-120. If no, would I ignore the anomalies or would I attempt differencing to turn it stationary?
|
I am wondering what approaches are used in R to find the confidence interval for proportion? For example, in prop.test, it provides a confidence interval which is different from $\bar{p}-+z_{\alpha/2} \sqrt{\frac{\bar{p}(1-\bar{p})}{n}}$.
|
We have tested an educational activity using technology in an undergraduate class where half of the students used it, and the other half completed the traditional paper based activity. We administered a survey at the end of the class to get student perceptions. The survey was not built using constructs, but has stateme... |
I'm having trouble figuring out if I should be using a logistic regression model, a linear regression model, or something else for a problem I'm working on.
I'm trying to estimate the probability of customer conversion (I have both number of trials and conversions) over a given period by the previous periods observed c... |
I'm working with a ton of images where measurements are made on a single class, it's way more important for me to have accurate bounding boxes than having slightly more detections. To me, this sounds like a case where it would make sense to increase the loss weight of mrcnn_bbox_loss. I however didn't find any resource... |
Is it reasonable to use a Cohen's f squared to calculate an effect size between two Spearman's correlation coefficients that are squared and equivalent to R squared?
The idea is that this comparison is approximately equivalent to a sequential multiple regression statistical situation where the square of the Spearman's ... |
In my thesis I am using logistic regression models (either binomial or ordinal, depending on the type of the dependent variable) to analyse the association between environmental quality and socio-demographic characteristics.
The implementation in R was easy and I obtained reliable results. However, I am struggling with... |
Let's assume the likelihood
$$
y \sim\mathcal N_p(0, \Sigma + \Lambda\Lambda^\top)
$$
where $\Sigma$ is a diagonal $p \times p$ matrix and $\Lambda$ is a $p \times d$ matrix with $d \ll p$.
What is the fastest way to compute the Gaussian density at one specific value $y$?
Naive implementations would still scale cubical... |
Assume we have a normal distribution with known mean $\mu$. How can we estimate the variance by sampling?
The typical answer to this question is to use the unbiased sample variance estimator i.e. if the data points are indicated by $x_1, \ldots x_n$ the following:
$$\frac{(x_1-\bar{x})^2+\ldots +(x_n-\bar{x})^2}{n-1}$$... |
I have the following series of log10 numbers:
1.845098040014260
1.778151250383640
1.845098040014260
2.146128035678240
2.079181246047620
2.204119982655920
2.380211241711610
2.278753600952830
2.176091259055680
1.778151250383640
2.113943352306840
1.903089986991940
2.041392685158220
2.462397997898960
2.146128035678240
1.60... |
I'm doing simulations in R to see how it performs. I made a simple simulation with one variable like this:
set.seed(12345678)
n = 100
x.lm = rnorm(n = n, mean = 10, sd = 1)
beta0 = 2.5
beta1 = .8
err = rnorm(n = n, mean = 0, sd = 1)
# Linear combination
y.lm = beta0 + beta1*x.lm + err
# Make a dataframe of the data ... |
We know that linear time-series techniques are frequently used in macroeconometrics. The Wold Representation Theorem states that any covariance-stationary process may be expressed as an MA process plus some deterministic term.
One limitation is that the order q must be too large in order to be useful in many applicatio... |
I've seen a few resources online that construct confidence intervals (CI) in different ways.
One is through bootstrapping which essentially samples with replacement from a group of measurements and takes the mean of each of these samples. A 95% CI would then be the range that includes 95% of these sample means.
Anoth... |
Suppose that an observation $x \in (-1,1)$ comes from a sample model with a parameter $\theta$, with density function:
$$
f(x\mid\theta) = \begin{cases}
\theta\ &\text{if }\ -1 < x < 0\\
1 - \theta\ &\text{if}\ 0 \leqslant x < 1
\end{cases}\
$$
a) Suppose that the prior distribution for $\theta$ is uniform over... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.