instruction
stringlengths
9
38.7k
I've been puzzling over some linear algebra problems and going through some old textbooks, but they rarely talk about prob stats things like expected value, std, or mean. Is there a good textbook / set of notes which looks at linear algebra from a probability / statistics perspective? For example, with linear algebra y...
I was trying to understand Ridge Regression and came across the following excerpt from Hastie et al. in The Elements of Statistical Learning (section 3.4.1, Page 67): If we consider fitting a linear surface over this domain (the Y -axis is sticking out of the page), the configuration of the data allow us to determine ...
I have $n$ bins, and a pool containing $N$ balls, $N > n$. I do a consecutive $N$ times: I take one of the balls from the pool and put it into a bin randomly selected with uniform probability $1/n$. The iterations are independent from each other, i.e. it's a memoryless process. When I'm done, what's the marginal distri...
The total number of orderings of a sample (from lowest to highest) of two independently distributed continuous variables $x$ and $y$ is calculated thus: $$\text{No. of orderings } = {n_x +n_y \choose{n_x}} = \frac{(n_x +n_y)!}{n_x!n_y!},$$ where $n_x$ and $n_y$ are the respective sample sizes of $x$ and $y$. I am inter...
I'm modeling the total revenue of sellers in a 1 year period. The distribution plot below shows quantity*price for each seller with outliers eliminated. The outliers were taken out with IQR * 1.5 fences. What you see below on the x-axis are z-score scaled values. What is the best way to go about the analysis of this ...
I tried to prove the problem: Suppose X $\sim \ U(\theta-1,\theta+1)$, $\theta \in \mathbb{R}$. Then there is no UMVUE for $g(\theta)$ unless $g$ is a constant function. Here is my attempt: Suppose $T(X)$ is the UMVUE for $g(\theta)$, then it must be uncorrelated with any unbiased estimator of zero $U(X)$, that is $E...
Here is the dataset. I tried converting this implementation into its analog with Keras. Why are my predictions SO bad? They are almost always close to a single number. Doesn't matter if I use more layers, more neurons, or even if I use convolutional NN. Am I doing something quite wrong? I used the same dataset to train...
I have some data which I'm using to predict the potential outcome of a new applicant defaulting on their credit loan. For Kaplan-Meier, I don't believe there would be a need for splitting the data as the analysis pertains to the observations looked at, solely (correct me if I'm wrong). But for cox regression, is it nee...
I am trying to write a 3 level multilevel linear model in R, using lme4. I've decided to use the data from this question as a guide: Crossed vs nested random effects: how do they differ and how are they specified correctly in lme4? library("lme4") dt <-read.table("http://bayes.acs.unt.edu:8083/BayesContent/class/Jon/R_...
For example, in linear regression, we can say that the relationship between X and Y is linear. When X increases, Y also increases. On the other hand, for non-linear regression (Power model as an example), we can say that the relationship between X and Y is exponential relationship. When X increases, Y increases exponen...
I am using lmer() to run an analysis with one categorical variable with 2 levels (task) and one continuous variable (farFC). Below is the model: model <- lmer(respTime ~ task*farFC+ (1 | Subject),dt,control=lmerControl(optimizer = "bobyqa")) Here is the output: How do I run contrasts for the interaction term? When I...
I am trying to do: find 1000 points that represent samples from distribution X with parameters $(a,b,c,\ldots, d)$ be guaranteed that the MLEs for those 1000 points are $(a,b,c,\ldots, d)$ with $99\%$ probability or whatever Is there a methodology to generate 1000 points for a distribution, where when working backwar...
I am working on a structural VAR model for Australia in R, and I need to implement sign restrictions. Since the package VARsignR was removed from the CRAN repository on 2022-07-21, are there alternative packages available to implement sign restrictions (frequentist)? I am also considering moving to Bayesian and using B...
I am trying to generate Natural Question-Answer for a specific domain. I am using a Large Language Model (LLM). I have only context to generate question-answers but don't have any ground truth. How to measure the accuracy or how good the generation is? I am repeating the experiment 2-3 times, How to compare which quest...
This is probably a stupidly simple question, but I am absolutely a layperson when it comes to most of this stuff and I understand just very surface level stuff. Everything I can find online searching this up seems to be extremely complicated instead of just giving me a direct answer. The gist is I'm trying to use Excel...
Let $X$ be a continuous random variable which induces a probability measure on $\mathbb{R}$ denoted by $\mu$. Are there any instances in statistics when we deal with random variables $X$ such that $\frac{d\mu}{d\lambda}$ does not exist (where $\lambda$ is the usual Lebesgue measure)?
Find the probability that a person tossing 3 coins will get either all heads or all tails for the 2nd time on the 5th toss. Typically people solve it like: \begin{align}P &= (\textrm{Probability of getting HHH or TTT in first four trials}) \times (\textrm{probability of getting HHH or Success in the fifth trial})\\ ...
Following is the explanation of multinomial distribution from a source of lecture notes (by Yen-Chi Chen). The multinomial distribution is a common distribution for characterizing categorical variables. Suppose a random variable $Z$ has $k$ categories, we can code each category as an integer, leading to $Z \in\{1,2, \...
I have question regarding effect size for paired t test some textbooks and statistical software like spss use this formula Cohen′sd = d/SDofdifference to calculate effect size for paired t test and other use this Cohen′sd = d/SDaverage SDaverage = sqrt((1sd ^2 +sd^2)/2) both give different result! so which one s...
I am learning about perceptrons and how they work. I read that each weight $w_j$ is updated based on the equation: $\begin{equation} w_j:=w_j+\Delta w_j \end{equation} $ Where: $\begin{equation} \Delta w_j= n \times (y^{(i)}-\hat{y^{(i)}}) \times x_j^{(i)} \end{equation}$ Here, $n$ is the learning rate. There are two ...
Does $n(y_n-\mu) \overset{\mathbb d}{\to} \mathcal N(0,\sigma^2/ n^2),$ remembering that $n^{1/2}(y_n-\mu) \overset{\mathbb d}{\to} \mathcal N(0,\sigma^2)?$
Below is a code snippet to plot the accuracy, sensitivity and specificity. I can manually eyeball and see the cutoff point at approximately around 0.3. I was wondering if there anyway to print out that value programmatically the point where all three lines cross (see attached image). # Now let's calculate accuracy sen...
I am performing a dirichlet model for different species using a small sample size (between 8 to 20 samples per each). Since my dataset is small, I bootstrap my data with 1000 iterations, averaging 3 random selected individuals with replacement each time, creating a new dataset per species with 1000 "samples" (where eac...
I have a panel dataset which contains diameter measurement data for 88 trees obtained from a mapped stand in Duke Forest. The description of variables is: Each tree is indexed by a unique ID (ID), and the diameter of a given year (yr) is the variable cm(cm). For each year, three variables of weather information are als...
In classification problem(e.g. in the click-through-rate prediction problem which is to predict whether a user will click an item or not), we usually use +1 for positive label and 0 for negative label. This is naturally good. But is it a necessity? what's the difference between using -1 for negative label, or even more...
I am looking to determine whether two medians are not equal and attempt to estimate the median difference between the two. From my research, I have found this can be done by performing the Wilcoxon Mann u test and quantile regression. However, I am confused on interrupting the for results each. Below if my data, code f...
Let $X_1, ..., X_n$ be a series of idd random variables. Imagine we are training a machine learning classifier over these variables with the task of predicting a feature $F$. A typical scenario might be trying to classify subjects into healthy control or diagnosed based on some clinical data, which we'll assume from no...
I`m using a GLM to determine the influence of climate variables in the incidence of a disease in 6 different cities across time (2007-2020). I'm using a negative binomial regression, since the dependent variable is a count. Dependent variable: monthly number of cases (casos) Offset: monthly population in each city (pop...
I want to create a model to predict a new, unseen, observation's credit loan default time. I know that I could use a cox regression. I'd like to use a Conditional Inference Tree, however, despite many using KM for descriptive statistics. What I had in mind was to split my data into training and testing subsets (my orig...
I'm training a linear model to predict log(returns) of a given financial series. The shape of my target distribution has about as many returns above 0 as below 0 (top image). My predictions distribution has an R2=0.07 -- I hear this is typical for financial series -- however the distribution skews very differently to t...
I'm interested about building survival analysis from scratch (ideally in python) to better understand how it works. I haven't found much material, so I was wondering if anyone can share material available online on this topic.
One small doubt I may be novice Please help me with your guidance. I have dependent variable Log(Y) and a set of several independent variables say x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,...... around 50 variables. I have tried many transformations like normalization , mean subtraction , reciprocals, sqrt and many other but I w...
I am working on a susceptible ($S = S_1$ or $S=S_2$), exposed ($E$), infected ($I$), hospitalised ($H$), deceased ($D$) and recovered ($R$) model. Below is my model, \begin{equation} \begin{split} \frac{dS_H}{dt} &= \sigma\Pi - \left( \lambda_1 + \lambda_2 + m_1 + \mu \right) S_H \\ \frac{dS_L}{dt} &= \left( 1-...
High-dimensional literature typically assumes that the number of predictors $p$ increases with sample size $n$, say $p = O(\exp n)$. I can understand that assuming $n\to\infty$ corresponds to increasing the number of observations in a study, say we collect more samples. Are there any actual examples of $p$ increasing w...
AIC, BIC are the famous criteria for model selection. But many times they show different results. I read in several places that BIC is consistent while AIC is not. And AIC can achieve minimax rate but BIC can not. However I do not actually get the concept behind these. An intuitive and lucid explanation is appreciated....
I have a random function $f_n(x):R\to R$. At each point $x\in R$, $f_n(x)\to f(x)$ at $1/\sqrt{n}$ rate. While $f(x)$ is smooth, the functions $f_n(x)$ for fixed $n$ are more like step functions, becoming smoother with $n$ growing. Are there methods (even naive methods, and maybe imposing some conditions on $f$) for co...
The general condition is that $Y_i = r(X_i) + \epsilon_i$, and we want to estimate $r$ using Nadaraya–Watson kernel regression. We additionally assume $r\colon [0,1] \to \mathbb{R}$ is lipschitz, so $|r(x)-r(y)| \leq L|x-y|$ for all $x,y \in [0,1]$. We want to find the maximum bias of NW estimator in this case. We kno...
In the precision-recall curve shown, how should I interpret the straight line from 0.0 to almost 6.0? Update: I include the confusion matrix where the precision and recall come from.
I have a novel model for the errors that affect many types of qubits (quantum bits) and want to show my theory is correct. Visually it is great, but that is not quantitative. I'm a theorist, while my colleagues testing my ideas are experimentalists. They are happy using certain statistical methods that use assumptions ...
that's my chart: let's say that D0.5 was missing OJ. what statistical test could I use in this case?
I have two raster layers and I want to perform linear regression (LR). The first raster has 500m pixel size and the other has 100m. In order to perform LR I need to aggregate the fine resolution raster to match the spatial resolution of coarse one. After that I can perform LR and I can use the predict function at the c...
Let's say We have an input of size 28×28×192. We apply 32, 5×5 convolution filters with padding "same". How many multiplication operations will be there in total? I know there will be 282832 * 55192 multiplications, But I cannot understand how. Your help will be appreciated.
Let's say that we have calculated the posterior distribution of a parameter of interest given the data of a binomial experiment $N=70,x=34$ which the probability of event occurrence $\theta$ follows the Beta distribution with parameters $\alpha=4.4,\beta =6.6$.So we have a posterior distribution : $$p(\theta|x) \propto...
I am doing a project trying to see whether we can infer the power factor (cos(phi) = P/S) from voltage (U) and current (I) data. What this means exactly is not very important for my question. My question is about reshaping the data for regression purposes. I have a dataset containing the columns: substation, installati...
Chi-squared can be used to test independence and if independence is present, the variable can be dropped. Does the log-rank test work the same way since it is tied closely to the chi-squared test?
For example, we say that an estimator is unbiased if the expected value of the estimator is the true value of the parameter we're trying to estimate. However, if we already know the true value of the parameter, why are we trying to estimate it? I know there's something I'm missing here, like some theoretical true value...
I have an assignment that gives two ordinal variables: Education (1-poor, 2-medium, 3-high), Wealth (1-poor, 2-medium, 3-rich). The chi-square test rejects the independence of these 2 variables, so my intuition says I should combine them to avoid multicollinearity. Is there any suggestion to do this? Any input would be...
How bad are the last 11 dry years in a row? In the following graph there are 61 years of records of the annual energy that could be transformed in electricity using water-driven power plants in Chile: In order to explain there is a trend of dry years, I am comparing that the last 11 years are below the average of the ...
Is it possible to assign a p-value to the mean performance difference in three classification models? The models use the same data, same random seed, and use 10-fold cross validation. Model A has a mean F1 score of 0.70 with a standard error of 0.05, Model B has a mean F1 score of 0.75 with a standard error of 0.03, an...
I have some nominal (binary) data at two time points. The data structure are as follows: participant event A event B event C event D 1 Before TRUE TRUE TRUE FALSE 2 Before TRUE FALSE TRUE FALSE 3 Before TRUE FALSE FALSE FALSE 4 Before FALSE FALSE TRUE TRUE participant event A event B event C event ...
If I have a t-test for the mean of a gaussian population, with $H_1: \mu \neq \mu_0$ and I want to compute its power, analytically, for a certain value $\mu_1$ of $\mu$, hwo do I deal with the standard deviation? If I don't know it can I leave the $S$ that I have from my data? And if instead I want to compute the power...
I have the following model: \begin{align*} &\ln(cs_t)=c_1+c_2\ln(cs_{t-1})+c_3\ln(y_t)+c_4q1_t+c_5q2_t+c_6q3_t+u_{1t}\newline &\ln(i_t)=c_7+c_8\ln(i_{t-1})+c_9\ln(b_t)+c_{10}(\ln(y_t)-\ln(y_{t-4}))+c_{11}q1_t+c_{12}q2_t+c_{13}q3_t+u_{2t}\newline &\ln(xp_t)=c_{14}+c_{15}\ln(xp_{t-1})+c_{16}\ln(b_t)+c_{17}\ln(e_t)+c_{18}...
I’m relatively new to SEM and interactions within SEM, so this is a request pertaining to the validity of my syntax/approach, rather than troubleshooting. My model has an IV (age, observed), DV (performance, latent), and moderator (climate, latent). I wish to probe interactions to understand whether the relationship be...
I'm running a study wherein participants classify some faces they see. And I aim to examine if the probability for accurate categorization for a face is larger than a baseline probability I've got for each face from prior research. The faces vary by gender which will be a covariate. Normally, I'd use a chi-squared test...
Please explain how the acceptance ratio: $$\rm A(x\to y) =\min\left(1,\frac{P(y)q(y\to x) }{P(x) q(x\to y) }\right)$$ is derived from the detailed balance: $$\rm \frac{A(x\to y) }{A(y\to x)}=\frac{P(y)q(y\to x) }{P(x) q(x\to y) } .$$ Reading the articles but not sure how the ratio is logically derived from the detaile...
I have A/B/C variant test results with control version A containing 50% of the population and test versions B and C having an equal split of 25% each. How should I interpret my results? Does having an unequal sample size makes any impact on the statistical significance results? I have added Bonferroni corrections to my...
I am a bit confused about the exceptions to the Central Limit Theorem. I have a sample of 90 participants. I have a ratio variable with an extremely asymmetrical distribution. Can I still use parametric tests, or should I use non-parametric tests? UPDATE: I want to compare heart rate means with a paired t-test and the ...
I'm new to this type of modeling, and I'm trying to make sense of the seasonal parameters of the SARIMA model: In what type of scenarios there will be a difference between the non-seasonal p,q parameters and the seasonal P,Q. Most of the examples I found had the same value for both. I understand that for the non-seas...
If you only have $y_i = \hat{\beta_0} + \hat{\beta_1} x_i + \hat{\epsilon_i}$ , Then $\hat{\sigma}_{\beta_1} = \sqrt{ \frac{\sum_{i=1}^{n} \hat{\epsilon}_i} {(n-2)(\sum_{i=1}^{n} (x_i-\bar{x}))} }$ Say $y_i = x_i\hat{\beta} + \hat{\epsilon}$, where x is a row vector of features and $\beta$ is a column vector of betas. ...
What statistical tests and e.g. regression models or similar can be done in R to asses which category (=predictor/IV, variable is called strategy 5-level factor ,e.g., "extreme", "average", mixed", ...) performs best in terms of the average correct choice (=respone/DV, variable is called hit_mean, ranges from 0 to 1. T...
Given $X_{1},\dots,X_{n}$ i.i.d. $\sim N(μ,σ^{2})$, it's known that a confidence interval for the variance with $1-\alpha$ confidence is as it follows $$\sigma^2\in\Biggl(\frac{(n-1)S_{n}^{2}}{\chi^{2}_{n-1,\alpha/2}},\frac{(n-1)S_{n}^{2}}{\chi^{2}_{n-1,1-\alpha/2}}\Bigg)=(A_{n},B_{n}). $$ I'm asked to compute $$\lim_{...
I have two data sets of time series, estimated fish populations, one pre treatment (n=36) and one post treatment (n=11). The means of the two data sets are not significantly different owing, I think, to high variability in both. If you fit a line to each data set, the pretreatment data shows a positive line slope whi...
Typically, it's easy to simulate from the predictive distribution for next observation, say $\tilde{y}$, after obatining the posterior distribution for $\theta$. We may first simulate a large number of $\theta$ from its posterior distribution, then plug them into the density function $f(y|\theta)$, from there we could ...
The model is, however, dependent on the proportional hazards assumption. It assumes that the hazard ratios between groups remain constant. In other words, no matter how the hazard rates of the subjects change during the period of observation, the hazard rate of one group relative to the other will always stay the same...
I've seen several people doing prefiltering based on correlation coefficients. But would it be ok to find best features using GradientBoostingRegressor and then use those to train a network? Is there any chance I could implement such computation within the Network? My data consists of 40 thousand features and around 60...
My understanding of the mutual information between two random variables X and Y can be stated formally as follows: $$I(X ; Y) = H(X) — H(X | Y)$$ Where $I(X; Y)$ is the mutual information for $X$ and $Y$, $H(X)$ is the entropy for $X$, and $H(X | Y)$ is the conditional entropy for $X$ given $Y$. The result has the unit...
Let $X$ and $Y$ be two random variables. I am interested in how $\mathrm{E}[X | X + Y = z]$ changes as $z$ changes. Intuitively, if $X$ and $Y$ are independent, the conditional mean should be increasing in $z$. If I am told the sum takes a high value, I would expect that its component would also be high. If $X$ and $Y$...
There are questions on this site relating to overfitting, see: Relationship between model over fitting and number of parameters and Can a Linear Regression Model (with no higher order coefficients) over-fit? I don't see my specific question answered so I believe this post is warranted. Setup: Data is sampled from $Y = ...
Is any minimality condition of the parameterization required such that the derivative of the log partition function is equal to the mean? The pdf of an exponential family distribution is given by $$p(x; \theta) = \exp \left( \sum_{i=1}^s \theta_i T_i(x) - A(\theta) \right) h(x),$$ where $$A(\theta) = \log \left( \int \...
I am helping to publish a meta-analysis conducted by a student. The analysis has calculated a standardised mean difference (SMD) by comparing the post-intervention scores of the intervention and control groups. However, many of the primary studies had very small samples that produced what appear to be large baseline im...
I know that RSS explains the deviation between the model and actual data by measuring the square of the difference between them. I found this metric in one of the questions sir gave me. What is the difference between this and RSS? Can the value of this be bounded? $$\sqrt{\frac{1}{n-p-1}\sum_{i=1}^n \frac{(y_i-\hat{y_i...
Is there a formulaic relationship between RSE and sample variance? I have been self-studying data analytics in my spare time, and to get a better understanding of RSE and sample variance I have been playing around with a bit of code in RStudio: x <- sort(rnorm(20, 5, 5), decreasing = FALSE) y <- sort(rnorm(20, 5, 10), ...
Let $X_1,…,X_n$ be independent, but not necessarily identical, non-negative random variables. Let $Z=\max_i(X_i)$. Fix a real $\tau > 0$. Is there a way to lower bound $$\mathbb{E}(Z|Z>\tau) > c \mathbb{E}(Z)$$ for constant $c>1$ (that can obviously depend on $\tau$). For example if $\tau$ is the median of $Z$ or $\mat...
I have a study in which a well-known previously validated questionnaire (like Beck Depression Index, NEO-FFI, etc.) is used. My question is: do I need to calculate Cronbach's alpha for this questionnaire on my data set? Or, in other words: do I need to demonstrate reliability of a well-known previously validated questi...
I have a CFA result which is puzzling me and I am trying to determine why I am getting the results I am getting. I have a dataset of 134 rows. I have a factor which I run a CFA on using lavaan. I have checked to make sure I have enough samples (KMO test) and there is enough collinearity (determinant). My data is not no...
I want to compare the performance of three groups with quite a different group size. In order to get a 'fair' ranking I thought I might not compare totals or averages but excess rates. Let's say I have the following: So group C is more than twice as big as group A. Within a group there are some members that fulfill a ...
I am trying to understand when to use Shapiro-Wilk Test and/or Kolmogorov-Smirnov Test for normality. Currently, I am following this website How to Test for Normality in R (4 Methods). This paper Descriptive Statistics and Normality Tests for Statistical Data says: The Shapiro–Wilk test is more appropriate method for ...
I am trying to determine the area of the ellipse which contains the true mean of $(X_n, Y_n)_{1\leq n \leq N}$ with a probability of 90%. The 90% confidence ellipse area, or C90 area. The sample consists of N = 3000 $X,Y$ coordinate pairs. The problem is that definitions I've come across differ in how they end up calcu...
I want to apply support vector regression (SVR) model parameters to a higher spatial scale using the predict function, but the results are wrong. Here is how the resulting raster is: The steps I followed were: perform regression using the svm function at a coarser spatial scale using the predict function and a fine r...
In this slide (from A TUTORIAL ON ACCOUNTING FOR COMPETING RISKS IN SURVIVAL ANALYSIS), there are two ways of plotting the cumulative incidence in a competitive risk setting. What are the differences? Is the Non-parametric approach equivalent to KM but without its biases regarding competitive risks and Fine-Gray a regr...
I’m currently training an SVM for multi classification, and to choose the C and gamma parameters, I'm using Grid search combined with k-fold CV. I get a cross validation accuracy of 99.8%. I am not quite sure of what training score means, but I suppose it’s just the accuracy you get by trying to predict the training se...
Consider two independent trivariate normal random variables $X$ and $Y$. The means are non-zero and the off-diagonal elements of the covariance matrices are non-zero. $X$ and $Y$ does not follow the same distribution. What is the expected value $E\left[\lVert X-Y\rVert_2^{-1}\right]$, and how can it be derived?
Suppose I want to compute the probability that Argentinia wins the worldcup semifinal Argentinia - Croatia. I have two independent sources of information about this probability, whereby source A says that Argentinia will win with probability $p$ and source B says that Argentinia will win with probability $q$. The two s...
Recently I've been working with the distribution described by the pdf below: $$ f(x) = \begin{cases} \frac{2}{3(b-a)}(1+\frac{x-a}{x-c}) & \quad a<x<c \\ \frac{2}{3(b-a)}(1+\frac{b-x}{b-c}) & \quad c<x<b, \end{cases} $$ $$a<c<b, a>0.$$ Essentially, this describes what I call a "raised triangular" distribution, meani...
As the title reads, the results from the linear and first degree polynomial model are different and I am not sure why. Any ideas why this might be? linear_model <- nlme::lme(mpg ~ vs * gear, random = ~ 1 | ID, data = mutate(mtcars, ID = dplyr::row_number())) summary(linear_model) Value ...
Given: [] Find the conditional probability distribution of theta given Sn and compute the conditional expectation. I believe the distribution of Sn will be a binomial with mean ntheta and variance (ntheta)(1-theta). I am not sure how to apply this into Bayes' Theorem to get the conditional distribution of Theta given S...
I've collected some survey data on homeless individuals, surveying their drug use, education level, age, gender etc. I hope to run a logistic regression to see how impactful homelessness (+other dependent variables) are on the likelihood a child uses drugs. DrugUser= B0 + B1Homeless + B3X3 + ... + u However, due to the...
My course notes (3rd-year module in Bayesian Statistics, unpublished) contain the following section. Assume we have data on the number of people queuing at an ATM at a specific hour for several randomly chosen days, and that we are interested in the mean time between two consecutive arrivals to the queue at some arbit...
How is multicollinearity calcuated for an ordered logistic regression if R^2 is not determined for this type of regression? Because the formula for vif says: 1/(1-R^2) In R the looking up ?vif says that the polr function in MASS package can be sued to determine vif. However in the regression summary of polr R^2 is not ...
I have a database (annual frequency) that gets periodically updated. As a result, every point in time (year) has a different number of observations: each version, adds a new data point to every time point. This means that earlier observations have more data points than later observations. Also, the number of available ...
I have some statistics for two samples from a population: Sample size, Percent relative standard error (PRSE), mean, percentile 10, percentile 25, median, percentile 75 and percentile 90 I've no other information. Is there any statistical test that I can tell the distribution of these two samples are significantly dif...
How I approach the following continuous time random process question? $W$ has a constant PSD, so it is white noise. So, $X$ is a normally distributed RV, and $Y$ is a normally distributed RV with the same mean as $X$ and 2 times its variance, I believe. To answer the question fully, I would need to compute the mean and...
I've learned moderated mediation analysis from this book chapter. However, I'm looking for a method for "mediated moderation" and I cannot find it. For example, we are trying to reduce the correlation between X and Y. We already see our treatment T has significantly reduced the correlation, but we need to figure out wh...
In the context of segmentation, what is the difference between IoU and sensitivity? It sounds to me like they describe the same formula in different contexts but I might be wrong. When true positivies are denoted as TP and false negatives as FN, sensitivity is TP/(TP+FN). IoU is intersection/union, but intersection is...
So let's say I have two random variables, $X \sim (0,1)$ and $Y \sim (0,1)$. If I want to make a random variable $Z$, a linear combination of $aX + bY$ such that $\text{Corr}(Y,Z)$ is always equal to 0.20, this would've been my intuition and approach: $$\text{Corr}(YZ) = \text{Cov}(Y,Z)/ \sqrt{\text{var}(y)* \text{var...
I'm a 22 year old Statistics student with a big problem to solve. English isn't my first language, so I apologize in advance for any mistakes in my grammar. I'm trying to make a short-term gas consumption forecast for a small city. In my country, gas consumption has its peak in the winter months (may, june, july, augus...
Hi I have the following regression model: \begin{align}y=\beta_0 +\beta_1x_1+\beta_2x_2 +\beta_3 \ln(x_3)+\beta_4[\ln(x_3)\times x_1] + \mu_{ti} \end{align} How would you interpret $\beta_4$? My own thinking is that it is the $\frac{\beta_4}{100}$ is the ceteris paribus partial effect of a 1% increase in $x_3$ on the p...
Let $\mathbf{x} \sim \mathcal{N}(\boldsymbol{\mu}, \Sigma)$ be a random vector following a multivariate normal density distribution. I am interested in the density function of the transformed variable $$z = \mathbf{x}^\top \mathbb{A} \mathbf{x} + \mathbf{b}^\top \mathbf{x}$$ where $\mathbb{A}$ is a constant matrix and ...
Suppose I have $q$ censored covariates, say $X_1, \ldots, X_q$ which are all left-censored with censoring values $\mathbf{d} = d_1, \ldots, d_q$. If I assume that the $X_i$ are from some multivariate normal distribution with parameters $\mathbf{\mu}$ and $\mathbf{\Sigma}$, how can I write down the likelihood to find a ...
If I understand correctly, in Deep-Q we have two networks: the target-network and the q-network During the learning step - we calculate, (next_state) $\rightarrow$ target-network $\rightarrow$ (future-rewards) (state) $\rightarrow$ q-network $\rightarrow$ (q-values) q-values* = reward-sample + $\gamma$ * $\max$(future...