instruction stringlengths 9 38.7k |
|---|
In finance, the price of an asset is given by the following formula.
$P_t=P_0* e^r$
r=returns
Pt = Price at time "t".
P0 = Actual Price.
Likewise, it is assumed that the yields (r) will follow a normal distribution with mean $u$ and variance $\sigma^2$.
so, the distribution functions
$$
F_p(p) = P(p_t\le p_t)=P(p_0 *e^... |
For gradient descent we have the formula:
$f(x_{k}+d_{k})\approx f(x_{k}) + \nabla f(x_{k})^T d_{k} $
What I don't understand is, why we use the transpose of nabla and not just nabla.
|
The problem asks to show that r=-(r1-exp(-i \delta))/(1-r1*exp(-i\delta)), where r1 is the reflection amplitude for the vacuum-air interface, and delta= 4\pi n l/\lambda cos(\theta). The device is composed of a glass plate with parallel interfaces, of which one is coated with metal, acting as a perfect reflector. A pla... |
Say you have the daily % change in a stock's price going back a few years, looking something like this:
```date day of week % change
2022-04-29 Friday 2.3%
2022-04-28 Thursday -1.1%
2022-04-27 Wednesday 0.7%
2022-04-26 Tuesday 1.2%
2022-04-25 Monday ... |
Suppose I have a dataset comprised of garbages. Will a model perform better if I only label the dataset with biodegradable or non-biodegradable?
Or will it be better if I label them with plastics, paper, cardboard, glass, and organic?
In fact, I also plan to further increase the number of labels for example, the plasti... |
I'm new to doing Bayesian analysis and I wanted to learn by using baseball data. I took a group of players and found their hits and at bats for various years and I want to be able to get estimates for their true batting average (theta) every year up to the current year. I was able to run an MCMC model using rjags for t... |
Would a difference-in-differences analysis still tell me something important if the control group was treated later in time? Or, would I be better off only restricting my analysis to the time frame up to when the control group was treated with that same treatment the treatment group underwent?
|
I have an $L \times L$ matrix representing a $2D$ region. Each entry of this matrix is a real number lying in the closed interval [0,1]. I want to quantify how different is this from a similar $L \times L$ matrix with completely random entries (say when each entry is sampled independently from a continuous uniform
dist... |
I was reading about gaussian process for classification and there is something that is unclear.
My understanding is the inverse probit is used instead of the sigmoid and this is because it allows for the analytical integration.
Is this correct? And what practical effect does this have vs using a sigmoid?
|
Computing the variable importance of different types of models with varImp(model), the obtained results are as follows:
Overall
<dbl>
A 21752.53
B 22032.24
I want to obtain the percentage of importance. Must I sum up all relative importance ... |
Are there closed form formulas for the posterior and evidence of a Poisson-Gamma Bayesian regression model? I was not able to find anything that is accessible online. I am not sure for which model can we find such an expression. I was thinking of the following formulation (notation follow):
Likelihood is Poisson: $P(y|... |
I have a distribution of discrete values (grades, from low to high) where I see that the certain groups have a higher frequency of observations in the higher ranges and less in the lower ranges than other groups. Eyeballing the histogram they are thus performing better.
I would like to see if these differences in the d... |
I want to use the residuals of the dependent variables as new variables for analyses. these variables are continuous mammographic density measures from twin data. so which model should I use for calculating the residuals, mixed-effect linear model or simple linear regression model? the residuals calculated from the two... |
My dataset consists of 15 video sequences, each sequence showing a different movement. I want to train a CNN to detect poses (e.g. standing, sitting, ...) on single frames of this dataset but struggle to decide for the best train/validate/test-split strategy. The classifier is based on single frames, so the sequencial ... |
I have a feeling there is a straight forward answer to my question, but I'm not sure what the appropriate term to search for is. I'm trying to get a sense of what the probability is of finding some outcome as a subset of a random sample. The challenge as I see it is that the possible subsets of the total sample are not... |
I plan to apply a LMM with the following structure: Y ~ A1 + A2 + A3 + A1:A2 + A1:A3 + (1|subject). I expect the two interactions to display opposing patterns (approximately like in the picture). However, I am unsure how to test for this opposing pattern and the negative relation between A2 and A3. My initial idea was ... |
I have a real world clinical dataset with a severe issue of p >> n. I have thus decided to run PCA before modelling the data. This leads to a dataset with 150 samples with 85 features.
I would like to now use regression to predict outcomes in both a cross-validated fashion as well as build a model with the training dat... |
I am a bit stuck with the use of linear mixed models and its random effects in a twin study analysis. What I have is microbiome data for twins that are from MZ twin pairs and DZ twin pairs, so no other subjects than complete twins.
I want to see differences between microbiome signatures in MZ vs DZ twin pairs and I was... |
I am trying to estimate $Z_{i} = P(Y=1 | A=a_{i}, B = b_{i}, C =c_{i})$ using something like empirical Bayes as in http://varianceexplained.org/r/empirical_bayes_baseball/
aggregating a massive amount of data and not being able to apply a complex model due to the data size (there are thousands of levels of A, B and C).... |
I am a software engineer performing a real-life A/B test, and I wanted to use conventional statistical tools to make sure my results were statistically significant. I have some basic textbook knowledge of p-values but have rarely used them in real world applications.
Let's say I have two different blackbox methods of c... |
Suppose $X=\{0, 1\}$ is a binary random variable, $X$ and $Y$ are independent, $Z$ is another random variable. I get
\begin{equation}
E\left(\frac{X}{E(X)}Z|Y, X\right)=\frac{X}{E(X)}E(Z|Y, X). \qquad\qquad(1)
\end{equation}
But is the following correct?
\begin{equation}
E\left(\frac{X}{E(X)}Z|Y, X\right)=\frac{X}{E(X)... |
As far as I know, the $Q$ statistics is computed with the formula
$Q = N \sum_{j=1}^K \rho_j^2 $
I created an example where I compute $Q$ by hand and by using:\
sm.stats.acorr_ljungbox(X, lags=[20], return_df=True, boxpierce=True)
From the formula above I get $Q=98.90109886278258$,
from statsmodels I get
lb_stat ... |
Let $g_{1t}, g_{2t}, \ldots, g_{nt}$ are i.i.d. random samples from standard normal distribution $N(0,1)$, where $n$ is an integer and $t\in [T]$. For any $k>2$, how to compute the exact value or an upper bound of the following expression:
$$
E \left[ \left|\sum_{t=1}^{T} g_{1t}\cdot g_{2t} \cdot \ldots \cdot g_{nt}\r... |
Suppose that I have a regression model:
$$
y=\beta+\beta_{1}T+\beta_{2}M+\epsilon
$$
and
$$
M=\alpha+\alpha_{1}T+v
$$
In this model, $y$ is the outcome variable, $T$ is treatment, and
$M$ is the mediating variable. In the terminilogy of mediation analysis,
we have that the \textbf{causal mediation }effect is defined as... |
This question is based on SQL Server Machine Learning Services Ski Rental tutorial.
We have a dataframe df:
index Year Month Day RentalCount WeekDay Holiday Snow
0 2014 1 20 445 2 1 0
1 2014 2 13 40 5 0 0
2 2013 3 10 ... |
I have a new component that is meant to replace an old component that has a well-documented failure rate. Both components are buttons, and the failure rate corresponds to the mean number of button presses between failures/malfunctions, or the percent probability that a button press will not function as intended. The as... |
I have a 3-sided (fair) die with sides x1, x2, x3. I roll the die 3000 times and tally the results: x1 * 990, x2 * 1050, x3 * 960.
A quick chi-square test reveals that the probability of getting this result is ~12%:
chisq.test(x = c(990,1050,960), p = c(1,1,1), rescale.p = TRUE)$p.value
# 0.122456428252982
Now, I want... |
I have a relatively good understanding of how RandomForest mechanically works. However, here's what I want to understand: can RF model a multiplicative relationship?
For example, if I have features A and B predicting target variable C. Let's say the true relationship is A x B=C . Would RF be able to model this? Or woul... |
(Cross-posted from math stack exchange as I didn't get any responses there)
Given a random vector $(X_1,X_2)$ that is jointly normal with means / sd's $\mu_1,\mu_2, \sigma_1,\sigma_2$ and correlation $\rho$, the sum of $S=X_1+X_2$ is normally distributed with mean $\mu_1+ \mu_2$ and variance $\sigma_1^2+\sigma_2^2 + 2... |
My question concerns Exercise 9.10 of Statistical Inference by Casella and Berger: On page 428 the authors say
In general, suppose the pdf of a statistic $T$, $f(t|\theta)$, can be expressed in the form
$$ f(t|\theta) = g(Q(t,\theta)) \left| \frac{\partial}{\partial t} Q(t,\theta)\right| $$
for some function $g$ and s... |
I have a time-series regression model where the output is always in the range of 6000-6050. After training my model, I get a Mean Absolute Error of around 18 and hence, very low Mean Absolute Percentage Error, since the denominators (actual value) are very high compared to the numerators (errors).
But in reality, being... |
Say among 100 people who are 65+ years old and randomly selected from the population, 10 have dementia.
Can I say a 65+ year old person will have dementia with 0.1 chance ?
Thx
|
I recently noticed a wonderful R package fixest to run fixed effect estimation in R.
In conventional plm package, I know that we can run pFtest(), pbptest() and some diagnostics tests on estimated residuals. But, I was wondering to know whether it is possible to run the same diagnostic tests using the fixest package.
T... |
If one can expect to be right 10% of the time, by chance alone, how do you determine the odds against being right 22% of the time by chance alone?
|
Consider two linear regression methods:
least squares regression (LSR)
reduced major axis (RMA)
I know the definitions of both regression methods but I would like to know when is the LSR better than RMA. Does it depend only on properties of the dataset (normality, variability, correlation) or there is something else... |
I have been trying to show that given $$P_{n}(\alpha) = \alpha^{n} - a_{1}\alpha_{n-1} - a_{2}\alpha^{n-2}... - a_{n} = 0,$$ the $\alpha$'s that solve this equation (real-valued or complex) lie in the unit circle only if $\sum\limits_{i=1}^{n} a_{i} < 1$. This result is referenced at the bottom of the reply in the foll... |
Can we use a two sample z-test for proportions when conducting a randomized experiment (comparing the proportions in a treatment group vs a control group that were affected by a treatment)? When a student asked me this, I initially thought no because the condition of comparing two independent samples cannot not satisf... |
I've run a parallel mediation analysis to test for the effects of a poverty simulation intervention. We have theorized that the simulation acts through changes to participants' internal and external attributions for poverty, and our dependent variables of interest is changes to allyship intentions. Specifically:
IV: co... |
I am building an LSTM Autoencoder (unsupervised model) to detect anomalies in a time series dataset. The input is telemetry data from routers and I want to detect anomalies in the throughout of router. The ground truth of whether the anomaly raised by the model is actually an anomaly or not, is unavailable at the time ... |
As I understand it, binomial logistic regression is good for predicting the probability of a "1" outcome from a discrete binomial distribution. What if instead, one wanted to predict the proportion of 1's to 0's (the proportion of sick to healthy, or animals with full stomachs to empty stomachs, etc...). I thought the ... |
I am working on a logistic regression solution, and I'm experiencing some issues with assumptions according to the diagnostic graphs.For linear regression, I am familiar with addressing similar problems with tranforming the response variable (log, sqrt, etc.) however these solutions wouldn't work for factor variables. ... |
I conducted a randomized crossover study in which I had two within subject factors; condition and Time. When running a repeated measures ANOVA the analysis shows significant main effect of condition both in R and SPSS and the p-values are the same. However, when changing to analyze the data using a mixed effects model ... |
I'm doing something equivalent to estimating the prevalence of a rare disease.
I might sample 1000 individuals, and find zero cases. In which case I'd calculate the upper confidence interval using something like binom.test() in R. Example, for finding 0 cases in a sample of 1000:
> binom.test(0, 1000)
Exact binomi... |
Let $X\sim\mathcal{N}(\mu,\sigma^2)$, which is a normal distribution. Then, $\text{exp}(X)\sim\text{Lognormal}(\mu,\sigma^2)$, and its mean is
$$
\mathbb{E}[\text{exp}(X)]=\text{exp}\left(\mu+\dfrac{\sigma^2}{2}\right)
$$
where the two parameters $\mu$ and $\sigma^2$ are carried over from the normal distribution.
I am ... |
Suppose I have data $y$ (N observations) which follows a normal distribution:
$y \sim N(\alpha+\beta*\mu,\sigma^2)$
while $\alpha$ and $\beta$ are known parameters. I want to update $\mu$ and the prior is $\mu \sim N(\mu_0,\sigma^2_0)$.
My question is what is the posterior distribution for $\mu$?
I know the posterior w... |
I obtained for the first time strange cross-validation results of my OPLS-DA model, the CV ANOVA was -nan(ind), SD residual was inf, MS residual was inf also, moreover, F test equal to zero.
The model was obtained for two groups of samples.
|
Terminology: By logit GLM I mean a generalized linear model with a binomial distribution and a logit link function. By beta regression I mean beta regression with a logit link function.
I understand – or at least I think/hope I do – that while logit GLM and beta regression can be applied to the same examples, they have... |
I am curious to know why is it important to ensure that the random component in the time series model is white noise? what is the significance behind it? Also, if the random component is white noise, then should we be concerned with MA component or can we directly model the data?
|
It is said that EM algorithm helps in cases where direct MLE cannot be carried out due to missing/latent variables. However, I could not understand why direct MLE cannot be carried out when there are latent variables.
$$ \frac{\partial }{\partial \theta}\prod_{i}^{n}f\left(x_i|\theta\right) \sim \frac{\partial }{\part... |
I've got data for three experiments, pre-post data, where I have all the individual level data (not shown). I want to produce a comparison with summary data in the form of a meta-analysis and forest plot. e.g. mean difference, with CI and the summary mean difference and CI for all three datasets combined.
The experimen... |
I have seen in multiple sources that if we start with writing a time series as follows (assuming $n$ is odd):
$$x_t = a_o + \sum_{j=1}^{(n-1)/2}{[a_jcos(2\pi tj/n) + b_jsin(2\pi tj/n)]}$$
Then we will be able to estimate the $a_j$'s and $b_j$'s by treating it as a linear regression problem.
Specifically, (letting $z_{t... |
Consider a linear regression of this type: height: beta_0 + beta_1*weight.
Adding BMI as parameter would add complexity to the problem or just cause a collinearity problem?
|
Suppose $x(t)$ and $y(t)$ are two time series. I regress $y(t)$ against $x(t)$, and obtain
$$y(t)=ax(t)+b+z(t) $$
for some regression constants $a, b$ and residue $z(t)$. Define $\Delta u(t):=u(t+1)-u(t)$ for a given time series $u(t)$. Now regress $\Delta y(t)$ against $\Delta x(t)$. It seems the following should hold... |
I have put a question what flow you get from a digital book, compared to paper from 7 (good) to 1 (bad).
I only had 26 respondents, and this is the result:
FLOW digitalt FLOW papper
Valid 26 26
Mean 5.699 5.538
Std. Deviation 1.063 1.074
Mi... |
Suppose I have a population of interest, let's say P1, I obtain data through a sample, D1 and obtain a 95% confidence interval on a parameter value of interest, CI1. The interpretation of the probability is clear - it is the long run frequency of the confidence interval covering the true parameter value if the sampling... |
I got these two images for evaluating a RF:
I wonder why the ROC curve seems to be so good while the confusion matrix shows that the True Positive isn't so good with only ~16 %?
By looking only at the ROC curve it looks like quite a good model while the TP states otherwise, or?
|
I'm building a GLM with couple of variables and I have a problem with how to organize my data. I have both numerical and categorical data and I'm struggling as to how should I structure 3 variables.
I build a model to see if a toxin in fish is influenced by environmental and biological data. All biological variables su... |
The median $\tilde{\mu}$ of a sample in many ways is analogous to the sample mean $\mu$.
Both are an estimate for the population median or mean respectively, and both approach a Gaussian distribution for a large sample under certain conditions.
It is known that the median asymptotically approaches a Gaussian distributi... |
I'm looking at exercise 8 in chapter 6 of Introduction to Statistical Learning and have noticed that the ability of glmnet() to correctly identify the non-zero coefficients of a simulated data set depends on whether poly() has been set raw = true or raw = false.
Below I generate sample and construct a model of response... |
I am analysing the results of a linguistic acceptability judgment study where 36 speakers had to rate a finite number of sentences on a 7-point Likert scale (so an ordinal scale, although I am not excluding a linear interpretation of results). I am trying to measure multiple inter-rater reliability using Fleiss's kappa... |
I understand there are a number of techniques for evaluating post-matching balance at the covariate level: standardized mean difference (SMD), variance ratios, and empirical CDF statistics.
Are there no post-matching balance measures that calculate the average weighted difference for covariate values within each treatm... |
I have used the R Boruta package to check for feature relevance in predicting log returns of financial time series, the targets being the log returns themselves (for regression) and the sign of log returns (for classification, either 1 or -1). In both cases the features used are exactly the same. For the regression cas... |
I estimated the performance of my forecasting model and that of a baseline on 10 folds using temporal cross-validation. With which test do I assess if my model is significantly better than the baseline?
|
I am currently carrying out a research where I have two categorical predictors with two levels each. The research basically consists of presenting participants with one of four profiles of a target, and asking them to rate this target on several indicators. The independent variables are the name of the target (T. or L.... |
Unfortunately I'm struggling to describe my problem mathematically. I have 2000 strings, many of which are repeated. Now I want to write a 'random' sampling algorithm that produces 100 samples out of the 2000 but in a way that every string in the sample set is represented 'fairly'. For example, if a string occurs 10 ti... |
While reading Reinforcement Learning, I saw the term, Feed Forward Policy and the article also says that it does not have memory, what does "it does not have memory" also mean?
If possible, I hope that somebody turn the following paragraph more expressive words as easy as plainly understandable.
Reference site: DR as M... |
I need to simulate multivariate normal samples with a pre-specified correlation structure. The structure is such that the bigger the (GPS) distance between two points, the smaller the correlation (with some random noise). I'm having issues enforcing this property and, at the same time, making sure the resulting correla... |
In the paper on the Boruta algorithm, there is a statement that is unclear to me (highlighted in black).
The all-relevant problem of feature selection is more difficult than usual minimal-optimal one.
One reason is that we cannot rely on the classification accuracy as the criterion for selecting
the feature as importa... |
I have an untargeted metabolomics dataset, where samples were collected over 4 timepoints (not repeated measures) from two groups of patients:
A) patients treated with placebo
B) patients treated with drug
1353 features were detected from LC-MS analysis, and I would like to do a two-way ANOVA analysis for each feature... |
I am trying to impute missing values using missRanger package. missRanger is apparently much faster than missForest.
I would like to know:
1 - Are these two packages any different in their imputation method?
2 - Since I want to log-transform my variables, should I do it "before" or "after" imputation of missing values?... |
Let $Y_1, \ldots, Y_n $ be a random sample of size $n$ where each $Y_i \sim \textrm{Bernoulli}(p), $ and
let $Y = \sum Y_i $ for $i = 1, \ldots, n.$
The estimator is $W= (Y+1)/(n+2). $
Is the estimator a sufficient statistics for parameter p?
I wanted to use the factorization theorem for this problem and wrote out the ... |
I have a problem stemming from Dirichlet Process Gaussian Mixture Models (DP-GMMs) in high dimension. I'll write this question so that no knowledge of DP-GMMs is needed.
Let $D$ be the dimensionality of our data. Suppose we sample a number of cluster centroids $\mu_1, ..., \mu_C \in \mathbb{R}^D$ i.i.d. from $\mathcal{... |
I am using Gavin Simpson's gratia package to plot my models (GAMs) as follows:
draw(mod, scales = 'free', rug = NULL)
The different plots get written to a single figure as follows (in an R Studio R notebook):
This quashes the output on my screen.
How can I get the draw function to output the different plots to differe... |
I am a bit confused as to how we determine the uncertainty of a set of data from Bayesian Analysis.
In my specific case, I am asked the following:
Assume $f(x,x_0)$ as the correct model for the observed data and the following likelihood for each datapoint:
$$p(y(x)) = \frac{1}{\sigma \sqrt{2 \pi}} \exp (- \frac{(y(x)-... |
I use the flexsurverg to estimate the a Weibull survival model with a time varied covariate, where “utility” is a continuous function, and the result is shown as follows:
I plot the fit function and it provides a survival function figure(red line),
I wonder what is the formulation of this survival function in figure ... |
My question is as the title emplies, can I use cox model to measure the difference (or similarity) of two survival functions, just as log-rank test does?
And if so, how?
Thanks in advance!
|
I have been measuring flux of CO2 in (mmol m-2 d-1) from two different rivers and I now want to do a statistical analysis using IBM SPSS but Im not sure where to start. One lake is showing negative gas, the reason for this is because the lake as acted like a sink for the CO2.
I have made a histogram first see how the d... |
I have data that involves countries in and out of Europe, life expectancy, social support and expenditure per GDP. I want to assess how successful a single country in terms of life expectancy given its social support.
I want to make this assessment with linear modelling, however, I am unsure how I could achieve this. F... |
I learned that categorical variable should be centered just like continuous variable.
I am analyzing two level model, (MLM).
case 1.
when the categorical variable is level 1 predictor, and have interaction within the level (interact with other level 1 predictor), group mean centering is not good choice?
Yaremych et al.... |
Gradient accumulation is used to deal with memory limitation by partitioning a large batch size into small chunks. For example, instead of using a batch size of 1024 samples per batch you could use 256 samples and accumulate gradients four times.
However, are these two actually equivalent? If I kept all things the same... |
Given the following hypothesis test:
$H_0 : \lambda =65, H_1 : \lambda >65$ , where $\lambda$ is the parameter of an $X$ distributed as a Poisson $\alpha=0.05$ . We have n=10 samples. Using as statistics the mean $\bar X$ Find the rejection region.
I did this:
Let $S = \bar Xn$ , $S $ is distributed as a $Poiss(n\la... |
I am trying to solve the problem shown below:
To solve (a), I defined the sum of squared errors $f(\hat{\beta}) = \sum_{k = 1}^{n} (y_k - \hat{\beta})^2$. This allows us to identify the least-squares estimate of $\hat{\beta}$: $$-2 \sum_{k = 1}^{n} (y_k - \hat{\beta}) = f'(\hat{\beta}) = 0 \implies \hat{\beta} = \frac... |
I am trying to evaluate the effect of wind direction (circular variable) on a dependent linear variable. I have used circular-linear regression to find the correlation coefficient between the two variables, shown in the code sample below.
import numpy as np
import pandas as pd
import scipy as sp
from scipy import stats... |
So I made a graph in R, it’s a linear regression of the same sample at different concentrations. It has a confidence interval built into it of 95%. Then I had to determine the concentration of an unknown sample. I got about 5 samples and got their average and made an error bar with 2 Standard Errors. Would this be enou... |
I am working with time series data and am currently using cross correlation on my data. I can use different techniques like spearman, pearson, and kendall.
I was wondering if beyond that, there are any correlation techniques/methods including ML methods? Is it possible to do cross correlation with SVM or KNN?
|
What I mean is, neural networks are neatly sectioned off into layers. But why? Why not just make a sea of neurons that all connect to each other, then let them sort out their weights and connections on their own? Is it just that doing that is too difficult, or did somebody try it and prove it's a bad idea?
|
My model has decently high AUC=90%, but is biased, underestimating the probability $y=1$. This is systematic across some of the input features as well. How can I nudge the bias term, or otherwise address this issue? I am surprised that the model ends up being biased, despite it having an intercept (bias term).
My datas... |
I am familiar with propensity score weighting. I set up the propensity score model, and then generally check for balance and overlap in propensity score to ensure that assumptions are met. However, I'm a little confused about how entropy balancing works.
As I understand it, entropy balancing directly optimizes the weig... |
I know there's a lot of material on this, but I'm still struggling to find a scenario where cross-entropy loss is better than MSE loss for a multi-class classification problem.
For example, if we have true probabilities as being:
[1, 0, 0, 0]
and predicted probabilities (after using Softmax) as being:
[0.6, 0.4, 0, ... |
I have a hierarchical time series, with two sub-series that have significantly different behaviours. One subseries would definitely benefit from Box-Cox transformation to stabilise the variance.
Is there a way to do a hierarchical forecast in fable with transformations applied to subseries and still get a consistent fo... |
I have a dataset containing matches from 2000 TO 2018 and I am asked to predict match outcomes for the year 2017 to avoid data leakage I am going to just train my model from 2000 to 2016. in the training data do I include 2018 or not?
|
I'm conducting an ordinal regression with SPSS 28. I have 3 subsets in my data (n=87 total, mostly equally distributed between the subsets) that represent 3 different scenarios where study participants were given an excerpt of text to read. I split the scenarios into 3 dummy variables and included them as factors, but ... |
I would like to compute the expectation value $\langle O \rangle = \sum_x P(x) O(x)$ of some random variable over an extremely large sample space that I cannot simply exhaustively go through. Usually I would use Metropolis Monte Carlo for this, but for this particular example I already know the exact normalized probabi... |
Consider the following conditional distributions:
\begin{align}
X, Y \stackrel{\text{iid}}{\sim} U(0, 1) &\mid X + Y = a & a \in [0, 2] \\
X, Y \stackrel{\text{iid}}{\sim} U(0, 1) &\mid X Y = a & a \in [0, 1]
\end{align}
How can one sample from each of these distributions?
Looking at this:
I think the following works ... |
In H1, I predict the positive effect of a program on the consumer spendings. In H3, I want to predict the positive effect of a program on the number of referrals, while also predicting the positive effect of spendings on the number of referrals.
I just wondered if and how to perform a moderation analysis within a negat... |
I've always been under the impression that Mcnemar's Test is for paired categorical data, just like paired t-tests are for paired continuous data. However, I was looking at the Wikipedia article for it here (https://en.wikipedia.org/wiki/McNemar%27s_test), and I'm somewhat confused. Suppose we're comparing two tests on... |
Let $X$, $\theta$ and $Z$ denote observed, parameter and latent nodes in a graphical model. The EM algorithm attempts to find a local maximum likelihood estimate $\theta^\ast$ for the likelihood of observing the data $X$ under the parameter $\theta$.
In the E-step, a certain quantity is integrated against the condition... |
I know -- correlation does not mean causation.
However, I need a "best guess" estimate for the following scenario:
Variable A = Starting Point: 4,5 (SD=0,5)
Variable B = Starting Point: 300 (SD=20)
Correlation = -0,2
I would like to predict how Variable B changes if
A is 5, 5,5 or 6
Is there any way I can do this wit... |
(Edited to be clearer)
I am trying to replicate simulating Geometric Brownian Motion (GBM) but instead of the stochastic increment following a normal distribution, I would like it to follow a distribution of my choice.
With standard GBM, if we have a standard deviation of 10% for a full period then we have the followin... |
I use the proc npar1way with the edf option to produce the KS statistic.
My aim is to use KS to understand if the sample (smp) is different from the population (pop).
When I run the proc npar1way I get the below KS :
Kolmogorov-Smirnov Two-Sample Test
(Asymptotic)
KS 0.066667 D 0.133333
KSa 0.516398 Pr > KSa ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.