Questions tagged [weighted-data]

Datasets where different pieces of data can have different "weights", i.e. different importance.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 views

Unusual p-values after weighting

I'm still new to R and most probably this is a rookie question, but maybe some of you could help me understand what is happening. I'm analyzing some results of an experiment in which I have three ...
0
votes
0answers
6 views

Case weighted classification in Python

I'm trying to find a good method for showing whether or not some variables are statistically significant explainers of a binary (0, 1) response in Python. Catch is, I'd like to weight the data points ...
0
votes
0answers
9 views

Weighted similarity coefficient for binary data?

I would like to evaluate the accuracy of land degradation maps I have estimated using remote sensing compared against observed field land degradation maps. The maps are classified in a binary way and ...
1
vote
0answers
11 views

How can I weight ordinal observations and reduce them to one statistic? [closed]

It will be a complicated question and I try to briefly explain. I am studying on educational inequalities. The survey I use for analysis incudes ordinal variables and the education degree which ...
0
votes
0answers
26 views

Variables' weights using PCA

I have recently read a paper where the authors applied PCA to determine the weights of the variables used to calculate a composite index. In the methodology, they mentioned that for a set of $N$ ...
0
votes
0answers
14 views

K-means++ for weighted clustering

I have implemented k-means for weighted points; that is, the final clusters take into account the fact that each input point is weighted. I wanted to initialize the clusters using k-means++, and I was ...
1
vote
0answers
25 views

Are there time series models for weighted data?

Let's say I have the following time series: Weekly data spanning a few years; The dependent variable is the proportion of items that pass x. On average, that proportion is around 80%. The number of ...
0
votes
0answers
26 views

Bayesian regression learning (RVM) on weighted data (data with different importance/exposure)

I am working with an extension of the relevance vector machine (RVM) by Tipping (2001), and want to model some data which requires handling of an exposure column (different importance). Is someone ...
0
votes
0answers
19 views

How to compute weights using logistic regression

I'm not interested in creating a logistic regression model which is weighted, I'm interested in using a logistic regression model to compute the weights of a survey. It seems that, given the weights ...
0
votes
0answers
12 views

Assigning weights to a list of averages when all I have is the mean, standard deviation, and number of samples

I have some data which, essentially, gives the change in value of a particular stock option according to 1 movement in price of the underlying stock value. For example, say stock 'ABC' has 4 different ...
0
votes
0answers
30 views

How to properly calculate weighted average when the data is in form of ratio

I had a question related to calculating weighted average, on data example below given definition : Column C = Product Supply Column D = Product Demand Column E = Supply / Demand Column F = Demand ...
2
votes
0answers
123 views

Meaning of the weight argument in glmer and lmer

I have been looking into how to use the weight argument of glmer/lmer to represent "frequency" weights. I was ...
0
votes
1answer
54 views

EWMA covariance matrix number of lags

When calculating an exponentially weighted covariance matrix for t observations, formula 10.2 here: https://www.oreilly.com/library/view/analysis-of-financial/9781118017098/c10_level1_1.xhtml Uses ...
0
votes
0answers
42 views

What is the best method for standardizing/normalizing my data that I intend to weight and combine?

So to preface this - I am very much a novice with statistics having only dabbled with R and so I am not entirely sure that I even know the terms that I should be using. I am creating a fantasy ...
1
vote
0answers
22 views

Assign more importance to recent records during training

I have a large dataset with information from the last year. I have to build a classification model in order to predict if a customer will buy a product or not (binary classification). Since in the ...
1
vote
0answers
24 views

Equation for weighted mean of percentages

I am trying to get the equation for a weighted average of percentages to be normalized between 0 and 1. Am I doing it correctly? Thank you so much!
2
votes
0answers
184 views

Equation for weighted average with normalization(?)

I am trying to understand how I should denote the equation for rescaling the following 7 categories into one value. The final weighted average is 0.57, which is possible by subtracting one and ...
0
votes
0answers
47 views

Euclidean distance from zero

I am trying to create my own weights for relative work task importance, or weight. For every task, I have a value of importance, ...
1
vote
1answer
97 views

Winsorizing propensity scores

Is it kosher? Inverse propensity weights (IPW) has been shown to perform poorly when selection probabilities are small (Kang and Schafer, 2007). Are there any standard solutions to this issue?
0
votes
1answer
31 views

How to use weight variables within aggregated results, for group proportions

