Question

You have the following data of wind speed (in mph) in Ithaca, NY at 3 pm...

  1. You have the following data of wind speed (in mph) in Ithaca, NY at 3 pm each day:

                  10, 7, 3, 9, 7, 9, 12, 13, 1, 12.    

Evaluate whether this data is a better match for the normal or lognormal distribution using the Chi Square test, the Maximum Likelyhood test, and the Kalmogorov-Smirnoff test.  Use the winning distribution to predict the probability of getting wind speeds over 15 mph.   It is recommended you use R for these calculations, but show what you are doing in your hwk submission.

USING R studio

0 0
Add a comment Improve this question Transcribed image text
Answer #1

install.packages("EnvStats")
library(EnvStats)
x=c(10,7,3,9,7,9,12,13,1,12)

############# chi-square test (for normal) #########################

R code is as follows:

gofTest(x,distribution="norm",est.arg.list=list(method="mle"),test="chisq")


##################And the output is:#################


Results of Goodness-of-Fit Test
-------------------------------

Test Method: Chi-square GOF

Hypothesized Distribution: Normal

Estimated Parameter(s): mean = 8.300000
sd = 3.716181

Estimation Method: mle/mme

Data: x

Sample Size: 10

Test Statistic: Chi-square = 3.2

Test Statistic Parameter: df = 3

P-value: 0.361805

