instruction stringlengths 9 38.7k |
|---|
I'm trying to detect anomolies in a dataset $i \in \{1,2,...,N\}$ where a random variable $y_i$ is expected to be drawn from a normal distribution with mean $\mu_i=0$ and variance $\sigma_i^2 (X_i)$ totally determined by (conditioned on) the multiple features $X_i$.
My hope is that I can use a Z-score threshold such th... |
I am running a regression with a sparse rank-deficient matrix where many columns are correlated with others. At the moment, I remove all columns with a correlation over 0.8. The matrix has 12k columns and 35k observations, and I drop about 2k columns.
For example, my text may mention cities and I have three highly corr... |
ADF (Augmented Dickey-Fuller) test to check if an asset price is stationary or non-stationary using pure JavaScript without any library.
|
After my previous question (here) I tried to improve my work with this distribution. I'm using the parametrization $$f_X(x) = \frac{\theta^2 x^{\theta-1}(\gamma-\log(x))}{1+\theta\gamma} \mathbb{I}(0<x<1), \theta \in (0, \infty), \gamma \in [0, \infty)$$ with CDF $$F(x) = \dfrac{x^\theta\cdot\left({\theta}{\gamma}-{\th... |
I'm doing a linear regression with data from 1980 to 2018.
Can you help me understanding why when I use the GDP in levels most of the others variables are significant and when I use the GDP growth rate they are not significant?
I used the growth rate for all the other variables.
This is the output I have with GDP in le... |
For a research project, I created a panel dataset that counts violent events in subnational administrative units from 2000 to 2015, thus my unit of analysis is district-year. Out of 20.000 district-years, only 2000 record violent events. Therefore I decided to proceed with a zero inflated negative binomial regression m... |
Looking to train a simple single-layered NN with a N-dim softmax output (and a relatively small feature vector size, ~2-10) in a streaming fashion accumulating K samples in a buffer and then performing batch gradient descent steps to update the weights. The samples have soft labels as outputs instead of one-hot encodi... |
I am trying to use GAN model to generate N-dimensional samples with joint probability distribution that looks like some training data. I am having trouble getting the probability distribution of the generated data to match the training data.
As a training example, I created a 2-dimensional training dataset from bimodal... |
I conducted a survey: I asked 50 participants a question about a device they were using "is this device helpful".
30 said "Yes", 20 said "No".
How do I proceed with input into a contingency table or input to online Chi squared calculator (expected and observed results)?
|
For data in a negative binomial distribution, is it possible to derive the dispersion if you only have the mean and shape? I don't have the actual data, just the results summary of mean and shape, but I would like to have dispersion.
I have tried to read up on this but I have not had success.
|
Given that $X\sim\text{Bernoulli}(\nu)$ for some $\nu\in(0,1)$, and $Y\sim N(0,1)$ are independent random variables. I want to compute the mutual information $I(X;CX+Y)$, where $C$ is some known non-random constant. Is there a simple way to approximate this numerically? Thanks.
|
Both dpois and dnorm in the code below sum to 1 (or thereabouts). This appears to confirm my understanding of the dpois and dnorm functions, which is that they represent proportions.
sum(dpois(x = 0:20, lambda = 5))
# 1
sum(dnorm(-10:30, mean = 10, sd = 2, log = FALSE))
# 1
But the output of dbeta does not sum to 1. ... |
I am having some troubles with my scatterplot matrix.
I've already looked at the other similar questions but it seems that I still don't understand how to deal with the situation when you have too many points in your scatterplot matrix.
Here is my code below, Olten is a station in CH with 600 observations (going from j... |
What is Prediction(s.d.) in the summary output calculated based on? My understanding is that there are iterations done to get predictions of the counterfactual in the post-intervention period at each timestamp. So the sd is just the standard deviation of predictions? Can I use the standard deviation to select between m... |
I have data with a nesting structure I am unsure how to account for.
I have data on countries, who were rated by two different organizations, once per year each. I would like to know what country specific factors influence the ratings and observe if these predictors have different effects on the rating from each organi... |
I have a set of points whose shape is as below:
Its set of x and y points is as follows: x=[0.14741,0.180288,0.195,0.245342,0.25614,0.289377,0.315789,0.357143,0.431034,1.785714,2,2.323529,2.586207,3,3.894737,4.923077] y=[0.211718,0.408906,0.507768,0.832,0.903626,1.092787,1.368377,1.750082,2.593839,1.72126,1.653633,1.5... |
I have a multiple logistic regression with continuous variables (dist_fs, slope, min_dist), one binary variable (exp), and one interaction between the binary variable and a continuous variable. The response variable is not balanced, I have n=273 for "1" and n=13847 for "0".
The summary of the model provided these coeff... |
https://arxiv.org/abs/2304.01933 shows that the best performing adapter-based parameter-efficient fine-tuning depends on the language model being fine-tuned:
E.g., LORA is the best adapter for LlaMa-7B, while S-adapter is the best adapter for BLOOM-7.1B.
Why does the best performing adapter-based parameter-efficient f... |
I have proven that if $C$, a concept class, is efficiently learnable from statistical queries using $H$, a representation class over $X$, then $C$ is efficiently PAC learning using $H$ in the presence of classification noise.
How would I extend this result to a statistical query model where the learning algorithm, in a... |
Both word2vec and transformer model compute a SOFTMAX function over the words/tokens on the output side.
For word2vec models, negative sampling is used for computational reasons:
Is negative sampling only used for computational reasons?
https://stackoverflow.com/a/56401065/1516331
So why don't we use negative sampl... |
I am trying to remove seasonality from a dataset. What I am interested in is the residuals, as trend and seasonal influence do not matter to the problem at hand. I am using the statsmodels package in python. Specifically, "Multiple Seasonal-Trend decomposition using LOESS (MSTL)", as there are multiple seasonalities in... |
This code was kindly recommended to me in my original question. It returned the same parameter estimates as the software called CRAFT by Aon Benfield. I have also managed to replicate it for the Weibull distribution.
I was wondering if anyone could help me replicate if for Pareto? Based on CRAFT, I would expect a sh... |
I am using linear mixed effect models to study the effect of a physical therapy treatment on two different populations of patients (Adolescents and Adults). The treatment is the same for both populations, and for each subject the (same) treatment is applied to both legs (Left/Right). The question is whether the treatme... |
I have been working on prediction models in R studio based on a rather small data set. There is a total of ~ 1200 cases with 150 to 400 positive cases depending on which of the different outcomes is being modelled.
Initially it was done with a 70/30 split that was stratified to have a similar distribution of positive c... |
I am doing a random forest and classificatsion tree. I only have numeric variable, no factors, so I have some questions regarding the output.
Background of the variables:
Prob_1 are values between 0-1 (I devided the real values with 100, to have values between 0-1), all of the other variables used for the are between 1... |
The hazard function is commonly used in models using distributions with positive support (gamma, weibull, lognormal, etcetera). However, I have not seen this concept (hazard) being used in the context of models using distributions with support on the entire real line, like the normal, Student-t, logistic, laplace, etce... |
I am trying to understand the link between (rejection) ABC and rejection sampling. For example, this paper states:
Approximate Bayesian Computation (ABC, Sisson et al., 2018) is centered
around the idea of Monte Carlo rejection sampling (Tavaré et al., 1997; Pritchard et al., 1999). Parameters $\theta$ are sampled fro... |
The problem is to distinguish between the definitions of AQL, RQL and reliability in the field of quality control. Let us just pose the context. We wish to calculate the reliability of a manufacturing process and/or the quality of the manufactured pieces by doing attributes testing. The particularity of attributes test... |
I have a dataset consisting of a case group and a control group, each with 8,000 unique individuals. Among the various independent variables, age is also included for each individual. However, I am not interested in age per se; I simply want to use it as a control variable. I have been advised to control for age using ... |
Saltelly et al., in "How to avoid a perfunctory sensitivity analysis" to discourage the use of One-factor-at-a-time have an example with a shpere in a cube and it says in section 3.
"all the points of the OAT design are by construction internal to the sphere."
And then starts for the case of two variables (k=2) and say... |
I am working on ABT index and I calculated the return series. Also, I intend to fit a GARCH(1,1) model to the return series and then calculate the VaR and CVaR as the following image:
I used many approaches and as far as I know, the VaR and CVaR are one value per series. I do not understand the time-varying VaR/CVaR. ... |
Suppose I have a finite data sample $\mathbf{S} = \{ (\mathbf{x}^{(1)}, \mathbf{y}^{(1)}), \dots, (\mathbf{x}^{(N)}, \mathbf{y}^{(N)}) \}$ from an unknown data-generating function of the form
$$ \mathbf{y} = f(\mathbf{x}), \quad \mathbf{x} \in \mathbb{R}^n, \mathbf{y} \in \mathbb{R}^m $$
I will attempt a non-linear reg... |
What are some good resources to learn about image synthesis? What are some of the key concepts or architectures to study?
I understand image synthesis as generating new images with ML techniques.
|
I am analysing data from a 2^3 factorial design in R. I am using blocking, and I was wondering if my reasoning is correct. I am testing reaction time in milliseconds with three factors (Type of test, Hand temperature, and Dominant/NonDominant Hand).
Here is the output for the model:
For the "block" variable, am I cor... |
I am comparing 2 groups of sizes 13 and 28, using the Wilcoxon rank-sum test. While I think this method should not be very susceptible to outliers as it relies on ranks, I still want to investigate if the significant differences (p < 0.05) are reliable. I have tried using a leave-one-out cross-validation method, calcul... |
This is in reference to page 3 of https://arxiv.org/abs/1911.01373
In the following line after equation (3): the author mentioned that the generalised speed measure (a measure of speed for which a proposal distribution converges to its stationary distribution) balances between high entropy of the proposal and the avera... |
I know the principle of nested cross-validation, and it is used for testing model performance. However, when choosing models and selecting hyperparameters we still use normal cross-validation (CV) with grid-search (or other methods). So what is the use of nested CV? Just see the model's performance. Because finally, we... |
I want to test for correlation in a time series model. However, all four independent variables and the dependent variable are non-stationary. I tried taking first, second and third differences but my dependent variable remains non-stationary. I also tried transforming it into a squared variable or logarithm, but the al... |
I need to compare performance of a web-application before and after some code change. We have several pages (call them $P_1$ and $P_2$; in practice there are more than 2), and for each we compare loading times. Let's say samples of $P_i$ loading time before the change are $s_{i1},s_{i2},\ldots$ and after the change $s'... |
Suppose that I have training data with dimension $(N,H,F)$, where $N$ represents the number of different datasets, $H$ is the history size and $F$ is the input size. Normalizing each dataset over the history dimension, and using (for example) a standard-scaler, I should be getting a mean and std tensors $\mu,\sigma$, b... |
I have a dataset predicting disease or not from several different variables. Two of the variables denote the status of pathological lymph nodes - one pertaining to consistency (three levels A, B and not present) and the other to size in mm (0-10, 10-20, 20+ and not present). The problem arises when the lymph node is no... |
I'm working on building/selecting a model to predict the result of a sales lead: whether it's "SOLD" or "NOT SOLD".
My dataset consists of past leads with the following data:
sales rep
product pitched
lead source
date of lead
zipcode
result
The issue I'm running into is that I have a various amount of leads per day p... |
I'm very new to statistics. I have data from some field work and need to test for statistical significant relationships using SPSS. The data is looking for a relationship between urban park quality and human wellbeing. One variable is the wellbeing score which varies, the other is the quality score of the park which is... |
The question is made of 3 parts, 2 of which require the use of Bayes' formula:
(a) At a clinic for patients with suspected malaria, 89 out of a total of 300
were found to actually be infected with malaria.
Use this information to estimate P (I = infected), where I represents
the malaria infection status (infected or n... |
I am fitting a cox proportional hazards model looking at mortality. I have a number of covariates and a specific predictor of interest (inflammation), and I am also looking at how the effect of inflammation on mortality varies between two groups (Frail participants vs. Non-frail participants). Thus far, I have been str... |
Consider the following additive model
\begin{equation*}y=h(x)+v\end{equation*}
where:
$y\in\mathbb{R}^p$ is the observation
$x\in\mathbb{R}^n$ is the estimand
$v$ is noise, distributed according to a PDF $p_v(\cdot)$
$h:\mathbb{R}^n\mapsto\mathbb{R}^n$ is a map that is invertible
It is trivial to see that the likelih... |
When refuting two causal models, model 1 has a bigger p-value and an estimated effect closer to the new effect (compared to model 2). Both can't be refuted because they have a p-value above 0.05.
Is it safe to assume that model 1 will arguably outperform model 2 when applied to new data?
Basically, what I want to know ... |
I have a dataset with spatial grid cells. After performing some spatial diagnostics (Moran's I, LaGrange multiplier tests), it seems that there is spatial dependency in the form of spatial error, so a spatial error model seemed fitting. However, my dependent variable is a count variable and is quite skewed (the standar... |
I have the following problem: I have log-likelihoods that need to be transformed to probabilities. One thing I have attempted is the following. Define $\kappa_{s} := \log \int p (\theta | X_s) \text{d} \theta $ and $\nu_{j,s} := \log p (\theta_j | X_s$ for data-generating processes $X_s$ and parameters $\theta_j$.
The ... |
How would I prove the Perception mistake bound is tight. Avrim Blum’s lecture notes claim that the upper bound for mistakes is $\frac{R}{\gamma}^2$, but I don’t understand how to prove this is mistake bound is tight
|
I am trying to identify if three groups of species (like here) overlap or seperate out. I tried a popular method to identify ellipses:
data(iris)
res.pca <- prcomp(iris[, -5], scale = TRUE)
fviz_pca_biplot(res.pca, label = "var", habillage=iris$Species,
addEllipses=TRUE, ellipse.level=0.95,
... |
I'm curious if there are any common parametric distribution models for mixed discrete/continuous data. For illustration, suppose I have two random vectors, $X_c,X_d$, where $X_c$ is continuous and $X_d$ is discrete. I have data consisting of samples of $(X_c,X_d)$, and I'd like to do some density estimation. Ultimat... |
Suppose that I have $n\gg 500000$ observations, and I specify
$$\mathbf{y} \sim \text{Normal}(\mathbf{X}\boldsymbol{\beta},\sigma^2_y\boldsymbol{\Sigma}_y + \tau \mathbf{K}\mathbf{K}^T),$$ where $\boldsymbol{\Sigma}_y$ is a diagonal matrix and $\mathbf{K}$ is a mapping matrix where there are two 1's in each row and 0's... |
As long as I know, for both ROC and PR curves, the classifier performance is usually measured by the AUC. This might indicate that classifiers with equivalent performance might have different ROC/PR curves.
I am interested in the modification of the PR curve shape without a general improvement in performance. Specifica... |
I'm fine-tuning a large language model to predict binary sentiment, where a false negative is far more costly for my use case than a false positive. I've used weighted cross-entropy to account for this, and when I evaluated my model on the test set, there were a few cases in the test set that were unacceptable misclass... |
Can I use VECM, GARCH and HAR-RV for forecasting of carbon price?
I'm not sure the assumptions of the models don't contradict each other.
|
I'm relatively new to the field of biostats and was reading up on Non-Inferiority Trials and Margins and came across this explanation which is tripping me off a bit.
"For example, the oral Tebipenem HBr study cited above set a Non-Inferiority Margin of -12.5% for the primary endpoint of overall response rate. This mean... |
A background:
I am currently working with the 'elasticnet' package (elasticnet v.1.3) maintained by Hui Zou. This package was developed to accompany Hui Zou and Trevor Hastie's Statistical Society B article "Regularization and variable selection via the elastic net" in which they propose the elastic net method, a meth... |
I have collected percentage data for Rocky shore and summarised it per algae type like the example below:
Low Mid Mid-High High
Brown 23% 13% 3% 40%
Green 0% 8% 14% 18%
Red 12% 6% 12% 0%
How can I transform this percentage coverage data to species abundance data?
Thanks in advan... |
I have been recently been working with the MASS, lars, and glmnet packages to study variable selection and prediction via LASSO, Ridge Regression, and the Elastic Net. To compare these methods against one another, I have been using some Boston Housing Market data (BH0) but I am not entirely sure that this dataset captu... |
How would I go about examining which items on one questionnaire are most associated with the overall score of another questionnaire and each sub scale of this second questionnaire?
|
I would like to compare whether 4 continuous variables have a difference among 3 groups (disease states A, B, C). There are 48 cases in the sample, however, the continuous variables are quite skewed. I have run Kruskal-Wallis with post-hoc Dunn's tests for pairwise comparisons. I would like to however run another analy... |
I have read a paper (https://doi.org/10.1038/s41591-023-02296-6)
in this paper, fig 5, the authors point out:
between-group differences (disease versus health, t-statistics,
two-sided) in body (n = 78, top) and brain (n = 2,309, bottom) features (x axis)
My question is:
It seems to be rare to use the t statistic to ... |
In the code below I test several parametric distributions against the lung dataset from the survival package data for best fit.
My main question with respect to the below code is my use of fitdist(lung$time, dist). Is this the correct usage of the fitdist() function from the firstdistrplus package? Where the only data ... |
I have been trying to define a Gaussian Process from hand by simply writing down the required formulas and apply them to an toy example. Here is what my (noise-free), observed data looks like:
x_observed = np.arange(-5, 5, 0.2).reshape(-1, 1)
y_observed = np.sin(x_train)
fig, ax = plt.subplots(figsize=(12, 8))
ax.scat... |
I've created this regression table, but I'm unsure if this is the correct way to present my results. The dependent variable is the proportion of each frame, and the independent variable is time (from 2012-2022), with the outcomes listed for all 11 frames analysed. These outcomes were all derived 11 separate simple line... |
I have time series with 322 observations. My dataset contains financial data. My endogenous variable, "target" is a binary variable. My exogenous variables are two continuous variables: "market_return" and "retail_reduction_rate" and one binary variable "target_lag1" which is lagged dependent variable. The reason for t... |
From the slides of variational inference, it shows the evidence lower bound ($L$) and the derivative over a variational distribution $q(z_k)$, quoted as follows
$$
L_k = \int q(z_k) E_{-k} \bigg[ \log p(z_k|z_{-k},x) \bigg] dz_k - \int q(z_k) \log q(z_k) dz_k \tag{22}
$$
equation (22) focuses on the $k$th latent varia... |
I am trying to create an ARIMA model which allows to extrapolate a voltage curve of a sensor battery into the future. Is this a possible application scenario at all?
I have four different voltage waveforms from two different sensors (Hourly measured values) that I want to use to train the model (I have inflated each wa... |
I'm working with patient-level healthcare data in a pre vs. post difference-in-differences analysis where the goal is to estimate the average treatment effect for nursing care.
Patients in the treatment group received home visits from a nurse while patients in the control group did not receive visits.
Given that: 1) nu... |
EDITED
I spotted error in my code, and now results are no more contradictory. But still I keep the question for utility of others and myself in understanding meta-analysis and correctly interpret null-hypothesis and results.
Please see below:
Also looking at:
Why is my combined p-value, obtained using the Fisher's me... |
I read generic claims online and in papers that the Linear Discriminant Analysis (LDA) classifier is widely used for many applications including: face recognition, speech recognition, medical diagnosis, etc... Many research papers also propagate these claims with no mention of actual systems.
But this suggests that the... |
For the Rao Score Test, we usually reject for large values of the score when are testing $H_0: \theta = \theta_0$ vs $H_1: \theta > \theta_0.$ I am confused why we reject for large values, instead of for small (negative) values of the score.
There are two ways of looking at this, and I am getting confused about how to ... |
In a linear regression of multiple variables,
$$
y = X\beta^T + \epsilon
$$,
where $X$ and $y$ are the independent and dependent variables, we can estimate OLS $\beta$ as follows:
$$
\hat \beta = (X^T X)^{-1} X^T y
$$
I wonder if it is possible to design a neural network such that given $X$ and $y$ (with a variable num... |
I was thinking about the paradigm to decide the best split in decision tree, so why do we really need IG? can't we directly use the entropy of the split and decide the best split based on that?
Consider a node at which you are looking for the best split. Now since the Entropy of root node for all the features would hav... |
For any given covariance matrix, will the sum of the diagonal elements always be bigger than the sum of the off-diagonal elements?
Let $\sigma_i$ be the standard deviation of the $i^\text{th}$ term of a $n\times n$ covariance matrix and $\rho_{ij}$ the correlation between the $i^\text{th}$ and $j^\text{th}$ terms. Is t... |
Using R, I built 2 logistic regression models (with outcome variable being depression status - present or absent) and used leave one out cross validation to obtain predicted values for the dataset. I then used the predict function to extract the linear probability for each observation in the data set. I've also calcula... |
In our statistics course we are learned about MA(q) models.
$\epsilon_{t} = X_{t} + \theta_{0}\epsilon_{t-1} + ... + \theta_{q}\epsilon_{t-q}$
But if we think about regression, more like the AR(p) process, if the parameters that are estimated are larger, then this implies that a covariate has a large effect on the resp... |
I know how to use these packages (VIP etc) with tidymodels to evaluate individual feature contribution/importance for a model such as random forest. But I'd like to know how to evaluate a combined or joint importance for two or more features. Probably I cannot just simply add importance scores of these features togethe... |
I just started learning about differential privacy (DP), and I've been trying to figure out how DP is affected when 1 or more column is added to the data. Specifically, suppose:
$$Pr(F(X) \in S) \leq \exp(\epsilon) Pr(F(X') \in S)$$
where $X$ and $X'$ differ by only one data point.
If I add one column to $X$ to create ... |
I am running a regression model and seeking to interpret the results of svyglm, for a continuous outcome variable and explanatory variables that are both categorical and continuous, when complex sampling design weights are accounted for. Are the results the same as an interpretation with linear regression analysis?
|
Let's say we're going to train a classifier with the full data set. There's also a reject logic for ambiguous regions in the data. So, at the end, the final system outputs reject or 0 or 1. That is, reject data points in regions with high ambiguity, otherwise use the original model predictions.
If you were to see a s... |
I’m getting a bit confused about who to include in the control and treatment pools and would appreciate the help. I need to estimate the effect of treatment where 100% of the population was assigned a push notification that leads to a treatment, but not all of them saw it and are therefore not treated (or know they wer... |
I've read that it's important to report the overall fit of the model. I'm more interested in the individual relationships between IVs and DVs, but worried that the fact the overall model doesn't fit (pillai's trace/wilks' lambda non-significant) makes these relationships irrelevant, or something.
But a lot, perhaps the... |
The data I collected was measuring plant shoot masses and these were extremely small, so I could only find the total mass of the shoots from 30 plants. Hence, I only have the mean and none of the individual values for the shoot masses in each of the five groups. Is there any statistical test that would work with this d... |
I was reading that the Kolmogorov Smirnov 2 sample test is consistent, that is Probability of rejection under $H_1$ is 1 for sample size going to infinity.
Say we have 2 random variables X and Y. K-S Test checks if $F=G$.
The test statistics is: $sup_z|F_n(z)-G_n(z)|$
The test is consistent (for some level $\alpha$) m... |
Biclustering encompasses techniques for clustering a (usually) data matrix among its rows and columns. Some forms of data are multidimensional arrays rather than 2D arrays, and it would be beneficial to cluster across multiple modes (that is "axes") of a data array.
Is there a literature on generalizations of bicluster... |
I've come across some papers employing z-scores of permutation null distributions as a primary metric in neuroscience (for an example, see here).
The authors computed a coefficient of interest in a multiple linear regression and then permuted the order of the predictors to obtain a permutation null distribution of that... |
When I plot a contour plot of a variable over two principal components I can see what appears to be hills and valleys. But I also know I am only looking at the contours over a projection.
Here is a quick self-contained example.
import matplotlib.pyplot as plt
from sklearn.datasets import load_diabetes
from sklearn.deco... |
Given probability distributions of random variable $X,Y$, without any additional assumptions, is there any nice representation or properties of the combination $E[XY]-E[X^2]-E[Y^2]$? If not, is there any nice feature that arises with some additional assumptions? I tried to rewrite as covariance and variance, but they d... |
Consider a linear regression model $\boldsymbol y=X\boldsymbol\beta+\boldsymbol\varepsilon$, where $\boldsymbol y$ is an $n\times 1$ response vector, $X$ is an $n\times p$ matrix of covariates (fixed), and the error vector $\boldsymbol\varepsilon$ is multivariate normal $N_n(\boldsymbol 0,\sigma^2I)$.
The $i$th interna... |
There is a class of MCMC algorithms which are called "ensemble samplers", so-called because they use an ensemble of walkers whose positions depend on each other to sample from the posterior distribution. The one I'm most familiar with is Goodman and Weare's affine-invariant ensemble sampler, as I have used it with the ... |
This is a problem I have been curious about for some time now.
Suppose:
There is a coin where if it lands head then the probability of the next flip being heads is 0.6 (and if tails then the next flip being tails is also 0.6)
There are 100 students in a class
Each student flips this coin a random number of times
The l... |
When using propensity score matching or weighting, a column of weights is generated that is used to estimate the effect of interest.
According to a blog I read, there are three types of weights commonly used in statistics:
aweight: These weights describe the precision (1/variance) of observations.
fweight: Used in cat... |
these are the results obtained for the square gap decomposition using the Oaxaca-Blinders method in Python:
Oaxaca-Blinder Three-fold Effects
Endowment Effect: -0.02663
Coefficient Effect: 0.19933
Interaction Effect: 0.05553
Gap: 0.22824
Oaxaca-Blinder Two-fold Effects
Unexplained Effect: 0.23207
Explained Effect: -0.0... |
I was wondering whether it is possible that a t test and a point biserial correlation can give different results (t-test shows groups differ significantly, correlation implies that variable does not increase/decrease by group).
If yes, why is that?
|
I am faced with the task, using the data of Sentinel-2 channels, to build a classifier based on time series (time series cassification), where the dependent variable is the wheat class (1) or another crop (0).
I am using R language.
For greater clarity, I will give a small example of data.
exampl=structure(list(date =... |
Suppose that I have data with dimension $(N,H,F)$, where $N$ represents the number of different datasets, $H$ is the history size and $F$ is the input size. how would you split it into a train-validation test?
Here are my thoughts, with the relevant problems for each
based on the dataset index (syntaxed as (dataset_ra... |
I see that I can get polychoric correlation coefficients using package girth.
I have following data:
y1 = [0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 1, 0, ]
y2 = [0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, ]
I use the package to get polychoric correlation matrix:
data = np.array([y1, y2])
polychoric_corr = gcm.po... |
Is it possible to calculate the weight vector anlyticaly for linear classifier? Just like we can do it for linear regression where $w_* = (X^T*X)^{-1} * X^T * y$ is the vector of weights.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.