If I have the following data, where each row represents and individual response, how would I go about reporting the proportions of different groups? (here the groups are ...
0
votes
0answers
8 views

Evidence weighted fit to combination of model outputs

I have a set of observations that can be thought of as random samples from a 2D gaussian (with some noise added). The samples are determined by a best-fit model which has an associated evidence value. ...
0
votes
0answers
10 views

How to define a weight function for response time?

I have a repeated measurement over time and the variable of interest is user compliance. However, since users use different questionnaire length, the duration of response time is also important. I ...
0
votes
0answers
49 views

Calculating a Weighted Standard Error of the Fit for Nonlinear Regression

I have a data set of $N$ points to which I have fit an equation of $n$ parameters $\theta_{1..n}$ such that $y_i \sim f(x_i; \theta_{1..n})$. These data $(x_{1..N},y_{1..N})$ have been provided with ...
1
vote
0answers
23 views

Are probability weights “relative”, i.e. can they be rescaled and work in the same way?

I am using survey data from different countries, and I pool them together for part of the analysis. Now, weights puzzle me for two reasons: 1) some of them are below 0 (i.e. the probability of being ...
0
votes
1answer
101 views

Bayesian Statistics - How to weight a Poisson distributed response

I have a Bayesian GLM where the response that I'm interested in is count data. I want to weight the the response by the variance to account for uncertainty in the measurement. If the response was ...
0
votes
0answers
69 views

Can I adjust sample_weight in Scikit-learn for each feature in each sample separately?

My understanding is that when using sample_weight when training a classification model in Scikit-learn, I can supply different weights for each sample. Is it also possible to give a different weight ...
0
votes
1answer
398 views

How to calculate the confidence interval with weighted data?

I've done some search for similar questions, but they're not the same as what I'm trying to get. Assume that there's a server that handles requests $r$ and returns a set of items $I_{r}$ of random ...
0
votes
0answers
14 views

Help with weighting sample according to population

I am a beginner with basic knowledge of statistics - just learning. I have a doubt regarding weighting survey sample distribution to population distribution. I have to create a weighting variable that ...
0
votes
1answer
24 views

How important are the survey weights?

I run logit model with a cross-sectional dataset of Indian individuals. I am using descriptive statistics of the same dataset to justify and interpret the estimations of logit model. However, I must ...
1
vote
0answers
76 views

sklearn f1_score=weighted not matching sample_weight specification

I am trying to figure out exactly what this is doing: sklearn.metrics.f1_score(y_pred, y_test, sample_weight=[...]) Numerically it simply does not seem to be ...
1
vote
0answers
22 views

How can I aggregate the estimates for the rate of decay from different experimental runs?

I have data for a device that dispenses material and I want to use an exponential decay model in python to relate the flow rate to the mass left inside the device, in particular $flow = \beta_0 + \...
2
votes
0answers
121 views

OOB error prediction in RF if case weights are used

I have a dataset for which grossing-up factors are given. I am using these factors as case weights for a random forest (R package ranger). Until now I was using the OOB prediction error for tuning, ...
2
votes
1answer
2k views

Using instance weights in XGBoost

I want to understand whether giving weights to instances across a dataset in XGBoost using the below method makes sense. I switched to this method after trying out a few approaches that didn't fare ...
4
votes
1answer
46 views

Should I weight points in a mixed model to account for groups having different numbers of points?

My research investigates the carriage of Salmonella by raccoons captured on multiple occasions. I am interested in modelling the relationship between sampling interval (number of days between two ...
2
votes
1answer
2k views

Weighted Categorical Variable

Consider for example I have a retrospective data that contains one categorical variable Race and one other variable Weight <...
0
votes
1answer
392 views

Why does my N change when weighting cases in SPSS?

I'm stuck here while analyzing data in SPSS and I could really use some help. I'm weighting cases in my dataset, but when I run any analysis my N has changed from 189 to 176. Is this normal with ...
0
votes
1answer
805 views

On feature scaling and weighting for clustering

The issue of feature scaling and weighting for cluster formation has been widely discussed in several books and papers as well as several questions (e.g. here ). To my understanting, variable range is ...
2
votes
0answers
80 views

Combining multiple observation weights for classification

Let's say you have multiple sources of observation weights for a dataset. For example, you have a $[0,1]$ weight coming from the label's certainty ($w_c$) and another one coming from its recency ($w_t$...
0
votes
1answer
255 views

R Calculate sample weights based on two socio-demographic variables and aggregate results

After conducting a short survey, I have collected the results in the form of a dataframe. This is a reproducible version of what the actual data frame looks like. ...
2
votes
0answers
83 views

Weighted covariance with different reliability weights?

Suppose observables $X$ and $Y$ possess different reliability weights $w_{x,i}$ and $w_{y,i}$ for the possible elements $x_i\in X$ and $y_i\in Y$ respectively. Considering a sequence of consecutive ...
1
vote
1answer
186 views

Duplicated Rows in Mixed Data Type Clustering

I have a dataset which has ~200k rows and looks like the following - ...
0
votes
1answer
16 views

how to estimate prognostic core for a continuous, multinomial, and binary treatment, respectively

Quoting David Hajage and Finbarr Leacy, respectively: "Introduced by Hansen in 2008, the prognostic score (PGS) has been presented as ‘the prognostic analogue of the propensity score’ (PPS). ...
0
votes
1answer
49 views

Comparison of means from different sample sizes

I have a data set which contains avg profit and the number of samples for each data point, no more information. I'd like to compare the data points and decide which one to focus on more. However, I'm ...
0
votes
0answers
111 views

Do I replicate observations to weight by population? For regression

Note: This question may well be a duplicate, but I don't know the language to use to find it. I have searched the site and Google but haven't seen anything that I am looking for – maybe dasymetric ...
2
votes
0answers
95 views

Stochastic gradient descent (SGD) on data with weights

Mostly deep learning model training is on data with a unit weight. In this case, every mini-batch of a fixed size, say, 32, contains exactly the same total weight (32) for each update. This is the ...
1
vote
0answers
195 views

Logistic Regression: Using weights?

I am running a logistic regression model with the following data and variables: Independent variables (characteristics of a person coded as dummy) Test score (continuous variable between 0 and 1) ...
1
vote
2answers
3k views

How to set class weights for multi-class image segmentation?

I am trying to set class weights for a neural network with an imbalanced dataset. Let's say I have the following values: I have 8000 images of class A, 1100 images of class B, 400 images of class C, ...
2
votes
1answer
781 views

what is instance weight in boosting?

Hi, I am reading something about Boosting, and I had hard time understanding one of the steps in boosting - assign greater weights to those instances. What does the sentence - assign greater weights ...
1
vote
0answers
95 views

Using weighted or unweighted wPCA scores in Logistic regression model-SAS

Im working on data that I should weight the data using a weight variable that I have and I want to evaluate the association of dietary pattern and obesity. So first I run Proc factor and use the "...
0
votes
1answer
60 views

How to calculate the weighted value to give numbers? [closed]

Big picture question: How do I calculate the weight to give certain categories? Specifics: I have data for 70 counties, population in each county, and then number of sales in each county. How do I ...