Alternative Hypothesis: True cdf does not equal the
Normal Distribution.
Warning message:
In chisqGofTest(x = c(10, 7, 3, 9, 7, 9, 12, 13, 1, 12), n.classes = NULL, :
Expected counts < 5. Chi-squared approximation may not
be appropriate.

############# KS- test (for normal) #########################

R code is as follows:

gofTest(x,distribution="norm",est.arg.list=list(method="mle"),test="ks")


##################And the output is:#################


Results of Goodness-of-Fit Test
-------------------------------

Test Method: Kolmogorov-Smirnov GOF

Hypothesized Distribution: Normal

Estimated Parameter(s): mean = 8.300000
sd = 3.716181

Estimation Method: mle/mme

Data: x

Sample Size: 10

Test Statistic: ks = 0.1747049

Test Statistic Parameter: n = 10

P-value: 0.9203193

Alternative Hypothesis: True cdf does not equal the
Normal Distribution.
Warning messages:
1: In ksGofTest(x = c(10, 7, 3, 9, 7, 9, 12, 13, 1, 12), alternative = "two.sided", :
The standard Kolmogorov-Smirnov test is very conservative (Type I error smaller than assumed; high Type II error) for testing departures from the Normal distribution when you have to estimate the distribution parameters.


2: In ks.test(x = c(10, 7, 3, 9, 7, 9, 12, 13, 1, 12), y = "pnorm", :
ties should not be present for the Kolmogorov-Smirnov test

############# chi-square test (for lognormal) #########################

R code is as follows:

gofTest(x,distribution="lnorm",est.arg.list=list(method="mle"),test="chisq")


##################And the output is:#################

Results of Goodness-of-Fit Test
-------------------------------

Test Method: Chi-square GOF

Hypothesized Distribution: Lognormal

Estimated Parameter(s): meanlog = 1.9222229
sdlog = 0.7560852

Estimation Method: mle/mme

Data: x

Sample Size: 10

Test Statistic: Chi-square = 11.6

Test Statistic Parameter: df = 3

P-value: 0.008886889

Alternative Hypothesis: True cdf does not equal the
Lognormal Distribution.
Warning message:
In chisqGofTest(x = c(10, 7, 3, 9, 7, 9, 12, 13, 1, 12), n.classes = NULL, :
Expected counts < 5. Chi-squared approximation may not
be appropriate.


############# KS- test (for lognormal) #########################

R code is as follows:

gofTest(x,distribution="lnorm",est.arg.list=list(method="mle"),test="ks")


##################And the output is:#################

Results of Goodness-of-Fit Test
-------------------------------

Test Method: Kolmogorov-Smirnov GOF

Hypothesized Distribution: Lognormal

Estimated Parameter(s): meanlog = 1.9222229
sdlog = 0.7560852

Estimation Method: mle/mme

Data: x

Sample Size: 10

Test Statistic: ks = 0.3124963

Test Statistic Parameter: n = 10

P-value: 0.2828932

Alternative Hypothesis: True cdf does not equal the
Lognormal Distribution.
Warning messages:
1: In ksGofTest(x = c(10, 7, 3, 9, 7, 9, 12, 13, 1, 12), alternative = "two.sided", :
The standard Kolmogorov-Smirnov test is very conservative (Type I error smaller than assumed; high Type II error) for testing departures from the Lognormal distribution when you have to estimate the distribution parameters.


2: In ks.test(x = c(10, 7, 3, 9, 7, 9, 12, 13, 1, 12), y = "plnorm", :
ties should not be present for the Kolmogorov-Smirnov test


From p-values of output we conclude that the data is good fit to normal distribtion
with parameter mean= 8.3 and S.D=3.716181

Now to probability of wind speed over 15 mph is given by

1-pnorm(15,8.3,3.716181)


Output is : 0.03569


Add a comment
Know the answer?
Add Answer to:
You have the following data of wind speed (in mph) in Ithaca, NY at 3 pm...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem 1) At Al-Ummari in the East of Jordan the following wind speed vs. hours per year data we...

    Problem 1) At Al-Ummari in the East of Jordan the following wind speed vs. hours per year data were registered by a cup anemometer 54 | 67 | 7-t | t-9 |9-10 | 10- 12-113-114-113-116- 760 bours per year As an expert in wind energy, you are asked to evaluate the site potential for the exploitation of wind energy. To do that you need to do (among other things) the following: a draw the probability density function of the wind...

  • Example (H.W): You have the following data: 8 6 11 14 10 11 9 7 2...

    Example (H.W): You have the following data: 8 6 11 14 10 11 9 7 2 8 9 5 5 5 12 7 8 4 17 8 12 7 8 8 7 10 8 6 9 9 11 16 2 7 4 8 4 4 5 5 9 9 6 6 7 7 9 5 4 5 14 2 9 0 6 1 1 12 11 4 1. Construct a frequency distribution for these data. 2. Develop a relative frequency...

  • Example (H.W): You have the following data: 8 6 11 14 10 11 9 7 2...

    Example (H.W): You have the following data: 8 6 11 14 10 11 9 7 2 8 9 5 5 5 12 7 8 4 17 8 12 7 8 8 7 10 8 6 9 9 11 16 2 7 4 8 4 4 5 5 9 9 6 6 7 7 9 5 4 5 14 2 9 0 6 1 1 12 11 4 1. Construct a frequency distribution for these data. 2. Develop a relative frequency...

  • Assignment 3 Winter 2020 You will have a chance to analyze taxic response data using observational...

    Assignment 3 Winter 2020 You will have a chance to analyze taxic response data using observational data from Planeria. You will use Pearson's chi square test which allows you to determine whether your planario are showing a taxic response to environmental variables. Pearson's chi-squared test is a statistical test applied to sets of categorical data to evaluate how likely it is that any observed difference between the sets arose by chance. It is the most widely used of many chi-squared...

  • Use Chi-Square Goodness of Fit Test, and please SHOW ALL WORK! Using a calculator is fine, but please identify the steps you used in the calculator so I can learn!!! 0 The following data measures co...

    Use Chi-Square Goodness of Fit Test, and please SHOW ALL WORK! Using a calculator is fine, but please identify the steps you used in the calculator so I can learn!!! 0 The following data measures concentration of arsenic in drinking water to 10 communities around Phoenix and 10 rural communities in Arizona. Draw QQ plot for each of them. Are they taken from approximately normal data? Phoenix: 3, 7, 25, 10, 15, 6, 12, 25, 15, 7 Arizona: 48, 21,...

  • Week 6 Project Instructions Final Project For this assignment, use data from W1 Project Suppose you...

    Week 6 Project Instructions Final Project For this assignment, use data from W1 Project Suppose you have information that the average stress score of students in online universities is 13.15 using Minitab compute a one-sample test to find out whether the stress scores reported by your sample are significantly different fro the population of online students. Report you r analyses in APA format and write an APA-formatted interpretation of your results for each test Move your output into a 1-page...

  • Data:    x   Frequency    2 or less   6    3   27    4   29   ...

    Data:    x   Frequency    2 or less   6    3   27    4   29    5   54    6   79    7   71    8   74    9    53    10    36    11    28    12    20    13    11    14 or more   12 Total       500 Based on the sample data in the frequency distribution shown to the right, conduct a test to determine whether the population from which the sample...

  • Unit 6 Lesson 3 Classwork (Adapted from Math Vision Project) Data Distribution A lot of information...

    Unit 6 Lesson 3 Classwork (Adapted from Math Vision Project) Data Distribution A lot of information can be obtained from looking at data plots and their distributions. It is important when describing data that we use context to communicate the shape, center, and spread. Shape and spread: Modes: uniform (evenly spread- no obvious mode), unimodal (one main peak), bimodal (two main peaks), or multimodal (multiple locations where the data is relatively higher than others). Skewed distribution: when most data is...

  • This course is actually Quantitative Methods and Analysis In Unit 2, you have learned about three...

    This course is actually Quantitative Methods and Analysis In Unit 2, you have learned about three different types of distributions: Normal, binomial, and Poisson. You can take data that you collect and plot it out onto graphs to see a visual representation of the data. By simply looking at data on a graph, you can tell a lot about how related your observed data are and if they fit into a normal distribution. For this submission, you will be given...

  • Verizon LTE 4:35 PM © 33% Wimy Mugs 10 11 20 11 1847 09 1903 10...

    Verizon LTE 4:35 PM © 33% Wimy Mugs 10 11 20 11 1847 09 1903 10 1857 11 18 10 1944 11 1821 4 2577 Z 2476 7 1954 10 1917 9 1761 9 1709 1901 2288 2072 S 2411 4 10 6 R 2 3 1993 2053 1979 2048 1786 Using Excel<data data analysis Regression Regression Analysis 0738 Sid Fire 2.301 2 ther War Wies ANOVA F Regresi 17.0923 Residual 14.8720 SIS 1 178.0923 31.10 26 5.7253 ரேலm uup...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT