Questions tagged [sample-weighting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Including a weighting variable in a linear regression

I'm looking at how temperature affects length. My length variable is the mean length calculated for every year, it is derived from ~10,000 data points. Not every year had the same sampling effort (e.g....
1
vote
0answers
22 views

How should one compute confidence intervals for means computed with inverse propensity weights (IPW)?

Inverse propensity weighing involves a machine learning model that takes features and outputs the predicted probability that this person is in the sample. Let $w_i$ be the inverse of the output for ...
0
votes
0answers
17 views

How does sample_weights work in Naive Bayes?

I want to use the sample_weights parameter in sklearn Naive Bayes classification. I have seen online that it can be used to balance data but I have also seen that it can be used to weight data with ...
0
votes
0answers
41 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 ...
1
vote
1answer
63 views

Weighted Survey Predicted Probabilities

I have a question about calculating prevalence using predicted probabilities from a survey weighted generalized linear model. Say my goal was to calculate the prevalence of a binary outcome using the ...
3
votes
1answer
95 views

Minimize SSE function

Consider a data set in which each target $t_n$ is associated with a weighting factor $r_n > 0$, so that the sum-of-squares error funtion becomes $$SE(w)= \frac{1}{2} \sum_{n=1}^N r_n \left(\...