instruction
stringlengths
9
38.7k
What is Max Pooling and why would I use it? There are a lot of questions about Max Pooling on Stack Exchange, but none of them explain what it is, why we want to use it, the problem it solves, or competing solutions. I'm looking to build a better conceptual understanding from a beginners perspective.
I have difficulties to understand how the Kolmogorov-Smirnov Test works. If I want to know if my samples are from a specific distribution (for example from the weibull distribution) I can compare my significance level to the p-Value I get from scipy.stats. If the p-Value is higher than my chosen alpha (5%) my samples a...
import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from tqdm.auto import tqdm from torch.nn import functional as F import numpy as np import matplotlib.pyplot as plt import datetime import os import pandas as pd from sklearn.preprocessing import StandardScaler # VAE...
I have constructed a continuous variable by using two different methods. Now I want to know the variable created under which way is the best and should be included in the model. Some preliminary results show that the variables constructed using both methods can significantly predict the outcome (p=0.03 vs. p=0.04). The...
Below is the given data, how can I make clusters using symmetric matrix?
So, I have a few sets of polyhedral dice (77 individual dice) that I'd like to try to test for balance. I'm thinking a decent sample size is to roll each of them 100 times, then plot the proportional occurrence of each resulting number, and test that proportion against the neutral expected percentage (ie 1/4,1/6,1/8,1/...
Does omitted variable bias affects coefficients for those variables that are not correlated with the error term? (When there is one variable that is.) I found two answers, but they appear to be contradictory, although I find both of their arguments convincing. Anyone can clarify this? https://citeseerx.ist.psu.edu/vi...
I'm hitting a wall on a project I'm working on with the goal of predicting the probability of success for a particular set of data. Right now I'm using Logistic Regression and I'm finding that my framework performs fairly well enough except for specific subsets of data. Without going into too much detail, the probabili...
I'm doing a linear regression assignment using a variable transformation using R. and I have several questions. What is the criteria of choosing which type of variable transformation? We've learnt "Y~X", "logY~X", "logY~logX". Out of three, how can I choose the model? 1-1. Should I look at the plot line? It is as bel...
No access to computers or calculators is available for this problem. Consider the following linear model $$Y_1 =\theta_1 + \theta_2 + \theta_3 + \theta_4 + \theta_5 + \theta_6 + \epsilon_1\\ Y_2 =\theta_1 + \theta_2 + \theta_3 - \theta_4 - \theta_5 - \theta_6 + \epsilon_2\\ Y_3 =\theta_1 - \theta_2 - \theta_3 + \theta_...
I studied on collaborative filtering recently and found that for ratings at last most methods applied were weighted average, no matter what they had proposed, similarity, time, etc. Thus I am wondering whether there is another way to forecast the ratings. Well, I could only come up with weighted average listed above an...
How do GAMs generate forecasts that are outside the range of the training data? I often need to use regression models for extrapolated forecasts, where the values of the predictors are outside their training range. Hence, models with piecewise linear splines or natural cubic splines (i.e., cubic for interpolation and l...
I have run an ADF test on the residuals of an ARDL and a DOLS model to test for cointegration. I have 3 explanatory variables and 1 response variable. When I run the ADF test on the residuals on both models with all 3 explanatory variables included I get the result that they are cointegrated. However, when I run the AD...
A friend recently told me about a technique to remove the effects of an unwanted feature $x$ in a response variable $y$. He mentioned an example from genetics. By regressing $y$ on $x$ (or a polynomial in $x$ to capture higher order interactions in the data), the residuals represent the variation unexplained by the "nu...
As far as I learnt, Cholesky decomposition can be used only for symmetrical positive definite matrices, but I can see it is used as solver in Sklearn-Ridge package, can somebody explain how it is used where X is clearly a non symmetric matrix like the one randomly generated in the below example... m = 20 X = 3 * np.ran...
There are five latent variables (three independent and two dependent) which constitute a PLS-SEM model. A single survey was conducted; however, the questions were asked twice to the same participants. The items were worded identically, only the subject of the sentence was replaced, to represent two different aspects. I...
When using sequential feature selection approach, say forward feature selection, I want to stop adding new features when the improvement in model scores is smaller than a certain level. Is there a standard criteria being used in this context as a stopping condition? It reminds me of the case of using the elbow method i...
Let $X$ be a continuous random variable with pdf $f(x)$. Assume that $f(x) \geq 0$, for all $x > 0$, so $X$ is a positive random variable, $f(\infty) > 0$, i.e. $X$ has a strictly positive density of probability at infinity, $\mathbb{E}[X | X < \infty] = k < \infty$. Then $\mathbb{E}[X]$ is finite or infinite ? Is it...
I have collected data to answer the question “Does Neuroticism Mediate the effect of a Mindfulness Intervention?” I Have collected pre-intervention Mindfulness Score and a post intervention measure (both scale). I also took a neuroticism score before the intervention to estimate the level of trait neuroticism (also sca...
When fitting a deep neural network it is not uncommon for the learning rate to be too high, and then the fit goes horribly wrong. On the other hand as far as I can tell, the only problem with setting the learning rate low is that it takes a long time. Is there any other downside to a low learning rate? Or if you are ...
I am trying to understand the functioning of accuracy and I need a practical example. This is what I understood: it gets the average correctness of the predictions and in some cases its result can be different from reality. This is what I need to understand: Is it right to say that since accuracy averages, the real re...
I always thought, that mathematics, thus statistics, are both strict sciences. So, two mathematicians cannot speak about the same topic and have contrary views on it. In the pharmaceutical industry, the official, formal guildelines say, that the adjustment for baseline should be added when modelling the change from bas...
Average Silhouette is one of the popular methods to decide number of clusters in a clustering algorithm. Why should we use max(b,a) in the denominator of the formula? So why not just avg(a,b). I guess numerator is intuitive enough to understand. I am not able to wrap my head around denominator.
The Autoregressive (AR) process $y_{t} = y_{t-1} + Cy_{t-2} + z_{t}$ is stationary provided that $-1 < C < 0$. We know that a general AR(2) process i.e., $y_{t} = a_1 y_{t-1} + a_2 y_{t-2} + z_{t}$, the stationary conditions are $a_1 + a_2 < 1$ $a_2 - a_1 < 1$ $|a_2| < 1$ By following these conditions we get followi...
I have taken two different approaches to calculate probability: using a GLM and an SVM. They are giving slightly different results (which is understandable, they are completely different approaches). Both methods are proving to be generally accurate though and doing a similar job with predictions. Given that it's hard ...
details of my dataset summary(lm(visits ~ health1 + age, data = Medicaid1986)) But it gives this output: health1:The first principal component (divided by 1000) of three health-status variables: functional limitations, acute conditions, and chronic conditions.
Where $\beta_2\in [0,1)$ and $g_i$ is the gradient at step i. We approximate E[gi^2] with E[gt^2] by a correction term $\zeta$. I think this is because it is assumed that the gradients are bounded. Is this correct?. Moreover,to correct the bias, they divide by (1-$\beta_2^t$). Shouldn't they also substract $\zeta$? I ...
I have repeated observations from individuals that have been randomly assigned to either Group 1 or Group 2. In detail, 64 subjects were randomly assigned to one of the two groups and performed a task 30 times. The experiment was designed such that each period should be viewed as an independent decision. My question is...
MY PROBLEM: I need to test for statistical significance between the three groups. The problem comes when extremely large numbers are involved and the chi-square test is always significant. I read several related questions however I didn't find a solution. What test should I use? How to test for a statistically signifi...
I constructed the realized variance of bitcoin returns per day from 8-10-2015 to today. The realized variance is calculated by taking the cumulative squared intra-day returns. 5-minute high frequency data is used to estimate the realized variance. Daily realized variances are regressed on the realized variance one day ...
I would like to calculate two types of bivariate exponential models on scaled data (therefore both variables are expressed as z-scores): Model 1: $$ y=b_{0}*e^{b_{1}x} + \epsilon $$ Model 2 (is basically model 1 with an additive term b2): $$ y=b_{2}+b_{0}*e^{b_{1}x} + \epsilon $$ Now I'm wondering, how can I recover th...
Assume that $W = (X,Y)$, $Z$ is some random variable not in $W$, and we know that $$ f(W|Z)=f(W). $$ Is it then also true that $$ f(Y|X,Z) = f(Y|X)? $$
I have studied many books and tried to understand both the Metropolis and Metropolis-Hastings algorithm. Everywhere it is written in the context of the Ising model or Lenard-Jones Energy. I am having difficulty understanding the algorithm from this context. Can you give an example without using the context of Physics/M...
I'm using a neural network to model an unknown function for which I would also like to know the derivatives. The nn has four inputs and four outputs, and the training data is preprocessed using scikit-learn StandardScaler, i.e., $$ \hat{\bf{x}} = (\bf{x} - \mu_{x})/\sigma_{x} \quad \text{and} \quad \hat{\bf{y}} = (\bf{...
I am running a multiple linear regression model in RStudio at the moment and wanted to check my assumptions. As seen by the plot, my red line does not appear to be flat and instead curved in places. I am having a difficulty interpreting this. How to interpret this curve? Is the relationship linear?
Let's say I have a simulation model with stages A, B, C. I want to calculate the average time of each stage over 1000 runs as they contain stochastics. In many runs, either one of these stages may not be interacted with, and therefore, contain a time of 0, drastically lowering the mean of that stage. When calculating t...
I need to perform ordinary kriging on a dataset and I understand that I need the weights to sum to 1, I just don't understand how to set that up properly. For example, my covariance function is C(h) = 10 exp(−3h/10 ), and the kriging distance is 1 unit to each of the 2 observed points I have. So, before making the wei...
I have 3 domains of supplier data (Jan 2017 to Jan 2022) and they are as follows a) Purchase data - Contains all the purchase (of product) data made by the suppliers with us. It contains columns such as purchase date, invoice number, product id,supplier id,project name b) Inventory data - Contains the stock/inventory i...
I'm reading through Efron's work on bootstrapping and I have a few questions. There are a few assumptions that are eluded to but not really explicitly stated. (1) Do we have to have a statistic that can be made into a pivot? That is, do we need something like $\bar{X}$ which has a pivot $\frac{\bar{X}-\mu}{s/\sqrt{n}}$...
I have been taking measures of two populations of mice. One population runs for 10minutes and the other can barely run for 2-3 minutes. The problem is that I have too many mice to keep testing them and I know that the healthy ones can run more than 10 minutes but for the sake of my life I had to stop them at 10. What w...
I am running a linear regression model in R where soya beans yield is predicted by soya varieties (spike,maksoy,uyole and local), type of fertilizer used (DAP,NPK,unfertilized) and use of inoculant for improved Nitrogen fixing. The model runs but it lets me know that Coefficients: (2 not defined because of singularitie...
I made the following simple regression model and used stargazer to output a table that plots the standardized vs non-standardized regression model coefficients. mod = lm(mtcars$mpg~mtcars$cyl+mtcars$disp) mod_std = lm.beta(mod) stargazer(mod, mod_std, coef = list(mod$coefficients, mod_std...
I am running an analysis in which I want identify if there are significant differences in the features that make up two groups: people that commit crimes against children and people that commit crimes against adults – the group sizes are not equal. My data is all frequency counts, and has been added up to create percen...
I am looking to segment my customers based on their transactional data with us. Based on google search, I came to know about RFM matrix, which records Recency, Frequency and Monetary value-based scores. This seems like a powerful technique based on my initial reading. However, it looks like it is just descriptive analy...
Consider the following double sampling scheme: We have a population of size $N$ with variable of interest $y_i$ for each $i \in \{1,\dots,N\}$, and (fixed) subpopulation $D$ of size $N_D$. Let $S$ denote a Simple Random Sample of size $n$ of the population. For $S_D := S \cap D$ of (random) size $n_D$, we want to estim...
I am trying to figure out the statistics of a study where I have 60 participants with varying amounts of observations per participant. I am measuring facial muscle activity after a button press over a 45-minute period. Now some participants have 1 or 2 button presses while others have 13. I am interested in whether pos...
I am very confused about the question: As Sigmoid function is non-linear, then how Logistic Regression works as a Linear Classifier? Can anybody please help?
I hope that this question has not already been asked. I am analyzing data in R (and am a novice). I have a highly skewed data vector in a dataframe with missing values that I hope to set as the dependent variable in a regression. The values in this vector are skewed because it has a polarizing response tendency (its ra...
I have come across a problem in my research which deals with the mean of the posterior predictive distribution, i.e. $$p(x'|x)=\int d\theta p(x'|\theta)p(\theta|x)$$ where $x$ is an observed sample and $\theta$ are the model parameters (we can assume they parameterize the mean, and any other model parameters are fixed)...
Background - I'm creating a time-series anomaly detection (TSAD) model for the wifi throughput. My customers are 2 banks, 5 retail stores, 4 universities, 6 hospitals. Currently, I have 2 options to design my solution. Separate TSAD model for each customer - I create 17 models, one for each customer. This might be mos...
I'm investigating the influence of top management team nationality diversity (TMTdiv, continuous between 0-1) and board nationality diversity (Boarddiv, continuous between 0-1) on firm internationalization (count of new foreign market entries). I'm using a negative binomial regression due to overdispersion and I would ...
The FCI algorithm is a common algorithm used for learning a Markov equivalence class of causal graphs from observational data. I am wondering if there are any good examples that walk through a causal graph and applications of each of its steps along the way to orient the graph.
In the paper What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision? they propose loss functions that capture aleatoric uncertainty. My question heavily relies on understanding of this paper, so I can go straight to the question without the details. They suggest the following loss objective for reg...
The R poly function documentation says that it gives orthogonal polynomials, but it's not clear what orthogonal polynomials it gives. Are they Legendre? Are they Chebyshev? What family of orthogonal polynomials does R poly use?
Consider the simple linear model: $\vec Y=\beta_0+\beta_1 \vec X +\vec \varepsilon$ When I have read up on discussions about the different statistical tests that can be run on the model's slope coefficient $\beta_1$, I have exclusively seen the following null hypothesis / alternative hypothesis set up: \begin{align} &H...
I am doing several survival analyses on TCGA (The Cancer Genome Atlas) data. As this is my first time doing this kind of analysis, I have a question about it. To study the influence of the gene expression of several genes on the patients’ survival rate, I have conducted Cox regressions for each gene individually. To do...
I am building a multi output deep learning model where the output consists of five dimensions (the specific architecture is a modification of YOLO). These have different magnitudes (ranges: [0, 1.2], [0, 20], [0, 1.2], [0, 1.5, 0, 2000])as shown in . I was wondering if scaling the output dimensions, for example by usin...
I am looking at a migration outcome question. Basically, it's did you move (0/1); and if you did move, did you move to x town (0/1), as a function of tenure, economic conditions, etc.. I am somewhat familiar with ZINB and ZIP models, but my understanding is that they are for count data (the example I've seen is with fi...
I am fitting distributions for the time spent for three processes (i.e., pick up tools, walk to destination, install) in a system that I am trying to simulate where the original data for these processes are represented, in a data we pulled from the system, in time as "one process" (i.e., repair). The data for the three...
Each prior restricts the sample space, so in theory, your probability becomes more and more accurate. However, if our sample space becomes too small, the tradeoff between the accurate sample and the confidence we gain from having more data points becomes apparent. Example: Assume I want to know the odds that I will con...
According to the G-M assumptions, we should assume spherical errors. But my understanding is the errors -- as measured by the vertical distance from the true line of best fit to the response observations -- cannot be observed. Instead, our line of best fit is an estimate based on our $X = x$, our sample observations, a...
Given that the closed-form ridge regression solution is $\hat{\beta}_{ridge} = (X^TX+\lambda I)^{-1}X^TY$, show that ridge regression outputs are equal to the correlations used in correlation screening when $\lambda \rightarrow \infty$. I'm not really sure how to approach this problem. I understand that as $\lambda \ri...
Can do smoothing after making time-series data stationary? And is it useful to do smoothing before making data stationary?
ARIMA is widely used for anomaly detection on time-series data e.g. stock price prediction. ARIMA assumes that future value of a variable (stock price in our case) is dependent on its previous values. When we do root cause analysis of a detected anomaly, there can be numerous reasons e.g. russia-ukraine war. I have 2 q...
Imagine you have a group of N people that each make a submission. There are K submissions total. What is the probability that at least 1 person from the group of N people will be in one of the top M places assuming each place has an equal probability. For example, a group of 10 people each make a submission. There are ...
I'm new to hypothesis testing, and following an online tutorial which confuses me in the way they setup the null and alternative hypothesis, and compute the p-value. My understanding is that null and alternative hypothesis must be mutually exclusive; so that if we can reject the null hypothesis, it should suggest the a...
I'm looking for an original reference to a proof idea. Suppose we have $n$ iid observations $(X_i,Y_i)$ and an estimating function $$\bar U(\beta;\alpha)=\frac{1}{n}U(\beta;\alpha; X_i,Y_i)$$ where we are interested in estimating $\beta\in \mathbb{R}^p$ and $\alpha\in\mathbb{R}^q$ is a nuisance parameter. Further suppo...
If I have two random variables $X$ and $Y$ and their variance is the same, i.e., $Var(X)=Var(Y)$. Does this mean $Var(X)=Var(Y)=Cov(X,Y)$ ?
I have a dataset, which I assume has a weibull distribution : vec <- c(90, 10, 60, 186, 61, 49, 14, 24, 56, 20, 79, 84, 44, 59, 29, 118, 25, 156, 310, 76, 26, 44, 23, 62, 130, 208, 70, 101, 208) and want to know how to calculate the Confidence Interval for parameters scale and shape using a chi-squar...
Say you have: data.lm summary(data.lm) It prints out: Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) 510.1451 159.9921 2.510 0.0075 ** data$whatever -0.7644 0.4551 -2.352 0.0359 * --- Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 Residual standard error...
Given the following data.frame: testdat <- structure(list(id = c(5, 5, 5, 5, 9, 9, 9, 9, 14, 14, 14, 14, 15, 15, 15), x = c(0, 10, 24, 38, 0, 10, 24, 38, 0, 10, 24, 38, 0, 10, 38), y = c(70.7, 78, 79.8, 81.4, 85, 90.2, 91, 93.4, 74, 77.1, 81, 84.1, 62.2, 66, 68.8), threshold = c(80.3, 80.3, 80.3, 80.3, 92.8, 92.8, ...
I have salary data of 3000 employees ranging from 3000 - 10000 dollars. Based on my understanding:(https://mathbitsnotebook.com/Algebra1/FunctionGraphs/FNGContinuousDiscrete.html) Continuous data is a set of data if the values belonging to the set can take on ANY value within a finite or infinite interval. Discrete d...
When the study "Invisible Victims: Delayed Onset Depression among Adults with Same-Sex Parents" was released, a rebuttal was soon posted. Sullens posted a counter which stated at the end: I think I have addressed enough errors in Frank's critique to establish that his criticisms of my study are unfounded and that my f...
I am using SPSS for the first time and just trying to make sense of my findings. I had two IV (nationality, age group), each with 2 levels (English-non English; young-old), which is why I ran a 2x2 ANOVA on SPSS. All my hypotheses were null, as no significance was found between the variables(nationality; age group; age...
I am new to statistics! I have 2 groups of city population based on education level (group A: educated, group B: without education) I try to figure out if there is a difference between the number of people who live in the city, based on education What statistic tests to use to prove the following hypothesis, or what st...
I need your help please in interpreting this: I am trying to predict suicide rate but confused about interpretation. for number 2 for example, for the group age 5-14, the suicide rate will be 0.35 which is 17.3%. Or for each person in that group 5-14, the probability of suicide is 17.3%? Here is the function I used rpa...
I have a dataset with 5 features: timestamp, value , temperatures, hour of the day, day of the week and I would like to know if there is a way to measure the 'correlation' or something similar between a nominal and an interval variable. For example I would like calculate the correlation between the 'temperatures' (in °...
I've a question for those who have read the book Probability Theory of Jaynes. In the paragraph 4.5, where the author introduces probability density functions for the first time, I don't understand why he says that a finite number of propositions is all that is needed. In particular, it seems to me that for every real ...
Say you have a Cox proportional hazards model with 1 covariate, gender (coded 0 and 1 for male and female). The R summary will give a likelihood ratio test, and p < 0.05 indicates that the survival distribution is different for the two genders, because it's essentially comparing the "null" baseline model with gender = ...
Let's say that I want to measure the effect of a treatment on the performance of a firm. However my sample is very small. Let's say 10 firms. It is not possible to observe more firms. All these firms currently have one performance indicator. Now, what happens if I start measuring 5 performance indicators per firm inste...
I have a data with 2 groups (fit/healthy) and dietary intake data as ordered categories (less frequent to more frequent as 1,2,3,4,5). I have to assess the relationship between the groups and the dietary data. Hypothesis being "frequency of certain food groups has a direct/indirect relationship a particular food group"...
What is the best way to describe the difference between a repeated cross-sectional and panel dataset? I consider an example of measuring blood pressure for a set of patients $i\in\{1,...,N\}$. A repeated cross-section data in this case would mean that the hospital has the blood pressure records for Sam and Suzy at diff...
How to justify precisely a situation where the expected sample size is not reached? For example, the sample size for our study protocol was determined on the basis of a fixed statistical power of 80%. We needed around 200 patients but practically, only the data of 70 patients could be gathered. Thanks
As part of my studies in ecology, I am trying to reproduce a quantile regression method described in Karlsson et. al (2022) (source: https://arxiv.org/pdf/2202.02206.pdf) My starting point is this: Throughout this paper, the response variable will be julian day. For single species models, yj will be the julian arriv...
I am using the following fixed effects model that has intercept and slope coefficient that vary across individuals. $Y_{it}$ - dependent vector variable for monthly income for individual i at time t. $COVID_i$ - dummy equal 1 if the interview took place on or after the enforcement of the first lockdown policy in the U...
I am using county-level data in my dissertation, and I received the below comment regarding analysis from my supervisor; "you mention that you use county-year FE. Since the outcome variable is also at the county-year level, it is unclear how the regression coefficients are estimated (they should be all dropped). In the...
In a standard regression literature, the following terms are used almost interchangeably and are used also loosely: "De-meaning the equation gives..." "Differencing the mean of the outcome eliminates...." "The mean-difference provides..." Is there a rigorous and unequivocal way to define these terms using the conditi...
I have a machine learning model (A neural network here) which minimizes MSE loss. The model should fallow an unbiased distribution. Nevertheless, the training set is biased, but fortunately by a known factor $w$. Let's assume my dataset as $$X = {x_1, x_2, x_3 ... x_N}$$ where $N$ is a number of points in the dataset. ...
I have no knowledge on data analytics, just trying to start. I also have no idea which tools to use, so here is my question, If I have to build a data analytics for an organization which shows trends data, where should I start with? To add some information about my company, I work for a SaaS based software product comp...
I am running a OLS regression and to identify factors driving online sales of a product. This analysis (conducted only for inference) is run on different countries with the same variables included for each country, whether those variables are collinear or not. In short, some variables need to be included in the analysi...
Let $n$ be a population of individuals such that at least a certain majority of them $t$ are said to be honest. What are the values $t,k$ such that by selecting $k$ individuals at random from $n$ the majority of them is honest with probability equal to a certain $\alpha_{threshold} \in (0.5,1)$? Intuitively, if $t$ is ...
For a meta-analysis I am looking for the p-values in these tables derived from reports dating back to 1980... I am, by now, pretty sure I can't but maybe there is someone smarter than me here... If you want to check out the original documents, find them here: https://www.ncjrs.gov/pdffiles1/Digitization/71109NCJRS.pd...
I am running neural networks with a sigmoid activation function, and have output data which already lies within [0,1]. However, the minimum value of the data is around 0.05, and the maximum is about 0.2. My question is this: Is there any benefit from using min-max normalization to "stretch" the data over the full range...
I have two variables: age and weight. I have a collection of documents in which these two variables may or may not appear. My dataset is two lists, one for each variable with values 0 or 1 to indicate if the variable is present in the document or not. I have to calculate the correlation between them. There are some ins...
Scenario: I have a scenario as follows: There is a song box. It has 2 black box modules inside it. The song box takes input 1 'edm' song. The first black box takes the 'edm' song (it could take a 'pop' song too but we feed only 'edm' songs) and produces (non-deterministically) N more song names that is a mix of 'edm' a...
https://en.wikipedia.org/wiki/Normalization_(statistics) Normalization is subtracting the mean then dividing by the standard deviation. What is the name of just subtracting the mean?
Suppose $p(x, y)$ has $x$-marginal $p(x)$ and that $f(x)$ is a well-behaved function. Is it always true that the expectation with respect to the joint distribution is equal to the expectation with respect to the marginal if $f$ depends only on that variable? $$ \mathbb{E}_{p(x, y)}[f(x)] \overset{?}{=} \mathbb{E}_{p(x)...
For cross-validation of a logistic regression classifier, it seems to me that there are a number of different approaches to calculating each performance metric: The performance metric is calculated separately in each left out fold, repeated across k folds, then averaged. The probabilities are calculated in each left o...
Suppose we have the following information based on independent events: The probability of contracting Alpha variant is .4 The Delta variant is 50% more contagious than Alpha The Omicron BA1 variant is 50% more contagious than Delta The Omicron BA2 variant is 50% more contagious than Omicron BA1 Calculating this as-is...
I am wondering why Machine Learning needs a lot of data compared to statistical inference. In statistics, we can use a small amount of data for a statistical inference but in Machine Learning, everybody says we need a lot of data. Why does Machine Learning needs tons of more data compared to Statistics Inference?