instruction
stringlengths
9
38.7k
I have heard from one of my friends "In binary classification, consider the 0-1 loss (I[y!=f(x)]). Its expectation is the accuracy of the model. Then consider a surrogate risk, like exponential loss or quadratic. CC proves that for some surrogate loss, a sequence of functions that converges to minimal surrogate risk al...
I am reading a meta-analysis where the authors state the following. (I've redacted the active drug name, as my purpose is to understand not call anyone out.) The treatment response to placebo and [drug X] were analyzed separately per treatment group as measured from before to after treatment. And they then report the f...
The Question I am currently working on an analysis of my company's customers and their visiting patterns. In particular, one question that has come up is: Given that a visitor has visited x times, how likely is it that they will visit again at least once? Intuitively, it seems to me that there is a meaningful relatio...
I am relatively new to methods for causal inference. So, please excuse my conceptual confusion. However, I have been looking into the synthetic control method first proposed by Abadie and Gardeazabal (2003) in this paper on the economic costs of conflict. One thing that is confusing to me is that in most of the papers ...
I have microbiome data structured as follows: PatientID Treatment Response P1 Pre. Yes. P1. Post. Yes. P2. Pre. No. P2. Post. No. where I want to look at differences in the microbiome between patients who did and didn't respond to drug treatment. I have approximately 40 patients. I have used phyloseq ...
I have a dataset with approximately 38,000 measurements of sizes of cysts from 64 kidneys from 5 different groups. We have a hypothesis that the distribution of the sizes (small to huge) is different between the groups. Perhaps this could be represented by mean, median, or other means. The data has an enormously large ...
(Background: I am researching a economics problem and for the research, I need to know the general theory of multinomial distribution problems. This question is just an example to understand the general problems) There is a fair dice. Let's say $X$ is the number you get when you roll the dice. $Y$ is the payoff we get ...
I found from some literature that when we use the method of moments to fit the Gumbel distribution, the estimated (On page 24) A comparison of the variance formulas in (1.66) with the CramBr-Rao lower bounds in (1.61) readily reveals that the moment estimator ii has about 95% efficiency while the moment estimator 6 ...
Given a model $\hat{y_i} = F(x_i \hat{\beta}) + \epsilon_i$, where F is some mapping function that could be, for example, the sigmoid function, and x is a row vector of your features I see that Likelihood $\ell = \prod_{i | y_i=0}^N F(-(x_i\hat{\beta})) * \prod_{i | y_i=1}^N 1-F(-(x_i\hat{\beta}))$ But why would the in...
I'm using random forest for generating a predictions on the regression. I've seen confidence interval constructed from evaluation metric of models instead of directly from the model prediction. Is it possible for me to bound each of my predictions in my test set with a confidence interval? My additional questions are: ...
Let's say there is a multiple regression: $$ Y = \beta_0 + \beta_1X_1 + \beta_2X_2 + \beta_3X_3 + \beta_4X_4 + \beta_5X_5+U. $$ I know that conditional exogeneity implies that the error terms are mean independent as a function of all $X$ variables jointly. For example, wage = education + ability violates exogeneity bec...
This sounds like a question that should have come up before but I couldn't find it on CV. I am trying to use a column called limit_price as in the limit price of an order for a machine learning project (you can assume I am trying to predict the average trading price of an order). This column is an upper limit for a buy...
I am currently studying the textbook In All Likelihood by Yudi Pawitan. In chapter 2.4 Likelihood ratio, the author says the following: $$\dfrac{L(\theta_2; y)}{L(\theta_1; y)} = \dfrac{L(\theta_2; x)}{L(\theta_1; x)}.$$ Since only the ratio is important, within a model $p_\theta(x)$, the likelihood function is only m...
Let $x_0,x_1,...x_n$ be iid (independenta and identically distributed) random variables. Then, $m_0,m_1,...m_n$ be defined as $c-x_0,c-x_1,....c-x_n$, where c is a constant greater than $x_i$ ($i \in \{0,1,..n\} $). The question is that the $m_0,m_1,...m_n$ is also iid?
Metropolis - Hastings : Data Science Concepts youtube shows the acceptance probability $A(a \rightarrow b)$ is $Max(1, \frac {f(b)}{f(a)})$. Is it correct or it should have been $Min(1, \frac {f(b)}{f(a)})$?
I am trying to normalize prices based on the (median, MAD) transformation. I attach a image below describing it in comparison to the (mean, std) normalization. I have trouble underatanding if b should be based on the whole sample, or just on the calibration window. In the (mean, std) it says that both a and b are calcu...
I've got my survival curves looking like this: NPMLE using icenReg semi_parametric using icenReg and cox PH, where right side of interval is used as time of event Why do the survival curves estimated by icenReg have that strange vertical line at the end? How should I interpret it and is this something I should worry...
I am analyzing three years' worth of data. For some descriptive analysis, I want to know if there is a difference in the median between, $year_1$ and $year_2$ compared to $year_3$. To do this, I planned to average $year_1$ and $year_2$, creating a comparable 12-month reference group with $year_3$. I would then use the ...
I have included the results that I got from a homework problem, but am a bit confused on how to interpret them. The dataset contains information from schools about vaccination rates and exemptions along with enrollment and school type. Enrollment I can interpret just fine but what I'm having trouble with is the pubpri...
I have a data set split in training, validation and test that I will use for training, validating and testing a classifier. We have missing or incorrect labels in all these folds and we are trying to use some techniques of data imputation for dealing with these problems. But I'm not sure how to use the data imputation ...
I would like to know if the caret package has decision-making algorithms other than the decision tree. I know the decision tree algorithm is intuitive and easy to explain, however, the decision tree algorithm has limitations in terms of accuracy and/or performance. In my case, I need an output to explain the decision i...
I note that the lognormal distribution approaches a normal for a small coefficient of variation, but I'm having a hard time showing this mathematically. Can someone help?
Model: multiple.regression <- lm(Pocket.Price ~ Pocket.Margin + SKU + Sold.To.Customer + Quantity, data = new_data3) I have a data set with SKU, Buyer, Quantity, Date, Selling Margin, Selling Price. I am trying to use this data to establish a base SKU pricing list...
A question on a problem sheet I am working on asks us to find the Fisher information matrix (FIM) for the following setup: Suppose that $Y_i \sim \textrm{Bin}(r_i, \pi_i)$ for $i = 1, 2, \dots , n$, all independent, where the $r_i$ are known, $\ln({\pi_i/(1 − \pi_i)}) = \beta_0 + \beta_1 x_i$ and $x_i$ is a known covar...
It is well known that the solution to the orthogonal Procrustes problem $$ \textrm{arg min}_{\Omega \in \text{SO}(n)} ||Y - \Omega X||^2_2, $$ can be expressed in terms of an SVD of the covariance matrix $M = X Y^T = U\Sigma V^T$ and, ignoring $\det(M) = -1$, is $$ \Omega = V U^T. $$ However, the solution is non-unique...
TLDR: to a NN you give a dataset and it predicts the $\beta$ that linear regression would have found if solved on that dataset Context: I have a dataset of datasets (synthetical) with the same number of feature, so it's $D = R^{m\times n\times d}$ where: $m$ is the number of datasets $n$ is the number of samples in ea...
Suppose we have a time series of the following form: $$\vec{R}_n = \vec{\mu}_n(\vec{\theta})+\sqrt{\Sigma_n(\vec{\theta})}\vec{Z}_n$$ Where $Z$ is a iid standard multivariate normal. We assume the mean and covariance are predictable (some authors like D. Williams say previsible), i.e. known at time $n-1$: $$\mu_n, \Sig...
I have a question dealing with logarithmic variables, log-sum and dummy variables in a multiple regression. First of all I’ve never worked with log-sums before. I have a model with y that is log-transformed. The independent variables are: one log-transformed, two dummy variables and one variables that is a log-sum. I w...
if $x_0,x_1,...x_n$ be iid (independenta and identically distributed) random variables. The question is that the $x_0,x_3,...x_{n-1}$ is also iid?
My understanding of a mask in arrays is to have boolean values matching the shape of a query array (n, m) where you would mask the query and perform an operation. For example, this operation to sum only the positive values in an array: import numpy as np query = np.random.normal(size=(5,10)) mask = query > 0 np.sum(que...
I've constructed a logistic glmm for predicting if individuals of a single species of fish caught will have an empty stomach or not (1=emtpy, 0=not empty). My predictor variables are salinity (sal), temperature (temp), standard length (SL), Station/location (which are not the same each year, but neither are they random...
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 \...