Reference no: EM132212345
Write an R script that does the following:
1) Loads the given data into a list.
2) Converts the data from a list into a vector. (use the unlist function)
3) Counts the number of heads in the first 10 elements of the list, the first 50, and the entire 150. Keep these three values in three separate variables.
4) Defines a function for the likelihood P(data|p). This should accept a list containing the sample, and the parameter p. Or, you can define a three-parameter function that takes the number of successes, the total number of coin flips, and p. Either way is fine. In the latter case, you will call the function with the results from part 3.
5) Plots the output of the function you defined in 4) with a. the first 10 elements of the data, b. the first 50 and c. the first 150, with p ranging from 0 to 1. (x-axis is p, y axis is the output). So you should have three plots.
Write a python program that implements a metar class
: Write a Python program that implements a Metar class containing a special method that allows you to print out the text of an undecoded METAR.
|
Write a query to display the first name and last name
: Write a query to display the first name, last name, street, city, state, and zip code of any customer who purchased a Foresters Best brand top coat.
|
How much time has elapsed between the newest and oldest file
: Display in days, hours, minutes, and seconds. Use datetime.timediff for each of the three folders.
|
Give the worst case time complexity in terms of n
: Write a recursive and efficient algorithm that counts the number of nodes in a given binary tree at height h = 1, and prints the final count.
|
Counts the number of heads in the first ten elements
: Counts the number of heads in the first 10 elements of the list, the first 50, and the entire 150. Keep these three values in three separate variables.
|
Identify any accumulator variables used
: Write a python code that uses a loop to let the user enter a series of integers, and print the sum of the squares of the entered integers.
|
Prepare a pseudocode to sum consecutive integers
: Write pseudocode to sum consecutive integers. Let the lowest integer be L and the highest be H, and let both L and H be provided by the user.
|
Input a polynomial in standard algebraic notation
: Write a Python class that inputs a polynomial in standard algebraic notation and outputs the first derivative of that polynomial.
|
Write pseudocode for dictionary operations insert
: Write pseudocode for dictionary operations insert, lookup, and delete using doubly-linked lists with duplicates. State the complexity of your algorithm.
|