instruction
stringlengths
9
38.7k
Good day, I am a medical student currently working on a thesis focused on metabolic syndrome. My sample size is 45 individuals. I have encountered multiple challenges in assessing the normality of my data. One of the variables appears to exhibit symmetry when visualized on a histogram, and the data closely align with t...
I am currently following this post, which details how BERT was trained. I had a few questions about the classification task: In the post, it mentions that the authors of BERT decided to add classification into the language modeling in the following way: However, is there a reason why the authors did it this way? Why ...
I am trying to compare the means of two groups (male/female) for different attitudes. Since my data sometimes violate the assumptions of normality and heteroscedasticity, I was planning to do a Mann-Whitney U Test. However, my professor insisted that I still use a parametric test and told me that a One-way ANOVA is mor...
Let’s consider the following classic model selection + performance estimation strategy for some supervised learning task. We split our data into train and test dataset in some proportion (e.g., 25% / 75%). We use train dataset for model selection (algorithm selection, feature selection, hyperparameters tuning) by perf...
Let's say we have the following population equation. $$ y = \beta_{0} + \beta_{1}x_{1} + \beta_{2}x_{2} + u $$ Then to explain the interpretation of $\beta_{1}$ or $\beta_{2}$, we can look at the partial changes. $$ \Delta y = \beta_{1} \Delta x_{1} + \beta_{2} \Delta x_{2} + \Delta u $$ Now, holding all other factors ...
Hello I had a very interesting discussion and I need your help in clarifying the correct answer. TLDR: Problem statement for a layman: Given I am a woman and I want to become professor, and given that $75\%$ of the professors are male - would it help if I fully control and change my gender by surgery, etc. to become a ...
In a previous question (linked here), I sought guidance on forecasting thousands of time series. Based on the suggestion to treat it as a regression problem, I used the LightGBM model with extensive feature engineering. Feature engineering involved: Date features extraction (e.g., month, year, day_of_year) using Panda...
I have a dataset where several features are missing values only if another feature is also missing a value. Does this indicate that the missing data is missing not at random (MNAR)? Additionally, how does this affect my next steps in regard to dealing with the missing data? It is my understanding that MNAR data is quit...
Following example 2 in this paper, suppose I wanted to estimate $\psi = E[E[Y|X,A=a]] $ and I had an influence function follows: $$ IF(\psi) = \frac{A}{\pi(X)}\{Y-\mu(X)\} - \psi $$ where $\pi(X)$ is the propensity score and $\mu(X) = E[Y|X,A=a]$. With estimator $$ \hat{\psi} = \mathbb{P}_n\bigg[\hat{\mu}(X) + \frac{A\...
I would like to ask about estimating parameters of Weibull distribution (a, and b) I am trying to code likelihood of weibull distribution with survival data $(T_i, \Delta_i),$ which I believe is: $(ab)^{\sum\Delta_i} \times \prod((T_i^{b-1})^{\Delta_i} \times \exp(-aT_i^b)).$ I am trying to type this formula in R and t...
I have a predictor $\hat{y}$. I have noticed that the correlation between $\hat{y}$ and $y$ are quite positive, above 50% even, while the $R^2$ is negative. Note that this is an out-of-sample $R^2$ and correlation. I train my predictor in-sample and test the correlation and $R^2$ out of sample. Can someone explain what...
Consider the following simple linear regression model: $y_i = a + b \cdot x_i + \epsilon_i \space\space\space\space\space\space\space where \space i= 1, 2, 3, \cdots , n$ here $\epsilon_i \space's$ are i.i.d. normal random variables with mean 0 and variance 1. (a) Find $\hat{a} \space and \space \hat{b}$, the maximum l...
I want to understand why and how variance inflation factor is taken in account with the formula [1+(m-1)*ICC], where M= Size of clusters and ICC is the intracluster correlation. As I have deduced till now, the total sample size (m*k) = variance within clusters + variance between clusters. Can anyone help understand the...
Say I have $k$ categories of responses to a survey question from $n$ respondents. Assume n of each category is about 50, so we can't just work off asymptotic behavior necessarily. How do I compute confidence intervals from the survey results for each response category? My point estimate for $\mu_k$ is obviously $\hat{\...
There are two stochastic processes, $\{ Y_{1,t} \}$ and $\{ Y_{2,t}\}$. If I take them as an ordered pair, what notation do I use: $\{(Y_{1,t},Y_{2,t})\}$, $\{(Y_1,Y_2)_t\}$, $(\{Y_{1,t}\},\{Y_{2,t}\})$, something else? I also want to use a shorthand to denote the pair, something like $\{Y_t\} := \{(Y_{1,t},Y_{2,t})\...
Wold's representation theorem states that every covariance-stationary time series $\{Y_t\}$ can be written as the sum of two time series, one deterministic and one stochastic: $$ Y_t=\sum_{j=0}^\infty b_j\varepsilon_{t-j}+\eta_t $$ where, among other things, $\{\eta_t\}$ is a deterministic time series, such as one repr...
I have a list $l$ with $E(|l|)=1+\alpha$, where $\alpha>0$. I choose a random element uniformly from $l$ and want to know what is the expectation of the index of this element in the list. If $\alpha$ is an integer this question is simple, as I need to calculate $(1+2+...(1+\alpha))/(1+\alpha)=(2+\alpha)/2$. Is there a ...
I am studying what the consequences of heteroskedasticity are. And i found that assuming that the model is linear in the parameters (i.e $Y=X\beta+\epsilon$), is identifiable, has no perfect collinearity (i.e $X$ is full column rank), is exogenous (i.e. $E[\epsilon|X]=0$) and has no serial correlations (i.e. $Var[\epsi...
I wish to perform linear regression over a data set whose entries can be divided into two or more groups. The groups could be, for example, the date at which observations where taken, or the patient Ids. It seems that this can be approached by fitting a linear mixed effect model. Or, are there more simpler yet equivale...
I have a model metric (a single value) and a list of sample metrics from benchmark quasi-random models that I would like to do a t-test on to figure out if the model metric result is significantly different from the benchmark models. I'm using scipy.stats.ttest_1samp in python the following way: ttest_1samp( be...
I have multiple observations collected by doctors where they give the differential diagnoses, the 10 most probable diseases (d). I want to calculate the inter-observer similarity. my data looks like this case 1: doc1 = [d1,d2,d3,d4,d5,d6,d7,d8,d9,d10] doc2 = [d3,d12,d1,d4,d5,d6,d7,d8,d9,d10] doc3 = [d1,d4,d13,d14,d5,...
I have the following problem: I generate Dummy Variables with the recode and the factor command. In my regression I got different output for the "lower middle" variable and couldn't explain why this was happening. In the original data set, the variable was coded as follows: lower class = 1; lower middle class = 2; midd...
I have an experiment where a group of subjects must learn to associate some sounds to images (say, sound 1-image 1, sound2-image 2,... soundN-imageN). They do a memory test (we present sounds and images several times. If they think it is a correct pair, they should mark yes. Otherwise, mark no. (pre test) Then, the sub...
Suppose you have three variables $y\in\{0,1\}$ and $x_1\in\mathbb{R}$ and $x_2\in\mathbb{R}$. I want to produce data with the following generative process which corresponds to a Mixture of Gaussians (MoG): $$ \begin{align} y\sim & Ber(p)\\ \mathbf{x}\sim & \mathcal{N}(\mu_y, \Sigma_y), \end{align} $$ where $\Sigma_y$ i...
Let's start with an example. Consider that each individual $i$ in a group of size $n$ throws a dice, where each dice is different (random variable $X_i$, notice subindex $i$). In social sciences, we tend to be interested on the distribution of the group's result. However, we tend to think of the latter as a stable, cl...
I want to apply GCN model to predict next link based on similarity of values between its neighbors nodes. For example I have total of 13 nodes and edges = [ (1, 2), (1, 3), (2, 3), (3, 4), (3, 5), (4, 5), (5, 6), (5, 7), (6, 7), (7, 8), (7, 9), (8, 9), (9, 10), (9, 13), (10, 11), (10, 12), (10, 13), (11, 12), (11, 13),...
I have the data below and We have a game, that has a prize jackpot. The jackpot prize starts at 1,000 credits and every round you play the jackpot increases, until someone wins the jackpot and it resets back 1,000 credits. To play a round you 'pay' 1 credit and the jackpot prize increases by 0.011382 (1.1383% of your 1...
I generated 1000 confidence intervals with 95% significance level and I am testing H0: μ = 0 vs H1: μ != 0. What means if 97.5% of my confidence intervals have the 0 included? It should be exactly 95% because of the significance level right? And what means if 85% of my confidence intervals have the 0 included? It also ...
I am comparing the number of female subjects represented in studies for a consensus statement from 5 years ago, to a current statement. I have counts of female representation for each statement broken down into categories of 0%, >0-20%, >200-40%, >40-60%, >60-80%, >80-100%. (see below). Is there are way to compare whet...
I won't go into the way the data is built because I want to keep the discussion general. Relative to balancing, I couldn't find a lot of materials online about the results of cost-sensitive learning. Basically, I have data $X,y$ of relatively high dimension. About $<2\%$ of $y$ is positive. More than that, I have relat...
If my model already has an interaction term (ex. sexHispanic ethnicity), how do I test the Cox proportional hazards assumption using interaction with time-dependent covariates? Would I enter timesex timeHispanic sexHispanic and sexHispanictime? I am using SPSS so I need to test the Cox PH assumption using time-dependen...
My understanding is that rejection sampling for some target distribution $p_{X}(x)$ and proposal distribution $\tilde p_{\tilde X} (x)$ follows the process below: If there is some scaler $c$ such that $c \times \tilde p_{\tilde X} ( x) > p(x)$ for all $x$ then proceed to step 1; otherwise, rejection sampling based on ...
My issue is as follows: In my model there are 4 different states, which each have a calculated probability of happening. I also have calculated covariance matrixes for my variables in each of these states based on historical movement. So I have a covariance matrix for state 1, state 2, state 3, and state 4, plus a prob...
I’ve conducted a time-to-event analysis (accelerated failure time) for a research project, looking at the effect of an intervention on the probability of needing a blood transfusion during surgery. Instead of time however, I’ve used blood loss (in milliliters) as a proxy variable for time to event. Everything I have re...
I have a data set of 182 concurrent count observations using two different methods and I was wondering what would be the best test to evaluate how closely related they are to each other. My data set looks like this: Datetime Count1 Count2 2021-09-06 10:00:00 186 226 2021-09-08 09:00:00 154 124 2021-09-11 16...
I am struggling with a situation. I have an RCT where there is an intermediate variable and an ultimate endpoint of survival (a time to event endpoint). I want to establish that the intermediate variable is a casual mediator of the treatment effect on the ultimate endpoint i.e., OS. I wonder how can I do that and is th...
I am building a "time to event" model using the coxme package in R. I have a lot of mixed effects (15) that I want to input into a global model and find the best fit for - is there a model selection package like MuMln that can handle this type of model? If I try to run an ANOVA on the global model, it can't compute it ...
I've seen versions of this question but not specifically answering the question of a statistical test to compare the beta coefficients for two independent variables (x1, x2) but the same dependent variable (y1). In this example, y is a count variable, and x1 and x2 are binary {0,1} (and correlated) variables. So I have...
Can I use the strength of neural networks for data analysis? Suppose I want to find a fit to a noisy sine curve $1 - V \sin(w \theta+ \phi)$ and I want to find an estimate for parameters V, $w$ and $\phi$. Can such a parameter estimation be done using neural networks? If it is helpful, I am aware that Pytorch can certa...
I would appreciate some help figuring whether a linear mixed model (LMM) is a good choice for my data. My experiment is a 3 (neurostimulation target) X 2 (task block) repeated measures design that takes place over 3 sessions on different days. I have data from 27 subjects. Each session involves a different neurostimula...
I've been training a neural network to learn simple functions like addition. When I train this neural network from scratch, about half the time the neural network gets great accuracy, and the other half of the time the neural network fails to learn anything and the loss remains flat. This seems like the training gets s...
I am training Cifar-10 dataset of 32 x 32 sized coloured images for image classification. Here is the link/source to the dataset and its description: https://www.cs.toronto.edu/~kriz/cifar.html The CIFAR-10 dataset consists of 60000 32x32 colour images in 10 classes, with 6000 images per class. There are 50000 training...
When an item is clicked, it generates revenue equal to the cost per click (CPC). As such, revenue = I(click) x CPC. I want to select the item with highest expected revenue to be shown. I have a machine learning model that predicts the probability of click (eCTR). The obvious idea would be to rank by expected revenue = ...
I'm working to see if a machine does better than a worker in terms measurement (by having a measurement from an expert be the control). So my dataframe contains the Measurement Value, Measuring Device, and the slide number for the repeated measure. The Measurement wasn't normal so I used friedman test. The p.value was ...
What type of non-parametric test would be suitable for the dataset shown in the image: The sample size is 200 each for both variables. The data value can vary from 0-4 for both variables. The histogram or Q-Q plot doesn't show any normalcy. Hence, I also tried to use Mann-Whitney U test where I defined both variables ...
Does post-hoc for friedman tests or nonparametric testshave like a homogeneous subset table from SPSS? Mean doesn't represent it well so I tried using median but my data was zero-inflated so the most of the medians even in supposed homogeneous groups have lots of zeroes Example:
This is a hypothetical problem for me at the moment because (1) I have no such data and (2) often software provides a forced choice in these cases so I doubt it would be a problem if I conducted a survey with modern tools. But it is an interesting observational error to me. Suppose we have a Likert-type item on a surve...
I have done two prediction model in R as an example as below: model 1: glm(y~x1+x2+x3+x4+x5+x6+x7, data = dat, family = binomial(link = "logit")) model 2: glm(y~x1+x2+x3+x4+x5+x6+x7+g1+g2+g3+g4+g5+g6, data = dat, family = binomial(link = "logit")) then plotted the ROC curves and calculated AUC for each after 10-fold...
It is often the realistic advice I have seen here that Gaussian GAMs are not regressions with which you can easily approximate an effect size for, as the effects are of course non-linear. However, we do not have this issue with respect to logistic GAMs, as we can estimate the predicted probability or odds ratios of the...
I am working on a project in my R introductory course but I really dont know what statistical test to use. I got my data from the Malaria Atlas Project. I want to know if the the Use of insecticide treated nets (Proportion of population that sleeps under a Insecticide treated net during a defined year) and Use rate (Pr...
I'd like to have your feedback about the interpretation of the Average Marginal Effect (AME) for a probit model. Suppose we have the following model \begin{equation} P(y=1|x)= \Phi(\beta_0 + \beta_1 x_1 + \beta_2 \text{ln}(x_2)) \end{equation} where $\Phi$ is the cdf of the standard normal. To compute the marginal effe...
Question I have a practical problem and am seeking guidance on how to use statistical methods to solve it. I have an online store. The products in the online store have varying availability: 24 hours if the product is in my warehouse 3 days otherwise The availability of the product is shown to the customer before pur...
Why does the finite-differences gradient/hessian approximation nlme::fdHess return NaNs when seeking the gradient/hessian at 0? nlme::fdHess(0,function(x)x^2) > $mean [1] 0 > > $gradient [1] NaN > > $Hessian > [,1] [1,] NaN nlme::fdHess(1,function(x)(x-1)^2) > $mean [1] 0 > > $gradient [1] -1.110...
I'm analyzing a set of biological samples. Each sample is linked to a specific carbon and nitrogen concentration, representing the 2D (experimental) design space I referenced in the title. I've measured 20 metabolites for each sample. Initially, I used standard correlation/PCA analysis for this multivariate data. Howev...
I'm doing a research project for university and am trying to figure out how I should be interpreting my between-group effect in my mixed ANOVA. My within-subjects variable is time and my between-group variable is game group. I’m testing the impact between two mobile games on a person's general well-being over time. My ...
I'm using LGBM for regression, where the Target column's lagged values (7 columns for each lag day) are also used as predictors when training the model. Absence of the 7Day lag values severely increases MAE value. Now when using the model in production, if I use the complete data as training dataset, how to get the 7da...
I am trying to write some code that accurately estimates the parameters for the following function: $$ Y = A(1-V \cos(X+\phi)) $$, where this output data is poisson distributed. To do this, I first created a simulation of what this data would look like. Then I tried to use nonlinear regression using curve_fit in python...
I would like to perform a moderation analysis after Propensity Score Matching with a binary outcome model. I estimate a logistic regression outcome model (following this vignette). I am wondering, whether the hypothesis test I perform (hypothesis = "pairwise") to compare the subgroup ATTs is the correct specification w...
Suppose we want to sample $X$ from a density $p(x) = e^{f(x)}$. My thought was that maybe we can introduce an auxiliary variable $Y$ such that $p(y|x) \propto e^{-\|(x,y)\|^2/2 - f(x)}$. Then the joint density would be $p(x,y) \propto e^{-\|(x,y)\|^2/2}$ which is the normal density. Then to sample $X$, we can just sam...
Lilliefors test is a well-known statistical test for normality. Its idea is based on the Kolmogorov-Smirnov test, except the CDF is replaced by the CDF of the normal distribution with $\mu, \sigma^2$ chosen as the estimated ones from the data. In other words given data $\{X_1, \ldots, X_n\}$ we form its empirical CDF $...
And to expand on this idea, would uncertainty and complexity be the same thing to a Bayesian? For example, games with much randomness like poker and games that are more complexity based like chess -- would we treat what makes them "interesting" (I know there are other interesting aspects to these games) as the same sor...
I'm reaching out today because I have a concern regarding the clustering approach employed with the CLV method introduced by Vigneau and Qannari in 2003. I've noticed that this method is predominantly utilized in quantitative analysis. Furthermore, there is an R library named ClustVarLV associated with its implementati...
We want to estimate the following population model: $$y_i=\beta x_i+\epsilon_i$$ with $E[y_i]=E[x_i]=$ and $E[x_i\epsilon_i]=0$. We cannot observe $x_i$ directly, but we observe two variables $x_i^a$ and $x_i^b$ that are related to $x_i$ in the following manner: $$x_i^a=\alpha x_i+\upsilon_i^a$$ $$x_i^b= x_i+\upsilon_i...
Here's the problem I have: The probability that an apple is red is 80%. The probability that a red apple is rotten is 10%. If 10 apples are picked at random, what are the odds that half are red and rotten? Approach 1: The odds of an apple being both red and rotten is 8%. Therefore, we have a binomial distribution with ...
If you Google search the space complextiy of KNN, virtually all answers are saying that it costs $O(dN)$, where $d$ is the dimension of our data and $N$ is the number of our data. But why? I understand that we need to store $d \times N$ numbers, so that's where the $dN$ comes in. But aren't we storing a lot more, for e...
I am interested in using Bayesian modele averaging as a selection creteria (BMA) vs AIC. I read that BMA is widely implemented in clustering models. Suppose that we need to fit M models to a data and select the best among them using BMA. Suppose that BIC for each model is calculated. Then, I read that some author use B...
Most of the references I have checked for repeated cross-sectional design and trend design (a type of longitudinal design) have said that they are one and the same. However, my professor says that there is a difference between the two but would not tell us the difference. He gave a clue that it had something to do with...
(N.B. I am cross posting this question from math stackexchange since after x days I have still not received any responses.) How does Huber in book 'Robust statistical procedures' in chapter 1 compute the variance of certain statistical functions? He defines the mean square deviation to be $$s_n = \sqrt{\frac{1}{n} \s...
I am studying the book Nonparametric and Semiparametric Models written by Wolfgang Hardle and have difficulty with the following exercise: $\textbf{Exercise 3.13}$ Show that $\hat{f_h}^{(n)}(x) \xrightarrow {a.s.}f(x)$. Assume that $f$ possesses a second derivative and $\Vert K \Vert_2 <\infty$. where $\hat{f_h}^{(n)...
I'm having some trouble with optimising softmax regression via Newton's method. I'm not sure if the problem is arising with my equations for the Hessian and Gradient or with the code I've written. For a single sample $\mathbf{x} \in \mathbb{R}^{n_\text{features}}$, I define the probability vector $\mathbf{p} \in \mathb...
I decided to use the tsDyn package to build the model and precision the values. The argument for this package (I previously worked with urca, vars) was the ability to make predictions based on new data. My code looks like this: start_n = 1548 delta_n = 300 pred_n = 24 k = 31 time_series <- zestaw[start_n:(start_n + de...
I'm reading a research paper that uses an IV, they regress A, and B, to estimate C, then they use estimated C and actual B to regress on D an outcome variable. This seems to violate the only through conditions for using IV estimation. Can someone confirm if I can include B in both regressions and why or why not? https:...
PCA is distinct from factor analysis; it's a dimension reduction technique. PCA does not account for individual variable noise. On the other hand, FAMD (Factor Analysis of Mixed Data) combines PCA and MCA without incorporating a stochastic term for each variable. Despite its name, FAMD seems more like a dimension reduc...
Monetizable active Twitter users Quarterly data from 2017Q1 to 2022Q2 If I have to show that the trend was affected/increased in Q1'20, Which statistical test should I use? I expect to see the change in Q1'20 because of the COVID lockdowns.
My understanding of the Black Scholes model is that it can be used to simulate options pricing for stocks in traditional financial markets. But this article uses the model to forecast/simulate bitcoin (BTC) price directly. Is there anything fundamentally wrong with using it to simulate BTC price directly? If so, what o...
I have the following set up: $y_i = \beta_0 + \beta_1 x_i + \beta_2 z_i + e_i$, where $e_i$ is extracted from a Normal (0,1) distribution independently of $x$ and $z$. The true values are $\beta_0 = \beta_1 = \beta_2 = 1$. I want to compare the coefficients of regressing $y$ on $x$ and $z$ with the coefficients of regr...
According to one study by Wang and colleagues (2013), smoking cigars has “a positive and independent” effect on testosterone. What is an independent effect and what is the significance of one?
I understand that random forests yield better performance than standard decision trees, but are less interpretable, because they do not generate a single tree. In this question, several users provided models that approximate a random forest using a single decision tree. A limitation with these approaches is that they r...
I'm using answers to a specific question from the General Social Survey ("do you feel rushed"?) to compare statistics over multiple years. The answers are "Always" "Sometimes" "Never" and "Not applicable" I'm using statistical weights to make sure the findings are representation: general_social_survey_american_1982 = g...
I'm currently working on data augmentation to my regression problem, and a (possible) solution that came to my mind was to add a perturbed dataset to the original dataset, and hence double the training samples. Here what I've done: for a feature $X$, with $n$ samples and standard deviation $sigma_X$, I generated some n...
In Iterative Reweighted Least Squares (IRLS) algorithm, an optimization problem with the weight treated as known is solved in each iteration during solving the main optimization problem. For instance, when solving $\min Q(\beta,V(\beta,\gamma))=\min(y-X\beta)'V(\beta,\gamma)(y-X\beta)$, the IRLS solves $\min Q(\beta,V(...
Suppose we have an estimator $\hat\mu$ of population parameter $\mu$ and we know that $$\sqrt{N}(\hat\mu-\mu)\overset{d}{\to}N(0,1).$$ We are interested in the following hypothesis scheme: $$H_0: \mu=0$$ $$H_1: \mu\ne0$$ Suppose that $\mu=\delta$ for some arbitrarily small $\delta>0$. I need to show that the probabilit...
LFC shrinkage used to be default in the DESEQ function but it was updated, because it is not always recommended to do. But i cannot find much information on which conditions this is decided. Are there any conditions I can check first? Context: I am looking at differential abundance of bacterial ASV's between infected a...
I'm just starting to learn about CNN (convolutional neural networks). Does the test data also need to be divided into batches, similar to how it's done with the training data?
I'm currently studying posterior distribution with likelihood $y|\theta \sim B(n,\theta)$ and mixture of prior distribution $\theta \sim \pi Beta(\alpha_1, \beta_1) + (1-\pi)Beta(\alpha_2, \beta_2)$. The posterior distribution is as follows: $$ \begin{aligned} p(\theta|y) & \propto \theta^y (1-\theta)^{n-y} \{\pi\frac{...
How to calculate the following multivariate probability mass function: $P(X_1-X = n, X_2-X = n, ..., X_{N-1}-X = n)$ Where $n$ and $N$ are positive integers, and $X_i$ and $X$ are iid random variables with the following discrete probability distribution: $P(i)=\frac{C_{i-1}}{2^{2i-1}}$; $C_{i}$ are Catalan numbers. Lo...
Thank you for the opportunity to ask this question. Since I do not speak fluently (still learning) the language of mathematics, I explain this in plain English. I understand this is too ideal but I hope it's sufficient. Explain data: The data in the example is the distribution of failure rate (the "p") across time (the...
I have plotted about 40 000 polygons (topographic depression dataset data) according to their area and volume (see plot below) by the code below: ggplot(data, aes(x = area, y = volume)) + geom_point(shape = 1, size = 1.5)+ scale_x_log10(breaks = c(1000, 10000, 100000, 1000000, 10000000), labels = c("1000", "10000",...
Scenario: I'm training a relatively simple neural network to classify pairs of tabular datapoints (~150k), lets say drugs and diseases, whether they are related (positive) or not (negative). As I only have a list of related pairs, I first split my data to train and test sets. Then, for each pair in my train set, I rand...
I am trying to understand theory from my Model Identification And Data Analysis course at University. The example I am referring to is the probability of predicting a heart attack. Essentially, from my dataset Dn I take information such as age, cholesterol level, activity level etc etc and I feed them to my ideal funct...
Suppose we have the following model of our environment: $\hat{y}_t = e^{dayofweekeffect} * x_{1, t}^{\beta_0} * x_{2, t}^{\beta_1}$ which we can linearize into: $log(\hat{y}_t)= dayofweekeffect + \beta_0 * log(x_{1, t}) + \beta_1 * log(x_{2, t})$ To imagine this, lets assume that $y$ consists of daily sales and $x_{1, ...
Attention, as long as gradient calculations care, is two nested tensor multiplications and a softmax. I thought that, then, multi-head attention with $h=8$ and $d_k=64$ results in the same tensor with single-head attention with $d_k = 512$, when same projection at the end of multi-head also applied. Below is my justifi...
I am conducting a study to analyze the impact of a specific policy on the number of businesses in each region. The policy was implemented in a staggered manner across different regions, and I'm utilizing two different regression models, using flow or stock of businesses, to understand its implications. Model I: flow va...
I was planning on learning probabilistic forecasting and im completely lost. Suggest some online resources. I have started with Probabilistic Forecasting and Bayesian Data Assimilation but its a bit too advanced for me.
Typically, distributions with fat tails, such as the inverse Gamma or the half-Cauchy are used as prior distributions for the variance parameters. I am trying to understand why do we need a fat-tailed prior for variances. For example, one could simply use a half-normal prior for the variances. What property of the vari...
I have 2 methods / models. I want to compare them using expert human raters so the amount of samples/tests must be small. I want to figure out which is the better method. What is a good way of doing this? Compare directly 1:1? Or just let them rate everything in random order and then see which method wins more often? H...
I'm having trouble with making my validation metrics go down for the binary_crossentropy and go up for the F1-score and AUC. I've tried tuning my hyper parameters such as the number of latent features of the model (8), the learning rate (0.0075), the lambda in the regularization term (1.2), the the drop out rate (0.4),...
I have a $N\times P$ random matrix $X$ with i.i.d. coefficients from a standard normalized Gaussian $\mathcal{N}(0, 1)$. The corresponding Wishart matrix is $$W = \frac{1}{P}X X^{\top}$$ Calculating the expectation value of this gives me $$\mathbb{E}W \propto \mathbb{1}_N$$ I'm currently dealing with a problem where I'...
Empirically, we have seen that VAEs can approximate very complex distributions. I am interested in knowing if there are any theoretical results showing how expressive latent variable models can be. For instance, are there any results showing that a particular class of latent variable models (say one with the assumption...
I am building a model to forecast some metrics. Those metrics are quite seasonal giving me good forecasts as shown below: However, some new requirements dictate that I target those forecasts per groups. Those group can be per country, per company, etc. As you guessed, not all subgroups are able to be forecasted. Some ...