Calculate the pearsons coefficient

Assignment Help Computer Engineering
Reference no: EM132095784

Please help with this code (visual basic 2013)

XYZ Corp's marketing department has recently launched a new campaign on their primary product: a diaper. The sales levels are always a bit fluctuating, so the current increase may or may not be related to the campaign.
In order to check this, you are given the task of writing a simple program to do some statistical checks. The program should

First, get inputs for two time series X and Y from the user. Here X represents the weekly amount of commercials from the campaign, normalized into an integer in [0,100].

And Y represents the weekly sales, again normalized into an integer in [0,100]. So the week with X=100 has the most commercials, and X=0 means no commercials. Similarly the week with Y=0 means no sales and Y=100 means maximum sales.

Then calculate the Pearson's correlation coefficient between X and Y, assuming Y is a function of X. You can use the formulations in any statistics textbook or on WIkipedia.

Then calculate the Pearson's coefficient again, now assuming that commercials need 1 week to create an effect, therefore shifting the values by 1 week.

Show the two correlation coefficients to the user.

For this program you need to use both loops and arrays.

First develop your program and then test it using any dataset you like. Your Instructor will have his own dataset to test your program.

Reference no: EM132095784

Questions Cloud

What is the arrow maximum height above launch point : An arrow is shot from a bow at an angle of 40° from the horizontal at a speed of 24.0 m/s. Ignoring air resistance, what is the arrow's maximum height above.
Create a database for the mentioned requirements : Contact forms and order forms might be the most popular form types, but because you build your own forms, you can make any kind of form out there.
Describe the five types of galaxies : In a 2 to 3 paragraph essay, describe the five types of galaxies within Hubble classification system. Select one of the galaxy types.
What is the magnitude of the force : A 200-N sled of slides down a frictionless hillside that rises at 37A above the horizontal. What is the magnitude of the force that the hill exerts.
Calculate the pearsons coefficient : Calculate the Pearson's coefficient again, now assuming that commercials need 1 week to create an effect, therefore shifting the values.
Determine equation of motion and solve equation of motion : Because of symmetry both the top ball and three base balls are in one dimensional motion. Form a dimensionless lagrangian with two degrees of freedom.
What is the value of the inventory at june : On June 12, it purchased 20 units at $14 per unit. On June 17, it sold 30 units. Using FIFO, What is the value of the inventory at June 17 after the sale
Design the circuit convert bcd into binary code : Design the circuit convert BCD into binary code and save at register. If input range is over 99999 or less than -9999, then set overflow on D FF or reset.
Determine the spacing between two successive dark lines : Two coherent plane waves with wave vectors ~k1 = k[cos 30?ˆi + sin 30?ˆj]and ~k1 = k[sin 30?ˆi + cos 30?ˆj] with k = 1.2 × 10-6m-1 are incident ona screen.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd