1

I am looking for a dataset with binary output. I would prefer it to be something like years of experience, salary, and a binary output like a subscription to a website. This is to create a use case for logistic regression. I looked on glassdoor for the salaries of data scientists but it doesn't seem there is an available xhr, and it doesn't look like we have their years of experience neither. I tried to generate it using distributions but I wasn't convinced by the results:

from scipy.stats import poisson, truncnorm
import matplotlib.pyplot as plt

def get_truncated_normal(mean=0, sd=1, low=0, upp=10):
    return truncnorm(
        (low - mean) / sd, (upp - mean) / sd, loc=mean, scale=sd)
    
years_of_experience = poisson.rvs(mu=4, size=15)
salaries = get_truncated_normal(mean=45000, sd=5000, low=38000, upp=57000).rvs(15)
subscriptions = [random.randint(0,1) for _ in range(0,15)]
data = [[experience, salary, account] for experience, salary, account in zip(years_of_experience, salaries, subscriptions)]

Which creates:

enter image description here

Whereas I'm rather looking for something like:

enter image description here

1

The data related to the yearly Stackoverflow survey (for instance Developer Survey Results 2019) seems to fit your description, but you might need to do some data-cleaning. The data can downloaded form here: Stack Overflow Annual Developer Survey.

| improve this answer | |
0

The Irvine University has a large dataset repository which is searchable by categories, for example: univariate classification in Business area.

This is one example, about Bank Marketing: The classification goal is to predict if the client will subscribe (yes/no) a term deposit.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.