instruction
stringlengths
9
38.7k
I am trying to prove the below equality to prove that the squared correlation of coefficient is equal to r-square(i.e. $r^2 = R^2$): $$Y'M_\iota \hat{Y} = \hat{Y}'M_\iota \hat{Y}$$ where $\hat{Y} = X\hat{\beta}$ and $M_\iota = I - \iota(\iota'\iota)^{-1}\iota'$, and $\iota = \text{vector of 1}$. The below is what I cou...
I am trying to estimate regional unemployment rate. I understand unemployment rate is calculated as (number of people unemployed/total labour force). For the national level, I have historical rates as well as forecast unemployment rate and labour force values. However, I am keen to draw out a way to link regional unemp...
Online tutorials describe in depth the convolution of an image with a filter, etc; However, I have not seen one that describes the backpropagation on the filter (at least visually). First let me try to explain how I understand backpropagation on a fully connected network. For example, the derivative of the $Error$ w...
According to linear regression formula, assumming the predictors are nonreandom, $$var[\hat{\beta}]=MSE *(X'X)^{-1}$$ where MSE is an unbiased estimator of the population variance. Intuitively, when the number of predictors (p + 1) is greater than the number of data, the regression model is overfitting the data. Becaus...
Sampling Scenario I went out in the field and got 50 baby individuals. By their nature (and not due to a treatment), 25 of them belong to the category A and 25 of them belong to the category B. Goal of the study I am interested at the relationship between the category and the adult size of the individuals. As I sample...
I have two time series that co-move, say a currency and a commodity, and the currency is highly impacted by the commodity, but also other factors. I'd like to determine when the currency becomes too expensive vis-a-vis the commodity, because I assume that there is some mean-reversion that will force the two to converge...
I followed a couple tutorials about matrix factorisation with Spark (https://gerardnico.com/wiki/data_mining/collaborative_filtering one of them). I'm clear that I'm building a dataframe that fills in rating 'blanks' based on other observations While getting those recommendations was straightforward, I would like to fi...
I want a neural net to recognize bohemian patterns from normal floral patterns. This is a bit hard to distinguish. but once you see a lot of these patterns separately, you kind of get an intuition of what is bohemian and what is not. bohemians are basically tribal,paisely dense prints. and florals can also get dense bu...
Let $X_{\lambda}$ has exponential density $\lambda e^{-\lambda x}$. Then what is the nature of Var log($X_{\lambda}$) w.r.t $\lambda$ i.e. is it increasing, decreasin, etc on $\lambda$. My approach: Without going into calucaltion, I evaluate log($X_{\lambda}$) which then has a term of the form $-\lambda$ log($\lambda$...
Suppose I have a feature "Pool Size" whose levels are: Big, Medium, Small. Surely if a house doesn't have a pool it certainly won't have a value for "Pool Size". Q1-For this particular instance/house, should I consider the value for "Pool Size" missing ('NA') or should I makeup a new category for 'Pool Size' dedicated...
Because of Age heaping, I want to smooth age-specific population derived from the census of Pakistan. The Cubic spline is assumed as an appropriate choice. However, the fitted spline is not giving the sum of the total population to the original total. Here is my code in R. The data can be found in the link. Data on p...
The no free lunch theorem (NFL) states that Theorem (Wolpert and Macready 1997) Let $A$ be any learning algorithm for the task of binary classification with respect to the $0−1$ loss over a domain $\chi$ . Let $m$ be any number smaller than $|X |/2$, representing a training set size. Then, there exists a distri...
I am estimating a regression equation via LASSO and want to avoid penalizing certain coefficients for inference purposes. I have seen some discussion of differential shrinking/penalty terms (see related: Lasso penalty only applied to subset of regressors). However, in a certain software implementation of LASSO I am usi...
I have a multiple linear regression model: $$y= \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \beta_3 x_3 + \beta_4 x_4 + \beta_5 x_5$$ where $x_1$ is a continuous variable and $x_2$, $x_3$, $x_4$ and $x_5$ are all dummy variables come from a 5 levels categorical variable. Now I found out the continuous variable and the catego...
Let $X_{1},...,X_{n}$ be independent random variables with $X_{k}$ having the normal distribution with mean $k\theta$ and variance $\sigma^2$. Find the maximum likelihood estimator of $\theta$. My approach The likelihood function of the given density can be written as: $L(X|\theta,\sigma^2)=\frac{1}{\sigma \sqrt{2\pi}...
The original elastic net paper Zou & Hastie (2005) Regularization and variable selection via the elastic net introduced elastic net loss function for linear regression (here I assume all variables are centered and scaled to unit variance): $$\mathcal L = \frac{1}{n}\big\lVert y - X\beta\big\rVert^2 + \lambda_1\lVert \...
In game of FIFA there are packs by opening which a user receives soccer player cards. The higher the rating of a player card the rarer it drops depending on some kind of random number generator. Since there is a marketplace for users to buy and sell cards it is logical to suppose that this RNG is somehow shared. Some u...
I am looking for conditional expectation $E[X| X>Y]$ for independent $X, Y \sim N(0,1).$ I just showed that $P(X\leq a | X>Y) = \Phi(a)^2$, where $\Phi(a)$ is CDF for Normal$(0,1)$, but I don't know how to compute integral in order to obtain expected value.
My data set focuses on the percentage cover of plants within quadrats at different locations. An example of my data looks like this: Quadrat_Number Cover(%) Mean_Cover(%) 1 10 2.5 2 15 3.75 3 5 1.25 4 12 3 To calculate the mea...
I need to estimate 90th percentile of a normal distribution. Assuming that I have a small sample(<30) of the population of this distribution how can I estimate the 90th percentile? what assumptions can I make regarding the distribution of the sample. I think CLT is not applicable here because I dont want any CI for the...
I've been learning about Gaussian process regression from online videos and lecture notes, my understanding of it is that if we have a dataset with $n$ points then we assume the data is sampled from an $n$-dimensional multivariate Gaussian. So my question is in the case where $n$ is 10's of millions does Gaussian proce...
Variance of NPV is calculated using (1-sensitivity). If estimated( sensitivity) =1 then var(NPV)=0 Is there an alternative formula for var(NPV) similar to Score formula for sensitivity?
I am studying machine learning, I remember what are distributions, mean, median mode, from my university statistics studies, but the author, says that given five slot machines with these distributions, the number 5 is good, as it is left skewed and has as consequence favorable mean, mode and median. Also he states that...
I am working on a reinforcement learning problem where I have 8 different actions [1 2 3 4 5 6 7 8] and a symmetric state matrix of 10 by 10 (only upper or triangular matrix is sufficient). I know I could use a neural network to train my Q-function to learn best action for a current state. My question is how should I...
question 1: I have 6 variables where 2 binary predictor variables have a much higher odds ratio than the other variables. One variable has 8.40 odds ratio and the second has 3.16 odds ratio. The other variables are between 1.42 and 1.54 odds ratio. It seems like the variable with 1.42 odds ratio would be a much more r...
I have a stat problem and I am not sure it can be resolved; I am not good in statistic but maybe someone can help me: I need to create two numbers: $v_1$ and $v_2$ with Excel or VBA. I want both numbers to be selected randomly but following the three given inputs: both numbers must be between two given numbers $v_\mat...
I am developing a random forest for a binary classification problem where the trained data is heavily skewed towards one class (90% is class A and 10% is class B). The model scores data points based on their likelihood to be of class A, i.e., the number of trees in the forest that classify the data point as class A. Th...
I'm sure this has been asked, but my stats knowledge is not good enough to know the terms to looks for, so apologies if this is really basic. I'm collecting a sample of numbers for which I want to have the current average and standard deviation, but I don't want to keep the entire sequence, just recalculate these value...
I have a question regarding the hypothesis of the distribution of the dependent variable in a linear regression model. I have a model to assess the earning losses of displaced workers. I have observations of treated (displaced) and control (non displaced) workers. When a worker is displaced and only finds a job years ...
We would like to ask your advise regarding the missing data review. We are focussing on missing GOS values only. We would like to clarify the distinction of pairwise and listwise deletion. We have seen that the majority of studies report predictors on all patients enrolled, however many lose patients to follow up. They...
I am trying to calculate the ROC AUC for a dataset where I can't fit predictions and labels in memory (10s/100s billions of samples). Is there a way to calculate the AUC in a distributed way or at least to approximate it? I know that to calculate the AUC you need to analyse all the possible threshold to calculate the F...
I am investigating how performance indicators measured in sporting contests relate to contest outcome. Models produced through RF algorithms give the best results (measured as ability to predict outcome Win/lose) on both training data sets and 'future" data sets (compared to single trees and logistic regression). I ha...
I have an experiment with a control and multiple treatments and want to find which one performs the best. I would use the Wilcoxon pairwise test to test all the hypotheses and correct the p-values with the Benjamini–Hochberg procedure. In R I would use the following: pairwise.wilcox.test(outcome_measure, group, p.adjus...
The kernel of the normal distribution is typically written as : $ p(\theta | \mu, \sigma^2) \propto \exp\Big(- \dfrac{(\theta-\mu)^2}{2\sigma^2} \Big)$ where the normalizing constant is: $C = \dfrac{1}{\sqrt{2\pi}\sigma}$. I have some lecture notes where this is simplified to: $ p(\theta | \mu, \sigma^2) = \dfrac{1}{...
I have followed tutorials online for spatial kriging with both geoR and gstat (and also automap). I can perform spatial kriging and I understand the main concepts behind it. I know how to build a semivariogram, how to fit a model to it and how to perform ordinary kriging. What I don't understand is how the weights of t...
This question was inspired by two recent interactions I had, one here in CV, the other over at economics.se. There, I had posted an answer to the well-known "Envelope Paradox" (mind you, not as the "correct answer" but as the answer flowing from specific assumptions about the structure of the situation). After a time a...
Trying to understand how to find an outlier in a Poisson process. Using example below to help me understand. A machine creates widgets at a rate of 10 per hour ($\lambda =10$) under normal circumstances (as a Poisson process). Normally, you would expect the time between widgets to be about 6 minutes. However, it ha...
I am given a financial time series that is characterized by a bunch of structural breaks, i.e. the series isn't moving (literally at all), but at some points in time the series jumps up or down. Then it stays at this level for a while until the series jumps again. So the time series basically looks like a step function...
Collective wisdom is desperately needed! I need to understand if some kind of significance testing is applicable here, and if that is the case - which test. The data collection was devised as follows: There are 3 stations where people perform a number of station-specific manual tasks. On each of three test days differe...
We recently did Trotters proof of the central limit theorem and all I can see in the proof is just a lot of calculus and inequalities and I don`t really understand the ideas behind the proof. Can someone give a rough sketch of the ideas that are used in the proof?
I'm currently exploring the field of machine learning, and am pretty new to it. I'm familiar with the concept of regression and the idea of weights/coefficients for each variable to understand the importance of that variable in the model. In the case of SVM, NN, and decision trees, is there a way to get an idea of whi...
Context: I ran a survey where I asked one person to qualitatively assess multiple wines. They was asked to choose one or more adjective to describe the taste, the smell (non-dichotomous categorical) of each wine. They was also asked to select one (out of four) evaluation of the strength (dichotomous categorical) for ea...
I would like to apply an offset to allow for the population within segmented regression using GLM on count data in R and need to ensure that the formula I am using is correct. Adding offset in 2 different ways to the formula below seems to operate as expected but I just wanted to check if they are right. model <- glm(o...
I am running a logistic regression model on a telecom dataset having 78 variables. Which approach should I follow to select most significant variables. I have learned methods like forward selection and backward elimination. But to apply such methods for 78 independent variables would be very time consuming as it requir...
I will admit to being just a hair about a novice when it comes to stats, but I feel like I have a decent working knowledge of things such as normal distribution, linear curves, standard deviations, etc. That said, I have a colleague who is proposing something that just doesn't make sense to me, and I'd like some input ...
If our unit of measurement is in days, will a person-period (person-day) dataset be equivalent to a more condensed data set? For example below are the person-period data and condensed data where c1 and c2 and fixed covariates and c3 is time varying. Are the two cox models fit using these datasets equivalent? ID star...
I often see multiplications with covariance matrices in literature. However I never really understood what is achieved by multiplication with the covariance matrix. Given $\Sigma * r = s$ with $\Sigma$ being the covariance matrix of $n$ random variables $X_i$, can someone give me an intuitive explanation what $s$ give...
I have some data to which I'd like to fit a GLM using PyMC3. Here are the posterior predictive regression lines plotted along with the data points: Domain knowledge indicates that a linear model with zero-intercept is appropriate and the data looks linearly related. However, it feels as though the fit is not OK since ...
I have a GLM model with two variables (Z1 and Z2). I have also used some basis functions to estimate these variables. In other words, Z1 is substituted by 10 basis functions and Z2 with 12 basis functions. Hence GLM gives me (10+12+1) coefficients (the last one is to account for a constant term). What I am interested i...
Let's say I have data on users' profile information on a social network. So I have maybe this csv file for each user and their own attributes. Now I want to represent this social network so that I can do some network analysis or some classification task using collective classification. In general what is the best pract...
I'm trying to compute "by hand" the output of some popular Canonical Correlation Analysis functions in R, in order to be sure I understand the underlying math. I can produce the "canonical coefficients" that can be used to transform the original variables to the "scores" that make up the canonical variates. But I am st...
I am looking for technique to identify abnormally low/high values in a set of data. I am using the technique to compare the production of machines. The number of machines in the set can be quite small (5) and range up to 200. I want to identify problematic machines so as to flag them for inspection, or outstanding mach...
If I have a data set that has a mixture of numeric and categorical data, is there an easy way, in R, to compute the pair correlations but just ignore the categorical data for that computation? Currently, I get an error if I try to compute correlations using cor
I have some continuous positive data $Y_{ij}$ representing accumulated quantities, where $i$ denotes subject and $j$ a state. Patients are transitioning across states sequentially, but not all patients visit all states. Also, the assumption here is that $Y_{ij}$ were accumulated at a constant rate within each state $j$...
Similar to a weighted regression, where each row of [[variables],[output]] has a weight associated with it, is there a similar version for, say a MultilayerPerceptronClassifier, where I can actually give it kind of prior probabilities?
am getting halfway to the answer but not being able to get the final result in terms of chi square values
For example, if I have studies observing the dose-response relationship between alcohol (g/day) and breast cancer, and the exposures are reported as heterogeneous and overlapping ranges (10-20g, 15-30g), how would I conduct a meta-analysis to model the dose-response curve? Interested in any R packages that handle this,...
I have below 4 years of weekly data which has complex seasonality of varying seasonal length. I have assigned the first 160 data points as training and the rest as test with frequency=52. It seems tbats() ignores the seasonality and comes up with below results while running on train data . why is it ignoring the season...
I am repeating the derivation from slide #12 of http://www.cs.cmu.edu/~wcohen/10-601/bias-variance.pdf $$E_{D,e}[(f - \hat{y})^2] = E_{D,e}[((f - h) + (h - \hat{y}))^2]$$ $$E[(f - h) ^ 2 + (h - \hat{y}) ^ 2] - 2 (E(fh) - E (f\hat{y}) - E(h^2) + E(h\hat{y}))$$ Basically the following term is claimed to be equal to 0 and...
I have some subjects from I have measured a variable (body weight). I want to do a case-control experiment where I will do an intervention on one of the groups (Experimental). I'd like for the group means to be as close as possible to begin. My questions are: Is this a legitimate way to assign subjects? Is there a sta...
I need to decompose and forecast weekly series with around 10 years of data. In this data leap years play an important role so I need the have non-integer frequency, frequency = (365.25/7) By reading the stl() vignette I realized that the frequency of series should always be an integer number but I am not quite sure th...
This question is regarding derivation of bias-variance decomposition as answered (which was accepted) in another thread. I am repeating the steps for this question: \begin{align} \newcommand{\var}{{\rm var}} {\rm variance} &= \var \left( \frac{1}{k} \sum_i^k Y(x_i) \right) \\ &= \frac{1}{k^2} \sum_i^k \var \left( f(...
Consider the following dummy data (in R) set.seed(12) X = rep(c(2,10,50,1e2,5e2,1e3,5e3,1e4,5e4,1e5), each=100) Y1 = 200 + 1000 * exp(-0.0003 * X) + rnorm(length(X), 0, 50) Y2 = 130 + 1100 * exp(-0.001 * X) + rnorm(length(X), 0, 50) We want to fit a model of the type Y ~ A + B exp(-C X) for both Y1 and Y2 m1 = nls(Y1...
I am fitting an AR(p) model to the daily time series of S&P500 returns. I have examined AIC/BIC up to 5 lags and both show that model with 2 lags is optimal. However, when I examine the residuals of regression, autocorrelation appears at 20+ lags, as shown below. What can be explanation for this? VOlatillity clustering...
I am wondering whether there can be a statistic that does not converge to its mean but does converge to some other quantities such as the mode. Here convergence is convergence in probability (or a.s. convergence is of course ok) w.r.t. sample size, and I assume that statistic depends on some i.i.d. samples. Of course I...
Consider the simple regression model $y = a x + b + \varepsilon$, where $x$ is a covariate, $y$ is the observed response and $\varepsilon$ is the unobserved noise (with no distribution assumption). We can add to the model a covariate $\omega$ which is a realisation of a gaussian noise, and this obviously increases the ...
I wish to do a project in deep learning using deep convolutional neural networks and deep Q learning. However, I am not sure if my laptop is up to the task. I am currently running 64 bit Win 10 OS, Intel(R) Core i7, 16 GB ram with NVIDIA GeForce 940MX graphics card. I plan to use tensorflow or pytorch to play around w...
It is not obvious to me why the idea of sampling with replacement is an improvement over random samples. Does sample mean from bootstrapped samples generate unbiased or consistent estimators? How does $$var[\bar{x}]$$ from bootstrapped samples compare with that from random samples?
Noob here. I have a dataset with multiple observations per person. Each observation pertains to instances where a person visits the doctor. I created an outcome variable based on the amount of time that has elapsed before the next doctor visit: 1 if the next visit is within 6 months and 0 otherwise. There are also a n...
Given some whitening transform, we change some vectors $\textbf{x}$, where features are correlated, into some vector $\textbf{y}$, where components are uncorrelated. Then we run some learning algorithm on the transformed vectors $y$. Why does this work? In the original space we had correlation between vector component...
I am following this tutorial and trying to perform Analyze→Nonparametric Tests→Legacy Dialogs→1-Sample K-S but Asymp. Sig. is .000 for every variable. Am I missing something? Data set that I am using can be found here . My data set is under number 18. Also, I have a little c beside to .000 that says Lilliefors Signific...
Let $X_{1},...,X_{n}$ be a random samples from a population having the probability density function: $f(x)= \frac{1}{\theta}e^{\frac{-(x-\theta)}{\theta}}$ where $x\geq \theta$. When I solved the likelihood equation of the above density, the maximum likelihood estimator turned out to be mean of the sample but if you ...
I am trying to calculate a pearson's correlation between scores on a test to determine test-retest reliability. However, there are only 4 items on the test, with a maximum score of 4 and minimum score of 0. Some students have taken the test several times and some students have taken the test only 2 times. I would like ...
z1=cbind(da[,1],da[,5]) dz1=diffM(z1,12) m1a=sVARMA(z1,order=c(1,1,0),sorder=c(0,1,1),s=12,include.mean=F) m1b=sVARMA(dz1,order=c(1,0,0),sorder=c(0,0,1),s=12,include.mean=F) I think that there should be slight difference between m1a and m1b due to different initial values. Technically, there should be no difference us...
I have three separate datasets that I would like to fit separate analytic distributions to. Disclaimer, I am a physicist so I don't have too thorough background in statistics, and so I am basically wondering (a) whether it is possible to fit any analytic functions to these data, especially for the second dataset (with ...
Someone please help me understand this question. The question is already asked: Help in example for Covariance zero doesn't always imply independence I understand $\mathbb{E}(X)=0$, but I still don't understand why $\mathbb{E}(S)=0$. We have $p(s)=\frac{1}{2}$ when sampling on $[-1, 1]$ and $p(s)=0$ when sampling out o...
Assume you have the scores of the first, second, and final exam for a group of students. Suppose a student miss the first and/or second exam. What are the most appropriate statistics approaches that can be used to predict the missing score?
In PPO the authors say this of the objective function: a novel objective function that enables multiple epochs of minibatch updates But what is it about PPO's objective that allows this? The PPO objective is as follows: ratio $r = \frac{\pi_\theta(a|s)}{\pi_{\theta_{old}}(a|s)}$ loss $L = \min(r * advantage, clipped(...
I have been in conflict with my study materials. I began learning about linear regression from a stats professor who emphasised on fulfilling the 4 assumptions on errors when performing linear regression. This also meant that in-sample performance measures such as AIC,BIC and R2 are mostly used to estimate model perfor...
Why does this R code: delta = 2 st = 2.8 power = 0.8 sig = 0.05 alternative="two.sided" power.t.test(delta=delta,sd=st,power=power, sig.level=sig, alternative=alternative) Two-sample t test power calculation n = 31.75716 delta = 2 sd = 2.8 sig.level = 0.05 po...
Considering the vector $\textbf{z} \sim \mathcal{CN}(\textbf{0}_{M},\Theta_{M \times M})$, what would be the expectation of $\frac{1}{\textbf{z} \textbf{z}^{H}}$, i.e., $\mathbb{E} \left\lbrace \frac{1}{\textbf{z} \textbf{z}^{H}} \right\rbrace = ?$ where $\Theta_{M \times M}$ is a Hermitian matrix, which is not a diago...
I have the following problem with data points as intervals that I want to cluster. So I have my data which are pairs of intervals. I simply want to rule out random outcomes and determine the pairs of intervals that are significant in the data set (e.g., with a simple t-test). However I have got about 1.5-2 million of t...
I have been given the following formula to calculated Annualized excess return: Annualized excess return = (1+Monthly excess return)^12-1 The answer is provided (by the text) as AER = (1-.0036)^12-1 = 4.41% When I calculate this I get: (1-.0036)^12 = 0.957645178 therefore (1-.0036)^12 - 1 = -0.042354822 On this ba...
I am asking about the balancing property of the Propensity Score, $X ~\bot ~T~\vert~ p(X)$, where $X$ is a vector of covariates, $T$ is the treatment indicator and $p(X):=P(T=1\vert X)$ is the Propensity Score. In my intuition, this balancing property holds only for $0<p(X)<1$. If you condition on $p(X)=1$, that is on...
I'm completing a meta-analysis looking for an effect size for rates of forgetting for people with epilepsy vs controls. I've already decided to separately extract effect size for the verbal and non verbal measures used. However, some studies use more than one verbal measure, or indeed split their analysis for the same ...
The method of moments estimator for AR processes can be had with the Yule-Walker equations. But how is it derived? The equation for AR(1): $$Y_t =aY_{t-1}+\epsilon_t$$ Where $\epsilon $ ~ $N(0,\sigma^2 )$. So the moment conditions are $E(\epsilon)=0, E(\epsilon^2)=\sigma^2$ But the "standard" solution can't be used as ...
i cannot figure the difference between a VAR (vector autoregressive) and the Structural VAR (SVAR). Beside the math, I would like to have a simple explanation of how the SVAR differs from the VAR. Moreover, I also don't understand what is the magnitude of the shock in the impulse response function. I mean, when I run t...
I'm trying to solve the following problem: The number of bombs required to achieve the disintegration is assumed to be geometrically distributed. In one series in which y bombs are available, x of these bombs failed. What is the probability that it will disintegrated by the end? My understanding & solution: We know t...
I am reading a paper in which they describe a bayesian model in which the prior $a_i$ is defined as a Dirichlet Process (DP). They say: "We use a DP to find the optimal $a_i$ via clustering". Later on they write: "In order to divide our customers in clusters we consider the posterior estimates of the non parametric $a_...
Let's say I have RGB input data (3 channels) and a convolutional layer which has just one filter with a depth of 3. The output data will have a depth of 1 if we build the sum over the results of the convolution of every channel. But why do sum up the results? Why not build the average or add 17 all time? Some though...
One of the hottest topics in today econometrics is financial networks models where researches use vector autoregressive (VAR) models applied to time series of daily volatility measurements of different firms to represent their connectedness as a graph. Different measures of connectedness were used, e.g. forecast error ...
I am a bit confused as I need to calculate the Markov-Chain transition probabilites for 3 variables. Example data, let's assume a sequence of letters at specific and progressively-constant time steps: Q Q E Q C C E What are my transitional probabilities? My (wrong) understanding is: P(Q|Q) = 1 P(Q|E) = 1 P(Q|C) = 0 P...
Problem definition: I need to test whether the difference between the "mean" utilization metrics of two machines is statistically significant. Given Data: Utilisation data is available for two machines for more than 100 days. Therefore, the mean, standard deviation, and standard error can be calculated over the 100 da...
I'm trying to solve the following question: Let $Y_1, Y_2, \ldots , Y_n$ be independent and uniformly distributed R.V on $[0, 1]$. Let $x, x \in [0, 1]$, be fixed and write $N = \min\{k \ge 1 | Y_1 + Y_2 + \dots + Y_k > x\}$. What is the probability of the event $N = n$. My solution is as the following: The proba...
I am attempting to model sightings of a species at either the east or west of an island to see what environmental variables such as SST, Chl-a etc may be influencing an obvious migration pattern that they display between east and west. Species presence is recorded as a percentage calculated from the monthly total sight...
Suppose you are using a tree-based regression model to predict the popularity of things over time. So if we wanted to predict the popularity of A in 2007, we would use A's popularity in 2006, 2005, and 2004, and if we wanted to predict the popularity of B in 2008, we would use B's popularity in 2007, 2006, 2005, and 2...
While trying Gaussian Mixture Models here, I found these 4 types of covariances. 'full' (each component has its own general covariance matrix), 'tied' (all components share the same general covariance matrix), 'diag' (each component has its own diagonal covariance matrix), 'spherical' (each component has its own singl...
I have an operations research problem that I would like to solve but I am unsure what the correct framework for analyzing it would be. The closest I've come across so far is contextual bandits I believe but I don't know enough to know for sure. Here is the problem: How to efficiently get rid of inventory when selling a...
Let $\mathbf{A}$ be an $m\times n$ random matrix with entries $A_{ij}$ being jointly Gaussian. Suppose all of these variables are independent of the random vector $\mathbf{X} = (X_1,\ldots,X_n)^\top$ which follows a multivariate Gaussian distribution. Does the random vector $\mathbf{Y} = \mathbf{A}\mathbf{X}$ follow an...
A lecturer claimed in a recent class that "K-means assumes that each cluster includes a roughly equal number of observations." However, when I searched online, there is conflicting information regarding this point. The answer to this question claims that the "size" in K-Means refers to the area, not cardinality. The an...