instruction
stringlengths
9
38.7k
If a probability density function (created using kernel density estimation) exhibits peaks (not necessarily the mode), can we infer the presence of clusters or subgroups in the data?
This is the data output of the tool r.regression.multi on QGIS. I am new to this and cannot find good sources on how to draw conclusions for this. Therefore could someone explain; how adequately do the regressions describe meaningful relationships among the data? X=precipitation and temperature (in the year 2050 under ...
I found the following while reading a paper [1] and got confused: Replacing $k_{ij}$, $k{i.}$, respectively $k_{.j}$, by $k_{i,j}$, $k_{i.}$ and $k_{.j}$ provides us with estimates of entropy and mutual information. This is on page 235, right after equation 2.9. The authors seemed to write about replacing the set of ...
Suppose I survey a population asking each individual to recall as many digits of pi as they can. (Assume that they get them right but only to a point. Or, alternately we can just take up to their first error, or even just ask them to report how many digits they think they know.) On the one hand we might think that this...
I have a problem related to understanding a coefficient of a regression I have made. Some of the variables in my dataset looks like this: "SKDchange" is the variable of interest as dependent variable, while I struggle to interpret the diff1Equity variable. The regression in on changes-changes form where both the explan...
I tried to train bayesian network using ELBO loss function. \begin{align*} \mathcal{F}(D, \theta) = KL[q(w|\theta)||P(w)] - \mathbb{E}_{q(w|\theta)}[\log p(D|w)] \end{align*} My question is, if model gets larger, is there any possibility to KL-divergence becomes larger so that dominate likelihood cost term? For large n...
I have longitudinal data with a pre and post condition where 4 groups where used. The groups where a control group (CG), a control group with high protein intake (CGPR), a training group (IG) and a training group with high protein intake (IGPR). I was wondering if it is possible to fit an interaction term between prot...
My team has been implementing a survival-analysis approach to loan default prediction for about a year now. However, I believe their method to be a little "brute-force" and I haven't been able to compare it to anything I've read online about survival models. A typical loan dataset would have one row per application and...
I only have access to the following dataset summary data and not to the dataset itself. In the example, the stats on each line come from a univariate cox regression to model a cause-specific mortality. My goal is to understand if a biomarker is overall associated with all-cause mortality, which implies that I will hav...
I was trying to rationalize the K-Means algorithm and came up with the following thoughts. Suppose we need to compute: $T=min_x L(x)$ but we struggle because $L$ is complex. Suppose we find $L'$ s.t.: $min_y L'(x,y)= L(x)$ SIDE NOTE: note that this framework defines a function $y=y(x)$ where the minimum is attained, th...
I have a data set as: x1, x2, x3... x9 (non-normal distribution). I check it with box-plot and find one outlier as x9. Normally I will stop then remove x9 and use the new data set. But when I check new data set x1...x8 with box-plot, I find one another outlier x8. I check new data set x1...x7 again, no outlier is dete...
I have a product substitutability matrix, where each cell has a number between 0 and 1 to represent how substitutable (i.e. how similar) the two products are. I then apply hierarchical clustering to this data in order to create a dendrogram. R code seen below: # turn subs data into a 'matrix' with product 1 on rows, pr...
I am conducting a meta-analysis using the metafor package in R. More specifically I use a random effects model applying the rma.mv function. When I run my meta-regression with moderators, I always get an insignificant intercept. As I rarely see this in published meta-analyses, I was wondering whether something is wrong...
I'm currently testing the Bayesian inference approach for a model given some data. However, I am running into the problem of estimating $\sigma$ (I am assuming a normal distribution of the data at each time step). I currently treat $\sigma$ in the same way as the other model parameters, i.e. I also estimate it using t...
I am working with surveillance data - I have information on all the people who had outcome Y in a given geographical area in a given time period. id outcome_y age sex ... 01 yes 27 f ... 02 yes 84 m ... ... ... ... ... ... 99 yes 69 m ... Crucially, this table does not include any information on peopl...
Given the joint probability distribution for three dependent continuous random variables, I want to find a formula to compute the probability distribution for the product of these 3 random variables. I am currently using a formula but I am not sure it is correct. To find my formula I used this relevant thread but it is...
I run the following GAM model in R using the mgcv pacakge: my_fit <- mgcv::gam(mpg ~ s(disp, bs = "ts", k = 15), gaussian(), mtcars, method = "REML") As far as I understand the help page of mgcv::smooth.construct.ts.smooth.spec, setting bs = "ts" shrinks the coefficients of the fit towards zero. Looking at summary(my_...
I'm facing a mathematical challenge related to selectivity freedom under overlapping conditions. To make it more relatable, let's consider an analogy. Imagine a farmer who has just completed his apple harvest. The harvested apples can be either green or red. Additionally, some apples, irrespective of their color, may h...
I have continuous data for x (for example "time") and y with several groups. I would like to show/test that the slope of groupC changes over time (is positive and rises) while groups A and B do not. Below is a MRE. I was thinking about using a GAM, but could need some inspiration of how to formulate this in R. Please n...
I have conducted a survey with several scale questions ranked 1-10 on a sample of n=18. I applied a specific treatment before and after the survey. However, I'm unsure about how to analyze the data and determine the minimum sample required to detect a significant change between the survey results before and after the t...
I am new to statistics and I was hoping someone could guide me on what statistical tests I should complete in R on the following dataset. I am trying to investigate the relationship between births and the issue of a specific drug to treat postnatal depression. The data set was created as follows: I obtained the number...
I am currently working on binary classification problem with imbalanced dataset (n=3419 and 69:31). However, based on the business expertise of the users, they have generated rule-based label based on two features - f1 and f2. Let's assume the label was created using the dummy formula - if (2f1+10f2/f2)*100>60%, then 1...
Let $\{ x^{(1)}, \ldots, x^{(M)}\}$ be $M$ samples from a $n$-dimensional multivariate Gaussian distribution $\pi_{X} = \mathcal{N}(\mu, \Sigma)$. We recall the definition of the squared Mahalanobis distance $\delta_{X}$: $\delta_{X}(x) = (x - \mu)^\top \Sigma^{-1}(x - \mu)$ I am interested in computing the sample squa...
Consider the product of two Normal distributions (prior-hyperprior): $$ p(\sigma^2) \propto \mathcal{N}(\theta; 0, s^2 \tau^2 \sigma^2)\mathcal{N}(\sigma^2; 0, c^2 \gamma^2) $$ this is a scale mixture of normals with normal mixing density for the variance term $\sigma^2$. More often, we find a solution when the normal ...
Is there a way or a specific command I can use in Stata for more insights and information after i Run the "estat classification" command and classification Tables for my probit model? I know how to interpret the "sensitivity and specificity" results obtained from my estat classification command, But: How or What additi...
Let $X$ be an independent variable and $Y$ the dependent variable. Suppose we have the relationship $Y = f(X) + \epsilon$ for some unknown function $f(x)$ and some noise $\epsilon \sim N(0,1)$. If $f(x)$ is highly nonlinear, then we know that the performance of linear regression is going to be poor. However it might be...
I am currently writing my thesis and have to submit in 1 week, but am struggling to solve this issue on my own. I would therefore genuinely appreciate your input! The research question I'm trying to tackle within my thesis is: Does competition between development assistance donor countries affect democratization in Afr...
Player A and B participate in a match where the probability that A will win each point is $p$, for B its $1-p$ and a player wins when he reach $11$ points by a margin of $\ge2$ The outcome of the match is specified by $P(y|p, A_{wins})$. If we know that A wins, his score is specified by B's score; he has necessarily sc...
I am analyzing an astronaut dataset to try and determine if a high number of hours flown in space (>1000) by an astronaut is related to premature death (which I defined as dying before the age of 75). As one can see from the table I attached, Premature Death and Flights Hours < 1000 corresponds to astronauts who died b...
I was trying to run a multilevel model in R using lmer and my model failed to converge with the default optimizer. Then I used the bobyqa instead of default optimizer and my model converged. Now I need to run the (same) model in STATA and I need some help. Anybody knows how to modify the "optimizer" (not sure if it is ...
For simplicity I am asking this question for a binary classification problem. In the non-robust case, for a dataset $(x_i, f(x_i))$, $i=1,\dots N$ with $x_i$ drawn iid from a distribution $D$, we would like to minimize the error probability $\mathbb{P}_{X\sim D}[h(X)\neq f(X)]$ for some hypothesis $h$ from a hypothesis...
Suppose I wish to fit a fairly complicated hierarchical model, say twelve nodes in a Bayesian network. I have an initial set of data I can fit to this model, this data has an ordering, meaning data that is more recent is more important. I then have a second set of data which I must predict but I can predict sequentiall...
I'm trying to understand the impact of 2 different binary interventions on the completion rate of around 10 courses. The courses all have different baseline completion rates. Intervention one was turned on for all courses at the same time. Intervention 2 was applied to roughly half of the 10 courses at a later date. I...
To help outline my question I will start with how this would normally be undertaken. Say this is animal study looking at the effects of a drug on withdrawal. The outcome in this case will be time spent asleep with the expectation that the drug improves sleep in animals undergoing withdrawal. There would be four groups:...
Typically, we assume independent samples when performing ROC analysis. But for image data, e.g. in a segmentation problem, pixels in a neighborhood come from the same image and are spatially correlated. How does this affect the interpretation of, for example, AUC? How can we take into account these correlations and any...
Edit with graph: I am struggling a bit conceptually to make sense of a result I get when applying a linear mixed model to my reaction time data. I have a 2x2 within subjects design. When I plot the data by means of an interaction plot, one of the two lines is above the other, with non-overlapping confidence intervals. ...
I have one question about the evaluation metrics of classification models. I see many people report the precision and recall value for their classification models. Do they choose a threshold to convert predicted probability to predicted class and then calculate the precision and recall? If so, how do they choose the th...
I have data where all individuals have an observation at time 1, but then only half of the individuals have an observation at time 2, and I want to compare the means of times 2 and 1. Is a standard t-test the way to go here, despite the outcomes obviously being not independent due to half of the individuals contributin...
I am having difficulties with the following problem: Assuming $X$ and $Y$ follow a bivariate normal distribution with $\mu = 0$ and $\Sigma=\begin{pmatrix} 1 & \rho \\ \rho & 1 \end{pmatrix}$ and $U=X^2+Y^2$, I want to prove that the inequality $P(U>a)\leq \exp\left(-\frac{a}{2(1+|\rho|)}\right)$ holds for all $a$. So...
I have performed an exogeneity check on my control variables to assess their validity before incorporating them into my regression analysis. Upon conducting the analysis, I observed a significant correlation (P-value < 0.01) between three of my control variables and the independent variable. I assume that means there i...
(Cross-posted here) I have some data that look like this: df <- data.frame(hormone = c(65.1, 32.8, 29.6, 42.3), medication = c('A', 'A', 'B', 'B'), lab = c('One', 'Two', 'One', 'Two')) (it's actually much larger; this is just an idea of the format) I need to analyze the variance of da...
Suppose that I have a model $f$ that is trained to predict hourly sales of 100 stores. Each day I retrain the model, and I have 2400 data points each day. Naively, I can split the data into sth like hour 0 - hour 22 as training set, and hour 23 as the validation set. However this does not make too much sense cause the ...
How should I approach a univariate timeseries with multiple rows of data per timestamp? Using stocks as an example, I am attempting to identify a time series model, or suitable alternative, that identifies macro relationships between independent variables and stock prices over time. The issue is that I have multiple ro...
My question is simply why the Energy function of a RBM is given by: $$E = -\sum_{i,j} w_{ij} \, v_i \, h_j -\sum_i \alpha_i \, v_i - \sum_i \beta_i \, h_i$$ when the energy of the Boltzmann Machine is given by: $$ E = -\Biggl(\sum_{i<j}w_{ij}s_is_j + \sum_ib_is_i\Biggl) $$ Does the first is derived from the second when...
I have performed the following experiment but I am not sure what statistical analysis perform. The aim is to test if a drug is lethal on a fish species. For this, I have 3 tanks with 10 fish in each tank. Each tank receives a treatment (control, low drug concentration or high drug concentration). The variable measured ...
The aim of my project is to find the association between a group of independent variables and a categorical dependent variable (with three levels). For variable selection, my supervisor suggested employing the ANOVA test for each variable separately among the levels of the categorical variable. (he also provided me thi...
In the image and per the code at the bottom of this post, I plot survival curves for the lung dataset from the survival package using a fitted exponential distribution model (plot red line), using the K-M nonparametric model (plot blue lines), and run/show simulations using the exponential model (plot light blue lines)...
Suppose you have a small dataset (perhaps 1000 labels), and you are using cross-validation to train different models and to choose the best one (according to their cross-validation scores). It seems that at some point, this process (model selection) will begin to overfit. Is there any way to estimate the optimal number...
I built a neural network model in R using the Keras' package and for some reason, the mean of the predicted values of the neural network doesn't match the mean of the original values. For every other model I've built, this is never the case. Am I doing something wrong, or is this a possibility?
Scenario Consider the following scenario in which you have some data $\mathcal D = \{(X_i,Y_i)\}_{i = 1,2,\dots, N}$ and a candidate model $M$ (for instance, for the conditional distribution $\text {Pr}(Y \vert X) = f_M(X,Y)$). You know the functional form of $f_M$ from previous studies, or perhaps you have selected it...
I have a dataset where each row corresponds to a country and contains independent variables such as "per capita income" and "mean education status." Additionally, there are two variables of interest: "number of restaurants" and "number of restaurants with Michelin star." Our goal is to predict the ratio of "number of r...
Let's say I already have a simple rule which provides me the variables that help determine the output label and relationship between variables and label is rather simple and deterministic one, can I still go ahead and build ML model for the below reasons? a) Automation b) Rank the outcomes based on their probability ou...
Summary: If we have an unbiased MLE $\widehat{\sigma_1}$ of an exponential distribution parameter, and the confidence intervals for its estimates are given by the $\chi^2$ distribution; and we find another unbiased estimator $\widehat{\sigma_2}$ with known relative efficiency to the first; do we have an expression for ...
If I understood correctly, in principle when we estimate an unconditional/unadjusted treatment effect, it means marginal effect and vice-versa. If so, I wonder if the average treatment effect (ATE) at the population level is the marginal effect estimate only? Can we estimate also conditional ATE by conditioning on cova...
I'm a little lost on how to show how $X_{t}=\Phi(\frac{W_{t}}{\sqrt{T-t}})$ $0\leq t\leq T$, where $W_{t}$ is the usual Brownian Motion, is a Uniformly Integrable Martingale? My goal is to try and show $\mathbb{E}(X_{t}\mid \mathcal{F}_{s})=X_{s}$ for $s\leq t$, but my thought ends fairly quickly trying something like ...
My question is about using UMAP as a dimensional reduction technique before HDBSCAN clustering. I have a dataset of ~5000 observations each with ~20 descriptors. According to HDBSCAN guidelines, HDBSCAN clusters decently on less than 50 dimensions, so in theory I should be able to cluster directly on the raw data. Howe...
I want to re-calculate the last column of Table 3 of Attention is All You Need, i.e. number of params in the models. But numbers from my calculation do not match. Model Params from Table 3 ($\times 10^6$) My Calculation base 65 63014912 B (1) 58 55937024 B (2) 60 58296320 big 213 214110208 My calculat...
I have a sample of only 142 numbers from a distribution of 3852 numbers ranging from 0 to 53, but it is censored below 35 (The values ​​exist, but I don't have access.), so I have only the values in the right tail from 35 to 53. Is it possible to estimate what kind of distribution this is, with just these 142 numbers? ...
I'm motivated here by a problem for robust Bayesian analysis. Let $l(Y|X)$ be the likelihood and let $\{p_\xi(X)\}$ be a parameterized family of prior distributions where $\xi$ denotes the hyperparameters. For example, they could be Gaussian distributions where the hyperparameters are different choices for the mean and...
I was trying to use masked image modeling in huggingface and I saw ViTForMaskedImageModeling in their documentation but I did not understand how it reconstructs the original image loss, reconstructed_pixel_values = outputs.loss, outputs.reconstruction also, it doesn't reconstruct the original image correctly. It gives ...
I have 10 regions with facilities (different number of facilities in each region) that test people for presence of condition A. However, there are also facilities, that were included in the pilot project, and in case person has condition A (positive result) the one can also be tested for presence of condition B. I want...
I understand that you would consider multilevel or hierarchical linear mixed effects model with your data are nested with multiple level and be grouped. However, I assume that the observation will belong to single group in the nested data. However, if the there is a portion of observations would belong to multiple grou...
For example, if my experimental design requires the subjects to participate in two identical sessions at two different time points(factor 1). In each session, the subjects go through all three conditions(factor 2) and the score for each condition is measured. I am aware that if I want to account for both factors and th...
Assuming I have ROC-AUC for multiple subsets of samples, is there a way to produce a "weighted" average of AUC or something that will represent/approximate the AUC for the complete population of the samples?
I know that when validating we are interested in knowing how the model performs in real-world scenarios, so we want the class ratios during validation/test to be the original ones. Say, however, that we are performing some kind of parameter search/optimization. If we are comparing different possible configurations, I g...
I am a beginner in time series forecasting using ML, and I am encountering a strange phenomenon. I have air quality data, in which I have information of various pollutants. The goal is to predict AIR QUALITY INDEX. There are about 10 pollutants and various weather features. The AQI feature(ground truth) has been create...
I'm trying to implement Neural Collaborative Filtering recommender system using Keras, the dataset I'm using is movielens-small. Whatever I do to hyperparameters or network, when training, the training loss(MAE) decreases nicely but validation loss (always starts lower than train loss?) stays in place or slightly rises...
I was wondering if there were some good references on communicating the results of data/statistical analysis to stakeholders or laypeople. I'm not looking necessarily for references related to data visualization, even if it may be useful. In fact, I'd be particularly interested by something relative to the use of langu...
This might be a basic question, but I was wondering if it's possible to create a score that tells how confident we can be in a certain dataset. Maybe a score that tells how likely we are to estimate the mean of the data with good accuracy? Assuming we have a dataset normally distributed, can we use the number of rows, ...
Context: I'm training a classifier on some fraud data. Only a chunk of data is labeled (~2000) so I'm trying a self-training approach, what I'm doing for now is: Iteratively training a model then labeling the unlabeled samples and feeding the samples where the model is more sure about the label to a training set for a...
Wikipedia says that for a given numbers $\{x_i\}_{i=1}^{n}$ drawn from a half-normal distribution, the variance of that distribution can be estimated by sample variance $\hat\sigma^2 = \frac{1}{n} \sum_{i=1}^{n}{x_{i}^{2}}$. The bias-corrected estimator is written as ${\hat {\sigma \,}}_{\text{mle}}^{*}={\hat {\sigma \...
I'm working in an unfamiliar Bayesian context here, so apologies if my terminology isn't entirely correct! Imagine I'm trying to predict the performance of players on a of a five-a-side football team. The team has seven players, and in any given game only 5 play. My outcome variable is the goal difference in the matc...
My experiment is based on quantifying levels of B12 vitamin in a sample of patients retrospectively selected based on values that can take (under our criteria): normal low levels: under the physiological or normal reference values but not enough to be considered deficiency deficiency (which is associated with poor nut...
Do we need to differentiate which variable is independent or dependent when doing univariate analysis of variance to test whether the means are equal or not? Because, according to my understanding, the ANOVA test can be performed when the group variable is deemed an independent variable. My colleague believes that as l...
I have two numeric variables (death rates), each without confidence intervals, and I want to calculate the CI of the ratio between the two values. I was using the MOVERR method developed by Donner & Zhou but this was only applicable to values with confidence intervals. https://rdrr.io/cran/pairwiseCI/man/MOVERR.html (T...
Suppose $\mathbf X$ is normally distributed with mean $\mu$ and standard deviation $\sigma$. After sampling $n$ samples, we repeat the sampling process $m$ times and the sampling data is stored in an $m\times n$ matrix. Then, is the data on a specific column (not row) also normally distributed? My simulation in R shows...
I have a case where I want to feed a network with polylines of data. The problem is that the input can be any number of polylines and the polylines can consist of any number of points. If we instead convert the polylines to vectors the requirements might be easier to formulate: Network with a variable number of input ...
I have a machine learning classification problem where 0.05% of the population (N = 100k) is of the positive class. It is important that I don't misclassify these positives (aka I want to minimize the number of false negatives). I want to say with 95% confidence that my machine-learning model does not misclassify any p...
For simplicity, let's say that I regress Y on X using OLS in three different datasets, which all have different numbers of observations (1200, 1500 and 1900 respectively). In all three datasets, I standardized both X and Y (and also possible control variables), so the coefficients I am getting are standardized. I heard...
Given this network: library(igraph) set.seed(5) g <- igraph::graph_from_atlas(100) E(g)$weight <- round(runif(ecount(g), 0, 10)) #g <- as.directed(g, "acyclic") plot(g, layout=igraph::layout_nicely(g), edge.label=E(g)$weight) I compute the diameter: dim <- igraph::diameter(g, weights = NULL) dim dimp <- igraph::get...
I have an assignment of variable selection in survival analysis which I have done and on the basis of IBS (Integrated Brier Scores) I have concluded my proposed technique works well than the previous (LASSO and RSF) methods. Now I am asked to include some plots to show our approach works better than others. What are th...
I am working on a research project for my Masters in Public Health which compares suicide rates across different time periods. I have done all my analysis in R and from what I can tell everything is fine, but my supervisor has suggested that my adjusted model outputting narrower CI's than my crude model is somehow susp...
Dear All, I have a data set with 10 continuous variables and 11 categorical variables. The ANOA test (for six continuous variables) and the Kruskal-Wallis test (for four continuous variables) were applied to the BMI levels (with three levels). Chi-square test was applied to categorical variables versus BMI levels. (so ...
I have a problem finding missing SD from a study Please refer to the image below Note: What is provided? Each timepoint's mean p-value for paired-test between (post) and (pre) score What is NOT provided? t-value 95% CI Standard Error Is there anywhere I could find the SD for each timepoint? Thanks in advance :D
I am tackling a multi-label classification problem and I want to choose a SVM model maximising the AUC. I am not sure if AUC can be used in this case and if yes it is sufficient just to change the parameter probability to probability=True. This is the python syntax: svm = SVC(kernel='rbf', probability=True)
My dependent variable is a raw score at some test that has a likert scale (ordinal data). My two independent variables are sex (male or female) and amyloid status (AB+ or AB-). I want to test the main effects of both IVs on the DV and also their interaction. The distribution of the dependent variable is not normal so I...
I am aiming to reproduce the issue (using Python) described in the answer here Is normality testing 'essentially useless'? It states that the assumption of normality is more likely to be violated when the sample size of the studied distribution is large (n>1000) and the Shapiro-Wilk test for normality will become more ...
The problem: Suppose I have an ordered sample of $n$ observations (e.g. a playlist of songs) that are ranked according to some latent (unobserved) feature, for each of which $p$ covariates are recorded. I want to build a model that is able to rank a new $m$-sample consistently with the original sample, based on their c...
I want to model number of plants in 12 different areas. Each area is divided into smaller plots of equal size for all areas. The number of plots between areas vary (31 for the smallest area, 500 for the largest). For each plot I have counted number of plants. I also measure max canopy height for each plot. I have a lot...
It is commonly suggested that if you are having trouble getting your lme4, Frequentist mixed-effects model to converge, you can either (a) simplify and drop random effects in the model, or (b) pivot to Bayesian mixed-effects models using brms (https://m-clark.github.io/posts/2020-03-16-convergence/). I often accept thi...
Recently I've been plotting a lot of data, and often I find myself using a moving average to smooth out values that oscillate or otherwise fluctuate a lot. However, the problem with this is that it removes the edges of the series, so in case of e.g. up-to-date time-series data I no longer have a view of the most recent...
Here is the dataset for repeated measures: library(lme4) library(nlme) d=read.delim("http://dnett.github.io/S510/RepeatedMeasures.txt") d$Program = factor(d$Program) d$Subj = factor(d$Subj) d$Timef = factor(d$Time) I have built an unstructured model using gls function and I am trying to reproduce the results using a ...
I plotted data from two groups using geom_smooth in ggplot2. The default method loess was used for the lines and confidence interval was also added. Am I right by assuming if the lines and confidence intervals do not overlap there is a significant difference? For example, in the following graph, is it correct that ther...
I've a large dataset including a response bmk, a continuous predictor delay, a group factor (n=2, 0 and 1), and a random effect medu (n=85). I split the whole dataset (dat) into two subdatasets (dat0 and dat1) based on the group factor. Then, I run the m0 and m1 gam using bs='fs' separately, applied on dat0 and dat1, r...
I am a Secondary Math teacher who is interested in creating effective learning in groups. My desire is to create a system/program that maximizes student Test performance, but I am not exactly sure where to start. My idea thus far: I have $n$ students, each of which has probability $p_i$ of passing their next Test. The ...
I am trying to find the mean of a sample from time-series of variable 'A', consisting of all 'A' values that occured when the concurrent Variable 'B' met some condition. I know that the A measurments have an uncertainty of ± 1.0 kph, and the B measurments have an uncertainty of ± 0.5 cm. I need to propogate this uncert...
I am trying to quantify the cumulative difference between two time series using dynamic time warping. For example, here I calculated and plotted the DTW distance between Speaker rating (pink line) and the Listener rating (blue line): I am struggling with how DTW can account for polarity (or positive/negative direction...
Suppose I have a collection of time series for a number of subjects, say $y_{ij}$ are measurements for subject $i$ at time $t_{ij}$. The times are not uniformly sampled and each subject may have a different number of measurements. I'm interested in ways to estimate the time-varying probability density on $y$, call it ...
I am trying to become more familiar with time series analysis. I am reading through Dangers and uses of cross-correlation in analyzing time series in perception, performance, movement, and neuroscience: The importance of constructing transfer function autoregressive models by Dean and Dunsmuir, and they mention time se...
I am working with SGHMC (Stochastic Gradient Hamiltonian Monte Carlo) models. I found an implimentation of the algorithm in pytorch here. The part of the code that represents momentum variable update (not a complete update): def update_params(lr,epoch): for p in net.parameters(): if not hasattr(p,'buf'): ...