instruction stringlengths 9 38.7k |
|---|
As I understand it, there are tricks to marginalize-out latent quantities in structural equation models, but I'm having trouble finding explanations of how this is achieved that aligns with both my minimal math background and typical use case. So I thought I'd post a couple examples here showing how I code things witho... |
I have done a DOE that I am in the process of analyze with a two-way ANOVA.
The DOE has been generated by the JMP software and I specified that I want calculate the main effects and the 2nd interactions between factors. I did not need to specify how the DOE is generated (using JMP standard settings).
Edit Factors are s... |
I ran an EIV model in r and I was wondering if there is something else besides the R-adjusted to see if the fit of the model is good?
I noticed that eivreg function of the eivtools package does not provide a p-value for the model. It just provides it for the coefficients.
Sorry if the question is a bit dumb but I am ne... |
I have searched in many places, and can't find what the hyperparameter 'scale' means in SVM polynomial in caret (method = svmPoly)
Caould you tell me, please?
|
I'm analyzing the data from a questionnaire using ordinal scales with five response options (Strongly Agree to Strongly Disagree).
I'm conducting my analysis using R, and have recoded the item response options themselves. Would it be meaningful to inspect the mean/average inter-item correlation of the items?
I'm gettin... |
So I am familiar with the following:
$$P\left(X<x|Y=y\right) =\int_{-\infty}^{x}f\left(X=u|Y=y\right)du=\frac{1}{f\left(Y=y\right)}\cdot\int_{-\infty}^{x}f\left(X=u,Y=y\right)du$$
But during a lecture on copulas, I saw this:
$C_{U_2 \mid U_1}\left(u_2 \mid u_1\right)=\operatorname{Pr}\left(U_2 \leq u_2 \mid U_1=u_1\rig... |
So my situation is as follows: I have done a survey experiment asking respondents to hypothetically allocate 100 euros between 4 asset classes, of which one is crypto assets. I then repeat this another 3 times, except here the other assets are assigned an ESG value of 70, whereas crypto assets get assigned 50, 70, and ... |
I am hoping to compute intraclass correlations to evaluate interrater reliability (IRR) for interviews conduct with participants in a clinical psychology study. Specifically, we want to determine IRR for sums of symptom scores made in interviews with participants (e.g., for determining agreement for rating a total scor... |
This picture represents transactions. $T_1$ is the time of the first transaction, $T_2$ time of second, $T_x$ time of the $x$th transaction
$t$ is the observation period, $X(t)$ denotes the number of transactions in period $t$, $x$ is the number of transactions
Can someone help me understand the following relationship... |
I do time series forecasting (q-o-q GDP) using ml models.
For hyper-parameter tunning I use grid search with cross-validation. Cross-validation is specifically Time series split (using expanding window approach). After getting model with best hyper-parameter combination I retrain the model once again on the whole train... |
This is a multiclass classification task for a balanced dataset. I am using the Random Forest Classifier for classification, and I have calculated the evaluation metrics:
Training set metrics:
Accuracy: 1.0
Precision: 1.0
Recall: 1.0
F1-score: 1.0
Testing set metrics:
Accuracy: 0.9995151906916613
Precision: 0.999559121... |
I'm writing a paper in which I want to research to research the extent to which hedonic capacity affects affective and physical inflammatory sickness response to lipopolysaccharide (LPS). The following is hypothesized: individuals with higher hedonic capacity experience less reduction in positive affect during inflamma... |
We aim to examine the time it takes for a certain event to happen between two different groups of people in our sample. We are thinking of using survival analysis methods for this purpose.
The thing I am unsure about, for certain people in our sample, the event never occurs (and will never occur). The non-occurrence of... |
If I have a Poisson-Binomial random variable $X$ built from $n$ trials where I draw each $p_i$ as either $a \in \left[0, 1 \right]$ or $b \in \left[0, 1 \right]$ with equal probability. How can I find the mean and variance of $X$ in terms of $a$ and $b$? Are there any general techniques I could use?
This question seems... |
I'm trying to find out if there's a significant difference between relative abundance (response variable: rel.abund) and habitat (predictor variable with levels lagoon, bank, shelf: Habitat).
This is my data set
pr_uneq_smme <- structure(list(run_number = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L,
9L, 10L, 11L, 12L, 13L, 14L, ... |
I ran 4 chains with NUTS and made a forest plot, but I cannot show the plot here. In words, what I am seeing is the there is a lot of variability in the effective sample size (ESS) in the chains. Across the 30ish parameters it almost looks like the ESS is uniform. One chain might have less than 100 ESS while another ha... |
I'm admittedly not a math expert. I'm in the process of reverse engineering a piece of software and am stuck on finding a curve. The curve is used to convert a value (0-1) into a real world value. The docs label the curve as an exponential curve, but interestingly the steepness of the curve is dictated by specifying th... |
I am trying to use a Kalman filter, but my data are somewhat deviating from the assumptions.
The noises in my measurement equation are not normally distributed. First of all, they are not zero-mean. Secondly, although the second-moment seems okay but there are some outliers. How do I address this? I understand that da... |
I’ve been trying to fit some data for a manuscript to a model for the past two days and I keep running into problems with violation of assumptions for the lm and glm functions in R and it’s driving me crazy.
The dependent variable is continuous so I thought I could plot the data in a linear model in R (function lm()) w... |
In LightGBM model from scikitLearn Python library, how precision (True Positives / (True Positives + False Positives)) can be optimized?
|
I am struggling to find the right family to use in a hierarchal general linear regression. My dependent variables (y) have shapes that may be a bit similar to poisson or gamma families, and the data are non-integer numbers.
Regarding that, I have two questions:
should I choose the family based only on the distribution... |
Please help with explanations.
I tried with Pr(U=U) = 1-Pr(U<u) and similarly for V but i am getting the wrong answer.
The entity X is a discrete random variable with the following distribution
X: 0 1 2 3
Pr: 0.4 0.3 0.3 0.1
Let X1,X2,..,Xn be n independent copies of X. let U = min{Xi} and V=... |
I have performed a Kruskal-Wallis test to assess the difference in disease severity (recorded on a scale of 0-10) among different months. Here's the code I used:
kruskal.test(mean_severity~month, data= dat)
Kruskal-Wallis rank sum test
data: mean_severity by month
Kruskal-Wallis chi-squared = 20.172, df = 7, p-value... |
I am looking for a way to simulate ground-truth conditional entropy. Say I have $\mathbf{X}$ is a 3-dimensional multivariate Gaussian random variable. I am interested in computing the ground-truth of conditional entropy $H(X_1 | X_2, X_3)$.
I know that there is an analytical solution for the entropy $H(X)$, which is a... |
I fit three models using LightGBM with quantile objective (which uses pinball loss) using alpha values 0.10, 0.50, and 0.90. The following code is used to wrap the three models into a single class. For now, I trained the models using the default LightGBM hyperparameters.
class LightGBMQuantileTransformer(BaseEstimator,... |
Given some i.i.d. random variables $x_1,\ldots,x_n\in\mathbb R^d$, an M-estimator $\hat\theta_n\in\mathbb R^p$ is a parameter which minimizes
$$\hat\theta_n=\arg\min_{\theta\in\Theta} \sum_{i=1}^n\rho_n(x_i,\theta)\tag1$$
Where $\Theta\subseteq\mathbb R^p $ is the parameter space and $\rho_n:\mathbb R^d\times\Theta\to\... |
I encountered a strange issue when performing Mahalanobis distance matching. Let's say I have one treated unit with the following values on two variables: $T:(17, 4)$. I have two control units with values $A:(16, 3)$ and $B:(15, 3)$. Intuitively, it seems like $T$ should be closer to $A$ than to $B$, and that would be ... |
Days 1 to 100 are along the x-axis. The y-axis has the PDF values such that the area under the graph is 1. (x,y) is known for each point. The points line up in a near perfect lognormal distribution by inspection. Days or x can be extended to 200 or more if necessary. What is the equation for this graph? More importa... |
Please help me with calculating the minimum sample size of random coefficients for a negative binomial regression. I am wondering if a group receiving an intervention will have a significant difference or lessen the use of seclusion towards a patient in a mental health unit, compared to that of a group without the inte... |
For any probability distribution function (PDF), $p(x)$, which has finite moments $\left<X^k\right>$ defined upto $k=N$, is it possible to say something about the heavyness of the tails by considering the ratio of the moments $\left<X^m\right>/\left<X^n\right>$ where $(n<m\le N)$?
Further, can we also quantify this and... |
I am trying to optimize a set of variables for a process. To this end, I have conducted a Box Behken design to optimize 3 variables with the R package 'rsm'.
First, I tried the fit of a first-order model where the lack of fit was significant. Then, I fit a second-order model. In this case, the second-order model was si... |
I have used STATA to conduct an ITSA but am having trouble writing the equation for it.
Period A: 2005-2010
Intervention 1
Period B: 2011-2015
Intervention 2
Period C: 2016-2020
I understand the following equation when conducting ITSA for a single intervention with a control series: Yt=β0+β1T+β2Xt+β3TXt+β4Z+β5ZT+β6ZXt+... |
Simple question to understand if by nature monthly sales from a retail shop on the high street are likely to have a unit-root in its timeseries or not?
|
In Bayesian learning, priors play an important role. As per my understanding, most of the priors are statistical, and they used mean and variance value as prior. Then deep learning model uses the dataset and creates posterior distribution.
Is it possible to use symbolic knowledge, such as the first-order logic (FOL) ru... |
I have a c. 100,000 independent time series (they are not multivariate time series) of monthly retail sales of high street sales shops. They are independent because:
Shops are in different locations.
The time series run over different time periods in different years.
To find a common model that best fits them all (as... |
I am running my ever first multi-level model. The model has three fixed effects and a random intercept by the grouping factor "participant id".
The outcome variable is "bone mineral density". The three fixed effect predictors are "lean body mass", "fat mass", and "age". Lean mass, fat mass and bone mineral density were... |
I performed an ANOVA on some test results of N groups (N = 7), which yielded a significant difference of the group means, followed by a wilcoxon signed-rank test to determine which groups are significantly different from each other.
However, I did not perform the wilcoxon signed-rank test for all possible pairs as this... |
I have a series of predictors and want to see how each of them predicts a binary dependent variable that takes on the values of 1/0 (i.e., yes/no). I am running a series of linear probability models, each with a different predictor and the same covariates (DV ~ predictor + age + gender). This is all done in the same sa... |
I am trying to understand the gamma mixture models, especially the significance of the 'loc' parameter in scipy.stats. In the code below, I generate a mixture distribution with two gamma distributions with different shape and scale parameters.
import scipy.stats as st
import numpy as np
import matplotlib.pyplot as plt
... |
I need some help to estimate the probability of bankruptcy, using the lags of several explanatory variables. I want to use historical data and estimate the parameters using a logit/probit model, and then use them to calculate the probability of bankruptcy of the active firms. I have more than 50 explanatory variables, ... |
I'm struggling with this question:
You are given 2 random standard normal variables with correlation = 0,2
What is the probability that both are negative?
The answer is 0,29 but I have no idea how to get it, except for high-level estimate 0,5*0,5=0,25 and (taking positive correlation) suppose that it is higher then 0,2... |
What is the correlation between a uniformly distributed random variable $x$ and $y \sim |N(0, x)|$?
Or what Pearson do I get for the following algorithm when $n \to \infty$?
import numpy as np
from matplotlib import pyplot as plt
from scipy.stats import pearsonr
n= 10000
std = np.random.uniform(low=0.0001, high=10.0, ... |
I am reading "Introduction to Econophysics" by Stanley and Mantegna and I found the following in Chapter 13.
I can't understand why the 2-Norm of a vector standardized by subtracting the mean and dividing by the SD should be 1.
To me, it should be $\sqrt{n}$ where $n$ is the dimension of the vector.
Let $v$ be a vecto... |
I would like to know how to do calibration plot with Hosmer-lemeshow test and AUC for ROC curve after multiple imputation in R. I build one prediction model and tried to do model performance but noticed that it is not simple.
I also tried pool_performance function in psfmi package, but showed the following error.
Error... |
Suppose that one has a binary treatment $Z$, and assume that $Z=1|X=x \sim Bern\left(e(x)\right)$.
Furthermore, suppose I want to estimate the propensity score by a random forest. Are there consistency and asymptotic results in this case and if so, what are the regularity conditions that are needed to achieve them?
|
I'm pretty new to Bayesian statistics so hopefully this makes sense:
I'm fitting a Bayesian ridge regression using scikit-learn whose target values lie between 0 and 1. When the point values (the mean of the predicted distribution) are compared to the observed (gold) point values, MAPE, WAPE, and r^2 look good. But w... |
My apologies if this is a trivial question. I need some help to estimate the probability of bankruptcy, using the lags of several explanatory variables. I want to use historical data and estimate the parameters using a logit/probit model, and then use them to calculate the probability of bankruptcy of the active firms.... |
This picture is from Group Normalization paper and the Layer Norm shows averaging in Channel and H/W dimension.
However, this picture is from Power Normalization paper focusing on NLP problems and the Layer Norm does not average the Sequence Length dimension. It is conventional in NLP field that Layer Norm is averagi... |
I have a data frame made up of categorical and ordinal variables, I want to make a multiple binary logistic regression model.
The steps that I am going to carry out are:
See if the variables meet the multicollinearity condition: on the one hand I see the correlation between the ordinal variables with the Spearman corre... |
I have data with seven variables and I want to calculate pairwise correlation (also the significance level of each correlation). The data I have is the effect size of a treatment on these seven variables. -ve value shows inhibiting effects and +ve value promoting effects. The higher or lower the value is the higher or ... |
I have to check if the following models are linear and if so setup the design matrix. In case they are not linear I have to find a transformation $h: \mathbb{R}^n \rightarrow \mathbb{R}^n$ such that $h(Y)$ is linear and then set up the design matrix.
Let $\epsilon_1,..,\epsilon_n$ ~ $\mathcal{N}(0,\sigma^2), n>3$ i.i.d... |
How can one adapt cluster::clusGap to work with an alternative distance measure such as Gower's distances? Does the output generalise to every clustering algorithm, or should virtually the clustering algorithm also be a hyperparameter?
|
I was revisiting some basic concepts on graphical models and factorization of distributions and noticed that all the examples I see only have factors that include, at most, one conditioned random variable (i.e. P(A | B, C, D)). Is there are reason that I shouldn't (or can't) decompose P(A, B, C, D) to include a factor ... |
I am facing an issue with a GAMM that I am attempting to fit.
I am modeling fish catch in response to several variables (see model below). I am using the mgcv's gamm() function to do so.
mod <- gamm(log_catch ~ gear_type +
s(effort, k = 65) +
s(doy, bs = 'cc', k = 20) +
s(yea... |
We have four sites, within each site we tagged 40 mangrove individuals and measured their height every 3 months for 2 years. We have three mangrove species present within each site but it is mainly dominated by one species, we tried tagging and measuring a mix of species but we ended up with 118 tagged individuals of s... |
In chapter 2 of Tsiatis (2006), the following is stated
After some straightforward algebra, we can express the estimator $\hat{\sigma}_n^2$ minus the estimand as $$(\hat{\sigma}_n^2 - \sigma_0^2) = n^{-1} \sum_{i=1}^n \{(Z_i - \mu_0)^2 - \sigma_0^2\} + (\hat{\mu}_n - \mu_0)^2$$
where $\hat{\mu}_n = n^{-1} \sum_{i=1}... |
I am working with this example. I have a set of multinomial data with $N$ rows and $D+1$ categories drawn from buckets of different size, $M_n$: $$ \mathbf{p}_{D+1}~\sim~\text{Dirichlet}(\mathbf{a}_{D+1})\\ \mathbf{y}_{n}~\sim~\text{Multinomial}(M_n,~\mathbf{p}_{D+1})$$
I wish to learn the relative frequencies of the f... |
I have a dataset in which a (latent) construct (e.g., math performance) is measured at different time points using different psychological tests.
The first data point is comparable to an assessment center. In my setup, there are four groups of participants, each one taking a different assessment center.
The following m... |
I am looking to write a program that generates samples from a gaussian distribution with a certain mean and standard deviation. I am not allowed to use any library except a random number generator. Is there a trivial way that one could do that? I am familiar with techniques like rejection sampling or a mcmc approach bu... |
I am currently trying to fit milk production data collected for three years by using generalized additive mixed model through mgcv package. The problem is, I am getting NaN p values in some variables. However, when fitting the same data using R-INLA I do get results for all variables.
Is there any thing I can do so tha... |
I have a random variable which is an angle $\Theta$ that follows a wrapped Normal distribution. The angle $\Theta$ has a relatively small variance, so despite having a range from $(-\pi,\pi)$, practically all the PDF is contained within the range $(-\pi/2,\pi/2)$. (Sorry, I don't know how to word it better). What I wan... |
I am conducting a survival analysis to examine the impact of a set of covariates X on the time-to-event Y. However, I have collected data on participants even after the event has occurred, where the event does not necessarily indicate death. I am unsure whether there is any valuable information in the observations obta... |
I'm newer to statistics and unsure how to analyze my data for a cohort study (n=73) where KAP assessments were administered to the same pregnant women before and after an educational intervention for gestational toxoplasmosis. The attitude/practices sections were scored on a Likert scale of 1-5 --> "never, almost never... |
Let's say we have a database of 160 participants, but only 60 participants are selected for the next phase of the study. Let's say that all participants (N = 160) filled in the test (eg. a depression score). Now we want to compare the results of the depression test between the selected groups of interest (say, students... |
Let's assume a three-variable regression model.
$$
\large
Y_i = \beta_1 + \beta_2X_{2i} + \beta_3X_{3i} + u_i
$$
Can you derive the formula of covariance given below?
$$
\large
var(\hat{\beta_3}) = \frac{\sigma^2}{\Sigma{x^2_{3i}(1-r^2_{23})}}
$$
$$
\large
se(\hat{\beta_3}) = +\sqrt{var(\hat{\beta_3)}}
$$
$$
\large
cov... |
I'm analysing a dataset that gave some very poor regression models in the past (not trained by me). Basically, I'm trying to get insights on why those models were so bad.
The target variable is the log of raw measurements and its distribution looks like this.
I noticed that if we look at specific ranges, for a good ch... |
Like the title suggests I'm having difficulty deciding the next steps I should take in terms of my current project. At the moment I have about 4 years worth of daily sales data dealing with "Christmas" items.
Obviously there is a very strong seasonal component to my data, and have used several different methods of tryi... |
I have a relatively small dataset with less than 100 samples, with one predictor and one outcome variable, both numerical. I generated models using lm and glm functions.
For linear and polynomial (2 degree) models, the $R^2$ value seems to be high already (close to $0.95$). When I try higher degrees, the $R^2$ keeps in... |
I am trying to calculate the 'absolute risk difference' and 'needed to treat' (NNT). NNT is 1/(absolute risk difference) where the absolute risk difference is just the rate of an event in one intervention minus the rate of an event in another intervention.
I have the rates of the events in two interventions calculated ... |
I am comparing two sets of samples that are of different sizes (n) and are from two different populations. Both sets have undergone a similar intervention at different time periods (one from August to December and the other from January to April). Although both sets have treatment groups, this is not the typical one co... |
I am trying to incorporate several non-linear continuous variables into a logistic model, thus, restricted cubic splines(RCS) is used into the model. However, I don't know how to get the odds ratios and the 95% confidence intervals of these continuous variables transformed by RCS. Some paper reported their establishe... |
For Archimedean copula such as Clayton and Gumbel, their positive dependence can be measured by Kendall's $\tau$ that $\tau_\textrm{Clayton} = \frac{\theta}{\theta + 2}, \tau_\textrm{Gumbel} = 1-\frac1{\theta}$. And Their tail dependence is $\lambda_L = 2^{-\frac1{\theta}}, \lambda_U = 2-2^{-\frac1{\theta}}$. From an i... |
I want to use an unpaired two-sample t-test of random samples of $n=40$ each. The sample data is from 4-point Likert scale assessments. I understand the t-test is not very robust to outliers, which I expect to exist within the population being sampled (true outliers, not artifacts or mistakes). I am concerned that the ... |
I have a simple repeated measures mixed-level model with random intercept by participant. I am trying to understand the resulting $R^2$ and ICC values. I have read numerous discussions on here, but none seemed to address my puzzle directly.
I have written out what I think are correct interpretations up to the final ste... |
In prediction, accepting a little more bias in exchange for a lot less variance is the very name of the game - we'll chose the model with minimal test MSE without regard for its composition (bias squared versus variance). In causal inference, we rarely - if ever - are willing to make this tradeoff. The emphasis/weight ... |
For example, I have a data frame consisting of columns ID, Genotype, Sex, time (days), event (deaths), for a number of Drosophila strains of both sexes, where deaths can be anywhere from 0 to 2, 3, etc. Apologies as this is probably a very simple solution, but most tutorials about survival analysis don't answer it and ... |
I performed univariable Poisson regression on a dataset of individuals where each individual had one row of data. The variable Sex, for example, had the incidence rate ratio 2.11 (95% CI 1.73-2.56, p<0.001) for male vs. female, and was produced with code of the form model <- glm(Event ~ as.factor(Sex) + offset(log(Per... |
Consider a time-varying version of the Poisson-GP marked process on
the real line as commonly used in Peak Over Threshold (POT) modelling
of a variable $Y$. More precisely we have a given time-varying
threshold $u(t)$, and the times $T_i$ of the exceedances over the
threshold follow a non-homogeneous Poisson process wi... |
I have a random variable $X\in\{-1, 1\}^n$ that is just a vector of length $n$ containing either $-1$ or $+1$. I know that $\rho$ is the probability of the event $X = +1$. I would like to describe the distribution of $X$.
What is the distribution of $X$?
The expression of the distribution for for $x = (x_1, \ldots, x... |
I am currently trying to develop a model that takes into account different data sets that are not directly comparable.
More specifically, my model needs to describe the amount of a drug in the blood, and I have given the concentrations in the blood at different times, but also the concentration in different organs at... |
I ran a permutational one-way ANOVA with blocking. I would like to report the permuted p-values along with an effect size (difference in means). However, the permutational ANOVA does not allow one to get these estimates, say using emmeans. Given this, is it valid to report the mean difference with confidence intervals ... |
Let's say that for a supervised machine learning experiment I am using a fixed learning algorithm (e.g. Random Forest), and I want to achieve the following:
Choose optimal hyper-parameters for the learning algorithm
Estimate the performance of the algorithm on unseen data and / or compare it fairly to a benchmark algo... |
My business objective: I want to create a MAX diff approach where I will have multiple surveys my output will be Claims and its Posterior Probability , count of best and worst selection.
For more illustration : Claims can be " reduces water wastage , " Brighter skin", reduces wrinkles" . How can I compare different Sur... |
I have fish data from 2 sites and am looking to see if there is a difference in some hormone concentrations (continuous) between the sites. However, it turned out the size of the fish differed between sites so I also want to include this in my model, leaving me with one categorical (2 levels) and one continuous indepen... |
Overall aim:
I have patients with a very common condition and I want to see if it is significantly associated with a reduction in a certain type of cancer between 6 months to 5 years later when compared to a population that does not have this common condition.
Method:
I have 1000 patients with condition A and about 700... |
When creating examples of matrices for CFA in R for students, I still have a problem with getting data that looks realistic - specifically, that between latent variables I often have covariance path coefficients greater than 1 (standardized!) which just seems unrealistic.
Let's consider an example:
library(lavaan)
libr... |
I have a dataset that contains the sequential locations a user has visited, with start and end times. A small sample:
id, starttime, endtime, location
1, 29/06/2023 07:00, 29/06/2023 07:33, A
2, 29/06/2023 07:45, 29/06/2023 09:50, B
3, 29/06/2023 10:00, 29/06/2023 17:02, A
4, 29/06/2023 17:30, 29/06/2023 19:33, C
5, 29... |
I am trying to understand what is the "Laplace correction" in R, in particular, when applied to this function:
kl.div(.alpha, .beta, .do.norm = NA, .laplace = 1e-12)
Do you know the mathematical formulation of that "Laplace correction" ? How to apply it to a distribution? Any reference in the Literature?
The only piec... |
I tend to use metrics like the following:
"80% of all parcels are delivered within the given 60 min time period" or
"In 90% of all emergency calls, the rescue service is on the scene within 10 minutes".
Generally speaking, I use a percentile here in conjunction with another condition.
Is there a scientific or at least ... |
Within each run, the experiment is set up as below:
Genotypes refer to: WT (Wild type as blue), PKO (Partial Knockout in green), FKO (Full Knockout in red)
Biological triplicates means the same genotype grown in 3 different flasks, for example WT grown in one flasks, WT grown in second flask, WT grown in third flask.... |
I'm going over the book (2nd edition) and I noticed something (IMHO) odd with equation 3.6 (pp 49). I was expecting the equation chain to end just as
$$
\sum_{r \in R} r \cdot p(s', r | s, a)
$$
because I don't see any point in going further. Am I missing something? Why not just leave it like this? To try to answer thi... |
I am making a model of income for the pension system over 25 years. I have the income as dependent variable and number of workers and average salary as independent. Both income and salary are effected by time trend. As the trend is on both sides do I have to deal with it? And if so what would be the best approach?
I ha... |
I know that if we have 1-dimensional Gaussian r.v. X and Y we can find coefficients $a,b$ so that $$X=aY+bZ+E[X-Y]$$ where $Y , Z$ are independent and $Z$ is standard Gaussian.
Can we do something similar if X and Y are Gaussian vectors in $\mathbb{R}^n$ (for simplicity assume their covariance matrices are non-singular... |
Let's say. I have multiple features that take values between (-2 and 2).
Features are: "did some sport today", "did some yoga today", "took a cold shower" (for instance if you just did a bit a sport you can evaluate it as 0).
Now, we have a target class "I am happy" (red: not happy, grey: neutral, red: happy).
The only... |
Does a transformation exist that allows to use of the Euclidean distance with the word embeddings? The Cosine distance could be a problem in my case.
For example, what if I translate the vector to a polar coordinate system from the cartesian one? Does it make sense?
The idea is reduce the dimensionality of such vector ... |
I've been working on a weekly web traffic forecast based on time series. The primary business driver is marketing investment (spending)
I have historical spending data but not future spending data. In this case, how can future web traffic be predicted?
I'd like to have an input request switch where I could change the c... |
I am currently working on a time series forecasting task using an expanding window cross-validation approach. My dataset is created using the sliding window technique (Window: 4, Horizon: 1). During the cross-validation process, I need to perform pre-processing steps such as standardization and exponential smoothing on... |
The igraph function assortativity_nominal() in R returns a coefficient for the whole graph.
This is not very informative as this treats each node homogeneously.
Instead it might be that nodes from one group are very assortative while nodes from other groups aren't.
Is there a way to calculate the assortativity coeffici... |
I was trying to understand the derivation of the truncated derivatives in Hochreiter's origin LSTM paper. Spent a bunch of time without avail. I suppose I am missing a way to map my intuition of truncation to the actual equations.
The following is a snippet from the paper.
I wanted to understand the derivation of the t... |
Average Treatment Effect (ATE) is a common measure to determine if a treatment (e.g. taking a particular medicine, you either take it or not) exert an effect on a particular target variable (e.g. sickness status). Additionally, as it seems to me a big part of causal inference literature, ATE considers binary treatments... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.