| Employee Number | Age | Salary | Degree | Gender |
| 1 | 32 | $98,000 | None | Female |
| 2 | 35 | $121,000 | Bachelors | Female |
| 3 | 48 | $125,000 | Masters | Male |
| 4 | 40 | $141,000 | Masters | Male |
| 5 | 43 | $152,000 | Masters | Male |
Create a histogram between degree and salary.
Answer:
| Salary | Degree |
| $98,000 | None |
| $121,000 | Bachelors |
| $125,000 | Masters |
| $141,000 | Masters |
| $152,000 | Masters |
For above data histogram is as follows.

To create a histogram between degree and salary, you need to first organize the data and then plot the histogram. Since the data is given in a tabular format, we'll use Python with the matplotlib library to create the histogram.
Assuming you have the data in a CSV file named "employee_data.csv", you can use the following Python code to create the histogram:
pythonCopy codeimport pandas as pdimport matplotlib.pyplot as plt# Read the data from the CSV filedata = pd.read_csv("employee_data.csv", delimiter="\t")# Create a dictionary to map degree to its respective salariesdegree_salary = {}for index, row in data.iterrows():
degree = row['Degree']
salary = int(row['Salary'].replace("$", "").replace(",", "")) if degree in degree_salary:
degree_salary[degree].append(salary) else:
degree_salary[degree] = [salary]# Create a list of salaries for each degreebachelors_salaries = degree_salary.get('Bachelors', [])
masters_salaries = degree_salary.get('Masters', [])
none_salaries = degree_salary.get('None', [])# Create the histogramplt.figure(figsize=(10, 6))
plt.hist([bachelors_salaries, masters_salaries, none_salaries], bins=10, alpha=0.7, label=['Bachelors', 'Masters', 'None'])
plt.xlabel("Salary")
plt.ylabel("Frequency")
plt.title("Histogram of Salary by Degree")
plt.legend()
plt.grid(True)
plt.show()Make sure you have the required libraries installed (pandas and matplotlib) using pip if you haven't already.
This code will create a histogram with three bars representing the salary distribution for employees with Bachelors, Masters, and None degrees. The x-axis represents the salary, and the y-axis represents the frequency of employees in each salary range for each degree category.
Employee Number Age Salary Degree Gender 1 32 $98,000 None Female 2 35 $121,000 Bachelors Female...
Responses to mean number of hours a college student works per week S/N Response_id Age Gender Employment Status Work Hours 1 164405 37 Female Part Time 10 2 164417 21 Male Part Time 10 3 164419 19 Female Part Time 35 4 164430 19 Female Part Time 30 5 164457 34 Female Unemployed 0 6 164545 20 Female Part Time 19 7 164573 23 Female Full Time 36 8 164609 18 Female Part Time 13 9 164685 19 Female Unemployed...
The research team would like to estimate the average gender difference in age. Compute a 90% estimate and confidence interval for the difference in the average age of Female and Male employees. What is the margin of error of the confidence interval ? (Use 3 decimals) Employee Number1 Annual Salary Gender Age (years) Experience (years) Training Level 1 $ 32,368 F 42 3 B 2 $ 53,174 M 54 10 B 3 $ 52,722 M 47 10 A 4 $ 53,423 M 47 1...
Employee Years Employed Salary 1 27 $65,487 2 20 $46,184 3 0 $32,782 4 12 $54,899 5 7 $34,869 6 8 $35,487 7 5 $26,548 8 15 $32,920 9 5 $29,548 10 6 $34,231 11 0 $23,654 12 9 $39,331 13 6 $36,512 14 3 $35,467 15 25 $68,425 16 9 $35,468 17 4 $36,578 18 18 $39,828 19 6 $36,487 20 19 $37,548 21 3 $31,528 22 5 $34,632 23 14 $46,211 24 2 $29,876 25 6 $43,674 26...
Record Number: 81-50-77 Age: 32 Gender: Male Length of Stay: 2 Days Service Type: Inpatient Discharge Status: To Home Diagnosis/Procedure: Foreign Body Left Ankle DISCHARGE SUMMARY PATIENT: PATRICK INPATIENT RECORD NUMBER: 81-50-77 ADMITTED: 10-15-XX DISCHARGED: 10-17-XX PHYSICIAN: DR. ALEX, M.D. DISCHARGE DIAGNOSIS: Healing fracture left ankle with retained foreign body implant. PROCEDURE(S): Removal of foreign body implant from left ankle (K-wire and screw). HISTORY OF THE PRESENT ILLNESS: This 32-year-old male patient is admitted for removal of hardware from his...
Homework Case 1 Statistics - Please explain and show how to create graphs and charts. Pelican Stores a division of National Clothing, is a chain of women's apparel store operating throughout the country.The chain recently ran a promotion in which discount coupons were sent to customers of othe National Clothing stores. Data collected for a sample of 100 in-store credit card transactions at Pelican Stores during one day while the promotion was running are contained in the file name Pelican...
Health Record Face Sheet Record Number: 70-50-77 Age: 53 Gender: Male Length of Stay: 2 Days Service Type: INPATIENT Discharge Status: To Home Diagnosis/Procedure: Idiopathic Dilated Cardiomyopathy DISCHARGE SUMMARY PATIENT NAME: HUGH ACUTE ADMISSION DATE: 06-23-XX DISCHARGE DATE: 06-25-XX DISCHARGE DIAGNOSIS: 1. Idiopathic dilated cardiomyopathy, uncertain etiology. 2. Left bundle branch block. 3. Normal coronary arteries and normal hemodynamics. PROCEDURES: Cardiac catheterization. HISTORY OF PRESENT ILLNESS: The patient is a 53-year-old male admitted for evaluation of grossly abnormal Thallium test....
2. Using the data set of the Health Exam Results, conduct the following analysis between the variables of weight (WT) and Body Mass Index (BMI). Number the data set from 1 to 40, and select the following individuals: . Set 1 (Malo): 1, 5, 10, 13, 15, 18, 19, 24, 29, 31, 32, 33 .Set 2 (Fomalo): 4, 9, 15, 16, 17, 22, 23, 29, 33, 37, 38, 40 Draw a scatter diagram of the sample of 12 data set...
Please help me answer theses practice questions
QUESTION 2 Which of the following can a country implement to protect local industries (e.g. bicycles) according to the video on the deceptive promise of free trade? Border walls local training programs to strengthen local industries protectionist policies such as tarrifs creating a high minimum wage locally governments can't do anything QUESTION 3 Which of the following European countries has a trade surpluse with the US as well as most other European countries...
A. Issues [1] In addition to damages for one year's notice period, can a trial judge award significant damages for the mere fact of an employee's dismissal, or for the stigma that that dismissal brings? Or for the employer thereafter competing with the ex-employee for the clients, before the ex-employee has got a new job? B. Basic Facts [2] This is an appeal from 2009 ABQB 591 (CanLII), 473 A.R. 254. [3] Usually a judgment recites facts before law. But...
Comprehensive Income Tax Course: Module 1 4. Randy turned 16 last year and had his first summer job. Even though his parents are claiming him as a dependent he wants to file a return in order to get his refund. He receives his W-2 and decides he can do his own return using form 1040-EZ. Which of the following information is not found on a Form W-2? a) The taxpayer’s Social Security number b) The taxpayer’s wages, tips and other...