5. Plot a histogram of each return (TSX and BTC separately) using 10 number of bins (experiment with the number of the bins).
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
Please note TCX and BTC are not given. So, I have taken it as generaal. You can change your array according to the main question.
import numpy as np
import matplotlib.pyplot as plt
TSX = np.array([ 4.7, 4.5, 4.9, 4. , 4.6, 4.5, 4.7, 3.3, 4.6,
3.9, 3.5,
4.2, 4. , 4.7, 3.6, 4.4, 4.5, 4.1, 4.5, 3.9, 4.8, 4. ,
4.9, 4.7, 4.3, 4.4, 4.8, 5. , 4.5, 3.5, 3.8, 3.7, 3.9,
5.1, 4.5, 4.5, 4.7, 4.4, 4.1, 4. , 4.4, 4.6, 4. , 3.3,
4.2, 4.2, 4.2, 4.3, 3. , 4.1])
BTC = np.array([ 4.7, 4.5, 4.9, 4. , 4.6, 4.5, 4.7, 3.3, 4.6, 3.9,
3.5,
4.2, 4. , 4.7, 3.6, 4.4, 4.5, 4.1, 4.5, 3.9, 4.8, 4. ,
4.9, 4.7, 4.3, 4.4, 4.8, 5. , 4.5, 3.5, 3.8, 3.7, 3.9,
5.1, 4.5, 4.5, 4.7, 4.4, 4.1, 4. , 4.4, 4.6, 4. , 3.3,
4.2, 4.2, 4.2, 4.3, 3. , 4.1])
# Compute number of data points: n_data
n_data = len(TSX)
plt.subplot(2,1,1)
# Number of bins is the square root of number of data points:
n_bins
n_bins = 10;
# Plot the histogram
plt.hist(TSX, bins=n_bins)
# Label axes
plt.xlabel('TSX')
plt.ylabel('count')
plt.subplot(2,1,2)
# Number of bins is the square root of number of data points:
n_bins
n_bins = 10;
# Plot the histogram
plt.hist(BTC, bins=n_bins)
# Label axes
plt.xlabel('BTC')
plt.ylabel('count')
# Show histogram
plt.show()

Kindly revert for any queries
Thanks.
5. Plot a histogram of each return (TSX and BTC separately) using 10 number of bins...
solve with only matlab, please. :)
random 15.8 Ifr is a normal random number with mean 0 and variance 1 (as generated by randn), it can be transformed into a random number X with mean u and standard deviation a by the relation X=ar + In an experiment, a Geiger counter is used to count the radioactive emissions of cobalt 60 over a 10-second period. After a large number of such readings are taken, the count rate is estimated to...
Use simulations to analyze the behavior of hashing with chaining using the balls-and-bins simulations. Assume being given n balls and m bins, and you are throwing n balls uniformly randomly into m bins. You need to answer the following questions for various combinations of values of n and m: After throwing n balls into m bins: 1) How many (what fraction of m) of bins were empty? (MIN,MAX and AVERAGE --- explanation below) 2) How many bins (what percentage of...
Write a program that displays a histogram to show the number
occurrences of each number in an input sequence. There should be a
text filed to accept users input numbers and button to show the
histogram. Enter your student number to generate your unique
histogram. A student with 100013456 will give a histogram like the
following one (note the text filed and button are not shown in the
following histogram, BUT is required for the application) java code
is needed...
I need to plot a histogram for estimates of Beta_0 and Beta_1
(over the 100 simulations). I know I can use the coefficients
function with the model to display these estimates for each
simulation, but how can I access them individually, or save them to
a column vector such that I can plot the histogram as needed?
Suppose we want to simulate the following linear model: Bo + BiX; + Ei where ti~ N(0,22). Assume Xi~ N(0,12), Bo = 0.5...
JavaFX
Write a program that displays a histogram to show the number
occurrences of each number in an input sequence. There should be a
text filed to accept users input numbers and button to show the
histogram. Enter your student number (9 digit number) to generate
your unique histogram. A student with ID 100013456 will give a
histogram like the following one (note the text filed and button
are not shown in the following histogram, BUT is required for the...
4. Interpreting a histogram
Interpreting a histogram Data on the number of Intemet users per 1,000 people for high-income countries (as of 2005) are summarized on the following histogram. (Data source: These data were obtained from World Resources Institute, EarthTrends searchable database.) Use the histogram to answer the questions that follow. 16 14 12 a 10 125 250 37 500 625 750 875 Internet Use per 1,000 People There are 375 and 500. high-income countries that have a number of...
Classify each histogram using the appropriate descriptions. Identify all of the descriptions that apply for each histogram. Distribution of doctor's office wait times, sample size-32 Distribution of cholesterol levels for adults sample size 30 Answer Bank 0 120 140 160 180 200 220 240 260 5 10 15 20 25 30 35 40 Wait time (minutes) skewed lefttrimodal unimodalsymmetric bimodal skewed right Cholesterol (mg/dL.) Distribution of exercise time per gym visit sample size -130 Price distribution of college textbook sample...
(c) Using two-stage synthesis, separately implement the following function first using a minimum number of NAND gates only, then NOR gates only. (10%) Y = ĀC + BC
5. (5 points) A hash table using probing currently has a total of 128 bins inside to hold items. Due to the nature of this specific data set, all items produce a hashcode with the common factor of 8. If the hash table simply performs a modulous of the hash code by 128 to determine the proper item placement, what is the maximum number of items the table can hold without rehashing?
6. A variable C1 has the distribution showing in the following histogram. Find the mean, 5-number summary, lower and upper boundaries, outliers. Histogram of C1 1A 12 10 13 12 12 4 0 1 62 64 66 68 70 72 61