SlideShare a Scribd company logo
1 of 67
1
A Brief Introduction to R
It is recommended that you install R on your own personal
computer. However, if that is not an
option, R is available in most (if not all) computer labs on
campus.
Installing R
To install R, go to the UCSC Information Technology Services
(ITS) website:
http://its.ucsc.edu/software/list.html
Scroll down to the “R – Statistics” tab, and follow the show
link. Next follow the R Project Site
link. Under the “Getting Started” section follow the link CRAN
mirror then scroll down to
“USA” and select one of the sites listed – the first one listed is
http://cran.cnr.Berkeley.edu/ and
is a good choice. Whichever site you choose, follow the
instructions found there for the
operating system you that are using (i.e. Mac OS, Windows,
etc).
Using R
It is recommended that you create a new folder for each of the
required assignments and
exercises for this class.
To begin a session in R, simply click on the R-icon that has
appeared on your computer. In many
cases this icon will be on your desktop, but if not go to the
usual folder on your computer where
you normally find your other applications.
The first thing you will want to do is to go to the folder that you
created for your work (e.g. let’s
suppose that you are working on assignment #1, and you created
a directory called HW1 for this
purpose). To change folders (or directories) you just need to use
the “change directory” menu
item – for Windows this is under the “File” or “Misc” tab near
the top left-hand corner of the R
window.
To exit R simply type q() or close the R window. You may be
asked if you want to “Save the
workspace image” – for now you can answer No.
An Example
1. Create a new folder called R_INTRO
2. Go to the canvas website for the class and in the module
“Information about R” module,
download into R_INTRO the file brownian_motion.R which you
will find on the page
called “R Introduction”.
3. Startup R as described above
4. Within R change to the folder R_INTRO using the
appropriate tab as described above.
2
5. The folder R_INTRO should contain the sample R program
called brownian_motion.R.
To run this program simply type source(“brownian_motion.R”)
after the prompt in the R
window.
6. If everything is working correctly, an image should appear in
a separate window that
looks something like this:
7. In addition, a copy of this image will have been created in the
directory R_INTRO as a
jpeg file called brownian_plot.jpg. You can open this image by
clicking on it.
8. In this simple example, R is used to create a sequence of one
million random numbers
that mimic the motion of a pollen grain under the influence of
Brownian motion. We will
discuss this example further in class. The image created when
you run the program shows
the histogram of the pollen grain displacements – more on this
is class too! The sequence
(or time series) of pollen grain displacements in this example is
referred to simply as x. If
you simply type x after the R prompt the entire time series of
numbers will be listed – all
one million of them! Try this for yourself.
9. R is a very powerful statistical analysis tool, and many of its
features are beyond the
scope of what we will cover in this class. However, we will
make extensive use of many
of the features of R to analysis time series of observations from
the earth climate system.
As an illustration try the following:
(a) Compute the mean of x by typing mean(x) after the R
prompt. The answer should be
very close to zero.
(b) Compute the variance of x by typing var(x). The answer
should be very close to one.
(c) Compute the standard deviation of x by typing sd(x). The
answer should also be very
close to one.
(d) Pick a number between one and one million (e.g. 123456)
and find this element in the
time series by typing x[123456].
(e) Now find the square root of the absolute value of the
element you identified in (d)
using the command sqrt(abs(x[123456])).
3
(f) You can use R to do simple arithmetic also, just as you
might on a pocket calculator.
For example, to compute the square root of 26.51 simply use the
command
sqrt(26.51). To find the natural log of the same number type
log(26.51), or to find the
log to base 10 you can use log10(26.51). This can be very handy
if you need to do
some quick calculations as part of your assignments.
10. When you are done with R, simple close the R window or
type q() at the prompt. You can
answer “No” if asked whether you want to save the workspace.
Getting Help
R has an excellent web browser for providing help. After
starting R simply type help.start() to
open the help menu in your web browser. You can also find help
about a specific command. For
example, to find more about the mean command you used in
9(a) above, simple type help(mean)
after the R prompt.
Summary
This should be enough information for now to get you started.
Each homework assignment will
provide you with further specific information as required.
Page ?
Page ?
1.
In what might be the earliest example of media synergy, some
of the first magazines in France were collections of works taken
mostly from newspapers.
A)
True
B)
False
2.
The word magazine comes from the French term magasin,
meaning “storehouse.”
A)
True
B)
False
3.
The first magazines in America were edited for the working
classes.
A)
True
B)
False
4.
The first colonial magazines published by Andrew Bradford and
Benjamin Franklin enjoyed instant success and continued for
several years.
A)
True
B)
False
5.
The first magazines primarily offered entertainment news and
gossip.
A)
True
B)
False
6.
Specialized magazines were published in America throughout
the nineteenth century.
A)
True
B)
False
7.
Some of the most influential magazines of the nineteenth
century were targeted at women.
A)
True
B)
False
8.
By the end of the nineteenth century, some magazine prices
actually went down—from thirty-five cents to ten cents.
A)
True
B)
False
9.
Production costs and reduced distribution forced magazine
publishers to raise magazine prices.
A)
True
B)
False
10.
President Theodore Roosevelt criticized magazine journalists
who exposed corruption in government and business by calling
them muckrakers.
A)
True
B)
False
11.
Muckraking journalists exposed corruption and abuses in the
oil, meatpacking, and patent medicine industries.
A)
True
B)
False
12.
The Saturday Evening Post continued the muckraking
tradition—especially by criticizing business corruption—into
the 1920s.
A)
True
B)
False
13.
For many years Reader'sDigest was the most popular magazine
in the world.
A)
True
B)
False
14.
Life magazine was able to compete with the popular radio
programs of the 1930s and 1940s by running popular fiction,
first-person news reports, and other text-based features.
A)
True
B)
False
15.
Collier's and Woman's Home Companion failed in the 1950s
because of poor management.
A)
True
B)
False
16.
TV Guide succeeded, in part, because it was readily available at
the nation's supermarket checkout lines.
A)
True
B)
False
17.
In a desperate attempt to compete with television in the late
1960s, the Saturday Evening Post and Life cut their cover prices
and thereby increased circulation by millions of copies.
A)
True
B)
False
18.
Women's magazines, such as Good Housekeeping and Woman's
Day,survived the competition for ad dollars better than
magazines like Life and Look.
A)
True
B)
False
19.
The magazine industry continues to shun the Internet because of
its threat to printed journals.
A)
True
B)
False
20.
Webzines such as Salon and Slate have opened new doors for
online journalism.
A)
True
B)
False
21.
Specialized magazines outside the mainstream publish
information and viewpoints for readers not served by other
media channels.
A)
True
B)
False
22.
Until Playboy entered the marketplace, most large-circulation
magazines were targeted at women.
A)
True
B)
False
23.
To avoid offending readers, Sports Illustrated does not publish
investigative articles.
A)
True
B)
False
24.
To create new interest in the magazine, Playboy announced it
would no longer publish nude photos beginning in 2016.
A)
True
B)
False
25.
The AARP Bulletin and AARP The Magazine have the largest
circulations of any U.S. magazines.
A)
True
B)
False
26.
The New Yorker was the first city magazine aimed at a national
upscale audience.
A)
True
B)
False
27.
Though they resemble newspapers, supermarket tabloids are
considered to be a type of magazine.
A)
True
B)
False
28.
The circulation of tabloid newspapers such as the National
Enquirer declined after their peak in the 1980s.
A)
True
B)
False
29.
The average magazine contains about 45 percent ad copy and 55
percent editorial material.
A)
True
B)
False
30.
The Web and App formats give magazines unlimited space and
the ability to do things that are impossible in the print versions.
A)
True
B)
False
31.
Magazines survived the coming of television in part by
developing demographic and regional editions.
A)
True
B)
False
32.
Demographic editions of national magazines are able to charge
higher rates for advertising.
A)
True
B)
False
33.
Split-run editions allow national magazines to tailor ads to
different geographic areas.
A)
True
B)
False
34.
Demographic editions of national magazines are tailored to the
interests of different geographic areas.
A)
True
B)
False
35.
Almost all magazines offer 25 to 50 percent discounts from
their rate cards to advertisers.
A)
True
B)
False
36.
The typical consumer magazine distributes far more copies
through newsstand sales than through subscriptions.
A)
True
B)
False
37.
Evergreen magazine subscriptions are those that are
automatically renewed on the subscriber's credit card.
A)
True
B)
False
38.
By 2015, digital distribution accounted for about 60 percent of
the magazine audience.
A)
True
B)
False
39.
Large companies are increasingly beginning to dominate the
magazine business.
A)
True
B)
False
40.
Alternative magazines such as the Progressive and the National
Review have historically defined themselves in terms of gender
and race.
A)
True
B)
False
41.
Zines are usually noncommercial, small-circulation magazine
projects self-published by individuals.
A)
True
B)
False
42.
With so many specialized magazines appealing to distinct
groups, magazines today don't have as strong a role in creating
a sense of national identity.
A)
True
B)
False
43.
Early European magazines were oriented toward _____.
A)
broad political commentary
B)
discussions of women's issues
C)
medical and health advice
D)
hunting and fishing tips
E)
recent news
44.
Which of the following statements about colonial American
magazines is true?
A)
George Washington, Alexander Hamilton, John Hancock, Paul
Revere, and Benjamin Franklin all had work published in these
magazines.
B)
Circulation was relatively small and typically limited to
politicians, the educated, and merchant classes.
C)
Some magazines helped rally the colonies against British rule.
D)
The very first colonial magazines had difficulty catching on.
E)
Athe options are correct.
45.
In 1828, Sarah Josepha Hale started the first magazine directed
exclusively to a female audience, called _____.
A)
Godey's Ladies Book
B)
Harper's
C)
Youth's Companion
D)
Ladies' Magazine
E)
Ladies' Home Journal
46.
What factor had an effect on the dramatic growth in magazine
circulation around the end of the nineteenth century?
A)
Cheaper postal rates
B)
Advances in mass-production printing
C)
Lower cover price
D)
Dramatic growth of drugstores and dime stores
E)
All of the options are correct.
47.
Who wrote History of the Standard Oil Company, first
serialized in McClure's magazine?
A)
Ida Tarbell
B)
Upton Sinclair
C)
Joseph Pulitzer
D)
Nellie Bly
E)
Frederick Douglass
48.
The term muckraker _____.
A)
was coined by President Theodore Roosevelt because he was
angry with negative reporting
B)
described investigative reporters who only wrote about
American institutions in a positive light
C)
was seen as an insult by leading investigative reporters
D)
described reporters who wanted to write in the simplistic and
conventional style of newspaper journalism
E)
None of the options are correct.
49.
Who wrote The Jungle, a fictional account of Chicago's
meatpacking industry?
A)
Lincoln Steffens
B)
Ida Tarbell
C)
Tim Allen
D)
Upton Sinclair
E)
Frank Norris
50.
Which of the following is not a result of muckraking journalism
in magazines around the start of the twentieth century?
A)
Antitrust laws for increased government oversight of business
B)
The creation of government oversight of food and drugs
C)
A progressive income tax
D)
The direct election of U.S. senators
E)
A drop in attention paid to the plight of immigrants in big cities
51.
One of Cyrus Curtis's strategies for reinvigorating the Saturday
Evening Post was to _____.
A)
appeal to farmers
B)
romanticize American virtues through images like Norman
Rockwell paintings
C)
denigrate American values
D)
continue the muckraking tradition
E)
publish risqué pictures
52.
Which magazine was the foremost outlet for photojournalism in
the mid-twentieth century?
A)
Life
B)
The North American Review
C)
The Nation
D)
The Saturday Evening Post
E)
Harper's
53.
Which of the following statements about general-interest
magazines is false?
A)
They became popular starting in the mid-to-late-nineteenth
century.
B)
With one or two exceptions, they had mostly gone out of
business by about 1910.
C)
Television played a big role in signaling the demise of general-
interest magazines.
D)
Photojournalism was a key aspect of general-interest magazines.
E)
None of the options are correct.
54.
One of the reasons for TV Guide's popularity was that _____.
A)
its first issue featured Elvis
B)
it offered lurid commentary about TV stars
C)
it was initially free
D)
many newspapers hadn't yet started publishing TV listings
E)
All of the options are correct.
55.
Media baron Rupert Murdoch bought TV Guide in 1988 because
_____.
A)
it was one of the world's most profitable magazines
B)
he wanted to ensure that programs for his Fox network would be
listed
C)
he wanted to change the magazine's liberal editorial policy
D)
he enjoyed reading the magazine
E)
he was afraid it would go out of business without him
56.
Which of the following is not a reason Life and Look magazines
went out of business in the early 1970s?
A)
Their paid circulation had plummeted, with the magazines
falling out of the Top 10 magazines in the nation.
B)
Advertisers were shifting their money toward television.
C)
Postage rates had increased for oversized magazines.
D)
They had relatively small supermarket sales.
E)
They were being sold for far less than the cost of production.
57.
Which of the following was designed as a general-interest or
mass audience magazine?
A)
The Saturday Evening Post
B)
Reader's Digest
C)
Time
D)
People
E)
All of the options are correct.
58.
Which popular magazine was launched in 1974 by Time Inc.?
A)
Sports Illustrated
B)
The Saturday Evening Post
C)
People
D)
Life
E)
TV Guide
59.
An example of a magazine that was conceived as online-only is
_____.
A)
Time
B)
TV Guide
C)
Wired
D)
Entertainment Weekly
E)
Slate
60.
Launched in 2009 by MSN and BermanBraun, _____ is a
leading online entertainment magazine.
A)
Entertainment Weekly
B)
Wired
C)
Wonderwall
D)
Salon
E)
Slate
61.
Claiming over 25 million unique monthly visitors, _____ is
currently the leading online magazine.
A)
Salon
B)
Slate
C)
Wonderwall
D)
Wired.com
E)
Elle Girl
62.
Which of the following statements about the relationship
between magazines and the Internet is false?
A)
The Internet was initially seen as a medium that would kill print
magazines.
B)
Some print magazines that have folded are finding new life on
the Internet.
C)
Online-only magazines have gained journalistic credibility.
D)
The Internet gives magazines the ability to do things that they
couldn't do in print.
E)
The Internet is still widely considered to be putting the final
nails into the coffin of print magazines.
63.
An example of the way in which an online magazine might be
different from a print magazine is to _____.
A)
feature interactive 3-D models
B)
allow readers to click on an item on a digital page and be taken
to an online store where they can purchase it
C)
feature video and audio
D)
use an innovative layout that is only possible online
E)
All of the options are correct.
64.
Online-only and online versions of magazines are _____.
A)
having trouble attracting an audience
B)
more expensive to produce and distribute compared to printed
versions
C)
able to add interactive components to their articles
D)
struggling with space limitations in the online format
E)
All of the options are correct.
65.
Which of the following is an example of a consumer magazine?
A)
Progressive Grocer
B)
Dakota Farmer
C)
Dairy Herd Management
D)
Advertising Age
E)
O: The Oprah Magazine
66.
Hugh Hefner's Playboy magazine became an instant success in
1953, thanks in part to _____.
A)
an expensive TV ad campaign
B)
sending free copies to one million male college students
C)
articles that criticized divorced and working women
D)
a nude calendar foldout of Marilyn Monroe
E)
insightful feminist articles
67.
Which of the following is true about the magazine Sports
Illustrated?
A)
It is an example of a general-interest magazine.
B)
It is never criticized for its annual swimsuit edition.
C)
It is never credited with major investigative reporting.
D)
It was originally aimed at well-educated, middle-class men.
E)
It originally promoted its content as “humanized geography.”
68.
The top children's magazine in 2014 was _____.
A)
Ranger Rick
B)
Maxim
C)
Boy's Life
D)
Highlights for Children
E)
Youth's Companion
69.
Of the following magazines, which has the largest circulation in
the United States?
A)
Maxim
B)
AARP The Magazine
C)
Time
D)
Reader's Digest
E)
TV Guide
70.
Among magazines that target audiences by age, the most
dramatic recent success has come from those aimed at _____.
A)
children
B)
tweens
C)
young adults
D)
adults over fifty
E)
thirty- to forty-year-olds
71.
Which of the following is true about minority-targeted
magazines?
A)
They have a history dating back to before the Civil War, with
titles like Emancipator and Reformer.
B)
They have a history dating back to the first half of the twentieth
century, with titles like Negro Digest and Ebony.
C)
Minority-targeted magazines cover only racial minorities.
D)
They were popular during the Civil Rights movement of the
1950s and 1960s, but have mostly gone out of business since
then.
E)
Most of them started up as Webzines in the last ten years.
72.
The bilingual magazine _____ is the most successful English-
language publication for Hispanic women.
A)
Latina
B)
Essence
C)
Vanidades
D)
ESPN Deportes
E)
None of the options are correct.
73.
Within the magazine publishing industry, the department that
usually produces the nonadvertising content of a magazine is
known as the _____.
A)
advertising and sales department
B)
production and technology department
C)
editorial department
D)
circulation and distribution department
E)
table of contents department
74.
A magazine's rate card lists _____.
A)
what it costs to advertise in the magazine
B)
how often the magazine is published
C)
the price of a one-, two-, or three-year subscription
D)
how much the magazine pays its freelance writers
E)
None of the options are correct.
75.
Advertisers frequently pressure magazines to publish _____.
A)
gatefold covers
B)
more complimentary copy
C)
investigative stories
D)
color photos
E)
more often
76.
A national magazine with regional editions _____.
A)
tailors ads to different age groups
B)
contains different stories for different geographic regions
C)
relies solely on subscription sales
D)
relies solely on newsstand sales
E)
sends special editorial content to readers with high incomes
77.
Split-run editions are _____.
A)
magazines that publish two issues a month
B)
a new ownership strategy—such as when Bertelsmann bought
Random House
C)
magazines that have ads that are tailored for geographic areas
D)
national magazines that tailor their content for specific groups
of readers
E)
None of the options are correct.
78.
A main purpose of split-run and demographic editions of
magazines is to _____.
A)
move the magazine industry back to more general-interest
publications
B)
make sure that local and regional companies are cut off from
advertising in nationally distributed magazines
C)
create fewer places for advertisers to spend their money
D)
attract more targeted advertisers and compete with television
advertising
E)
None of the options are correct.
79.
Within the magazine publishing industry, the department that
typically monitors single-copy and subscription sales is known
as the _____.
A)
advertising and sales department
B)
circulation and distribution department
C)
table of contents department
D)
editorial department
E)
production and technology department
80.
In terms of ownership structure and business models, the
magazine industry has the most in common with which other
form of mass media?
A)
Book publishing
B)
The recording industry
C)
The Internet
D)
Movies
E)
Cable television
81.
Which of the following statements about Linux software is true?
A)
Exposing government corruption
B)
Transforming the United States from a producer society to a
consumer society
C)
Forcing change in powerful institutions
D)
Giving a voice to ordinary American citizens
E)
None of the options are correct.
82.
A style of early-twentieth-century investigative journalism,
______________________ refers to reporters crawling around
in society's muck to uncover a story.
83.
A type of magazine that addresses a wide variety of topics,
______________________ magazines are aimed at a broad
national audience.
84.
Salon is an example of a ______________________, a magazine
that appears exclusively online.
85.
______________________ typically publish human-interest
stories, celebrity gossip, and crime stories that push the limits
of decency and credibility.
86.
Editions of national magazines whose advertising is tailored to
subscribers and readers according to occupation, class, and zip-
code address are ______________________ editions.
87.
______________________ subscriptions automatically renew
on a credit card account unless subscribers request that the
automatic renewal be stopped.
88.
The ____ championed women's property rights.
89.
____ published the work of writers such as Emerson, Thoreau,
and Twain.
90.
____ is the longest-running magazine in U.S. history.
91.
____ pioneered the national political magazine format.
92.
_____ took on the Standard Oil Company.
93.
_____ investigated patent medicines.
94.
_____ investigated Chicago's meatpacking industry in The
Jungle.
95.
_____ targeted urban problems.
96.
In _____, ads in national magazines are tailored for geographic
areas.
97.
In _____, unique versions of magazines can be sent to specific
subscriber groups.
98.
_____ are magazines created exclusively for online readers.
99.
Explain the role of early magazines in America's political and
social shift from British colony to independent nation.
100.
What are the typical characteristics of a general-interest
magazine? What types of content would you expect to see in
such a magazine?
101.
What role did magazines play in social reform in the late
nineteenth and early twentieth centuries?
102.
When and why did some of the major general-interest magazines
fail?
103.
What are some of the advantages that online versions of
magazines have over print versions?
104.
How are some online-only magazines trying to reinvent the idea
of a magazine?
105.
In what ways do magazines serve democratic ideals?
106.
Why is the muckraking spirit—so important at the turn of the
twentieth century in popular magazines—generally missing
from magazines today?
107.
Imagine you are the marketing director of your favorite
magazine. What would you do to increase circulation?
108.
Do your favorite magazines define you primarily as a consumer
or as a citizen? Do you think magazines have a responsibility to
educate their readers as both? Why or why not?
Answer Key
1.
A
2.
A
3.
B
4.
B
5.
B
6.
A
7.
A
8.
A
9.
B
10.
A
11.
A
12.
B
13.
A
14.
B
15.
B
16.
A
17.
B
18.
A
19.
B
20.
A
21.
A
22.
A
23.
B
24.
A
25.
A
26.
A
27.
A
28.
A
29.
A
30.
A
31.
A
32.
B
33.
A
34.
B
35.
A
36.
B
37.
A
38.
A
39.
A
40.
B
41.
A
42.
A
43.
A
44.
E
45.
D
46.
E
47.
A
48.
A
49.
D
50.
E
51.
B
52.
A
53.
B
54.
D
55.
B
56.
A
57.
E
58.
C
59.
E
60.
C
61.
B
62.
E
63.
E
64.
C
65.
E
66.
D
67.
D
68.
D
69.
B
70.
D
71.
A
72.
A
73.
C
74.
A
75.
B
76.
B
77.
C
78.
D
79.
B
80.
E
81.
B
82.
muckraking
83.
general-interest
84.
Webzine
85.
Supermarket tabloids
86.
demographic
87.
Evergreen
88.
Godey's Lady Book
89.
The North American Review
90.
The Saturday Evening Post
91.
The Nation
92.
Ida Tarbell
93.
Colliers
94.
Upton Sinclair
95.
Lincoln Steffens
96.
split-run editions
97.
demographic editions
98.
Webzines
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
Extra_Credit_folder/extra_credit_P2.R
#
# Enter name here.
#
#name<-"John Doe"
#
# Read the AAO principal component amplitude time series.
#
aao<-read.table("aao_amp_1979-2013.dat")
attach(aao)
aao_data<-V1
time<-seq(1979,2013,len=length(aao_data))
#
# Plot the PDF with normal distribution.
#
x<-seq(-4,3,0.01)
y<-exp(-(x-
mean(aao_data))^2/(2*var(aao_data)))/(sd(aao_data)*sqrt(2*pi)
)
jpeg("extra_credit_plot4.jpg")
hist(aao_data,seq(-4,3,0.5),prob=TRUE,main="Probability
Density Function of AAO Amplitude",xlab="AAO
Amplitude",sub=name,ylim=c(0,0.5))
lines(x,y,col="red",lwd=2)
dev.off()
#
detach()
Extra_Credit_folder/aao_amp_1979-2013.dat
0.208759993
0.356260002
0.899179995
0.677579999
0.723739982
1.70000005
2.41210008
0.545530021
0.629459977
0.159789994
-0.422529995
-0.950720012
-0.447030008
-0.979650021
-1.42439997
-2.06820011
-0.478650004
0.285699993
-1.94389999
-0.996810019
-1.70079994
0.577390015
-2.01290011
-0.356299996
0.230509996
0.0392669998
-0.965529978
-1.46200001
-0.343959987
0.351700008
-0.98585999
-2.11829996
-1.50940001
-0.260340005
0.625569999
1.1164
-0.554440022
0.277229995
1.60350001
1.53139997
0.117870003
0.920140028
-0.414719999
0.779280007
1.58000004
-0.702300012
-0.849179983
-1.93369997
-1.34039998
-1.08070004
0.166339993
0.149360001
-0.437220007
-0.262829989
1.11409998
0.792029977
-0.695969999
1.19350004
0.727419972
0.475470006
-1.09749997
-0.54369998
0.250860006
-0.204160005
-1.23740005
0.426079988
0.889599979
-0.548380017
0.326979995
-0.00940379966
-0.0241410006
-1.4756
-0.794799984
0.215470001
-0.133609995
0.0314819999
-0.0660779998
-0.330689996
1.91369998
0.594770014
1.50730002
0.470770001
1.08469999
1.24030006
0.157820001
-1.58800006
-0.76959002
-0.0866969973
-1.84660006
-0.619419992
0.0891610011
-0.157020003
0.848680019
0.305660009
-0.222479999
0.886250019
-0.95036
-0.707669973
-0.132660002
-0.285620004
0.0386260003
-0.701870024
-1.53129995
1.48520005
-0.798889995
0.455480009
1.06040001
0.272289991
-0.611739993
0.550779998
-0.219040006
-0.0768100023
-0.748600006
-1.05490005
0.57595998
-0.744910002
-0.688530028
-2.31399989
0.401010007
1.07449996
0.618449986
0.848919988
0.632120013
-0.573109984
2.69059992
1.99479997
1.4576
-0.13188
-0.12122
0.135769993
0.571969986
-0.445050001
-0.352090001
1.15069997
0.414180011
-1.8786
-1.80340004
0.0930529982
-1.21510005
0.465730011
1.48160005
0.138950005
-0.358960003
-0.311650008
0.868879974
-0.851660013
0.52234
-0.639400005
-0.538559973
-1.15460002
-1.22019994
0.0355090015
-0.513019979
-0.623210013
-0.804170012
-2.06750011
0.0726130009
-1.62679994
-1.01030004
-0.439339995
-2.03200006
-2.19330001
-0.566169977
-0.349530011
0.434960008
-0.319409996
0.12184
0.243609995
-2.02060008
0.437040001
-0.377600014
0.0872130021
1.25989997
1.21790004
1.95710003
1.08290005
1.06099999
0.748149991
0.323659986
1.02810001
0.722660005
1.15699995
0.693340003
-0.0524550006
-0.152720004
-1.68190002
-0.492229998
1.90989995
-0.947049975
-0.577769995
-0.792569995
0.932739973
1.44850004
0.532899976
-0.154390007
0.648800015
1.39670002
-0.801970005
-3.00970006
-0.696470022
1.17330003
-0.0570299998
0.142879993
1.46969998
0.332069993
-0.524950027
0.543460011
0.115000002
0.983169973
-0.252020001
0.0208940003
-1.50189996
-1.31439996
0.965749979
-1.66690004
-0.0230989996
0.368919998
-0.244240001
0.701049984
-0.457569987
1.02810001
-0.457560003
0.779649973
0.768350005
0.12218
-0.59473002
-1.90460002
-0.835500002
0.412530005
0.38955
0.735920012
1.92729998
-0.0380819999
1.03100002
1.45000005
0.904089987
-0.122409999
0.399529994
0.817179978
1.43519998
0.999109983
0.455879986
0.180450007
0.949440002
1.63900006
-1.32490003
0.315629989
0.0418730006
-0.0120900003
1.65349996
0.90061003
1.78380001
1.27339995
0.619729996
0.133059993
0.232679993
1.12709999
0.117229998
0.0585919991
-0.67355001
-1.85290003
0.34702
-1.53709996
-1.29030001
-0.470939994
-0.264880002
-0.554769993
0.514959991
-0.262180001
0.386139989
-0.928250015
0.910319984
1.16139996
1.27709997
0.995819986
1.47360003
0.746860027
1.33410001
-1.82350004
0.164959997
-2.79850006
-1.11199999
-0.590950012
-0.0993840024
-0.864499986
-2.56399989
-0.923529983
1.30850005
-0.987879992
-0.356900007
-0.187700003
0.224309996
0.384499997
-0.774510026
0.727010012
0.677969992
-0.323080003
-0.0248860009
-0.711650014
-1.32290006
0.807099998
-1.18190002
0.431679994
0.151040003
0.459580004
1.1954
1.47430003
-0.0711499974
0.253589988
-0.0424880013
-0.242200002
-0.972890019
-0.128739998
1.24349999
0.158309996
0.355439991
-0.297320008
-1.42770004
-0.251960009
0.228190005
0.240740001
0.03101
-0.551490009
-1.96780002
0.338889986
-0.211319998
0.500559986
-0.169279993
1.6954
0.437959999
0.925530016
-1.72710001
-0.324140012
0.879230022
0.101279996
0.638429999
-0.0828370005
0.0749410018
-0.570129991
-1.0352
-0.611899972
-1.19799995
-2.63070011
-0.10791
0.0305480007
-0.433670014
-0.983799994
1.92929995
1.20850003
1.14740002
0.587480009
-0.873409986
-0.48980999
1.3484
0.320239991
0.0869499967
1.38559997
1.21490002
0.919700027
1.19379997
0.962570012
0.455830008
0.604589999
0.0291600004
-0.73277998
-0.469949991
-1.2342
-0.685590029
-0.0165030006
0.0847870037
-1.91509998
0.606830001
-0.756889999
-0.775219977
0.108280003
0.377389997
1.02100003
2.07069993
2.42370009
1.51010001
0.401800007
1.33490002
1.51629996
0.205420002
0.0523569994
1.07379997
-0.296220005
-0.870010018
1.26569998
-0.0989689976
-1.38419998
-1.20200002
-1.25
0.388209999
-0.907540023
2.57349992
1.58329999
-0.283089995
0.274769992
0.665600002
0.152759999
-0.197139993
1.25929999
0.488840014
0.562380016
-0.444220006
-1.70089996
-0.763520002
0.0710270032
0.715560019
1.37479997
0.61056
0.359620005
-0.271079987
0.945330024
-1.56089997
-1.65830004
-0.457599998
0.188830003
0.0612609982
Extra_Credit_folder/AnswerSheet_ExtraCredit.pdf
OCEA 90 Fundamentals of Climate Fall 2019
OCEA 90: Extra Credit Answer Sheet
Name:
Section:
TA:
Yang Xiang
Henry Houskeeper
Assignment Instructions:
1. Put your name and section at the top of
this sheetand check the appropriate TA box.
2. Download the assignment from the class website.
Follow all instructions carefully and
execute all R scripts as prescribed.
3. Answer all HW questions in the spaces provided
below. (Please note:each answer does not
need to fill the entire space provided. The
accuracy of your answer is valued, not its
length.)
4. All Figures must be printed out and stapled to
the back of this answer sheet. (Please print
figures on as few pages as possible, but ensure
that all figures are still readable.)
5. Remember the following requirements:
a. Submit your assignment on this answer sheet
b. Submit your assignment on time (10% grade
reduction per calendar day late)
c. Submit all necessary figures
d. Submit all figures with your name printed on
them (no credit for the entire
assignment if your name is not on the figures)
6. Also:
a. A hard copy of this answer sheetis required.
Electroniccopies will not be accepted.
b. Do not share answers with your classmates
(we follow UCSC procedures in cases of
academic misconduct).
7. You are welcome to attend office hours
for any TA (and of course the professor)!
1A(iii).
1B.
OCEA 90 Fundamentals of Climate Fall 2019
1C.
1D(i)
1D(ii)
1E
2i. The probability of the AAOamplitude being at
or below -1 is
2ii. The probability of the AAOamplitude being at
or below +1 is .
Therefore,
the probability of the AAOamplitude being greater
than -1 and less than or equal to
+1 is .
2iii. The probability of the AAOamplitude being
above +1 is .
__MACOSX/Extra_Credit_folder/._AnswerSheet_ExtraCredit.p
df
Extra_Credit_folder/extra_credit_P1.R
#
# Enter name here.
#
#name<-"John Doe"
#
# Read the AAO principal component amplitude time series.
#
aao<-read.table("aao_amp_1979-2013.dat")
attach(aao)
aao_data<-V1
time<-seq(1979,2013,len=length(aao_data))
#
# Plot time series
#
jpeg("extra_credit_plot1.jpg")
plot(time,aao_data,"l",xlab="Time in years",ylab="AAO
Amplitude",main="Time Series of AAO Amplitude",sub=name)
dev.off()
#
# Plot the histogram.
#
jpeg("extra_credit_plot2.jpg")
hist(aao_data,seq(-4,3,0.5),ylim=c(0,100),main="Histogram of
AAO Amplitude",xlab="AAO Amplitude",sub=name)
dev.off()
#
# Plot the PDF
#
jpeg("extra_credit_plot3.jpg")
hist(aao_data,seq(-
4,3,0.5),ylim=c(0,0.5),prob=TRUE,main="Probability Density
Function of AAO Amplitude",xlab="AAO
Amplitude",sub=name)
dev.off()
#
detach()
Extra_Credit_folder/AnswerSheet_ExtraCredit.docx
OCEA 90 Fundamentals of Climate Fall 2019
OCEA 90: Extra Credit Answer Sheet
Name:
Section:
TA: Yang Xiang |_| Henry
Houskeeper |_|
Assignment Instructions:
1. Put your name and section at the top of this sheet and check
the appropriate TA box.
2. Download the assignment from the class website. Follow all
instructions carefully and execute all R scripts as prescribed.
3. Answer all HW questions in the spaces provided below.
(Please note: each answer does not need to fill the entire space
provided. The accuracy of your answer is valued, not its
length.)
4. All Figures must be printed out and stapled to the back of
this answer sheet. (Please print figures on as few pages as
possible, but ensure that all figures are still readable.)
5. Remember the following requirements:
a. Submit your assignment on this answer sheet
b. Submit your assignment on time (10% grade reduction per
calendar day late)
c. Submit all necessary figures
d. Submit all figures with your name printed on them (no credit
for the entire assignment if your name is not on the figures)
6. Also:
a. A hard copy of this answer sheet is required. Electronic
copies will not be accepted.
b. Do not share answers with your classmates (we follow UCSC
procedures in cases of academic misconduct).
7. You are welcome to attend office hours for any TA (and of
course the professor)!
1A(iii).
1B.
1C.
1D(i)
1D(ii)
1E
2i. The probability of the AAO amplitude being at or below -1
is
2ii. The probability of the AAO amplitude being at or below +1
is . Therefore, the probability of the AAO amplitude
being greater than -1 and less than or equal to +1 is .
2iii. The probability of the AAO amplitude being above +1 is
.
__MACOSX/Extra_Credit_folder/._AnswerSheet_ExtraCredit.d
ocx
Extra_Credit_folder/extra_credit_canvas.pdf
1
Extra Credit Assignment
DUE DATE: Friday, 6 December, in class – NO EXCEPTIONS
Download the following files onto your computer which you
will find on canvas on the “Extra
Credit Assignment” page:
extra_credit_P1.R
extra_credit_P2.R
extra_credit_P3.R
aao_amp_1979-2013.dat
Next, start up “R” and at the prompt (>>) enter your name in the
following way:
name<-“Jane Doe”
Important: Be sure to do this before you run each new program.
This step is very important since it will identify you on the
results of your work. If your
name does not appear appropriately on the graphical output that
you hand-in with your
completed assignments, you will receive no credit for this
assignment. In addition, if you
omit this step, the R-programs for this exercise will not work
correctly and you will get an
error message.
PLEASE HAND IN ALL OF THE FIGURES GENERATED BY
THE PROGRAMS
THAT YOU RUN FOR THIS ASSIGNMENT.
The Antarctic Oscillation (AAO)
As we discussed in class, principal component analysis of the
750mb geopotential height over
the entire southern hemisphere reveals the existence of an
annular mode of variability called the
Antarctic Oscillation (the AAO; also sometimes referred to as
the Southern Annular Mode
(SAM)) . Figure 1 shows the pattern of 750mb geopotential
height anomalies associated with the
AAO which recall is the first principal component.
2
Question 1:
Figure 1: The 750mb geopotential height associated with the
positive phase of the AAO.
(a) Run the program “extra_credit_P1.R” in R. This will load
the data for the principal
component time series of the monthly mean 750mb geopotential
height anomalies
associated with the Antarctic Oscillation (AAO) for the period
1979-2013, and will
generate three figures: extra_credit_plot1.jpg - a plot of the
time series of the AAO
principal component time series (i.e. the amplitude of the
pattern shown in Fig. 1);
extra_credit_plot2.jpg – a histogram of the AAO amplitude;
extra_credit_plot3.jpg –the
probability density function (PDF) of the AAO amplitude. The
time series of AAO
amplitude is called “aao_data.” (i) First compute the mean
AAO amplitude for the entire
35 year period, and record the value that you obtain on plot3.
(ii) Next, estimate the mode
of the probability density function using either plot2 or plot3,
and record this number on
plot3. (iii) Briefly explain how the mean is computed, and the
definition of the mode, and
compare the two numbers computed here.
(b) Compute the standard deviation of the AAO amplitude, and
record this number on plot3.
Explain what is meant by the standard deviation.
3
(c) Now run the program extra_credit_P2.R. This will generate
a new figure called
extra_credit_plot4.jpg which is the same as plot3 except a
normal distribution with the
same mean and standard deviation as the AAO amplitude time
series is superimposed on
the PDF. Briefly describe how well the PDF of the AAO
amplitude is described by a
normal distribution.
(d) Now run extra_credit_P3.R which yields an additional figure
called
extra_credit_plot5.jpg which shows the cumulative probability
distribution for the AAO
amplitude. (i) In your own words, explain what a cumulative
probability density function
shows. (ii) Using plot5, estimate the median of the distribution
and explain clearly how
you did this. Record this number on plot3 and compare to the
mean and the mode from
part (a).
(e) If the PDF of the AAO amplitude was described by a normal
distribution, what can you
say about the mean, the mode and the median of the amplitude?
Question 2:
Consider the following scenario. A group of researchers at the
NOAA Aeronomy
Laboratory in Boulder, Colorado, is trying to establish whether
a relationship exists
between the amplitude of the AAO and the rate of stratospheric
ozone depletion that
occurs each year over the Antarctic continent. They have asked
you to provide them with
the following probabilities:
(i) The probability that the AAO amplitude will be less than or
equal to -1;
(ii) The probability that the AAO amplitude will be greater than
-1 and less than or equal
to +1;
(iii) The probability that the AAO amplitude will be greater
than +1.
Estimate these three probabilities using information from
question 1, and record them on
plot5.
__MACOSX/Extra_Credit_folder/._extra_credit_canvas.pdf
Extra_Credit_folder/extra_credit_P3.R
#
# Enter name here.
#
#name<-"John Doe"
#
# Read the AAO principal component amplitude time series.
#
aao<-read.table("aao_amp_1979-2013.dat")
attach(aao)
aao_data<-V1
time<-seq(1979,2013,len=length(aao_data))
#
# Plot the Cumulative Probability Distribution.
#
jpeg("extra_credit_plot5.jpg")
plot(ecdf(aao_data),xlab="AAO
Amplitude",ylab="c(T)",main="Cumulative Probability
Function: AAO
Amplitude",sub=name,do.points=FALSE,verticals=TRUE)
dev.off()
detach()
1  A Brief Introduction to R It is recommended tha.docx

More Related Content

Similar to 1 A Brief Introduction to R It is recommended tha.docx

Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005rkottam
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005rkottam
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005rkottam
 
Plan601 e session 1 demo 2016
Plan601 e session 1 demo 2016Plan601 e session 1 demo 2016
Plan601 e session 1 demo 2016rkottam
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005rkottam
 
A little-book-of-r-for-time-series
A little-book-of-r-for-time-seriesA little-book-of-r-for-time-series
A little-book-of-r-for-time-seriesS DG
 
R journal 2011-2
R journal 2011-2R journal 2011-2
R journal 2011-2Ajay Ohri
 
Learning R while exploring statistics
Learning R while exploring statisticsLearning R while exploring statistics
Learning R while exploring statisticsDorothy Bishop
 
SimpleR: tips, tricks & tools
SimpleR: tips, tricks & toolsSimpleR: tips, tricks & tools
SimpleR: tips, tricks & toolsRob Hyndman
 
Participant Guide for Respondus Software
Participant Guide for Respondus SoftwareParticipant Guide for Respondus Software
Participant Guide for Respondus SoftwareJason Neenos
 
HUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2D
HUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2DHUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2D
HUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2Deve2xjazwa
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document usefulssuser3c3f88
 

Similar to 1 A Brief Introduction to R It is recommended tha.docx (18)

Time series
Time seriesTime series
Time series
 
r merged.pdf
r merged.pdfr merged.pdf
r merged.pdf
 
effectivegraphsmro1
effectivegraphsmro1effectivegraphsmro1
effectivegraphsmro1
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005
 
The basics of c programming
The basics of c programmingThe basics of c programming
The basics of c programming
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005
 
Plan601 e session 1 demo 2016
Plan601 e session 1 demo 2016Plan601 e session 1 demo 2016
Plan601 e session 1 demo 2016
 
Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005Plan601 e session 1 demo 20151005
Plan601 e session 1 demo 20151005
 
A little-book-of-r-for-time-series
A little-book-of-r-for-time-seriesA little-book-of-r-for-time-series
A little-book-of-r-for-time-series
 
R journal 2011-2
R journal 2011-2R journal 2011-2
R journal 2011-2
 
Learning R while exploring statistics
Learning R while exploring statisticsLearning R while exploring statistics
Learning R while exploring statistics
 
Programming Practice Questions_C
Programming Practice Questions_CProgramming Practice Questions_C
Programming Practice Questions_C
 
A01
A01A01
A01
 
SimpleR: tips, tricks & tools
SimpleR: tips, tricks & toolsSimpleR: tips, tricks & tools
SimpleR: tips, tricks & tools
 
Participant Guide for Respondus Software
Participant Guide for Respondus SoftwareParticipant Guide for Respondus Software
Participant Guide for Respondus Software
 
HUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2D
HUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2DHUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2D
HUM105 v7Divine Roles Across CulturesHUM105 v7Page 2 of 2D
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document useful
 

More from smithhedwards48727

Write a five page paper that analysis the HispanicLatino politics i.docx
Write a five page paper that analysis the HispanicLatino politics i.docxWrite a five page paper that analysis the HispanicLatino politics i.docx
Write a five page paper that analysis the HispanicLatino politics i.docxsmithhedwards48727
 
Write a five (5) paragraph (or longer) essay response . Write your e.docx
Write a five (5) paragraph (or longer) essay response . Write your e.docxWrite a five (5) paragraph (or longer) essay response . Write your e.docx
Write a five (5) paragraph (or longer) essay response . Write your e.docxsmithhedwards48727
 
Write a few words about Email threats briefly and & An.docx
Write a few words about Email threats briefly and & An.docxWrite a few words about Email threats briefly and & An.docx
Write a few words about Email threats briefly and & An.docxsmithhedwards48727
 
Write a essay about Gender stereotype in adaptation of fairy t.docx
Write a essay about Gender stereotype in adaptation of fairy t.docxWrite a essay about Gender stereotype in adaptation of fairy t.docx
Write a essay about Gender stereotype in adaptation of fairy t.docxsmithhedwards48727
 
write a draft of your research paper. in your draft copy, develop th.docx
write a draft of your research paper. in your draft copy, develop th.docxwrite a draft of your research paper. in your draft copy, develop th.docx
write a draft of your research paper. in your draft copy, develop th.docxsmithhedwards48727
 
Write a draft of your Research Paper.In your draft c.docx
Write a draft of your Research Paper.In your draft c.docxWrite a draft of your Research Paper.In your draft c.docx
Write a draft of your Research Paper.In your draft c.docxsmithhedwards48727
 
Write a detailed, analytical paragraph on the short story, incorpora.docx
Write a detailed, analytical paragraph on the short story, incorpora.docxWrite a detailed, analytical paragraph on the short story, incorpora.docx
Write a detailed, analytical paragraph on the short story, incorpora.docxsmithhedwards48727
 
Write a dialogue involving at least 10 - 15 interchanges about the e.docx
Write a dialogue involving at least 10 - 15 interchanges about the e.docxWrite a dialogue involving at least 10 - 15 interchanges about the e.docx
Write a dialogue involving at least 10 - 15 interchanges about the e.docxsmithhedwards48727
 
Write a detailed report on one of the following topics1- Differ.docx
Write a detailed report on one of the following topics1- Differ.docxWrite a detailed report on one of the following topics1- Differ.docx
Write a detailed report on one of the following topics1- Differ.docxsmithhedwards48727
 
Write a detailed report about a residential burglary. You are the of.docx
Write a detailed report about a residential burglary. You are the of.docxWrite a detailed report about a residential burglary. You are the of.docx
Write a detailed report about a residential burglary. You are the of.docxsmithhedwards48727
 
Write a detailed report about a armed robbery to a convenience store.docx
Write a detailed report about a armed robbery to a convenience store.docxWrite a detailed report about a armed robbery to a convenience store.docx
Write a detailed report about a armed robbery to a convenience store.docxsmithhedwards48727
 
Write a detailed report on International Association of classifi.docx
Write a detailed report on International Association of classifi.docxWrite a detailed report on International Association of classifi.docx
Write a detailed report on International Association of classifi.docxsmithhedwards48727
 
Write a detailed report (15 pages excluding references and intro pag.docx
Write a detailed report (15 pages excluding references and intro pag.docxWrite a detailed report (15 pages excluding references and intro pag.docx
Write a detailed report (15 pages excluding references and intro pag.docxsmithhedwards48727
 
Write a detailed evaluation of CWU — why you decided to come here to.docx
Write a detailed evaluation of CWU — why you decided to come here to.docxWrite a detailed evaluation of CWU — why you decided to come here to.docx
Write a detailed evaluation of CWU — why you decided to come here to.docxsmithhedwards48727
 
Write a detail Psychiatric diagnosis and Treatment planregimen .docx
Write a detail Psychiatric diagnosis and Treatment planregimen .docxWrite a detail Psychiatric diagnosis and Treatment planregimen .docx
Write a detail Psychiatric diagnosis and Treatment planregimen .docxsmithhedwards48727
 
Write a description of a process of doing grocery shopping so that y.docx
Write a description of a process of doing grocery shopping so that y.docxWrite a description of a process of doing grocery shopping so that y.docx
Write a description of a process of doing grocery shopping so that y.docxsmithhedwards48727
 
Write a critical evaluation of your learning outcome. In your re.docx
Write a critical evaluation of your learning outcome. In your re.docxWrite a critical evaluation of your learning outcome. In your re.docx
Write a critical evaluation of your learning outcome. In your re.docxsmithhedwards48727
 
write a description of Federich Woehler, Martin Kamen, Cornelis Bern.docx
write a description of Federich Woehler, Martin Kamen, Cornelis Bern.docxwrite a description of Federich Woehler, Martin Kamen, Cornelis Bern.docx
write a description of Federich Woehler, Martin Kamen, Cornelis Bern.docxsmithhedwards48727
 
Write a cover letter explaining what makes you qualified to take c.docx
Write a cover letter explaining what makes you qualified to take c.docxWrite a cover letter explaining what makes you qualified to take c.docx
Write a cover letter explaining what makes you qualified to take c.docxsmithhedwards48727
 
Write a critical essay on one of the following topics related to.docx
Write a critical essay on one of the following topics related to.docxWrite a critical essay on one of the following topics related to.docx
Write a critical essay on one of the following topics related to.docxsmithhedwards48727
 

More from smithhedwards48727 (20)

Write a five page paper that analysis the HispanicLatino politics i.docx
Write a five page paper that analysis the HispanicLatino politics i.docxWrite a five page paper that analysis the HispanicLatino politics i.docx
Write a five page paper that analysis the HispanicLatino politics i.docx
 
Write a five (5) paragraph (or longer) essay response . Write your e.docx
Write a five (5) paragraph (or longer) essay response . Write your e.docxWrite a five (5) paragraph (or longer) essay response . Write your e.docx
Write a five (5) paragraph (or longer) essay response . Write your e.docx
 
Write a few words about Email threats briefly and & An.docx
Write a few words about Email threats briefly and & An.docxWrite a few words about Email threats briefly and & An.docx
Write a few words about Email threats briefly and & An.docx
 
Write a essay about Gender stereotype in adaptation of fairy t.docx
Write a essay about Gender stereotype in adaptation of fairy t.docxWrite a essay about Gender stereotype in adaptation of fairy t.docx
Write a essay about Gender stereotype in adaptation of fairy t.docx
 
write a draft of your research paper. in your draft copy, develop th.docx
write a draft of your research paper. in your draft copy, develop th.docxwrite a draft of your research paper. in your draft copy, develop th.docx
write a draft of your research paper. in your draft copy, develop th.docx
 
Write a draft of your Research Paper.In your draft c.docx
Write a draft of your Research Paper.In your draft c.docxWrite a draft of your Research Paper.In your draft c.docx
Write a draft of your Research Paper.In your draft c.docx
 
Write a detailed, analytical paragraph on the short story, incorpora.docx
Write a detailed, analytical paragraph on the short story, incorpora.docxWrite a detailed, analytical paragraph on the short story, incorpora.docx
Write a detailed, analytical paragraph on the short story, incorpora.docx
 
Write a dialogue involving at least 10 - 15 interchanges about the e.docx
Write a dialogue involving at least 10 - 15 interchanges about the e.docxWrite a dialogue involving at least 10 - 15 interchanges about the e.docx
Write a dialogue involving at least 10 - 15 interchanges about the e.docx
 
Write a detailed report on one of the following topics1- Differ.docx
Write a detailed report on one of the following topics1- Differ.docxWrite a detailed report on one of the following topics1- Differ.docx
Write a detailed report on one of the following topics1- Differ.docx
 
Write a detailed report about a residential burglary. You are the of.docx
Write a detailed report about a residential burglary. You are the of.docxWrite a detailed report about a residential burglary. You are the of.docx
Write a detailed report about a residential burglary. You are the of.docx
 
Write a detailed report about a armed robbery to a convenience store.docx
Write a detailed report about a armed robbery to a convenience store.docxWrite a detailed report about a armed robbery to a convenience store.docx
Write a detailed report about a armed robbery to a convenience store.docx
 
Write a detailed report on International Association of classifi.docx
Write a detailed report on International Association of classifi.docxWrite a detailed report on International Association of classifi.docx
Write a detailed report on International Association of classifi.docx
 
Write a detailed report (15 pages excluding references and intro pag.docx
Write a detailed report (15 pages excluding references and intro pag.docxWrite a detailed report (15 pages excluding references and intro pag.docx
Write a detailed report (15 pages excluding references and intro pag.docx
 
Write a detailed evaluation of CWU — why you decided to come here to.docx
Write a detailed evaluation of CWU — why you decided to come here to.docxWrite a detailed evaluation of CWU — why you decided to come here to.docx
Write a detailed evaluation of CWU — why you decided to come here to.docx
 
Write a detail Psychiatric diagnosis and Treatment planregimen .docx
Write a detail Psychiatric diagnosis and Treatment planregimen .docxWrite a detail Psychiatric diagnosis and Treatment planregimen .docx
Write a detail Psychiatric diagnosis and Treatment planregimen .docx
 
Write a description of a process of doing grocery shopping so that y.docx
Write a description of a process of doing grocery shopping so that y.docxWrite a description of a process of doing grocery shopping so that y.docx
Write a description of a process of doing grocery shopping so that y.docx
 
Write a critical evaluation of your learning outcome. In your re.docx
Write a critical evaluation of your learning outcome. In your re.docxWrite a critical evaluation of your learning outcome. In your re.docx
Write a critical evaluation of your learning outcome. In your re.docx
 
write a description of Federich Woehler, Martin Kamen, Cornelis Bern.docx
write a description of Federich Woehler, Martin Kamen, Cornelis Bern.docxwrite a description of Federich Woehler, Martin Kamen, Cornelis Bern.docx
write a description of Federich Woehler, Martin Kamen, Cornelis Bern.docx
 
Write a cover letter explaining what makes you qualified to take c.docx
Write a cover letter explaining what makes you qualified to take c.docxWrite a cover letter explaining what makes you qualified to take c.docx
Write a cover letter explaining what makes you qualified to take c.docx
 
Write a critical essay on one of the following topics related to.docx
Write a critical essay on one of the following topics related to.docxWrite a critical essay on one of the following topics related to.docx
Write a critical essay on one of the following topics related to.docx
 

Recently uploaded

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjMohammed Sikander
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Mark Carrigan
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfMinawBelay
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...Nguyen Thanh Tu Collection
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfmstarkes24
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/siemaillard
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Denish Jangid
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17Celine George
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxheathfieldcps1
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatmentsaipooja36
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17Celine George
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the lifeNitinDeodare
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...Nguyen Thanh Tu Collection
 
Discover the Dark Web .pdf InfosecTrain
Discover the Dark Web .pdf  InfosecTrainDiscover the Dark Web .pdf  InfosecTrain
Discover the Dark Web .pdf InfosecTraininfosec train
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfbu07226
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff17thcssbs2
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45MysoreMuleSoftMeetup
 

Recently uploaded (20)

Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...Navigating the Misinformation Minefield: The Role of Higher Education in the ...
Navigating the Misinformation Minefield: The Role of Higher Education in the ...
 
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdfFinancial Accounting IFRS, 3rd Edition-dikompresi.pdf
Financial Accounting IFRS, 3rd Edition-dikompresi.pdf
 
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
BỘ LUYỆN NGHE TIẾNG ANH 8 GLOBAL SUCCESS CẢ NĂM (GỒM 12 UNITS, MỖI UNIT GỒM 3...
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
Basic Civil Engineering notes on Transportation Engineering, Modes of Transpo...
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
The basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptxThe basics of sentences session 4pptx.pptx
The basics of sentences session 4pptx.pptx
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
Discover the Dark Web .pdf InfosecTrain
Discover the Dark Web .pdf  InfosecTrainDiscover the Dark Web .pdf  InfosecTrain
Discover the Dark Web .pdf InfosecTrain
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
Exploring Gemini AI and Integration with MuleSoft | MuleSoft Mysore Meetup #45
 

1 A Brief Introduction to R It is recommended tha.docx

  • 1. 1 A Brief Introduction to R It is recommended that you install R on your own personal computer. However, if that is not an option, R is available in most (if not all) computer labs on campus. Installing R To install R, go to the UCSC Information Technology Services (ITS) website: http://its.ucsc.edu/software/list.html Scroll down to the “R – Statistics” tab, and follow the show link. Next follow the R Project Site link. Under the “Getting Started” section follow the link CRAN mirror then scroll down to “USA” and select one of the sites listed – the first one listed is http://cran.cnr.Berkeley.edu/ and is a good choice. Whichever site you choose, follow the instructions found there for the operating system you that are using (i.e. Mac OS, Windows, etc). Using R It is recommended that you create a new folder for each of the
  • 2. required assignments and exercises for this class. To begin a session in R, simply click on the R-icon that has appeared on your computer. In many cases this icon will be on your desktop, but if not go to the usual folder on your computer where you normally find your other applications. The first thing you will want to do is to go to the folder that you created for your work (e.g. let’s suppose that you are working on assignment #1, and you created a directory called HW1 for this purpose). To change folders (or directories) you just need to use the “change directory” menu item – for Windows this is under the “File” or “Misc” tab near the top left-hand corner of the R window. To exit R simply type q() or close the R window. You may be asked if you want to “Save the workspace image” – for now you can answer No. An Example 1. Create a new folder called R_INTRO 2. Go to the canvas website for the class and in the module “Information about R” module, download into R_INTRO the file brownian_motion.R which you will find on the page called “R Introduction”. 3. Startup R as described above 4. Within R change to the folder R_INTRO using the appropriate tab as described above.
  • 3. 2 5. The folder R_INTRO should contain the sample R program called brownian_motion.R. To run this program simply type source(“brownian_motion.R”) after the prompt in the R window. 6. If everything is working correctly, an image should appear in a separate window that looks something like this: 7. In addition, a copy of this image will have been created in the directory R_INTRO as a jpeg file called brownian_plot.jpg. You can open this image by clicking on it. 8. In this simple example, R is used to create a sequence of one million random numbers that mimic the motion of a pollen grain under the influence of Brownian motion. We will discuss this example further in class. The image created when you run the program shows the histogram of the pollen grain displacements – more on this is class too! The sequence (or time series) of pollen grain displacements in this example is referred to simply as x. If you simply type x after the R prompt the entire time series of numbers will be listed – all one million of them! Try this for yourself.
  • 4. 9. R is a very powerful statistical analysis tool, and many of its features are beyond the scope of what we will cover in this class. However, we will make extensive use of many of the features of R to analysis time series of observations from the earth climate system. As an illustration try the following: (a) Compute the mean of x by typing mean(x) after the R prompt. The answer should be very close to zero. (b) Compute the variance of x by typing var(x). The answer should be very close to one. (c) Compute the standard deviation of x by typing sd(x). The answer should also be very close to one. (d) Pick a number between one and one million (e.g. 123456) and find this element in the time series by typing x[123456]. (e) Now find the square root of the absolute value of the element you identified in (d) using the command sqrt(abs(x[123456])). 3 (f) You can use R to do simple arithmetic also, just as you might on a pocket calculator. For example, to compute the square root of 26.51 simply use the command sqrt(26.51). To find the natural log of the same number type
  • 5. log(26.51), or to find the log to base 10 you can use log10(26.51). This can be very handy if you need to do some quick calculations as part of your assignments. 10. When you are done with R, simple close the R window or type q() at the prompt. You can answer “No” if asked whether you want to save the workspace. Getting Help R has an excellent web browser for providing help. After starting R simply type help.start() to open the help menu in your web browser. You can also find help about a specific command. For example, to find more about the mean command you used in 9(a) above, simple type help(mean) after the R prompt. Summary This should be enough information for now to get you started. Each homework assignment will provide you with further specific information as required. Page ? Page ? 1. In what might be the earliest example of media synergy, some of the first magazines in France were collections of works taken mostly from newspapers. A) True
  • 6. B) False 2. The word magazine comes from the French term magasin, meaning “storehouse.” A) True B) False 3. The first magazines in America were edited for the working classes. A) True B) False 4. The first colonial magazines published by Andrew Bradford and Benjamin Franklin enjoyed instant success and continued for several years. A) True B) False 5. The first magazines primarily offered entertainment news and gossip. A)
  • 7. True B) False 6. Specialized magazines were published in America throughout the nineteenth century. A) True B) False 7. Some of the most influential magazines of the nineteenth century were targeted at women. A) True B) False 8. By the end of the nineteenth century, some magazine prices actually went down—from thirty-five cents to ten cents. A) True B) False 9. Production costs and reduced distribution forced magazine publishers to raise magazine prices. A)
  • 8. True B) False 10. President Theodore Roosevelt criticized magazine journalists who exposed corruption in government and business by calling them muckrakers. A) True B) False 11. Muckraking journalists exposed corruption and abuses in the oil, meatpacking, and patent medicine industries. A) True B) False 12. The Saturday Evening Post continued the muckraking tradition—especially by criticizing business corruption—into the 1920s. A) True B) False 13. For many years Reader'sDigest was the most popular magazine
  • 9. in the world. A) True B) False 14. Life magazine was able to compete with the popular radio programs of the 1930s and 1940s by running popular fiction, first-person news reports, and other text-based features. A) True B) False 15. Collier's and Woman's Home Companion failed in the 1950s because of poor management. A) True B) False 16. TV Guide succeeded, in part, because it was readily available at the nation's supermarket checkout lines. A) True B) False 17.
  • 10. In a desperate attempt to compete with television in the late 1960s, the Saturday Evening Post and Life cut their cover prices and thereby increased circulation by millions of copies. A) True B) False 18. Women's magazines, such as Good Housekeeping and Woman's Day,survived the competition for ad dollars better than magazines like Life and Look. A) True B) False 19. The magazine industry continues to shun the Internet because of its threat to printed journals. A) True B) False 20. Webzines such as Salon and Slate have opened new doors for online journalism. A) True B) False
  • 11. 21. Specialized magazines outside the mainstream publish information and viewpoints for readers not served by other media channels. A) True B) False 22. Until Playboy entered the marketplace, most large-circulation magazines were targeted at women. A) True B) False 23. To avoid offending readers, Sports Illustrated does not publish investigative articles. A) True B) False 24. To create new interest in the magazine, Playboy announced it would no longer publish nude photos beginning in 2016. A) True B) False
  • 12. 25. The AARP Bulletin and AARP The Magazine have the largest circulations of any U.S. magazines. A) True B) False 26. The New Yorker was the first city magazine aimed at a national upscale audience. A) True B) False 27. Though they resemble newspapers, supermarket tabloids are considered to be a type of magazine. A) True B) False 28. The circulation of tabloid newspapers such as the National Enquirer declined after their peak in the 1980s. A) True B) False
  • 13. 29. The average magazine contains about 45 percent ad copy and 55 percent editorial material. A) True B) False 30. The Web and App formats give magazines unlimited space and the ability to do things that are impossible in the print versions. A) True B) False 31. Magazines survived the coming of television in part by developing demographic and regional editions. A) True B) False 32. Demographic editions of national magazines are able to charge higher rates for advertising. A) True B) False
  • 14. 33. Split-run editions allow national magazines to tailor ads to different geographic areas. A) True B) False 34. Demographic editions of national magazines are tailored to the interests of different geographic areas. A) True B) False 35. Almost all magazines offer 25 to 50 percent discounts from their rate cards to advertisers. A) True B) False 36. The typical consumer magazine distributes far more copies through newsstand sales than through subscriptions. A) True B) False
  • 15. 37. Evergreen magazine subscriptions are those that are automatically renewed on the subscriber's credit card. A) True B) False 38. By 2015, digital distribution accounted for about 60 percent of the magazine audience. A) True B) False 39. Large companies are increasingly beginning to dominate the magazine business. A) True B) False 40. Alternative magazines such as the Progressive and the National Review have historically defined themselves in terms of gender and race. A) True B)
  • 16. False 41. Zines are usually noncommercial, small-circulation magazine projects self-published by individuals. A) True B) False 42. With so many specialized magazines appealing to distinct groups, magazines today don't have as strong a role in creating a sense of national identity. A) True B) False 43. Early European magazines were oriented toward _____. A) broad political commentary B) discussions of women's issues C) medical and health advice D) hunting and fishing tips E) recent news
  • 17. 44. Which of the following statements about colonial American magazines is true? A) George Washington, Alexander Hamilton, John Hancock, Paul Revere, and Benjamin Franklin all had work published in these magazines. B) Circulation was relatively small and typically limited to politicians, the educated, and merchant classes. C) Some magazines helped rally the colonies against British rule. D) The very first colonial magazines had difficulty catching on. E) Athe options are correct. 45. In 1828, Sarah Josepha Hale started the first magazine directed exclusively to a female audience, called _____. A) Godey's Ladies Book B) Harper's C) Youth's Companion D) Ladies' Magazine E) Ladies' Home Journal 46. What factor had an effect on the dramatic growth in magazine circulation around the end of the nineteenth century?
  • 18. A) Cheaper postal rates B) Advances in mass-production printing C) Lower cover price D) Dramatic growth of drugstores and dime stores E) All of the options are correct. 47. Who wrote History of the Standard Oil Company, first serialized in McClure's magazine? A) Ida Tarbell B) Upton Sinclair C) Joseph Pulitzer D) Nellie Bly E) Frederick Douglass 48. The term muckraker _____. A) was coined by President Theodore Roosevelt because he was angry with negative reporting B) described investigative reporters who only wrote about American institutions in a positive light C)
  • 19. was seen as an insult by leading investigative reporters D) described reporters who wanted to write in the simplistic and conventional style of newspaper journalism E) None of the options are correct. 49. Who wrote The Jungle, a fictional account of Chicago's meatpacking industry? A) Lincoln Steffens B) Ida Tarbell C) Tim Allen D) Upton Sinclair E) Frank Norris 50. Which of the following is not a result of muckraking journalism in magazines around the start of the twentieth century? A) Antitrust laws for increased government oversight of business B) The creation of government oversight of food and drugs C) A progressive income tax D) The direct election of U.S. senators E) A drop in attention paid to the plight of immigrants in big cities
  • 20. 51. One of Cyrus Curtis's strategies for reinvigorating the Saturday Evening Post was to _____. A) appeal to farmers B) romanticize American virtues through images like Norman Rockwell paintings C) denigrate American values D) continue the muckraking tradition E) publish risqué pictures 52. Which magazine was the foremost outlet for photojournalism in the mid-twentieth century? A) Life B) The North American Review C) The Nation D) The Saturday Evening Post E) Harper's 53. Which of the following statements about general-interest magazines is false?
  • 21. A) They became popular starting in the mid-to-late-nineteenth century. B) With one or two exceptions, they had mostly gone out of business by about 1910. C) Television played a big role in signaling the demise of general- interest magazines. D) Photojournalism was a key aspect of general-interest magazines. E) None of the options are correct. 54. One of the reasons for TV Guide's popularity was that _____. A) its first issue featured Elvis B) it offered lurid commentary about TV stars C) it was initially free D) many newspapers hadn't yet started publishing TV listings E) All of the options are correct. 55. Media baron Rupert Murdoch bought TV Guide in 1988 because _____. A) it was one of the world's most profitable magazines B) he wanted to ensure that programs for his Fox network would be
  • 22. listed C) he wanted to change the magazine's liberal editorial policy D) he enjoyed reading the magazine E) he was afraid it would go out of business without him 56. Which of the following is not a reason Life and Look magazines went out of business in the early 1970s? A) Their paid circulation had plummeted, with the magazines falling out of the Top 10 magazines in the nation. B) Advertisers were shifting their money toward television. C) Postage rates had increased for oversized magazines. D) They had relatively small supermarket sales. E) They were being sold for far less than the cost of production. 57. Which of the following was designed as a general-interest or mass audience magazine? A) The Saturday Evening Post B) Reader's Digest C) Time D) People
  • 23. E) All of the options are correct. 58. Which popular magazine was launched in 1974 by Time Inc.? A) Sports Illustrated B) The Saturday Evening Post C) People D) Life E) TV Guide 59. An example of a magazine that was conceived as online-only is _____. A) Time B) TV Guide C) Wired D) Entertainment Weekly E) Slate 60. Launched in 2009 by MSN and BermanBraun, _____ is a leading online entertainment magazine.
  • 24. A) Entertainment Weekly B) Wired C) Wonderwall D) Salon E) Slate 61. Claiming over 25 million unique monthly visitors, _____ is currently the leading online magazine. A) Salon B) Slate C) Wonderwall D) Wired.com E) Elle Girl 62. Which of the following statements about the relationship between magazines and the Internet is false? A) The Internet was initially seen as a medium that would kill print magazines. B) Some print magazines that have folded are finding new life on the Internet.
  • 25. C) Online-only magazines have gained journalistic credibility. D) The Internet gives magazines the ability to do things that they couldn't do in print. E) The Internet is still widely considered to be putting the final nails into the coffin of print magazines. 63. An example of the way in which an online magazine might be different from a print magazine is to _____. A) feature interactive 3-D models B) allow readers to click on an item on a digital page and be taken to an online store where they can purchase it C) feature video and audio D) use an innovative layout that is only possible online E) All of the options are correct. 64. Online-only and online versions of magazines are _____. A) having trouble attracting an audience B) more expensive to produce and distribute compared to printed versions C) able to add interactive components to their articles D)
  • 26. struggling with space limitations in the online format E) All of the options are correct. 65. Which of the following is an example of a consumer magazine? A) Progressive Grocer B) Dakota Farmer C) Dairy Herd Management D) Advertising Age E) O: The Oprah Magazine 66. Hugh Hefner's Playboy magazine became an instant success in 1953, thanks in part to _____. A) an expensive TV ad campaign B) sending free copies to one million male college students C) articles that criticized divorced and working women D) a nude calendar foldout of Marilyn Monroe E) insightful feminist articles 67. Which of the following is true about the magazine Sports
  • 27. Illustrated? A) It is an example of a general-interest magazine. B) It is never criticized for its annual swimsuit edition. C) It is never credited with major investigative reporting. D) It was originally aimed at well-educated, middle-class men. E) It originally promoted its content as “humanized geography.” 68. The top children's magazine in 2014 was _____. A) Ranger Rick B) Maxim C) Boy's Life D) Highlights for Children E) Youth's Companion 69. Of the following magazines, which has the largest circulation in the United States? A) Maxim B) AARP The Magazine C) Time
  • 28. D) Reader's Digest E) TV Guide 70. Among magazines that target audiences by age, the most dramatic recent success has come from those aimed at _____. A) children B) tweens C) young adults D) adults over fifty E) thirty- to forty-year-olds 71. Which of the following is true about minority-targeted magazines? A) They have a history dating back to before the Civil War, with titles like Emancipator and Reformer. B) They have a history dating back to the first half of the twentieth century, with titles like Negro Digest and Ebony. C) Minority-targeted magazines cover only racial minorities. D) They were popular during the Civil Rights movement of the 1950s and 1960s, but have mostly gone out of business since then.
  • 29. E) Most of them started up as Webzines in the last ten years. 72. The bilingual magazine _____ is the most successful English- language publication for Hispanic women. A) Latina B) Essence C) Vanidades D) ESPN Deportes E) None of the options are correct. 73. Within the magazine publishing industry, the department that usually produces the nonadvertising content of a magazine is known as the _____. A) advertising and sales department B) production and technology department C) editorial department D) circulation and distribution department E) table of contents department 74.
  • 30. A magazine's rate card lists _____. A) what it costs to advertise in the magazine B) how often the magazine is published C) the price of a one-, two-, or three-year subscription D) how much the magazine pays its freelance writers E) None of the options are correct. 75. Advertisers frequently pressure magazines to publish _____. A) gatefold covers B) more complimentary copy C) investigative stories D) color photos E) more often 76. A national magazine with regional editions _____. A) tailors ads to different age groups B) contains different stories for different geographic regions C) relies solely on subscription sales D)
  • 31. relies solely on newsstand sales E) sends special editorial content to readers with high incomes 77. Split-run editions are _____. A) magazines that publish two issues a month B) a new ownership strategy—such as when Bertelsmann bought Random House C) magazines that have ads that are tailored for geographic areas D) national magazines that tailor their content for specific groups of readers E) None of the options are correct. 78. A main purpose of split-run and demographic editions of magazines is to _____. A) move the magazine industry back to more general-interest publications B) make sure that local and regional companies are cut off from advertising in nationally distributed magazines C) create fewer places for advertisers to spend their money D) attract more targeted advertisers and compete with television advertising E)
  • 32. None of the options are correct. 79. Within the magazine publishing industry, the department that typically monitors single-copy and subscription sales is known as the _____. A) advertising and sales department B) circulation and distribution department C) table of contents department D) editorial department E) production and technology department 80. In terms of ownership structure and business models, the magazine industry has the most in common with which other form of mass media? A) Book publishing B) The recording industry C) The Internet D) Movies E) Cable television 81.
  • 33. Which of the following statements about Linux software is true? A) Exposing government corruption B) Transforming the United States from a producer society to a consumer society C) Forcing change in powerful institutions D) Giving a voice to ordinary American citizens E) None of the options are correct. 82. A style of early-twentieth-century investigative journalism, ______________________ refers to reporters crawling around in society's muck to uncover a story. 83. A type of magazine that addresses a wide variety of topics, ______________________ magazines are aimed at a broad national audience. 84. Salon is an example of a ______________________, a magazine that appears exclusively online. 85. ______________________ typically publish human-interest stories, celebrity gossip, and crime stories that push the limits of decency and credibility.
  • 34. 86. Editions of national magazines whose advertising is tailored to subscribers and readers according to occupation, class, and zip- code address are ______________________ editions. 87. ______________________ subscriptions automatically renew on a credit card account unless subscribers request that the automatic renewal be stopped. 88. The ____ championed women's property rights. 89. ____ published the work of writers such as Emerson, Thoreau, and Twain. 90. ____ is the longest-running magazine in U.S. history. 91. ____ pioneered the national political magazine format. 92. _____ took on the Standard Oil Company. 93. _____ investigated patent medicines.
  • 35. 94. _____ investigated Chicago's meatpacking industry in The Jungle. 95. _____ targeted urban problems. 96. In _____, ads in national magazines are tailored for geographic areas. 97. In _____, unique versions of magazines can be sent to specific subscriber groups. 98. _____ are magazines created exclusively for online readers. 99. Explain the role of early magazines in America's political and social shift from British colony to independent nation. 100. What are the typical characteristics of a general-interest magazine? What types of content would you expect to see in such a magazine?
  • 36. 101. What role did magazines play in social reform in the late nineteenth and early twentieth centuries? 102. When and why did some of the major general-interest magazines fail? 103. What are some of the advantages that online versions of magazines have over print versions? 104. How are some online-only magazines trying to reinvent the idea of a magazine? 105. In what ways do magazines serve democratic ideals? 106. Why is the muckraking spirit—so important at the turn of the twentieth century in popular magazines—generally missing from magazines today? 107. Imagine you are the marketing director of your favorite magazine. What would you do to increase circulation? 108.
  • 37. Do your favorite magazines define you primarily as a consumer or as a citizen? Do you think magazines have a responsibility to educate their readers as both? Why or why not? Answer Key 1. A 2. A 3. B 4. B 5. B 6. A 7. A 8. A 9. B 10. A 11. A 12. B 13. A 14. B 15.
  • 42. Evergreen 88. Godey's Lady Book 89. The North American Review 90. The Saturday Evening Post 91. The Nation 92. Ida Tarbell 93. Colliers 94. Upton Sinclair 95. Lincoln Steffens 96. split-run editions 97. demographic editions 98. Webzines 99. 100. 101. 102. 103. 104. 105.
  • 43. 106. 107. 108. Extra_Credit_folder/extra_credit_P2.R # # Enter name here. # #name<-"John Doe" # # Read the AAO principal component amplitude time series. # aao<-read.table("aao_amp_1979-2013.dat") attach(aao) aao_data<-V1 time<-seq(1979,2013,len=length(aao_data)) # # Plot the PDF with normal distribution. # x<-seq(-4,3,0.01) y<-exp(-(x- mean(aao_data))^2/(2*var(aao_data)))/(sd(aao_data)*sqrt(2*pi) ) jpeg("extra_credit_plot4.jpg") hist(aao_data,seq(-4,3,0.5),prob=TRUE,main="Probability Density Function of AAO Amplitude",xlab="AAO Amplitude",sub=name,ylim=c(0,0.5)) lines(x,y,col="red",lwd=2) dev.off() #
  • 56. OCEA 90: Extra Credit Answer Sheet Name: Section: TA: Yang Xiang Henry Houskeeper Assignment Instructions: 1. Put your name and section at the top of this sheetand check the appropriate TA box. 2. Download the assignment from the class website. Follow all instructions carefully and execute all R scripts as prescribed. 3. Answer all HW questions in the spaces provided below. (Please note:each answer does not need to fill the entire space provided. The accuracy of your answer is valued, not its length.) 4. All Figures must be printed out and stapled to the back of this answer sheet. (Please print figures on as few pages as possible, but ensure that all figures are still readable.) 5. Remember the following requirements: a. Submit your assignment on this answer sheet b. Submit your assignment on time (10% grade reduction per calendar day late) c. Submit all necessary figures d. Submit all figures with your name printed on them (no credit for the entire
  • 57. assignment if your name is not on the figures) 6. Also: a. A hard copy of this answer sheetis required. Electroniccopies will not be accepted. b. Do not share answers with your classmates (we follow UCSC procedures in cases of academic misconduct). 7. You are welcome to attend office hours for any TA (and of course the professor)! 1A(iii). 1B. OCEA 90 Fundamentals of Climate Fall 2019 1C. 1D(i)
  • 58. 1D(ii) 1E 2i. The probability of the AAOamplitude being at or below -1 is 2ii. The probability of the AAOamplitude being at or below +1 is . Therefore, the probability of the AAOamplitude being greater than -1 and less than or equal to +1 is . 2iii. The probability of the AAOamplitude being above +1 is . __MACOSX/Extra_Credit_folder/._AnswerSheet_ExtraCredit.p df Extra_Credit_folder/extra_credit_P1.R # # Enter name here. # #name<-"John Doe" # # Read the AAO principal component amplitude time series. #
  • 59. aao<-read.table("aao_amp_1979-2013.dat") attach(aao) aao_data<-V1 time<-seq(1979,2013,len=length(aao_data)) # # Plot time series # jpeg("extra_credit_plot1.jpg") plot(time,aao_data,"l",xlab="Time in years",ylab="AAO Amplitude",main="Time Series of AAO Amplitude",sub=name) dev.off() # # Plot the histogram. # jpeg("extra_credit_plot2.jpg") hist(aao_data,seq(-4,3,0.5),ylim=c(0,100),main="Histogram of AAO Amplitude",xlab="AAO Amplitude",sub=name) dev.off() # # Plot the PDF # jpeg("extra_credit_plot3.jpg") hist(aao_data,seq(- 4,3,0.5),ylim=c(0,0.5),prob=TRUE,main="Probability Density Function of AAO Amplitude",xlab="AAO Amplitude",sub=name) dev.off() # detach() Extra_Credit_folder/AnswerSheet_ExtraCredit.docx OCEA 90 Fundamentals of Climate Fall 2019
  • 60. OCEA 90: Extra Credit Answer Sheet Name: Section: TA: Yang Xiang |_| Henry Houskeeper |_| Assignment Instructions: 1. Put your name and section at the top of this sheet and check the appropriate TA box. 2. Download the assignment from the class website. Follow all instructions carefully and execute all R scripts as prescribed. 3. Answer all HW questions in the spaces provided below. (Please note: each answer does not need to fill the entire space provided. The accuracy of your answer is valued, not its length.) 4. All Figures must be printed out and stapled to the back of this answer sheet. (Please print figures on as few pages as possible, but ensure that all figures are still readable.) 5. Remember the following requirements: a. Submit your assignment on this answer sheet b. Submit your assignment on time (10% grade reduction per calendar day late) c. Submit all necessary figures d. Submit all figures with your name printed on them (no credit for the entire assignment if your name is not on the figures) 6. Also: a. A hard copy of this answer sheet is required. Electronic copies will not be accepted. b. Do not share answers with your classmates (we follow UCSC procedures in cases of academic misconduct). 7. You are welcome to attend office hours for any TA (and of course the professor)! 1A(iii).
  • 61. 1B. 1C. 1D(i) 1D(ii) 1E 2i. The probability of the AAO amplitude being at or below -1 is 2ii. The probability of the AAO amplitude being at or below +1 is . Therefore, the probability of the AAO amplitude being greater than -1 and less than or equal to +1 is . 2iii. The probability of the AAO amplitude being above +1 is . __MACOSX/Extra_Credit_folder/._AnswerSheet_ExtraCredit.d ocx Extra_Credit_folder/extra_credit_canvas.pdf 1
  • 62. Extra Credit Assignment DUE DATE: Friday, 6 December, in class – NO EXCEPTIONS Download the following files onto your computer which you will find on canvas on the “Extra Credit Assignment” page: extra_credit_P1.R extra_credit_P2.R extra_credit_P3.R aao_amp_1979-2013.dat Next, start up “R” and at the prompt (>>) enter your name in the following way: name<-“Jane Doe” Important: Be sure to do this before you run each new program. This step is very important since it will identify you on the results of your work. If your name does not appear appropriately on the graphical output that you hand-in with your completed assignments, you will receive no credit for this assignment. In addition, if you omit this step, the R-programs for this exercise will not work correctly and you will get an error message. PLEASE HAND IN ALL OF THE FIGURES GENERATED BY
  • 63. THE PROGRAMS THAT YOU RUN FOR THIS ASSIGNMENT. The Antarctic Oscillation (AAO) As we discussed in class, principal component analysis of the 750mb geopotential height over the entire southern hemisphere reveals the existence of an annular mode of variability called the Antarctic Oscillation (the AAO; also sometimes referred to as the Southern Annular Mode (SAM)) . Figure 1 shows the pattern of 750mb geopotential height anomalies associated with the AAO which recall is the first principal component. 2 Question 1: Figure 1: The 750mb geopotential height associated with the positive phase of the AAO. (a) Run the program “extra_credit_P1.R” in R. This will load the data for the principal
  • 64. component time series of the monthly mean 750mb geopotential height anomalies associated with the Antarctic Oscillation (AAO) for the period 1979-2013, and will generate three figures: extra_credit_plot1.jpg - a plot of the time series of the AAO principal component time series (i.e. the amplitude of the pattern shown in Fig. 1); extra_credit_plot2.jpg – a histogram of the AAO amplitude; extra_credit_plot3.jpg –the probability density function (PDF) of the AAO amplitude. The time series of AAO amplitude is called “aao_data.” (i) First compute the mean AAO amplitude for the entire 35 year period, and record the value that you obtain on plot3. (ii) Next, estimate the mode of the probability density function using either plot2 or plot3, and record this number on plot3. (iii) Briefly explain how the mean is computed, and the definition of the mode, and compare the two numbers computed here. (b) Compute the standard deviation of the AAO amplitude, and record this number on plot3. Explain what is meant by the standard deviation. 3 (c) Now run the program extra_credit_P2.R. This will generate a new figure called extra_credit_plot4.jpg which is the same as plot3 except a normal distribution with the same mean and standard deviation as the AAO amplitude time
  • 65. series is superimposed on the PDF. Briefly describe how well the PDF of the AAO amplitude is described by a normal distribution. (d) Now run extra_credit_P3.R which yields an additional figure called extra_credit_plot5.jpg which shows the cumulative probability distribution for the AAO amplitude. (i) In your own words, explain what a cumulative probability density function shows. (ii) Using plot5, estimate the median of the distribution and explain clearly how you did this. Record this number on plot3 and compare to the mean and the mode from part (a). (e) If the PDF of the AAO amplitude was described by a normal distribution, what can you say about the mean, the mode and the median of the amplitude? Question 2: Consider the following scenario. A group of researchers at the NOAA Aeronomy Laboratory in Boulder, Colorado, is trying to establish whether a relationship exists between the amplitude of the AAO and the rate of stratospheric ozone depletion that occurs each year over the Antarctic continent. They have asked you to provide them with the following probabilities: (i) The probability that the AAO amplitude will be less than or equal to -1; (ii) The probability that the AAO amplitude will be greater than
  • 66. -1 and less than or equal to +1; (iii) The probability that the AAO amplitude will be greater than +1. Estimate these three probabilities using information from question 1, and record them on plot5. __MACOSX/Extra_Credit_folder/._extra_credit_canvas.pdf Extra_Credit_folder/extra_credit_P3.R # # Enter name here. # #name<-"John Doe" # # Read the AAO principal component amplitude time series. # aao<-read.table("aao_amp_1979-2013.dat") attach(aao) aao_data<-V1 time<-seq(1979,2013,len=length(aao_data)) # # Plot the Cumulative Probability Distribution. # jpeg("extra_credit_plot5.jpg") plot(ecdf(aao_data),xlab="AAO Amplitude",ylab="c(T)",main="Cumulative Probability Function: AAO Amplitude",sub=name,do.points=FALSE,verticals=TRUE) dev.off() detach()