Analysis of Flower Cost and Number of Flowers
VerifiedAdded on 2023/01/19
|10
|1176
|83
AI Summary
This analysis explores the correlation between the cost of flowers and the number of flowers in a shop. It includes calculations for mean, median, mode, standard deviation, and quartiles. The results show that there is no significant correlation between the cost of flowers and the number of flowers in the shop.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Amount
spent
Lower
B
Mid-
point x f Cf x.f μ x-μ (x-μ)^2 f. ((x-μ)^2)
0-10
-0.5
5 5 5 25 50.3
-
45.3
2052.0
9 10260.45
10-20
9.5
15 7 12 105 50.3
-
35.3
1246.0
9 8722.63
20-30
19.5
25 10 22 250 50.3
-
25.3 640.09 6400.9
30-40
29.5
35 12 34 420 50.3
-
15.3 234.09 2809.08
40-50 39.5 45 14 48 630 50.3 -5.3 28.09 393.26
50-60 49.5 55 15 63 825 50.3 4.7 22.09 331.35
60-70 59.5 65 14 77 910 50.3 14.7 216.09 3025.26
70-80 69.5 75 13 90 975 50.3 24.7 610.09 7931.17
80-90
79.5
85 6 96 510 50.3 34.7
1204.0
9 7224.54
90-100
89.5
95 4 100 380 50.3 44.7
1998.0
9 7992.36
∑f=100
∑x.f=50
30
∑x. f((x-
μ)^2)=55091
Question 1
Part a.
Mean,
μ=∑ x . f /∑ f
μ= 5030
100 =50.30
Median,
is the number in the middle
Therefore, medium 0.5(100) =50
spent
Lower
B
Mid-
point x f Cf x.f μ x-μ (x-μ)^2 f. ((x-μ)^2)
0-10
-0.5
5 5 5 25 50.3
-
45.3
2052.0
9 10260.45
10-20
9.5
15 7 12 105 50.3
-
35.3
1246.0
9 8722.63
20-30
19.5
25 10 22 250 50.3
-
25.3 640.09 6400.9
30-40
29.5
35 12 34 420 50.3
-
15.3 234.09 2809.08
40-50 39.5 45 14 48 630 50.3 -5.3 28.09 393.26
50-60 49.5 55 15 63 825 50.3 4.7 22.09 331.35
60-70 59.5 65 14 77 910 50.3 14.7 216.09 3025.26
70-80 69.5 75 13 90 975 50.3 24.7 610.09 7931.17
80-90
79.5
85 6 96 510 50.3 34.7
1204.0
9 7224.54
90-100
89.5
95 4 100 380 50.3 44.7
1998.0
9 7992.36
∑f=100
∑x.f=50
30
∑x. f((x-
μ)^2)=55091
Question 1
Part a.
Mean,
μ=∑ x . f /∑ f
μ= 5030
100 =50.30
Median,
is the number in the middle
Therefore, medium 0.5(100) =50
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Bur 50 falls within the 50-60 class and the value is 63.
Mode,
Occurs where the frequency is highest.
And from our table, we can see that the highest frequency is 15.
Now the modal class is 50-60
In conclusion, the average cost spent on the flowers is $ 50.30, median
number of flower ranges is 63 and the modal money spent is between $50 to
$60.
From the data above, Elena’s sales and expenditure are normally
distributed hence she experiences no lost at the moment.
Part b
Standard deviation
s=√ ¿
s=√ (55091
99 )
s=23.5897
Part c
We will use the formula,
Qk=LB−¿]
Mode,
Occurs where the frequency is highest.
And from our table, we can see that the highest frequency is 15.
Now the modal class is 50-60
In conclusion, the average cost spent on the flowers is $ 50.30, median
number of flower ranges is 63 and the modal money spent is between $50 to
$60.
From the data above, Elena’s sales and expenditure are normally
distributed hence she experiences no lost at the moment.
Part b
Standard deviation
s=√ ¿
s=√ (55091
99 )
s=23.5897
Part c
We will use the formula,
Qk=LB−¿]
Where Qk is the quartile you are computing
Cfk=the cumulative frequency before the kth number.
fQk=frequency where the Qk falls.
1st Quartile.
Q1=25/100*100=25
Given N=100, LB=29.5, Cfb=22, fQ1=12, i=10
Q1=29.5+[(25-35)/12]*10=29.5+2.5=32.0
Therefore, the Q1= 32.0
3rd Quartile.
Q3=75/100*100=75
Given N=100, LB=59.5, Cfb=63 , fQ3=14, i=10
Q3=59.5+ [(75-63)/14)*10=59.5+8.57=68.07
Therefore, Q3=68.07
The lower quartile shows the least number of customers Elena can
serve in a day while the upper quartile shows the maximum number of
customers that Elena serves in a busy day.
Question 2
Loan Source Lss than $ 20000 $20000-$60000
More than
$60,000 Total
Building Society 40 65 45 150
Cfk=the cumulative frequency before the kth number.
fQk=frequency where the Qk falls.
1st Quartile.
Q1=25/100*100=25
Given N=100, LB=29.5, Cfb=22, fQ1=12, i=10
Q1=29.5+[(25-35)/12]*10=29.5+2.5=32.0
Therefore, the Q1= 32.0
3rd Quartile.
Q3=75/100*100=75
Given N=100, LB=59.5, Cfb=63 , fQ3=14, i=10
Q3=59.5+ [(75-63)/14)*10=59.5+8.57=68.07
Therefore, Q3=68.07
The lower quartile shows the least number of customers Elena can
serve in a day while the upper quartile shows the maximum number of
customers that Elena serves in a busy day.
Question 2
Loan Source Lss than $ 20000 $20000-$60000
More than
$60,000 Total
Building Society 40 65 45 150
Banks 26 33 5 64
Other 15 8 3 26
Total 81 106 53 240
We will start by defining our Null and Alternative hypothesis
Ho: For any loan issued to a client, the size of the loan given is not
related to the source of the loan.
Ha: For any loan issued to a client, the size of the loan given and the
loan source are related.
We will use the α=0.05 which is the 5% percent confidence level.
Now calculating the degrees of freedom using the above provided
table.
Df=(row-1)(column-1)
Df=(3-1)(3-1)=(2)(2)=4
Stating our decision rule;
We check from the chi-square table using the values df=4, a=0.05.
If the computed X^2 is greater than 9.4877, then we will reject the Ho
unless otherwise.
Let us now calculate the test statistics
x2=Σ (fo−fe)2
fe
Other 15 8 3 26
Total 81 106 53 240
We will start by defining our Null and Alternative hypothesis
Ho: For any loan issued to a client, the size of the loan given is not
related to the source of the loan.
Ha: For any loan issued to a client, the size of the loan given and the
loan source are related.
We will use the α=0.05 which is the 5% percent confidence level.
Now calculating the degrees of freedom using the above provided
table.
Df=(row-1)(column-1)
Df=(3-1)(3-1)=(2)(2)=4
Stating our decision rule;
We check from the chi-square table using the values df=4, a=0.05.
If the computed X^2 is greater than 9.4877, then we will reject the Ho
unless otherwise.
Let us now calculate the test statistics
x2=Σ (fo−fe)2
fe
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Where
x^2= is the chi-square
fo=observable values
fe=expected values
fe= fcfr
n
To calculate these values effectively; we will generate another
table for expected values.
Expected <$20000 $20000-$60000 >$60000
Building Source 50.63 66.25 33.13
Banks 21.60 28.27 14.13
Other 8.78 11.48 5.74
x2=(40−50.63)2
50.63 +(26−21.60)2
21.60 +(15−8.78)2
8.78 + (65−66.25)2
66.25 + (33−28.27)2
28.27 + (8−11.48)2
11.48 + (45−33.13)2
33.13
x2=2.2318+0.8963+4.4064+0.02358+ 0.7914+1.0549+4.2528+ 5.8993+1.3079
x2=19.5565
Results
Because our chi-square is 19.5565 which is greater than, 9.4877 we
will REJECT the NULL hypothesis.
Conclusion
x^2= is the chi-square
fo=observable values
fe=expected values
fe= fcfr
n
To calculate these values effectively; we will generate another
table for expected values.
Expected <$20000 $20000-$60000 >$60000
Building Source 50.63 66.25 33.13
Banks 21.60 28.27 14.13
Other 8.78 11.48 5.74
x2=(40−50.63)2
50.63 +(26−21.60)2
21.60 +(15−8.78)2
8.78 + (65−66.25)2
66.25 + (33−28.27)2
28.27 + (8−11.48)2
11.48 + (45−33.13)2
33.13
x2=2.2318+0.8963+4.4064+0.02358+ 0.7914+1.0549+4.2528+ 5.8993+1.3079
x2=19.5565
Results
Because our chi-square is 19.5565 which is greater than, 9.4877 we
will REJECT the NULL hypothesis.
Conclusion
For any loan issued to a client, the size of the loan given and
the loan source are related.
Problem 3
Date DJIA x S&P y x.y x^2 y^2
11-Feb-
09 7939.53 833.74 6619503.74 63036136.62 695122.3876
18-Feb-
09 7555.63 788.42 5957009.8 57087544.7 621606.0964
25-Feb-
09 7270.89 764.9 5561503.76 52865841.39 585072.01
3-Mar-
09 6726.02 696.33 4683529.51 45239345.04 484875.4689
10-Mar-
09 6926.49 719.6 4984302.2 47976263.72 517824.16
17-Mar-
09 7395.7 778.12 5754742.08 54696378.49 605470.7344
24-Mar-
09 7660.21 806.12 6175048.49 58678817.24 649829.4544
31-Mar-
09 7608.92 797.87 6070929 57895663.57 636596.5369
7-Mar-
09 7789.56 815.55 6352775.66 60677244.99 665121.8025
14-Apr-
09 7920.18 841.5 6664831.47 62729251.23 708122.25
∑x=74793.
13
∑y=7842.
15
∑xy=5882417
5.7
∑x^2=560882
487
∑y^2=6169640.
901
Part a
Let the regression line be y=a +bx
Where b= slope of the regression line
A=y-intercept
Y=the predicted y value for any given x value
And
the loan source are related.
Problem 3
Date DJIA x S&P y x.y x^2 y^2
11-Feb-
09 7939.53 833.74 6619503.74 63036136.62 695122.3876
18-Feb-
09 7555.63 788.42 5957009.8 57087544.7 621606.0964
25-Feb-
09 7270.89 764.9 5561503.76 52865841.39 585072.01
3-Mar-
09 6726.02 696.33 4683529.51 45239345.04 484875.4689
10-Mar-
09 6926.49 719.6 4984302.2 47976263.72 517824.16
17-Mar-
09 7395.7 778.12 5754742.08 54696378.49 605470.7344
24-Mar-
09 7660.21 806.12 6175048.49 58678817.24 649829.4544
31-Mar-
09 7608.92 797.87 6070929 57895663.57 636596.5369
7-Mar-
09 7789.56 815.55 6352775.66 60677244.99 665121.8025
14-Apr-
09 7920.18 841.5 6664831.47 62729251.23 708122.25
∑x=74793.
13
∑y=7842.
15
∑xy=5882417
5.7
∑x^2=560882
487
∑y^2=6169640.
901
Part a
Let the regression line be y=a +bx
Where b= slope of the regression line
A=y-intercept
Y=the predicted y value for any given x value
And
b= n Σ xy−Σ x Σ y
n ( Σ x2 ) −( Σx)2
n=10
Now inserting these values in the b formula above
b=10 ( 58824175.7 )− ( 74793.13 ) (7842.15 )
10 ( 560882487 )− ( 74793.13 )2
b= 1702812.73
14812574.77
b=0.114957241
Now computing for the value of a, we use the formula
b= y +bx
a=( Σ y
n )−b ( Σ x
n )
a=( 7842.15
10 )−b( 74793.13
10 )
a= ( 784.215 )−b(7479.313)
a= ( 784.215 ) −0.114957241(7479.313)
a=−75.58619
y= (−75.58619 )+ ( 0.114957241 ) x
Part b
Given the values of x=8000 b=0.114957241∧a=−75.58619
n ( Σ x2 ) −( Σx)2
n=10
Now inserting these values in the b formula above
b=10 ( 58824175.7 )− ( 74793.13 ) (7842.15 )
10 ( 560882487 )− ( 74793.13 )2
b= 1702812.73
14812574.77
b=0.114957241
Now computing for the value of a, we use the formula
b= y +bx
a=( Σ y
n )−b ( Σ x
n )
a=( 7842.15
10 )−b( 74793.13
10 )
a= ( 784.215 )−b(7479.313)
a= ( 784.215 ) −0.114957241(7479.313)
a=−75.58619
y= (−75.58619 )+ ( 0.114957241 ) x
Part b
Given the values of x=8000 b=0.114957241∧a=−75.58619
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Uisng the formula y=a+ bx to estimate the values of y
y= (−75.58619 )+ ( 0.114957241 ) 8000
y=844.07
Therefore, the closing price for S&P500 is 844.07
Part c
Using the correlation formula below, we would plug in the values of the given
variables to compute r
r = n ∑ xy−∑ x ∑ y
√ [ n ( ∑ x2 )− ( ∑x ) 2 ] [n ( ∑ y2 ) − ( ∑ y ) 2 ]
r = 10(58824175.7)−(74793.13)(7842.15)
√ [ 10 ( 560882487 )− (74793.13 )2 ] [10 ( 6169640.901 )− ( 7842.15 )2 ]
r = 1,702,812.571
√ [ 5,608,824,870−5,594,012,295 ] [616964.0901−61,499,316.62]
r =1,702,812.571
√−3.4513E15
Introducing the complex identity i= √−1
r = 1,702,812.571
√3.4513E15∗ √−i
r =0.028985∗−i
r =−0.028985 i
The value of r can only be computed ∈a complex form since the denominator is a negative gives a negative va
y= (−75.58619 )+ ( 0.114957241 ) 8000
y=844.07
Therefore, the closing price for S&P500 is 844.07
Part c
Using the correlation formula below, we would plug in the values of the given
variables to compute r
r = n ∑ xy−∑ x ∑ y
√ [ n ( ∑ x2 )− ( ∑x ) 2 ] [n ( ∑ y2 ) − ( ∑ y ) 2 ]
r = 10(58824175.7)−(74793.13)(7842.15)
√ [ 10 ( 560882487 )− (74793.13 )2 ] [10 ( 6169640.901 )− ( 7842.15 )2 ]
r = 1,702,812.571
√ [ 5,608,824,870−5,594,012,295 ] [616964.0901−61,499,316.62]
r =1,702,812.571
√−3.4513E15
Introducing the complex identity i= √−1
r = 1,702,812.571
√3.4513E15∗ √−i
r =0.028985∗−i
r =−0.028985 i
The value of r can only be computed ∈a complex form since the denominator is a negative gives a negative va
This means that there is insignificant or no correlation between the cost of
flowers and the number of flowers present in the shop.
flowers and the number of flowers present in the shop.
1 out of 10
Your All-in-One AI-Powered Toolkit for Academic Success.
+13062052269
info@desklib.com
Available 24*7 on WhatsApp / Email
Unlock your academic potential
© 2024 | Zucol Services PVT LTD | All rights reserved.