instruction stringlengths 9 38.7k |
|---|
Let's say I have N vectors, all of length L. Each vector is binary, such that they comprise of 0s and 1s whereby a 0 represents an 'absence' and 1 represents a 'presence' of an element denoted by its column.
For example, think of two vectors that represent two shopping baskets. Which groceries are in each? Let's say we... |
I am currently working on an unsupervised anomaly detection project and facing a challenge regarding the validation of the model's performance due to the absence of ground truth labels.
I am using Isolation Forest, LOF and Autoencoders for anomaly detection.
The dataset comprises very sparse high dimensional tabular da... |
I'm a bit unsure about a current project I'm concerned with.
I have an outcome of interest, say $y$, and a main predictor, say $x$, which both are continuous. I have multiple measurements per subject of $x$ and $y$, at different timepoints. Apart from that, I have some other covariates, which should be included in the ... |
I am looking at using a cox proportional hazards model to look at migration after disasters. I have two disasters at T1 and T2 (which are two years apart). I created two models looking at the risk of exposure in the 18 months following the disaster to see if disaster exposure was associated with changes to the risk of ... |
In the famous Liang and Zeger 1986 paper on GEEs https://www.jstor.org/stable/2336267?seq=9, they sketch a proof using the standard m-estimator arguments: (unstated) regularity conditions + first-order Taylor expansion + somehow a vanishing remainder in probability (covered by regularity conditions) + routine convergen... |
General case: to build a model of market for further quality estimation of our algorithms. (Predicting optimal price, demand prediction etc.)
Current approach: take two features of a product - price and demand, represent it as a time-series.
Next step I'm trying to "get rid of" time dependance for this series — by "sub... |
Given a sample $x = (x_1, \ldots, x_n)$, define $x_{(-i)}$ as the sample values excluding sample $x_i$. That is,
$$
x_{(-i)} = (x_1, \ldots, x_{i-1}, x_{i+1}, \ldots x_n).
$$
Now given estimator $T(x)$ of parameter $\tau(\theta)$ based on the sample $x$, Lehmann and Casella (in the 2nd edition of Theory of Point Estima... |
I'm a newbie in topic models. From my understanding, topic models like latent dirichlet allocation (LDA) (without empirical Bayes on hyperparameters) performs variational inference to approximate the posterior, and really it's not related to parameter estimation. Should I, then, fit an LDA on training set, fix the topi... |
How could I generate time-to-event data from a piecewise exponential model with a binary covariate in R? Could someone point me to some R packages and/or walk through how to code this from scratch?
|
We have contractors submitting tasks of different complexities (High/Medium/Low) and we would like to audit them. Considering the auditing resource availability, we have to sample the submitted tasks and perform auditing.
I am planning to adopt "ISO 2859-1: Sampling procedures for inspection by attributes" and use the ... |
To predict interest rates I am using CPI, fed funding rate, yearly average housing prices, and interest rate. I have all my data set up to what year it is, for example, 1971-01-01 has a CPI x, IR x, FED rate x, and price x. I guess what I am trying to see is if I can use the dates not just as an index but to predict fu... |
I have been trying to cluster a scatter plot that has a triangular graph, ideally the proper clustering plot should have a linear form, as shown below:
I tried using Spectral Clustering:
and Gaussian Mixture Model:
But my the desired clusters is not achieved, I am wondering if there are other clustering forms that c... |
The simple linear regression model is given by $y_i = \beta_0 + \beta_1x_1 + e$
It is my understanding that it can be rewritten in matrix vector form as $\vec{y} = X\vec{\beta} + \vec{e}$ where $X$ is the design matrix and $\vec{y}, \vec{\beta}$ and $\vec{e}$ are vectors of the observed $y_i$, true coefficients $\beta_... |
I have a dataset that has both bad and good data. A sample of these two datasets are as below:
Bad
ID
badness
protection%
100
50
5
200
30
100
300
60
20
Good
ID
badness
protection%
101
0
0
201
0
100
301
0
50
I want to infer something that says if the protection % is low, badness score... |
I am proposing unsupervised training using python and graph neural network. I am using (SAGE) as main GNN layer, tanh as activation function and SGD optimizer with learning rate = 0.05, momentum= .9, weight_decay=0.01 my loss curve is showing this result, why it does not converge smoothly and instead it oscillates? doe... |
Context
Imagine we measure two outcomes $\mathbf{Y}$ and $\mathbf{Z}$ that are real vectors. We also have the following covariates $G,T, X_1,\cdots,X_k$ for a given integer $k>1$. $G$ represents a group and can take either the value $0$ or $1$ and $T$ is the time and it is a categorical variable with several possible l... |
How would I calculate the probability of getting a royal flush with 2 player Texas holdem poker.
A single randomly shuffled 52 card deck, 2 players (p1 & p2) are sequentially dealt 4 cards i.e. p1 gets card 1, card 3 and p2 gets card 2, card 4. Then 3 cards are placed on the table (Flop), followed by a discarded card, ... |
In random forest, cross-validation is necessary?
or can I use all the data for randomforest model?
If I use 10-folds, how can I make the best model?
can I just pick one best fold?
|
One of the outputs of XLSTAT for Partial Least Squares Regression PLSR is a plot showing VIP (Variable Importance for the Projection) and, as I understand, the confidence interval at 95% of each VIP under the form of black vertical lines for each variable, as shown in the figure below coming from https://help.xlstat.co... |
Diff in diff question:
Can you do difference in differences if the pre-treatment outcome is a different measure to the post-treatment outcome?
For example, in Education, imagine there is a new programme that occurs in eighth grade and is rolled out to some areas/schools. If you want to use attainment as the outcome var... |
What does it mean that 'The SVM hinge loss
estimates the mode of the posterior class probabilities'(Elements of statistical Learning p.427).
The decision function f(x) assigns to the positive class(+1) if it is greater than 0 or if it is less than 0 to the negative class(-1) but how does that relate to the posterior c... |
I'm running a mediation analysis where I'm testing if information sharing mediates the relationship between integrity and innovation. The data was sourced using surveys with the survey being on a likert scale.
Now I did the model fit using CFA in SPSS AMOS, and tested for composite reliability, convergent and discrimin... |
I have $Y$ that is a gamma-Poisson distribution with mean $\mu$ and $\kappa$ is the overdispersion. I'm trying to obtain fisher information but i don't know how to solve expected value of trigamma function, $\psi'(\kappa + y_i)$ in the formula below.
The observed information obtained for k is:
$$
-\sum_i \left[\frac{y_... |
I am currently working on a project exploring the risk factors of liver cancer using electronic health records. Originally, we planned to use a matched case-control design due to the limited number of liver cancer cases. In addition, it allows for a more valid comparison of risk factors and baseline characteristics bet... |
I am currently working on a dataset that explores the relationship between the amount of sleep (in hours) and the change in muscle mass (in kilograms). I have collected data and plotted it on a scatter plot, but I am uncertain whether a linear or polynomial trendline would be more appropriate for this data.
Here is the... |
Imagine that we want to analyze the outcome of a variable $Y$. The variable $Y$ represents the number of test passed, going from 1 to 7.
I want to know if $Y$ varies among different groups, for example different age, time points, gender, etc... .
I first thought about a chi-square test of independence but the problem i... |
when looking at a single observation in a ML model, what is the best way to find which variables to change to make the biggest impact on the target variable?
Example 1: in a house price prediction model (say tree based), if you own a home and wanted to increase the price of your home, what you do? Add space, add a floo... |
In the answer for the following exercise:
Let $\{x_1,...,x_n\}$ be a finite collection of random variables with $E(x_i^2) \lt \infty$ ($i = 1,..., n$). Show that the set of all linear combinations $\Sigma_{i=1}^{n} \alpha_i x_i$ constitutes a vector space, which we denote by $L^\dagger_2$,
there's a statement that I ... |
I am writing this message because I want to calculate the average marginal effects (AME) in order to be able to interpret an interaction resulting from a multilevel regression. However, I am finding that the vast majority of packages that are used for this purpose (marginal and marginaleffects) cannot be applied to reg... |
I want to compute an effect size for a fixed factor. In this study, there is one fixed factor with 3 conditions (Consistency). Passage and Subject are random effects. I used a Cohen's d to compute effect sizes comparing two means at a time, but I would like to compute an overall effect size of the fixed factor, Consist... |
I have a distribution that, wlog, can be defined as a mixture of component distributions $\mathscr{D} = \alpha_{1}\mathscr{D}_{1} + \alpha_{2}\mathscr{D}_{2} + \dots$. Is there a metric, distance, or divergance that can tell if a sample was drawn from a subset of those component distributions?
|
I'm not an expert yet in the field and I have some questions. I have some data of birds and drones taken from a radar. I want to create a classifier that differentiates them. At first I'm trying and approach over the differences of the trajectories of these tracks.
My first problem arises when it comes to normalising t... |
Assume a sample size of $n>5$, a given variance $\sigma^2 > 0$ and a $\delta \in (2e^{-n/4}, 1/2)$.
Proof that there exists a distribution with variance $\sigma^2$ such that for any mean estimator:
$P (\{ | \widehat{\mu_n} - \mu | > \sigma \sqrt{\frac{log(1/\delta)}{n}} \}) \geq \delta$
This is Theorem 3.1 in this pape... |
Sorry if this is a basic question (I'm no statistician): In a propensity score matching study, WHEN do you calculate the outcome values (for each treated and control unit) needed to compute the average treatment effect?
The scenario I'm thinking about is one of staggered adoption of treatment (I don't control when a tr... |
If we have a true classifier, it can make sense to calculate measures of performance like accuracy, precision (positive predictive value), and recall (sensitivity). Each of these has something to do with the classifier output being exactly correct or totally incorrect, and we would hope for a classifier to be exactly c... |
in order I need do:
measuring the targeted variable on the original network and save it Shuffling my original data (correlation matrix) - randomly (100x) create the graph measuring the targeted variable for this random network Save this data end of the loop Comparing the distribution of the random targeted variable wit... |
linear regression is modelled as
$$Y = X\beta + \epsilon$$
for response variable $Y$ (vector), design matrix $X$, and iid Gaussian noise $\epsilon$ (vector).
instead of minimizing the mean squared error, i want to find $\beta$s such that the the rank correlation between $Y$ and $X\beta$ is maximized. So maybe the $X\be... |
I've just started studying Poisson regression and came across the two models:
$$
\begin{align*}
\log{\mathbb{E}(count)} &= \beta_0 + \beta_1x_1 + \beta_2x_2 + \log(T) \\\\
\log{\mathbb{E}(count)} &= \beta_0 + \beta_1x_1 + \beta_2x_2 + \beta_T\log(T)
\end{align*}
$$
where T is time/exposure.
I'll start with the interpre... |
I'm building a neural network to predict future [latitude,longitude,altitude], and am having trouble dealing with the features. I've reviewed the answers to the questions here and here and I'm still trying to understand the points made about normalizing/standardizing.
The way I understand it, converting latitude and lo... |
I have a few questions about handling missing data during matrix/array operations. Essentially, I'm doing a vectorized linear regression to perform a bunch of linear regressions in a few matrix/array operations. For a random data X_many and y_many of shapes (2, 50, 3) and (2, 50), I use the following code to estimate t... |
I understand how a properly administered RCT rules out confounders because there are no variables influencing the treatment/control group assignment except randomization (meaning no backdoor paths from the outcome to the treatment variables).
Does this mean when conducting an RCT it's not necessary to draw a causal dia... |
Collider bias occurs when there is no association between X and Y but when a third variable which is caused by both X and Y is controlled for, this "opens a path" between X and Y and leads to a biased estimate/distorted association.
Meanwhile, if you control for a confounder-- a third variable that causes X and Y-- it... |
If we can compute confidence intervals for an estimate $\hat{\theta}$, then we can also compute the p value for an associated hypothesis $\theta=\theta_0$, which is the probability of a type 1 error (i.e., rejecting the hypothesis when it is correct) for a particular sample.
Can we also use those confidence intervals t... |
I am trying to solve a parameter estimation problem where a HMM have different emission distribution for different states (i.e. Gaussian for one state and exponential for the other). However most standard method that uses EM algorithm assumes the same distribution (e.g. only Gaussian), where the M step can be explicitl... |
I stumbled upon something interesting while attempting to do a log transformation for some data (with zeros) today. It seems that there must be a good reason for this that I'm just not seeing. I'm hoping somebody can explain this in an illuminating way. This post has some good answers, but doesn't quite get at this.
I ... |
I have a dataset with two sites (A and B) that include multiple observation from across years, but not every year is sampled at each site (nor are the observations balanced across years).
For example, at site A there is data from 20 years (across a 30 year period), with anywhere from 10-103 observations/year.
The acf a... |
Today I learned about a Double Stochastic Process for the first time.
Apparently a Cox Process is a Double Stochastic Process. Here is my attempt to summarise this:
Cox Process: A point process (I think this means the output of the process is a point) where the intensity function, $\lambda_1(t)$, is itself a random pro... |
My question is quite similar to Chi-squared testing for say TWO samples from TWO distributions, however I want to go a little further.
So, suppose I have a N pairs of samples from two normal distributions, but I don't know which sample in each pair comes from which distribution. I want to assign samples to distribution... |
Imagine a person, P, calls into a call center multiple times an hour. With 50% probability, P will call with some low rate (like an average of ~3 calls an hour) the whole time. With 50% probability, P will start the hour calling with a larger rate (like ~30 calls an hour); however, at any time during the hour P has som... |
I read that when calculating average marginal effects using the linear probability model, you should always use heteroscedasticity robust standard errors. Why is that?
|
Is the Least-Squares Dummy Variables Estimator always strictly less efficient than the fixed effects estimator?
|
I find the term 'prior-beliefs' to be a little bit vague, what is acceptable to class as a prior belief in Bayesian analysis? For example, I could not look at any data and decide to myself "I believe the mean of the population is going to be about 60units", whether this is based on intuition or even lack of care. Are t... |
I used CycleGAN to generate the images. During the model training phase, the input dataset (TrainA) and the ground truth (TrainB) are shown in the following figures (a) and (b). During the model testing phase, the model output is shown in figure (d).
My question is, there are no crossing lines in the training samples i... |
I am studying the Latin Square Design with n repetitions from https://online.stat.psu.edu/stat503/lesson/4/4.4
Let say we talk about the repetitions case 3 i.e. we have different levels of both the row and the column factors. I have 2 questions
Why DF for row/column is $n \left(t-1 \right)$? SHould not it be $nt - 1$?... |
Prove that $E[X|X^3-3X]=0$, with $f(x)=\frac{|x^2-1|}{4}$ being the density function of $X$ in the interval $[-2,2]$.
My attempt:
Let $Y=X^3-3X$ and $x_1, x_2, x_3$ the roots of $x^3-3x=y$.
\begin{gather*}
P_{X\circ Y}(A\times B)=P_\Omega(X\in A\cap Y\in B)=\int_{y\in B}I_A(x)f(x)dx=\\
=\int_B\sum_{i=1}^3I_A(x_i)f(x_i... |
Suppose there is a large vector $\mathbf{x}$ of real numbers, and I want to estimate a certain aggregate function $f(\mathbf{x})$ by taking a small sample of the population $\mathbf{x}$. I would like to know how many samples I need in order to have a 95% confidence interval of a given size (say 1%). The number of sampl... |
On Monday The Education Policy Institute published its annual report on education in England https://epi.org.uk/annual-report-2023/. This focusses on the attainment gap between poorer pupils and their peers. Results are broken down for each of 150 local authorities. It was put to me that, "It's clear most selective† LA... |
I'd like opinions on two differing GLM outputs in RStudio.
I model count data (dung pellets) over 21 sites, using quadrats counted as an area offset. I started with a GLM Poisson regression for the definition of the model structure, which was strongly overdispersed & zero inflated. I moved to Negative Binomial, which f... |
My assignment question is quoted:
"2. Which set of variables best predicts handgrip strength in women?
a. Reduce the number of continuous variables before doing the analysis."
I do not really know how to reduce the number of continuous variables. The variables I Have are:
• Vnr = subject number
• Sex = sex (0= female, ... |
I'm unsure on how to remove or winsorize outliers. Let's say I have 2 groups, treated and control. And I measure feature1 and feature2 for both.
How should I handle outliers? For each group and each feature separately?
Meaning: Feature 1 group 1, feature 1 group 2, feature 2 group 1 and feature 2 group 2
Or as a whole ... |
I took a few courses where model estimation via Maximum Likelihood in Structural Equation Modeling was discussed. There was one definition of the normal-theory ML fitting function that I also found in classic literature (like Bollen, 1989):
$ \hat{F}_{ML} = \ln|\boldsymbol{\Sigma}(\boldsymbol{\theta})| + tr[\mathbf{S} ... |
The context is using EM algorithm for a mixture model - more precisely Dirichlet Multinomial Mixture, as discussed in Dirichlet Multinomial Mixtures: Generative Models for Microbial Metagenomics. One typically deals here with hundreds of samples and possibly dozens to hundreds of features, although only few of these fe... |
I am using the implementation of the Louvain algorithm for community detection in igraph in R. I observe that running it multiple times produces different answers. However, when I read the algorithm
Louvain Method - Wikipedia, nothing has any obvious randomness in it. My guess is that going through the points in differ... |
In the Core Statistics by Simon Wood it says:
"If we replace the random variables $Z_i\sim_\text{i.i.d.} N(0,1)$ with random variables $T_i \sim_\text{i.i.d.} t_k$ in the definition of a multivariate normal, we obtain a vector with a multivariate $t_k(\mu, \Sigma)$ distribution. ... Note that the resulting univariate m... |
I have a dataset of financial transactions per day with the volume of the transaction and the price of the transaction. For each day I want to calculate the volume weighted average price at the end of the day. However, the number of transactions and the times of the transactions vary for each day.
What is the standard ... |
I believe the answers to this question are the sample minimum and the sample maximum, but I have not been able to find a reference or proof of this.
|
I have a conceptual question about whether we can use a random sample of products to draw inferences about companies. More generally, I think this would extend to sampling hierarchical data, where we want to do inference at a different level from where the sample is drawn.
Here's the basic setup: there are $i=\{1, ...,... |
I'm writing a paper where I'm using an extended Cox model for time dependent variables. I want to see whether two labour reforms (independent variable) had any effect on the duration of job contracts (dependent variable). The subjects of the database are not people, but rather the contracts themselves.
As some contract... |
I have been reading this paper and its supplemental coding materials on how to fit a non-linear mixed model for a use case that is very close to a use case I am interested in modeling:
nlme(emaintent ~ theta1 + theta2*exp(theta3*n..ij -
theta4*dtime..ij), data=temp,
fixed=list(theta1 ~ 1 + blsmk.never + ge... |
I am trying to perform NMDS metaMDs() on mixed taxonomic data in R. My taxa data is organized with rows as observations and columns as different taxa. These data contain many zeros. I found that transforming my data using decostand(method="total") or decostand(method="wisconsin") causes my NMDS to throw a warning of a ... |
The concept of ceteris paribus says that to calculate the impact of one variable on another, we need to keep everything else constant. I want to understand well how to do this in a hypothetical case.
I have a hypothetical scenario where I’m given a dataset with all possible observable and unobservable variables that af... |
"During Neural Network training, training loss decreases then hits an inflection point and increases. What are some possible explanations?"
I got this question in an interview and wondered about possible reasons for this in practice. The answer I gave was essentially if you have an imbalanced dataset and your resamplin... |
Consider a random variable $X$.
When we talk about the expected value of the random variable $X$, we use the notation $\mathbb{E}\left(X\right)$.
However, I found that, in introductory statistics textbooks, they use a notation $\mathbb{E}\left(X_i\right)$, and I am not sure what is the exact meaning of that.
In my gues... |
I am developing a research project where we are evaluating the growth of seedlings. The plots are distributed in an open greenhouse and some environmental parameters vary according to their position. To reduce this effect, we define blocks to group plots that are located under different conditions.
We will make several... |
How does the performance of ensemble classifiers compare to a single classifier in the PAC learning framework? Specifically, consider $2m$ i.i.d samples $(x, y) \in \mathcal{X} \times \{-1, 1\}$ from a distribution $\mathcal{D}$, which is a binary classification task. Imagine one learner divides the data into two equa... |
I am using a tool in genetics, which works very similar to stepwise linear regression (its called GCTA-COJO for those interested). Essentially the starting situation looks like this:
You have 1000s of predictors (called SNP1, SNP2, ...) and a continous trait Y you want to predict. In the first step, you would fit a lin... |
In my research, I aim at predicting classes of biological material on many samples with variable sample sizes (say from 10 individuals to 200). The context is archaeological inference of the presence of certain types, using models trained on modern, observable, reliable material.
I have trained some classifiers on data... |
Suppose I have records of the number of fishes that each fisherman caught from a particular lake within the year. The distribution peaks at count = 1 (i.e. most fishermen caught just one fish from the lake in the year), tapers off after that, and has a long right-tail (a very small number of fishermen caught over 100 f... |
In a simulation study (number of simulation $n=200$), there is this quadratic/parabolic function simulated with Gaussian noise added:
y= 4 * (x - 0.5)^2 + rnorm(200, 0, 0.05)
With $x$ as a variable which follows a uniform distribution ranging from $0$ to $1$. My question concerns the Gaussian noise added rnorm(200,0,0... |
Consider the following random quadratic equation,
$$
x^2 + Z x + Y = 0,
$$
where,
$$
\begin{gathered}
Z \sim \mathcal{N}(\mu_Z,\sigma_Z),
\qquad
Y \sim \mathcal{N}(\mu_Y,\sigma_Y).
\end{gathered}
$$
What is the distribution (PDF) of the solution(s) $x$, and what are the moments?
I am interested in any solvable case or ... |
I had a question regarding the SPSS output of my RM Anova.
I am conducting a RM anova with two time points pre and post which are my within group. My data is distributed in three conditions which is my between group. And I have one covariate.
My output shows a within groups table and a between groups table.
I am not ce... |
A beta distribution is one of the form
$$
\text{constant}\times x^{\alpha-1} (1-x)^{\beta-1} \, dx \quad \text{ for } 0<x<1.
$$
According to this Wikipedia article, the family of "PERT distributions" is that of rescaled and relocated beta distributions with $$\alpha+\beta=6,$$ conventionally parametrized by the endpoin... |
Let's start with linear regression. You develop a simple linear regression equation $y = ax + b$. You can predict $\hat{y}_h$ for $x_h$ and estimate the prediction intervals using
$$\hat{y}_h \pm t_{\frac{\alpha}{2}} \times s \times \sqrt{1 + \frac{1}{n} + \frac{(x_h - \bar{x})^2}{\sum_{i=1}^{n}(x_i - \bar{x})^2}}$$
Le... |
I an trying to estimate an ordered logit model where the DV is a likert-scale response (1-5) and I have 6 independent dummy variables representing whether an observation belongs to one of six mutually-exclusive clusters. For example, dummy c1 = 1 if it belongs to cluster 1, and 0 otherwise, and the same for all other c... |
I am exploring Mutual Information (MI) and Normalized Mutual Information (NMI) in the context of image fusion. While reviewing various sources, it's often mentioned that Mutual Information's value signifies the quality of fusion, with higher values indicating better fusion. However, I'm curious about what constitutes a... |
I am trying to understand how the Probability Formula of U is calculated in this Paper, Equation 1 from section 4.
Details:
Suppose we have two groups A and B, each containing m and n samples respectively. U counts the number of times a member from A precedes(ranks above) member from B. $\bar{p}_{\text{nm}}(U)$ be the... |
I want to understand the pairwise relationship between four types of regression: Bayesian Linear Regression, Gaussian Process Regression, Kernel Regression (Nadaraya-Watson), and Kernel Ridge Regression. I've encountered all of these reading the book Gaussian Processes for Machine Learning, and wanted a clear and conci... |
Lets say we are given a time series sample and want to try to create a model to forecast future values of said time series
When trying to build a model to forecast time series data, many statistics such as autocorrelation/partial autocorrelation and auto-mutual information/partial auto-mutual information can be calcula... |
Now, I need to do a correlation analysis of the data using weighted spearman. But I only found svycor, which is weighted pearson correlation. So, what is weighted spearman correlation code ?
|
Linear regression is a suitable regression method even for small numbers of observations as long as there are enough observations per predictor (with factors 5 to 15 given as rules of thumb) and we have certain ideas of how the predictors "work" (linear or curved fashion, interactions etc.).
Random forests promise to w... |
When plottling discrete data I tend to use some colorblind palette, even though I am not affected myself. Now I want to plot hearing test data. There is a general (i.e., international) understanding, that hearing tests data gained on a right ear are colored red and data gained on a left ear are colored blue. Usually on... |
I am trying to understand VAEs. A youtube video and a paper that I read about it defined the loss as roughly:
$$L=\sum||x-Dec(Enc(x))||_2^2 + D_{KL}(\mathcal N(\mu, \sigma)|\mathcal N(0, 1))$$
The terms $\mu$ and $\sigma$ are learned by let's say $2$ MLPs, and we consider that the latent $z$ is distributed acording to ... |
I have been taught that the Method of Moments Approach could be used to obtain estimates of a bivariate regression of the form y = B0 + B1x + u.
Specifically, the 2 Moment conditions are E(u) = 0 and E(xu) = 0.
However, I fail to see how these are moment conditions. Which distribution are these 2 conditions moments of ... |
I want to investigate the association between the serum glucose level of a patient with type 2 diabetes at the baseline (continuous) and distal neuropathy (categorical), $5$ years after the diagnosis. I am also interested in knowing whether the age of the patient at the time of diagnosis can predict the risk of distal ... |
I am fitting a distributed lead, lag models to understand the impact of an event that took place in 2017.
My outcome y is a continuous variable.
The event took place in 2017.
I am interested in understanding the reaction of the outcome at 2014, 2015 2016 2017, 2018, 2019. Two years after the event and 3 years before th... |
I am forecasting a dataset with positive values in R using the Caret package, which applies machine learning algorithms. The model forecasted the good data, but I am encountering an issue with the forecasted data. Specifically, some of them are negative.
Example you find below:
fit.lm <- train(Additional_Revenue~., dat... |
The "Out-of-sample $R^2$" is defined as:
$$
R^2_{OOS} = 1 - \frac{\sum_{t=\tau}^T\left(Y_t - \hat{Y}_{t\vert t-1}\right)^2}{\sum_{t=\tau}^T\left(Y_t - \hat{\mu}_{t\vert t-1}\right)^2}
$$
Where $\hat{Y}_{t\vert t-1}$ is the model-ased forecast of the observation at time $t$ using data up to $t-1$, and $\hat{\mu}_{t\vert... |
I am new to time series and wanted to practice it by forecasting an hourly time series.
The adf and kpss test results show that the series is stationary.
ADF test results
Test Statistic -1.023836e+01
p-value 4.822092e-18
#Lags Used 2.500000e+01
Number of Observ... |
I have a survey with m possible choices, only one answer allowed for respondent. Let $n$ be the sample size, and $\tilde{p}_k=\frac{n_k}{n}$, $k=1,\dots m$, the observed frequencies for each choice. Now, with an abuse of notation, Let's denote with $\tilde{p}_1,\dots\tilde{p}_k$ the frequencies sorted from the largest ... |
For simplicity I am going start with a toy example.
Lets suppose we have a set of $n$ points $\vec{Y}$ in the 2d space, distributed with the shape of the letter M. These points are not ordered in the sense that the order of the points in the vector $Y$ is shuffled.
Objective: We want to get the coordinates of vertices ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.