instruction
stringlengths
9
38.7k
My goal is to design an experiment such that only a high order polynomial function can approximate the target polynomial function. I've been trying to approximate a polynomial function in 1D $f_{target}(x) = \sum^{ D_{target} }_{d=1} c_d x^d$ with linear regression: $$ \Phi(x) w = y $$ where $\Phi(x)$ is the Vandermond...
I've got a time series which plots surface reflectance over time. Ideally surface reflectance is high in the winter and is low in the summer, and is fairly constant during both of those periods. I want to do several tests, but am not sure where to start: First, for the time series, I want to test if there actually is ...
My question concerns results from one of my experiments, where analyzing the data with RM-ANOVA (using either ezANOVA or aov on the aggregated data in R) yields significantly different results from fitting the equivalent model on the raw data in lmer. In the experiment, participants are presented with 40 different item...
It is easier to optimise a SVM without an offset term $b$ since we get rid of one of the linear constraints in the dual formulation. If an offset is still needed, it has been suggested that the feature vector $x\in\mathbf{R}^n$ is augmented by a constant term. Let's call this term $d$, then $x' = [x; d]\in\mathbf{R}^{n...
I'm interested in ways to detect mistakes in published papers without analyzing the raw data. For example the GRIM test [1]. Here's another similarish one from one of the GRIM authors' blog. I don't know of any others. Looking for inconsistencies in reported stats seems attractive, because digging through raw data is ...
I'm trying to solve a binary classification task on a noisy time series dataset with highly right-skewed features. I find that both an MLP and a gradient boosted tree get a similar log loss on the training set, but the tree model is much better able to generalize to the validation set than the network is. Do you have a...
I'd like to use TensorFlow to model a very basic function. Here, I'm trying to model x^2 (x squared). If I can get this to work, I should have no trouble getting more complicated examples to work. But for some reason, I'm stuck. I mean, it's correct for 0^2, 1^2, and 2^2, but nothing else. import tensorflow as tf impor...
I've got a protein I'm modeling. One thing I do with it is randomly perturb the protein for a fixed amount of time at a chosen temperature, and then minimize it so that its configuration reaches a local energy minimum. Higher temperatures can reach energy minima further and further away from the starting configuration....
I have a 100um x 100um x100um volume which has 200 cells in it. I will measure the locations of those cells within the volume, and wish to estimate whether they are significantly non-randomly clustered together. So far I have thought of two methods, each with their own problems: Method 1) Measure the distances between ...
Let's say I implement an algorithm that shuffles a deck by simply swapping any 2 cards. How many times do I need to swap in order to have an even number of chances for any order. Assume the following pseudocode: for n=0: n<num_iterations: r1 = random(52) r2 = random(52) swap(card[r1],card[r2]) Assume that the ra...
I have the adjustment data in telecom domain: There are problems that sometimes the automation script generates the bill twice which causes duplicate records. I want to know how to prepare the data and train the ML model. Currently, I am considering the duplicate record as issues and training the SVM model for one-cl...
I've been reading about the Dirichlet distribution and have become somewhat confused as to how to evaluate its normalisation term. Specifically, I'm quite happy with the relationship between the beta and gamma functions: $\frac{\Gamma(x)\Gamma(y)}{\Gamma(x+y)}=B(x,y)$, but wikipedia then claims that more generally: $...
I have a dataset that includes in situ measurements of: Dependent variable- growth rates (continuous) Independent variable - temperature (continuous) Independent variable - food concentration (continuous) and I want to test the effect of food concentration on growth rates, while accounting for the different temperature...
I've recently started using LMM which possibly gives me better insight into my DV. Only I got some contradictory data regarding whether some variable is significant or not. The Us and Hed variables are continuous variables, and the App and Category are both multicategorical (ordinal) data (set as factors in R) My lmer...
What exactly determines the precision of an estimate (not estimator) from a finite, "real world" sample? I know there has been a similar question asked, but I think my question is different enough for a separate thread. For my Econometrics midterm, we were given a bunch of Stata output from a handful of regressions and...
In a linear regression I have two variables that are correlated with rho = 0.8. Given two multiple linear models where the two variables go in mutually exclusive, the estimare for each one is highly statistical significant. If I plug in both variables, the significance almost vanishes for both, likely due to the high c...
I have panel data for individuals in an economy that experienced fluctuations in employment levels. I also have some health information for these individuals, BMI, self-rated health etc., My question is this, my dataset is quite small, (1500 people wave one, 1000 wave two, 700 people wave three), I am aware that fixed...
I'm following an introduction to LSTM Neural Nets from this repo - https://github.com/jaungiers/LSTM-Neural-Network-for-Time-Series-Prediction The author has a few ways to plot and test the predictions. The one that confuses me his method in LSTM.py called predict_sequences_multiple. The code reads like this: def predi...
Suppose we wanted to do inference on the mean $\mu$ of some population for which the variance is known. The conventional frequentist approach is as follows. Given a random sample $X_1, \dots, X_n$ with $\text{E}(X_i) = \mu$ and $\text{Var}(X_i) = \sigma^2$, the CLT tells us that $$\frac{\bar{X} - \mu}{\sigma / \sqrt{n}...
I know that the True Negative Rate plus the False Positive Rate is equal to 1. However, I don't quite see how the True Positive Rate and False Positive Rate are related. Is there a relation between them?
Suppose we have a network with node $i$ in the origin $[0,0]$ and node $1$ and node $2$ located in $[x_1,y_1]$ and $[x_2,y_2]$ respectively, where $x_1,y_1,x_2,y_2$ follow a Uniform distribution $\sim\mathcal{U}(-L,L)$ . However, we also have estimated positions so for each node, ${[\hat{x_i},\hat{y_i}]}=[x_i,y_i]+\vec...
Suppose, I observe $n$ draws from $n$ Beta-distibutions (one from each), and each of them has unknown parameters $\alpha_i$ and $\beta_i$. However, it is known that all $\alpha_i$ and $\beta_i$ are drawn from the same bivariate distribution (say, truncated normal with parameters $\mu$ and $\Sigma$). Is it possible to d...
Two even numbers are selected from the first ten even numbers not including zero. What's the probability that the sum of these two numbers is 30. My instructor said 3/10. Is this really correct?
Given i.i.d samples (x1,y1), ... (xn,yn) such that yi = f0(xi) + $\epsilon$i, i = 1,... n for some f0 Suppose I want an estimate $\hat{f}$ of f0 using k-nearest-neighbors regression in the neighborhood of each xi in my dataset. So for each xi, I must search for the k nearest neighboring elements and take the average of...
I have two multivariate normal populations: $\boldsymbol{A_1}$~$N_r(\boldsymbol{\mu_1},\Sigma)$ with $n_1$ observations, and $\boldsymbol{A_2}$~$N_r(\boldsymbol{\mu_2},\Sigma)$ with $n_2$ observations. I am wondering if there is some way to express the likelihood of $\boldsymbol{A_1}-\boldsymbol{A_2}$. Separately, I k...
Many students come across normalization and standardization as a easy to understand, but hard to grasp/motivate problem. Often times reasons for why we should normalize or standardize data range from the fact we want to do PCA (variance sensitive) or want to make the results more readable. I was wondering if anyone had...
I'd like to classify data points as coming from one target function $f_1(x)$ or another $f_2(x)$. These target functions are very similar, except one contains an interaction term described below: $$f_1(x) = w_1x_1 + w_2x_2$$ and $$f_2(x) = w_1x_1 + w_2x_2 + w_3x_1x_2$$ Which I combine into a single target function: $...
Suppose we have a binary classifer that always chooses 0 no matter what. In this case, the ROC curve will be a horizontal line with AUC equal to 0.5. My question is, if we have such a curve, does it even make sense in that we only have two data points (one at (1,1), and one at (0,0))? Since no data can go in the middle...
Due to lack of examples, I am having a hard time understanding the difference between a best predictor and a best linear predictor. I think that $E[Y|X]$ is the best predictor for Y in terms of X, and if it happens to be linear, then it would also be the best linear predictor, (but please correct me if I'm wrong.) So ...
I am new to Time Series. I want to know the meaning of white noise. By definition it is given that $w_t\stackrel{_{_\text{iid}}}{\sim} N(0,σ^2_w)$, meaning that the errors are independently distributed with a normal distribution that has mean $0$ and constant variance. What does it actually mean?Can someone explain ...
Ok, I spent almost most of my day trying to figure this out. I drew the picture below on my board(it can be seen better in zoom in) to have a better view on how a decision tree was taking its decision when working with continuous attributes from a homes' pricing dataset. Now, I can't figure out if at the leaf/termina...
I have a script that scans text files and searches for keywords related to cryptography. And I'm scanning source code files. A lot of the times, I get back some evidence of cryptography like "AES_encrypt", but sometimes it can be a false positive, e.g. the keyword "crypt" in the string "cryptic words". To get rid of f...
I am conducting a survival analysis and have a few questions regarding it's interpretation with respect to the Cox Proportional Hazards Model: Why does the inclusion of different covariates change the shape of the plotted survival function? When I compare the Kaplan-Meier survival curve with a plotted survival curve fr...
I will conduct a 1:2 or 1:3 matched case-control study in order to examine risk factors related to a rare disease. Under this study, I'm planning to repeat selection of matched controls for at least 100 times because there are many possible controls. And each time we select controls, I will apply the data to a model to...
New to statistics here, so please bare with me if my terminology is incorrect. So I know that you can use the Pearson Correlation Coefficient to work out the strength of the correlation of a set of data points and whether it's going up or down. Is there any method for me to compare the correlation behind two lines? So ...
As a follow up question to the following post on stack exchange, kindly read the following : Comparison of normality tests results - Histogram and PP Plot My dataset of reviews contains 251 data points.The AFINN are the avg sentiment scores of sentiment keywords which are graded on the basis of polarity i.e positive, n...
This may just be a case where I'm not finding the right terminology. Let's say I have $n$ random checkerboards of different (known) areas $A_i$ and squares placed with probability $p$ (white) and $p-1$ (black). Each board has a known ratio $r_i$ of white squares (measured by, for example, the grey-scale value of a blu...
So the formula for the first forecast with a ARMA(2,2)-GARCH(1,2) and a differenced time series looks like this: Y(t+1)=Y(t)+Alpha(1)*(Y(t)-Y(t-1))+Alpha(2)*(Y(t-1)-Y(t-2)) - Beta(1)*e(t) - Beta(2)*e(t-1) + e(t+1) with e(t+1) = Sigma(t+1)*Z(t+1...
I am struggling to convince myself that my answer to this question for my stats assignment is correct as the way the question was asked is making me doubt my own answer. In brief, we have a supposed n=8 number of babies, where the study is interested in observing the weight growth (in ounces) of these babies over the s...
I got two samples originating from the following multivariate $$ (X_1, X_2) \sim \mathcal{N}\left(0, \left[ \begin{matrix} \sigma^2 & \rho\sigma^2 \\ \rho\sigma^2 & \sigma^2 \end{matrix} \right] \right) $$ (I am using this multivariate normal to simulate an autoregressive process) What I am trying to check is what h...
I have 2010-2017 annual sales and total assets data for 100 different companies from pharmaceutical, dyes, chemicals industries. I have following questions: kindly help with the best way to fill the missing values (for example some companies do not have data for 2009 and 2016, some companies do not have data for 2011...
In an experiment in my phsics lecture I have to find out the value of the resistance of a resistor with the formular $V = RI$. To do so I measured various values for $V$ and $I$ while $I$ changed $V$. I got the following table: # R [Ohm] Abs. Error Rel. Error 1 192,31 5,41 0,028 2 200 8,42 ...
I need to forecast data which has many periods of zero demand, also there is no seasonality or trend in the data. I tried ARIMA, but it converges to the mean. I also applied some predictors, but they don't affect the forecast significantly. What forecasting methods should I use? Below is my dataset Time series: sale...
Imagine a data set with three features $A, B, C$. A nearest neighbor algorithm can find what array $[a,b,c]$ is most similar (in terms of a given metric, e.g. euclidean distance) to $[x,y,z]$. What method can be used to find the most similar array, given the requirement that one of the features is changed in a given di...
It is a replica of my question at https://stackoverflow.com/questions/46895017/is-there-a-specific-reason-why-r-glm-does-not-return-warnings-while-anovaglm I was advised to ask it here instead. It is not about glm.fit: fitted probabilities numerically 0 or 1 occurred; it is about why anova warns while glm doesn't. I ha...
Lets say I inspect two workers. Worker A works one hour and produces 2 goods. Worker B works 100 hours and produces 180 goods. So, on average, worker A produces 2 goods per hour and worker B 1.8 goods per hour. However, due to the small amount of working hours of worker A, the estimated high productivity could be by ...
I would like to perform Hartigan Wong clustering on high dimensional data. As I understand, Manhattan distance works better than the Euclidean distance in higher dimensions. I have been using the K-means clustering which uses the Euclidian distance function. I have two question: Can we use a different distance funct...
Bayes' risk is $L^*=0$ for a classification problem. $g_n(x)$ is a classification rule (plug-in) such that $g_n=0$ is $\eta_n(x)\leq 1/2$ and $g_n=1$ otherwise. The function $\eta$ is given by $\eta(x)=\mathbb{E}(Y|X=x)$. Then $\mathbb{P}(g_n(X)\neq Y)\leq 4\mathbb{E}((\eta_n(X)-\eta(X))^2)$ Any hints on how to solve t...
I'm working on the statistical analysis of a listening test (based on the MUSHRA [1]) where I'm trying to compare the sound quality degradation introduced by the processing of 3 different algorithms. I tested 20 subjects divided in 2 groups based on their nativeness (11 native speakers, 9 non-native speakers) and each ...
Almost in every ML models with high dimensional, one of the first things to do is removing features with low variance in order to decrease dimension. But, when we do this, we don't examine the correlation between target variable and the feature. What if the correlation between target and feature is very high? The thi...
I am analysing data from a cohort study using primary care data (but I linked them up to secondary care data only for the outcome). Specifically, I am looking at the adoption of a specific care pathway and risk of hospital admission for respiratory conditions. Every time a patient visits his general practitioner I hav...
I'm aggregating several large surveys with similar/same questions, but from different years. While the questions are often similar in consecutive years and within eras, few questions were asked in every year that the survey was taken. Unfortunately, imputation is not an option for most of the variables. I'm interested...
Lets say I have a bunch of dogs of different breeds $i = 1, 2, ..., n$. The probability of a random dog being of breed $i$ is $p_i$. The weight (in kg) of a dog of breed $i$ is $N(\mu_i, \sigma_i^2)$. How do I calculate the variance, skewness and kurtosis of the distribution of the weight of a random dog from a random ...
I am sampling points from a Poisson process in a 2D space (Ny, Nx) grid with a constant intensity (lam) using the code given below. How can I sample values from Poisson process in a space where the intensity is not constant, but varying spatially/regionally? I want something as shown in section 1.2.1 on page 7 (and se...
In R there is this function pcr that runs a principal components regression. How can I use the information yielded from pcr in order to predict my response's value given a testset without using the function predict.pcr. I am very curious to find out. For example, below i have the first 6 components of the pcr_model. ...
I have a problem formulated in terms of hidden markov models. A simplified version is discussed here. I have a system that transitions between two discrete hidden states (states 1, 2). The transition probabilities between these states are known, and are shown in the figure below: Moreover, I have two instruments (I1 a...
Consider a binary outcome data set with severe class imbalance, modeled with logistic regression. To solve the issue - one of the strategies is to play around with sampling. It occurred to me that when randomly under-sampling data, we at the same time increase the variance, since we discard whole lot of the data. Is i...
I've been working with Convolutional Neural Networks (CNNs) for some time now, mostly on image data for semantic segmentation/instance segmentation. I've often visualized the softmax of the network output as a "heat map" to see how high per pixel activations for a certain class are. I've interpreted low activations as ...
Given a joint probability density function of the two random variables$\ X_1,X_2 $ how can I determine if they are Gaussian and further, how can I say if they are jointly Gaussian? Jointly Gaussian means that under any linear combination of $\ X_1,X_2 $ they shall remain Gaussian, but how can I use the joint pdf to det...
I am getting difficulty in understanding the definition of the statistic. From wikipedia, I come to understand that statistic is any 'information' (for example, range, mean, variance) of any sample of any given population. Whereas in my college the definition of statistic is given as: Suppose $(X_1, X_2,... ,X_i,...,...
I am trying to understand a de-trending method and hope someone can explain what it implies. Let's say I have rainfall data from 1969 - 2013 for a location. I do this: mod <- lm(rainfall ~ year) I use the coefficients from mod to predict rainfall for year 2009. 2009.rain <- mod$coefficients[2]*2009 + mod $coeff...
I'm in the middle of my empirical analysis. My goal is to show the behaviour of the CDS-bond-basis of European banks after a rating downgrade occured. I have all my data gathered and cleaned. My dependent variable is the change of the CDS-bond-basis. It is a numerical, continous variable. I have only one independent va...
It is a binary class problem class1=0 and class2=1. It is known that the likelihood function follows a Normal distribution with different parameters for different class label. There is only one attribute. Now, parameters of normal distribution are mean and variance_squared. For example following is the dataset x |...
I have a point with spatial and temporal coordinates x=(lonx,latx,timex) and I would like to find the nearest neighbour (according to some metric) amongst these other points y1 = c(lony1,laty1,timey1) y2 = c(lony2,laty2,timey2) ... yn = c(lonyn,latyn,timeyn) Is there any nearest-neighbour algorithm that I can use?
Let's say I have a large series of three-item bundles, like so: item1 item2 item3 1 F C H 2 H F D 3 D C R 4 S B X 5 M Q F 6 J X U 7 O T G 8 W U F 9 Y B S 10 V G A n ... ... ... Whe...
we have a random variable W $\sim$ N(0,1) and Z${}_{t}$=tW for t $\in$ $\mathrm{R}$ What is Cov(Z${}_{t1}$,Z${}_{t2}$) for t1, t2 $\in$ $\mathrm{R}$?
I have two multivariate normal samples: $\boldsymbol{X^{(1)}=\left( \begin{matrix} \boldsymbol{Y^{(1)}}\\\boldsymbol{Z^{(1)}} \end{matrix}\right)}$ and $\boldsymbol{X^{(2)}=\left( \begin{matrix} \boldsymbol{Y^{(2)}}\\\boldsymbol{Z^{(2)}} \end{matrix}\right)}$, where $\boldsymbol{Y^{(i)}}$ has dimension $q$ and $\b...
I'm doing some survival analysis in R using the survival package for a patient cohort. When making a Kaplan-Meier curve using survfit, it reports a median survival time. However this value is very different than simply an arithmetic median using median. e.g. survfit(Surv(OS, vital.status) ~ 1, data = df) reports a...
I have a set of data that describes the number of tunicates (marine chordates) found in different transects on the seafloor. It looks like this: tunicates<-c(13,9,7,4,5,9,5,4,5,6,8,8,6,9,9,5,8,5,6,7,14,9,3,13,9,5,8,4,5,3,6,9,3,2,10,6,8,8,6,9,12,4,19,7) With a mean of 7.273. I need to calculate the probability that...
This is a statistical question, but more of a meta-statistical question. However, it's not a meta-discussion question, so I hope this is the correct venue. I'm asking this because maybe I'm just not understanding something. I recently did a mixed-level GLM to investigate potential effects of a binary predictor on a con...
I have performed lmer on my data and, to be generic, my model has 3 fixed effects (A,B,C) and 3 nested random effects (d,e,f) following the response variable y: y~A * B * C+(1|d/e/f). I also ran lsmeans(mymodel, specs=~ A|B:C) and I'm interested in seeing the radio contrasts instead of the linear / quadratic contrasts...
I am doing forecast on time series on R and I use exponential smoothing method Holt Winters. Does a value of $\alpha$ close to $0$ or $1$ "mean" something particular about the series? Same question for $\beta$ and $\gamma$.
I am using the CausalImpact package in R to calculate the impact of a marketing intervention using Bayesian Structural Time Series. This methodology and package is explained in Broderson et al. 2015 found at https://research.google.com/pubs/pub41854.html (direct PDF link here). I calculated the impact of a marketing in...
Is there a test or rule of thumb for determining when it is better to use a binary model such as logistic regression vs. a count model such as negative binomial regression? For example, these data "seem" like a "poor" candidate for a count model and perhaps would be better modeled as a binary model: count = 0, freq = 1...
I am working on a fairly standard data science project for a Company, where I have been tasked with answering the question "What factors are most important when determining whether or not a potential customer will turn into a buying customer". The product being offered here is legal software. The Company automatically ...
I would like to run the following model: $Y_{ij}=\beta_0+\beta_1 X_{ij}+ f(controls) + e_{ij}$ where observations are collected from several individuals ($i\in[1,N]$) following several events ($j\in[1,E]$). Moreover, for each individual $i$, I have $X_{i1}=X_{i2}=\cdots=X_{iE}$. As a concrete example suppose that $Y$...
In Metropolis-Hastings sampling it is required to have a proposal distribution $g(\theta_{new}|\theta_{old},\lambda)$, where $\theta_{old}$ is the last accepted sample in the chain and $\theta_{new}$ is a newly proposed sample. Samples are drawn from $g$ which are then transformed into the acceptance probability (the p...
Working in clinical research my task is to calculate the Hazard ratio, better to check the calculations of someone else. This first calculation was based on ARM=(3 different treatments) with only t=(end-times) and censored data of format CNSR=(a,b,...) in {0,1} in the software suite SAS. I redid the work in NCSS and R,...
I have the following regression: $Revenue = B_0 + B_1*ForecastError + B_2*OilPrice$ Revenue is in dollars, Forecast error is in percentage but written out as decimals (Example the data is written down as 0.05 and not as 5%) and Oil price is in dollars. If B1 is - 8000, then I would interpret the independent variable ...
I am curious about strategies for dealing with missing data in mixed effects (or multi-level models). By default, as far as I understand, many software tools use listwise deletion by default, so that cases with missing values for any of the variables are removed from the analysis. This is the case, for example, for the...
I often see the term white noise appearing when reading about different statistical models. I must however admit, that I am not completely sure what this means. It is usually abbreviated as $WN(0,σ^2)$. Does that mean it's normally distributed or could it follow any distribution?
Using Adaboost with SVM for classification I read the answers to the above question and got an idea of what is being talked about in the papers cited. My question is about the theoretical difference in the results between a model where SVM is treated as a weak classifier and boosted and another model using Adaboost or ...
In Linear Regression, when we model $Y$'s dependence on input $X$, we say that $$Y = X\beta +\epsilon $$ where $\epsilon \sim \mathcal{N}(0, \sigma ^2 I)$ where $I$ is the identity matrix. I understand the motivation for why $\epsilon$ should have mean $0$ because we can append a $1$ to every entry of $X$ in order to m...
I used negative binomial GLM and Poisson GLM on a count data, the Poisson has a higher deviance-based pseudo-$R^2$, yet a larger AIC?! Can anybody explain why this happen while normally higher $R^2$ should have lower AIC? negative binomial GLM Poisson GLM
What are they? Learning rate, epochs, mini-batch size, and what else? Do I consider network architecture as hyperparameter too? I didn't found a concrete answer for the last question.
A frequent simplification in modeling and simulation is to replace a random variable by its mean value. When would this simplification lead to the wrong conclusion?
I have data from an experimental design in which I doubt there is independence between samples. My first idea is to use the Mantel test to look for spatial autocorrelation between the measured variable (abundance of a pest species) in the different plots. In case the Mantel test is >0.05 and I cannot reject the null h...
So, I have my training data and my test data and the problem is that using KNN it works very good (in fact works almost perfectly) but using SVM or some CART Models works very bad. So, I'd like to know some possible reasons why this is happening. I think that the code that I'm using it is well implemented. This is a pr...
In Kernel Regression with a linear kernel, we have $$\beta = X\alpha = X^T(XX^T+\lambda I)^{-1}Y$$ and the normal Ridge Regression solution is $$\beta = (X^TX+\lambda I)^{-1}X^TY.$$ How can you prove that $X^T(XX^T+\lambda I)^{-1} = (X^TX+\lambda I)^{-1}X^T$?
Could you please introduce some recent papers on this? How to deal with the (approximate) gradient descent for graphical model inference, and then integrate it into the stochastic gradient descent? I know the Domke's workhttp://machinelearning.wustl.edu/mlpapers/papers/AISTATS2012_Domke12 was devoted on this. And the s...
I have a dataset (X, y) where X is multi-dimensional features and y is the class label of each sample and it is a continues value between [-1,1]. I am using MLPRegressor as machine learning model to be used for prediction. To evaluate my model, I use several regression metrics found here, specifically sklearn.explained...
Briefly: I want to run a PCA on 2-dimensional data, both for the purposes of dimension reduction and capturing greater variance. I know it can be done (e.g., in R, running prcomp on 2-dimensional data works without errors or warnings), but just because something can be done doesn't mean it should be done (e.g., Doing p...
Could you please explain what is the difference of these "covariance" , "covariate", "coefficient of variance"? I would appreciate example from biology if possible
I need to draw random integers from a truncated discrete Gaussian distribution. That is, the probability of integer $i$ is: $$p_i \propto \exp\left( -\frac{(i-\mu)^2}{2\sigma^2} \right)$$ for $a \le i \le b$, and $p_i = 0$ otherwise. The missing proportionality constant is obtained from the normalization condition, $\s...
Say we have a binomial random variable $B \sim \operatorname{Bin}(n,p)$ and $n$ i.i.d. Normal random variables $N_i \sim N(p, 100)$. What is the distribution of $\sum_{i=1}^B N_i$? I'm not really sure how to go about this. I know that I can calculate the expectation through Wald's Lemma, but in general, I'm not sure ho...
Let's say I have two standardized tests, test A and test B. If I combine the two tests (no items will be discarded, all will be included) to make test C. Can we say test C will be also a standardized test?
Pretty new to machine learning and would like to know what is the difference in model accuracy between using single multi-output NN and multiple single-output NNs all used in tandem (OvA and OvO)? Eg. Say there is a problem where there is a set of input medical diagnosis codes Xd with sample vectors like [dx1, ..., dx5...
I have a dataset with all category variables. From my understanding, I can use multiple linear regression to get the relative coefficients of A, B, C. However, I cannot get the coefficients of each value A1, A2, etc., since there are always omitted parameters(because I used dummy variables). Example: Dataset A = [A1, ...
This question may be very basic, but I have looked through some resources on Monte Carlo statistical analysis as well as other methods to reconstruct a distribution, but have not found an answer suitable so far. I describe my ansatz solution at the bottom, but am not satisfied with it for the reasons I state. I have a ...
I am wondering what the predictive distribution of a Dirichlet-Multinomial distribution is. In this tutorial (page 24), the predictive density is simple and something like "pseudo samples." However, in this writeup, the predictive density is rather complicated. I can walk through the latter formula, but do not come ...