instruction
stringlengths
9
38.7k
I'm trying to fit a GPD for a set of time dependant data. I have two columns, data which is a value on the negative real line where values closest to zero are considered extremes, and time. Using only the data column I've used the ismev package to produce a MRL plot but the plot doesn't look like any MRL plot I'm used ...
I have a time-series that I want to model using an autoregressive process using statsmodel for benchmarking purposes. This time-series is not stationary: visual inspection and both the adfuller unit-root test and the stationary kpss test shows this very clearly. In addition, its partial autocorrelation values are compl...
I'm doing a matched case control study to assess the impact of a disease on healthcare usage. I'm using observational data, and I have a panel of patients with many years observations each. In the case of patients with the disease, I have a simple cross-section - I track them from the point of first diagnosis, so they ...
Assume multi class classification task where we have 5 labels: 1, 2, 3, 4, 5. For simplicity, let's assume it is the rating of movies, number of stars. I am after a loss function which is aware of the values. Namely for for the case $y_i = 5$ if the prediction is $\hat{y}_{i} = 3$ the loss will smaller when compared to...
I have generated exponential random numbers using x <- rexp(1000,1) with set.seed(1). I can look at them using show(x). But how can I find the $k$-th smallest element of that list in R?
I am trying to extend a parameter estimation of ODE model from constant parameter estimation to time-varying parameter estimation. I have completed the constant parameter estimation (where parameter is kept constant throughout the time); the implementation is as follows: Mathematical background of ODE: The ODE which I ...
Does anyone know what to do if you have a really low r2 number (18%) but the residual and Q-Q plots look normal ? The distribution is normal in the graphs for my multiple regression analysis but the r2 number is only 18% (0.18) ? How do I explain this as how effective it would be as a predicter as aren’t these conflict...
I'm using PROC GENMOD in SAS to model a continuous outcome as function of flight which is binary (1=yes, 0=no) and a categorical predictor (ethnicity.) So I ask PROC GENMOD to output type 3 statistics. The model outputs the slope estimate and associated p-value for each ethnicity vs. the reference, and for flight; and ...
I've trained a Gradient Boost classifier and used it to predict a binary target variable. I plot the ROC, here it is, looks nice and good: However, using the same test data, this is the result of a confusion matrix: How could this happen? the model fails to predict positive cases, the sensitivity is zero, but still t...
Let $X\sim N(70,16)$ and $Y\sim N(70,9)$. Given a sample of size $n=4$ from $X$ and a sample of size $m=9$ from $Y$, compute $$ P(\bar X = \bar Y). $$
I am looking at the relation between two time-to-event variables subject to censoring. The seminal work from Lin and Ying is unfortunately paywalled (https://www.jstor.org/stable/2337178), but I understand the major limitation is that the general method only admits univariate censoring. Has any work dealt with the esti...
I´m modeling with diffrent GARCH-Models the daily standard deviation of a stock market. That includes a rolling forecast model of the daily standard deviation. This works pretty well so far. To compare the rolling daily standard deviation I have to calculate the daily standard deviation of my underlying time serie (the...
In class we are learning about the SMOTE (Synthetic Minority Oversampling Technique) algorithm. As I understand, this algorithm can be used to increase the effectiveness of Machine Learning models when the datasets are imbalanced. An example our professor gave was that suppose you have a dataset with information belong...
I am working with a DID model, I have the Y column, the treatment column with dummies, the time period column with dummies and the interaction. How do I add Year-fixed effect, State-Fixed effect and time trend? Also is this the correct data set up? Id greatly appreciate any help
I am working my way through the statistical inference textbook and am stuck on this question: Suppose that a sample space $S$ has $n$ elements. Prove that the number of subsets that can be formed from the elements of S is $2^n$ Taking examples for $n=2$: $$n=2;\{\{\emptyset \}, \{a\}, \{b\}, \{a,b\}\};$$ And for $n=3...
I am on a project developing a model to predict which of 3 groups customers will belong to. I am currently using multinomial logistic regression. The three customer groups are the Loyals, who regularly purchase from our company; the Switchers, who sometimes purchase from our company, and the Nevers, who never purchase ...
A classical result in statistical theory is the Neyman-Pearson lemma, which not only shows the existence of tests with the most power that return a pre-specified level of Type I error, but also a way to construct such tests. If this powerful result is a lemma, then what eventual result was this used for in the original...
I have a dataset with information belonging to medical patients (e.g. age, gender, height, etc.). Suppose that the response variable is whether or not the patient has a specific disease or not - thus, the goal would be to understand the effects and significance of the different explanatory variables on having the disea...
So far my understanding is that standard errors of $\hat\beta_j$ increase when we have more independent variables in the regression model because variation among those independent variables will increase ($\rightarrow R^2_j \uparrow$). But I saw the opposite thing happened when I add more explanatory variables in the R...
I'm testing mediation with a SEM of four exogenous variables with three mediators on latent variable. I have non-normal variables, so I used MLR estimator for the adjusment, but I can't get the bootstrap CI with this estimator. I found in a google forum that MLR uses yuan-bentler correction. I can add the test=yuan.ben...
In this paper, authors consider method of moments of fitting Gumbel distribution: We know that maximal likelihood estimators are asymptotic unbiased. But are these moments estimators asymptotic unbiased? Or consistent estimators? Can we find the reference to say these two estimators are asymptotic normal?
Risk of death in group A over 6 years is 2%. Risk of death in group B over 6 years is 6%. How do I calculate the risk of death per year in each group? I am modeling the time to event in a cancer treatment group. I am using SAS.
My goal is to tune the Classifier with probability predict_proba() < threshold. Therefore, I need to get the threshold. The problem is sklearn.metrics.PrecisionRecallDisplay do not give me the threshold. scikit-learn.org The code: # Model Definition rf_pipe_tuned = Pipeline(steps=[ ('composer', composer), ('clf...
Suppose that $X_{1}, X_{2}, X_{3}$ are i.i.d from $p_{x}$. Determine the distribution of $Y_{3} = (X_{1}X_{2}X_{3})^{1/3}$. $p_{X}(x) = \begin{cases} 1/2 & \text{if } x = 1,\newline 1/4 & \text{if } x = 2,\newline 1/4 & \text{if } x = 3,\newline 0 & \text{otherwise}.\newline \end{cases}$ I can solve this problem by mul...
I'm trying to fit a GLM on my dataset which consists of soil respiration data (RS), soil temperature (TEMP), soil water content (SWC), biomass (BIOM), day of the year when the sampling was done (DOY) and the vegetation type (grasslands, old fields, ploughland and oversewn grassland). The measurement was done along a 15...
From a theoretical perspective is the Bayesian Optimal Classifier (BOC) the best possible classifier one can make? Better than NN and GBDT? Let's say that we have two distributions $P(X,Y)$ and $P(X',Y')$. And we try to use the Bayesian optimal classifier to distinguish between them. If the BOC has no performance (e.g....
I am undertaking a pilot project using the first 62 data points I have manged to collect. Currently I have 26 cases (disease positive) to 36 controls (disease free). I have used Firth's Logistic regression to examine the relationship between several radiographic independent variables and the disease*. I've selected Fir...
I repeatedly measure two values, $a$ and $b$. Measurement $a$ correlates with two real values $X$ and $Y$. For measurement $b$ the correlation with value $Y$ should be smaller, maybe even 0 while being approximately the same for $X$. I want to estimate value $Y$. I know for sure that $Y$ has linear influence on both me...
I'm trying to calculate the standard deviation of a series of binary outcomes and would like confirmation that my computations of SDEV are correct or not (as explained further below my outcomes shown below in yellow in the illustration don't make sense to me thus I ask for help). I am calculating the rate that a popula...
Please refere to the attached image (source: Wikipedia). They have derived the formula (summation one) for discrete random variable as a special case. Can anybody please help me understand how to derive that formula from the integral formula? I already have understanding for the integral formula(continuous case).
I have one group with n=13 and another with n=26 (proportion 1:2). I have 14 features to use in the classification model. I am using a logistic regression model. My questions are: Is it correct to use a logistic regression with such imbalanced groups? I know that I have too many features for the number of observations...
Hello I'm wondering how do you consider these result For binary classification with class imbalance.(84% to 16). Accuracy 96 Precision 94 Recall 80 F1 86 Roc_auc 98
I need to plot a confidence band around my ecdf. I calculated a value b and I basically just need to plot ecdf+b and ecdf-b but R doesnt let me do that. Does anyone know how this can be done?
When developing machine learning classifiers, some people upsample or upweight the minority class to achieve a 50-50 balance, claiming that this improves performance. Some statisticians have questioned this practice, but there do seem to be some potential benefits, such as covariate shift adaptation. The practice is ve...
I've been reading about inverse-variance weighting and every reference I find to it is related to meta-analysis. However, I wonder if inverse-variance weighting can be used to reduce the bias produced by outliers in highly variant data. Say we have a random variable $X$ containing a subset $X_o \in X$ consisting of out...
I have three daily time series, each spanning 14 years: maximum temperature, total rain fall and number of deaths. My aim is to build an explanatory model of deaths rather than a model optimized for prediction. I first ran the following generalized additive model (using mgcv in R) with smooths for each term as per the ...
I am looking at the following limit theorem from the paper D. A. Darling, P. Erdös, A limit theorem for the maximum of normalized sums of independent random variables, Duke Math. J. 23(1): 143-155 (March 1956) I use R to check the result in the case where each $X_i$ is a standard normal. I use the following simple cod...
I've fitted two models and while checking the residuals vs. fitted plot I saw a pattern that I haven't seen before in my analysis. The thing is, although the data seems to be well distributed (rectangular shape), it's all centered on the left, I first thought of this as a classical 'funnel-shaped' example and the follo...
I'm interested in testing (one at a time) these two hypotheses using the... Mann-Whitney U test. H0: The probability that an observation in Group1 is greater than an observation in Group2 is 0.50 But I'm having trouble understanding this assumption and wondering if my data meet it: Assumption: "In addition to independe...
Something I have been noticing lately, is that Machine Learning practitioners appear to be talking more about Cross Validation a lot more than those working with traditional statistical models (e.g. Regression). For example, in almost any Machine Learning paper, the results section usually contains an extensive Cross V...
The lifetime of computer monitors has a exponential distribution where the expected value can be written as: $\mu(s) = \frac{\beta}{s}$ Where $s$ is how bright the monitor is and both $s$ and $\beta$ are >0 How do I estimate the maximum-likelihood of parameter $\beta$? I know that the log-likelihood for a exponential d...
I have a dataset of a realisation of a one-dimensional point process. I would like to test for a Poisson process with some statistics connected with clustering. I would like to provide a size effect that reflects the absence of clustering.
We are working on a project where we want to find the pure premium for which we first want to fit Poisson regression. Data Used: data(dataCars) from insauranceData package in R We have an offset term exposure which takes value between 0 and 1 when I fit my model then I am getting rates between 0 and 1 but when I calcul...
I am trying to compare two amino acid concentrations after two treatment variations. The data is not normal distributed, so I have to use non-parametric tests. I calculated the adjusted p values, but now I want the effect size as well. Is there an option to calculate the effect size for the adjusted p values? I used th...
I am training the ridge regression on a one-day sensor data using the closed-form solution where $$ \beta=(X^TX+\lambda*I)^{-1}X^TY $$ and Matlab. The $X$ is 15 polynomial time matrix. I created a loop where different lambdas were used in the ridge regression and then apply this model to the training set, and then comp...
I have a task where I should fit the data sample with curve_fit and get the peak's position and amplitude. I fitted data and got these values and their standard errors. I also need to find point estimation and confidence interval for position and amplitude. Can anyone give some hints on how to find them? I've found sol...
I was wondering if we can use k-fold cross-validation for model performance with a GLM-fixed effects model (fitted with the feglm function from the fixest package).
All the tests that were carried out prior to WRS test shows to reject null hypothesis, but WRS test is saying to retain the null hypothesis. However, rejecting the null hypothesis makes more sence. Is it right if i go against the WRS test and reject null hypothesis?
During some exploratory analysis of my data I noticed that when Jfox was calculated for a point pattern relative to some polygons, I frequently obtained that the pooled envelopes area did not include the Theoretical line (at least in some regions). This was not the case when Jfox was computed between point patterns onl...
I have a study with one within-subject factor. The data in the two groups are normally distributed. When running a paired t-test, I get a significant effect, t(19)=6.24, p<.001 which supports H1. When running the equivalent Bayesian analyses, I get a Bayes Factor = .001 which strongly supports H0. I struggle to reconci...
What are some ways to see how different two discrete probability distributions are? I have two samples that can only take value from 1-4, in increments of 0.5, and I'm trying to compare their distributions without using Kolmogorov-Smirnov test, as that is primarily designed for continuous distributions. I am also aware...
Firstly, looking at the discussion https://math.stackexchange.com/questions/241315/three-ideas-of-perfect-sampling, the term "perfect sampling" does not seem adequate, since there are several aspects that don't sound perfect at all. The sampling becomes perfect from some point in the chain, but establishing a criteria ...
I am running a cointegration test on 4 input variables over 1 year and when I run the VARselect it outputs: AIC(n) HQ(n) SC(n) FPE(n) 1 1 1 1 Input - VARselect(Data, lag.max = 10, type = "const") This is an issue as the minimum K for the ca.jo in RStudio is 2. I have looked for answers on this ...
I am working on a paper now where statistics is my weak spot and I need some help from experienced statisticians. I decided to use one-way repeated ANOVA to analyze my results. The following is dummy data that follows a similar data structure as my own results. One thing really bugs me a lot is that the ANOVA's assump...
This is a practical question. Assume that there are two finite populations X and Y in the real world. For example, we want to compare $\bar{X}$ and $\bar{Y}$. We can use a probability sampling scheme such as stratified sampling or simple random sampling without replacement to extract two samples from the population X a...
I have been trying to learn more about "Regression Discontinuity". This appears to be a statistical method designed at testing the effectiveness of some sort of intervention. The Wikipedia article (https://en.wikipedia.org/wiki/Regression_discontinuity_design) states that "regression discontinuity design (RDD) is a qua...
I found an answer to model my data in order to predict behaviours over time. The question answered was here I have zero inflated data, with discrete variables. Is it possible to use zero inflated poisson model? However, besides of it I would need to find the significant difference between the gap of the behaviour on th...
I am wondering how analysts might generally approach a survival analysis problem? I used to naively think just to throw a Cox model at everything but am becoming attracted to the idea of using parametric survival models on a more regular basis because they return the baseline hazard. Of course this means that you shoul...
Suppose our hypothesis space is $$\mathcal{H}=\{f:f(x)=f_\theta (x), \theta\in \Theta\},$$ where $\theta$ is the trainable parameter. Suppose we have a dataset $\{x_i,y_i\}_{i=1}^N.$ In the notes from my professor, he defines the empirical risk minimization as $\,\Phi(\theta)=\frac{1}{N} \sum_{i=1}^N L(f_\theta(x_i),y_...
I am reading the paper and try to understand the example solution in p. 14. In particular, if the Markov chain has stationary distribution $\pi$ and $a$-step transition distribution $P^a$, then $$β(a) = \int π(dx)||P^a(x) − π||_{TV}. \tag{18} $$ Consider first the two-state Markov chain $S_t$ pictured in Figure 2. By ...
I want to model volatility of a stock index with 1460 observations. The specification of the GARCH model is planned to be EGARCH-X where X is the external regressor, with no mean specification. Unfortunately the result of LB test on raw series of diff-in-log (daily return) proves that autocorrelation exists Box.test(na...
I need to sample $n$ points from a multi-modal distribution with the condition that the sum of the points equal 1, i.e., the points are the unit simplex. The possible distributions may have varying numbers of modes. How would I do this? I have found research on how to do this if the distribution is the uniform random d...
Goal is to establish a loyalty score for a customers of particular TV Brand. Listed below are some factors that I think should logically affect the score. Features of a Loyalty Score Loyal Customer has a long relationship with brand X (high household age) He is a repeat customer ( high lifetime device count) His house...
When using survival analysis in R I found that I cannot code the event variable "death" as a factor variable as it flips the Kaplan Meier curve, and I have to use is as a numeric variable. I'm not sure why this happens. In light of this -- is it safe to ordinarily code other explanatory categorical variables as factor ...
I have a dependent variable, Y, and an independent variable, X. For each value of the independent variable (there are four values for the independent variable "X"), I have a cluster of data points of dependent variable "Y". I want to build a linear model with logarithmic scales (so basically modelling a power law). Do ...
Me and my friend are currently writing our final essay but we are having some problems with our analysis… We are doing an hierarchical multiple regression, and we has some categorical predictors (like two-levels variables as biological and non-biological, and some with more levels like grade). Before doing this we cont...
Introduction I am working in R and I am getting confused how to compute confidence interval of normal distributions and tail probabilities of unobserved points. I have looked at other posts on here that does not help me answer these questions properly. Question Summary: I have two questions. How to compute the confide...
I've recently started to work in machine learning and this is my first post here. Excuse me in advance for duplicates and/or slang mistakes. My question is about transfer learning (although in this case, I think it is more accurate to call it pre-training). I'm working in a classification problem using a convolutional ...
Reading: https://www.stat.berkeley.edu/~breiman/randomforest2001.pdf I wanted to ask about clarifications in formula 4. Sorry for not rewriting here all the article, which should be a classic. I would not be able to be more clear than the article itself. $PE^*$ in formula 4 is beforehand defined as : $PE^*=P_{X,Y}(mg...
I am pretty new to r and statistics. I am trying to use the DiD package for difference in differences with multiple time periods. I have 60 control units and 17 treated units. Is this sample size large enough? Does this imbalance between treatment and control size alter the accuracy of the ATT? If so are there any solu...
I am trying to understand why lines (1) and (2) give the same result set.seed(2525); n <- 1e6; X <- rnorm(n) Lines (1) and (2) (1) rbind(c(mean(X[X>1]), mean(X*(X>1)), mean(pmax(X-1,0))), (2) c(dnorm(1)/pnorm(-1), dnorm(1), dnorm(1)-pnorm(-1))) Result [,1] [,2] [,3] [1,] 1.524587 0.2416943 0.08316332 [2...
Let $\mathbf{x}\sim N(0,I)$ and $A$ a real-valued square matrix. The spectral decomposition allows us to rewrite a quadratic form $\mathbf{x}^\top A \mathbf{x}$ as a sum of iid chi-squared random variables weighted by the eigenvalues of the square matrix $A$, $$ \mathbf{x}^\top A \mathbf{x} = \mathbf{x}^\top Q^\top\Lam...
How can I sample from a mixture distribution in particular a mixture of Normal distributions and Exponential distribution in R using composition method? For instance if I want to sample from: $0.3\textrm{Exp}(1)+0.5\textrm N(0,1)+0.2\textrm N(4,1)$. The algorithm should be following: Generate random number $N$ with di...
$(X,Y,Z)$ is a multivariate normal distribution. Calculate $E[X^2YZ]$ I'm finding an approach for this problem. I'm not sure if it is possible to assume $E[X^2YZ] = E[X^2]E[Y]E[Z]$
Background: I want to explores the effect of 3 different treatments on pain felt during a medical procedure. Pain has been assessed using visual analogue scales. Pain values can be anywhere from 0 to 100. 0 = no pain felt. What I am trying to do I am trying to run a regression model so I can control for other factors w...
I am trying to find a loss function for a beta distributed variable, other than the log-likelihood. Since the beta distribution belongs to the exponential family, I wonder if it is also possible to define the unit deviance, something like the gamma deviance defined here (I have very limited experience with GLMs). I wa...
$X$ and $Y$ are two non-negative continuous random variables. The moments of $X$ are $\mu_i$ while that of $Y$ are $\nu_i$. We know that $\mu_1=\nu_1$ and $\mu_i \ge \nu_i$ for $i=2,3,\ldots$ Can one then show that $P(X>x) \ge P( Y>x)$ for $x\ge \mu_1$? We do know that $$ \mu_i=i\int_{0}^{\infty} x^{i-1} P(X>x) dx \ge ...
Ok, so I have a very basic knowledge of statistics and I'm trying to get my dissertation done guided by books, internet tutorial and googling Q&A forums like this one. I am comparing a satisfaction score between three different specialities of a profession in Jamovi: Speciality A, Speciality B and those that have both...
I am trying to correlate a continuous clinical variable with gene signatures from single cell gene expression data. I used the UCell package in R to create a score (on the y-axis) for each cell from each patient. This score is the strength of expression of a specific gene signature in each cell. The x-axis is the clini...
I derive a point estimate given value $x_0$ using an estimated linear regression as follows: $$\hat{y_0} = x_0^T\hat{\beta}.$$ I know that a prediction interval for a given value $x_0$: $$\hat{y}_0\pm t_{n-p}^{(\alpha/2)}\hat{\sigma}\sqrt{x_0^T(X^TX)^{-1}x_0 + 1},$$ where $\hat{\sigma}$ is the sample standard deviation...
Please forgive a simple-minded question. I'm looking at a dataset now of a few thousand values, and trying to analyze it statistically. Most of the values, about 90%, are zeroes, and then the rest are positive integers from 1 to about 50, with most of them under 10 (it is number of parasites found on an animal). I'm ju...
I want to use the built-in ToothGrowth dataset in R to write an assignment and conduct t.tests. The dataset has three columns and 60 rows and, for each observation, it contains the supplement given to a guinea pin which is OJ (orange juice) or VC (vitamin C), the length of tooth growth in a specified period of time and...
I want to estimate the value of a quantity at the end of the month. Currently, we use a very dumb method, which is simply to take the current rate at the current point in the month, get the rate (in quantity/sec) and extrapolate to the end of the month. This is very inaccurate at the beginning of the month. I was looki...
Let $\mathcal{X} := \left \{\boldsymbol{x_i} \right \}_{i=1}^N$ denote inputs and $\mathcal{Y} := \left \{y_i \right \}_{i=1}^N$ denote outputs. Let $\boldsymbol{X} := \left [\boldsymbol{x}_1, \dots, \boldsymbol{x}_N \right ]^T $ where each vector $\boldsymbol{x}_i$ has a $1$ as the first element of the vector and $\bo...
I am trying to figure out how to generate data in a binary classification figure in R. Two concepts where examples that fall within any of the three 3 × 3 squares are labeled positive and the remaining examples (outside each of the squares but within X) are labeled negative. The position of the point x = (x1,x2) in th...
Maybe a duplicate-- but I am not asking about least squares vs minimizing absolute deviations. Just simply, what if I chose to minimize the sum of residuals: Min $\sum_i^n (Y_i-\beta_0 - \beta_1X_i)$ ? If I try to minimize this, the second order conditions are all zero. Is there a solution to this? Would the strategy b...
I am studying judicial decision making. I have coded a large number of cases, each of which was heard by three judges randomly selected from a judge pool. I have coded whether each judge's vote was a conservative or liberal vote, and I have each judge's political affiliation. I want to see if a judge's party status pre...
Bayes' rule can be understood as a nonlinear map from the space of probability measures to itself. Are there any reference/books which study it from this perspective? E.g., can we say something about whether it is contractive or not, behaviour under iteration etc. Bayes' rule also induces a stochastic process that is...
I'm helping a friend design his research. He'll use a Google Forms questionnaire with several questions (from 0 to 5, Likert scale) to assess anxiety of students' before taking two different tests. The questionnaire has about 10 questions, all underlie anxiety and all go from 0 (strongly disagree) to 5 (strongly agree)...
I thought I understood kde/density plots until this problem. I have a dataset with two columns, Diff and Var with 5 million rows approx, this is the header: About the data: Var: Only takes values Var_A or Var_B Diff: Can take integer values from -100 to 100 70% of observations are from Var_A and 30% from Var B. Given...
This is a question I have always been curious about. Suppose there are medical patients and they recommended to get a medical exam done on the first of January. However, the patients can also get this medical exam done before the first of January - and they can also get this medical exam after the first of January. We ...
My goal is to impute not with sklearn.impute.SimpleImputer. My goal is to impute with sklearn.preprocessing.FunctionTransformer. This is because in some cases, it is obvious that we should fill a column based on other column and not with median or mean. The problem is, I can't call get_feature_names_out What I've tried...
$P(X=x|N,D,n)=\frac{^DC_x \times ^{(N-D)}C_{(n-x)}}{^NC_n}$ Now, I was trying to test for $H_0:D\le D_0$ vs $H_1:D>D_0$ using likelihood ratio test. But to find the maximum likelihood estimate of $D,$ the terms are in $^DC_x$ form, so I could not proceed further. Can anyone provide me how to find the estimate of $D$ or...
We examined the relationship between the 2017 Math SAT scores and the 2019 Math SAT scores. A StatCrunch simple linear regression printout for the data is shown. a. Find the least squares prediction equation. b. Give a practical interpretation of the y-intercept of the least squares line. If a practical interpretation ...
in studying now about Vapnik-Chervonenkis dimension, and there is one question that I not able to solve. Let $\textrm{(X , R)}$ be a range space so that any hypergraph $\textrm{(V, F)}$ in it satisfies ${|F| \leq A|V|^B}, $ where $A \in R+$ and ${B \in N+}$ do not depend on $\textrm{|V |}$. Show that $\textrm{Vapnik-Ch...
Is it possible to compute an integral within a layer in tensorflow and tensorflow probability? I have a simple MLP with a couple of dense layers and a concat layer. import numpy as np import tensorflow_probability as tfp import tensorflow as tf from tensorflow.keras.layers import Dropout,Concatenate ...
I need direction for a robust approach in R for deriving probability distributions for selected time points in event count time series. In the below illustration: "Period_1" shows elapsed number of months, "1stStateX" shows the number of times elements in the population reach a state of X (it's binary, either an eleme...
GMM refers to the Gaussian mixture model, cf. here. Suppose we have $N$ data points (or observations in Statistics) and $K$ Gaussian models to mix. After going through Maximum Likelihood Estimation, we have the formulas for all parameters, i.e. for all $k=1, 2, ..., K,$ My professor then said, given $z_k,\Sigma_k$ ...
I am interested in determining the influence of biotic (initial height) and abiotic (light, canopy, soil moisture content, soil nutrients, rainfall, and temperature) factors in the absolute height-growth of a particular plant species. The absolute height-growth(AHG, in cm), the response variable, is just the difference...
Currently I have a of around 20000 datapoints, with the independent variable being time and the dependent variable being an arbitrary skill measure [Image 1]. I have fit a curve to the data using python's Scipy library and its curve_fit function. Although the curve looks fine, I want to be able to tell what percentile ...