Discussion:
Analysis of Sunspot number cycles in Mathematica
(too old to reply)
Roger Bagula
2007-12-03 13:18:16 UTC
Permalink
In the past I had done an approximate match of sunspot number plots to a
"beat" of three cycles. I have posted several results to my own egroups.
Here is a picture of the sunspot activity 1610 to 1994:
http://profile.imeem.com/GUmj0c/photo/b-mFxDqCxu/

http://www.google.com/codesearch?q=fractal+dimension+lang%3Amathematica&hl=en&btnG=Search+Code
http://www.internationalmathematicasymposium.org/IMS99/paper25/ims99paper25.nb

Using this correlation dimension method from the Italian paper I get
very close to a Cantor dimension
for the sunspot data.
Working with it the older data before 1700 seems suspect?
Correlation dimension:
s1=0.6376053551998503
This method appears to be a very good one for one dimensional or below
times series.

My own count based estimate gives ( not very good because I use a Floor[]
to limit the m\number of counts needed):
s2= 0.3781094484568289
s1+s2~ 1
On the calculation of the "beat" function: a Weierstrass like approach
in products like:( for fundamental frequency w0 and dimensiuon s)
amp=175.1
w0=(10.9259 +10.9231)/2; (* the average frequency from the neural net
solution*)
s=0.6376053551998503;
amp2 = Max[Table[g[x] - g[0], {x, 1, Length[b]}]]
p0[x_] = x*Product[Sin[w0^(s*n)*x]^2/w0^((s - 2)*n), {n, -2, 2}]
g[x_] = Fit[b, {1, p0[x]}, x]
g2 = Plot[amp*(g[x] - g[0])/amp2, {x, 1, Length[b]}, PlotRange -> All]
g3 = ListPlot[b, PlotStyle -> {Hue[1]}, PlotJoined -> True]
Show[{g2, g3}]
Gives an approximation with the observed beat structure.
It isn't really a very good result.
I hope someone comes up with a better answer.
Mathematica:
Directory[]
raw = Flatten[ReadList["yearrg.dat", Number, RecordLists -> True]]
Dimensions[raw]
Clear[b]
b = Table[raw[[n]], {n, 2, 772, 2}]/175.1
(*Form From : Testing Chaos and Fractal Properties in Economic Time Series
Maria I.Loffredo
Dipartimento di Matematica, Università di Siena, I - 53100 Siena, Italy
e - mail : ***@unisi.it *)
P1[i_] := P1[i] = b[[i]]
P2[i_] := P2[i] = {b[[i]], b[[i + 1]]}
P3[i_] := P3[i] = {b[[i]], b[[i + 1]], b[[i + 2]]}
Hs[s_] := If[s > 0, 1, 0] (* Heaviside function *)
dist[P_, Q_] := N[Sqrt[Sum[(P[[k]] - Q[[k]])2, {k, 1, 2}] ]]
Corr[R_] := N[(Sum[Hs[R - dist[P3[i], P3[j]]], {i, 1, Length[b] - 2}, {j, 1,
i - 1}]
+ Sum[Hs[
R - dist[P3[i], P3[j]]], {i, 1, Length[b] - 2}, {j, i +
1, Length[b] - 2}])/(Length[b] - 2)2]
datacorr = Table[{R, Corr[R]}, {R, 0.125, 1, 0.0625}]
Needs["Graphics`Graphics`"]
ga = LogLogListPlot[datacorr]
LP = LogLogListPlot[datacorr, DisplayFunction -> Identity];
lp = Table[LP[[1, i, 1]], {i, 1, Length[datacorr]}];
fb[x_] = Fit[lp, {1, x}, x] // Simplify
0.04205939538432238+ 0.6376053551998503 x
gb = Plot[fb[x], {x, -1, 0}]
Show[{gb, ga}]
N[Log[2]/Log[3]]
0.6309297535714573`

Mathematica :
Directory[]
raw = Flatten[ReadList["yearrg.dat", Number, RecordLists -> True]]
Dimensions[raw]
b = Table[Floor[raw[[n]]], {n, 2, 772, 2}]
bm = Max[b]
c = Table[Count[b, n], {n, 1, bm}]
Max[c]
ListPlot[c]
d = Table[Count[c, n], {n, 0, Max[c]}]
e = Delete[Union[Table[If[Log[1 + c[[n]]] == 0, {}, N[{Log[n], Log[
1 + c[[n]]]}]], {n, 1.Length[c]}]], 1]
g0 = ListPlot[e, PlotJoined -> True]
h[x_] = Fit[e, {1, x}, x]
2.639117941421544- 0.3781094484568289 x
g1 = Plot[h[x], {x, 0, 5}]
Show[{g0, g1}]

This following program is a very crude matching of a Cantor cartoon
Biscuit (
Besicovitch -Ursell ) function with
the Sunspot data which the correlation dimension study says has a
dimension very near the Cantor one.
Even at that is is the best fitting I've gotten: better than several
days trying with Weierstrass product functions!

The major point is that it predicts a major cut off in solar activity in
about 30 years,
but a steady raise until then. If so that would be a good thing:
a mini-ice age is just what we need. Until then for the next
part of our century with solar activity going up and
greenhouse gas warming as well,
it is going to get hot.
The scale of solar warming is much slower of less magnitude
than greenhouse/ CO2 warming by a factor of about 10
I think.
Now, to the process that has a Cantor type of dynamics in the Sun?
My guess is that it is a Lorenz type " weather " circulation like that
that gives Jupiter
it's spots as well. The sunspot number is like the number of hurricanes
per year in earth weather terms. The sunspots like eyes of huuicanes
are slower / cooler than the storm they are central to.
My Cantor output is more like the solar flux output than the sunspot number.


Mathematica:
Clear[f, g, h, k, ff, kk, ll]
f[x_] := x /; 0 <= x <= 1/3
f[x_] := 0 /; 1/3 < x <= 2/3
f[x_] := x /; 2/3 < x <= 1
ff[x_] = f[Mod[Abs[x], 1]];
s0 = Log[2]/Log[3];
kk[x_] = Sum[ff[3^k*x]/3^(s0*k), {k, 0, 20}];
ll[x_] = Sum[ff[3^k*(x + 1/2)]/3^(s0*k), {k, 0, 20}];
(* adjusting axes crudely*)
Floor[6000/(772/2)];
ga = Table[175.1*kk[(n - 1610)/10000]/2, {n, 4000 + 1610, 11000 + 1610,
15}];
g0 = ListPlot[ga, PlotJoined -> True]
Directory[];
raw = Flatten[ReadList["yearrg.dat", Number, RecordLists -> True]];
Dimensions[raw]

b = Table[raw[[n]], {n, 2, 772, 2}];
amp = Max[b]

c = Apply[Plus, b]/Length[b]
{772}
175.1`
34.19611398963731`
ticks = Map[{#, StringForm["`1`", Sequence @@ raw[[1 + 2*#]]]} &,
Range[1, Length[b], 100]];
g1 = ListPlot[b, PlotJoined -> True, AspectRatio -> 0.2,
Frame -> True, FrameTicks -> {ticks, Automatic, None,
None}, PlotStyle -> Green, FrameLabel -> "sunspot #", Axes -> None];
Show[{g0, g1}]

Here is a picture of the two curves together:
http://profile.imeem.com/GUmj0c/photo/uHsjrgaAz1/

In conclusion, this fractal approach to sunspot numbers
seems to have some virtues over a simple "beats" of cycles approach
or the Mathematica neural net approach.
Simon
2007-12-04 10:11:09 UTC
Permalink
Dear Roger,

Yeah I had a look at the graph it looks like the oscillation of the sunspots
is on a climb, this could be because of several factorials, but
fundamentally it means from my understanding that a layer in the reaction
that is the sun is probably reaching a finality point that is increasing the
sunspots, also remember the data you have now is conclusive the database of
information back before our ability to properly measure this would leave you
with an inclusive result, but not a true spectrum.
Post by Roger Bagula
http://profile.imeem.com/GUmj0c/photo/uHsjrgaAz1/
In conclusion, this fractal approach to sunspot numbers
seems to have some virtues over a simple "beats" of cycles approach
or the Mathematica neural net approach.
Roger Bagula
2007-12-04 11:43:00 UTC
Permalink
Post by Simon
Dear Roger,
Yeah I had a look at the graph it looks like the oscillation of the sunspots
is on a climb, this could be because of several factorials, but
fundamentally it means from my understanding that a layer in the reaction
that is the sun is probably reaching a finality point that is increasing the
sunspots, also remember the data you have now is conclusive the database of
information back before our ability to properly measure this would leave you
with an inclusive result, but not a true spectrum.
Post by Roger Bagula
http://profile.imeem.com/GUmj0c/photo/uHsjrgaAz1/
In conclusion, this fractal approach to sunspot numbers
seems to have some virtues over a simple "beats" of cycles approach
or the Mathematica neural net approach.
Here's where I got the data:

4. Group Sunspot Numbers (Doug Hoyt re-evaluation) 1610-1995
http://www.ngdc.noaa.gov/stp/SOLAR/ftpsunspotnumber.html#hoyt

ftp://ftp.ngdc.noaa.gov/STP/SOLAR_DATA/SUNSPOT_NUMBERS/GROUP_SUNSPOT_NUMBERS/yearrg.dat

Two other sources of the 10.9 to 11.03 main cycle have been suggested:
1) Jupiter tidal effect (orbital period of Jupiter
11.86 years)
2) Tritium -- Half-Life: 12.32 Years

Jupiter has about the same mass tidal effect as Venus with has a more rapid orbital period of 0.815 years. No beat effect of the two seems to fit the cycle.

Tritium cycles seem unlikely in the sun: carbon cycles
are more likely?

It appear that the weather hypothesis is the best as of now for the cause.
Simon
2007-12-06 10:35:48 UTC
Permalink
Should try and see if you can map a word to the fractal : http://bin.chronolabs.org.au/Augmented%20Fractals.msi
Roger Bagula
2007-12-07 13:53:05 UTC
Permalink
I compared the:
1600 to 1980 temperatures as a data file here:
http://www.ncdc.noaa.gov/paleo/ei/ei_data/latbands.dat

with Group Sunspot Numbers (Doug Hoyt re-evaluation) 1610-1995
ftp://ftp.ngdc.noaa.gov/STP/SOLAR_DATA/SUNSPOT_NUMBERS/GROUP_SUNSPOT_NUMBERS/yearrg.dat

What I get is an unrelated as far as I can analyze noise blot.

As far as I'm concerned that pretty much puts to rest the oil company
argument that the warming is due to solar activity.
There is no real detectable correlation between the two data sets;
even their correlation dimensions are very different.
The only thing one can say is that they both appear to be increasing.
That there is a strange line effect as related to the golden mean...
The scatter is really awful.
You can get a picture of the scatter plot from me
or see it at:
http://profile.imeem.com/GUmj0c/photo/W86TQ5sS0k/
Mathematica:
Directory[]
Apply[Plus, {0.06`, -0.26`, -0.01`}]/3
raw = Flatten[ReadList["latbands2.dat", Number, RecordLists -> True]]
Dimensions[raw]
l = Length[raw]
b = Table[((raw[[n]] + raw[[n + 1]] + raw[[
n + 2]])/3 - (-0.11900269541778977))/0.2866666666666667, {n, 2 +
4*10, \
Length[raw], 4}]
Length[b]
Max[b]
Apply[Plus, b]/Length[b]
raw2 = Flatten[ReadList["yearrg.dat", Number, RecordLists -> True]]
Dimensions[raw2]
Length[raw2]
b2 = Table[(raw2[[n]] - 34.19611398963731)/175.1, {n, 2, Length[raw2], 2}]
Length[b2]
Max[b2]
Apply[Plus, b2]/Length[b2]
d = Sort[Table[{Log[Abs[b[[n]]]], Log[Abs[b2[[n]]]]/(1 +
Sqrt[5])/2 + 1/4}, {n, 1, Length[b]}]]
ga = ListPlot[d]
ListPlot[d, PlotJoined -> True, PlotRange -> All]
StandardDeviation[b]
StandardDeviation[b2]
Table[Length[Delete[
Union[Table[If[Abs[b[[n]]] > m*StandardDeviation[b], {n + 1609, \
b[[n]]}, {}], {n, 1, Length[b]}]], 1]], {m, 1, 5}]
Dimensions[%]
Table[Length[Delete[Union[Table[If[Abs[b2[[n]]] > m*StandardDeviation[b2], {
n + 1609, b2[[n]]}, {}], {n, 1, Length[b2]}]], 1]], {m, 1, 5}]
Dimensions[%]
<< Statistics`LinearRegression`
Regress[d, {1, x}, x]
f[x_] = Fit[d, {1, x}, x]
gb = Plot[f[x], {x, -6, 1}]
Show[{ga, gb}]
Respectfully, Roger L. Bagula
11759Waterhill Road, Lakeside,Ca 92040-2905,tel: 619-5610814
:http://www.geocities.com/rlbagulatftn/Index.html
alternative email: ***@sbcglobal.net
Roger Bagula
2007-12-09 12:55:33 UTC
Permalink
I used Paul Bourke FDC box
dimension calculator on the scatter diagram.
I got a dimension of:
1.10369
RSquared -> 0.994111
which means it is a pretty good line.
Since the Sunspot data as I posted is very near
Cantor dimension at Log[2]/Log[3],
Actually my two estimates ( correlation and modified Zipf frequency
counting) are
s1 = 0.6376053551998503
s2 = 0.3781094484568289
s1+s2=1.01571
which is a 0.1 lower than this slope.
So it appear that some other fractal process is involved.

Mathematica:
(* box dimension data from Paul Bourke's FDC*)
fdc = {1, 0, 2998, 8.0057,
2, -0.693147 , 1277 , 7.15227,
4, -1.38629, 668, 6.50429,
14, -2.63906 , 209, 5.34233,
24, -3.17805 , 118 , 4.77068,
36, -3.58352, 74 , 4.30407,
49, -3.89182 , 47, 3.85015,
61, -4.11087, 35, 3.55535,
73, -4.29046 , 23 , 3.13549,
85, -4.44265 , 23 , 3.13549,
98, -4.58497 , 19 , 2.94444,
196, -5.27811, 8 , 2.07944
}
d = Table[{fdc[[n]], fdc[[n + 2]]}, {n, 2, Length[fdc], 4}]
g = ListPlot[d]
f[x_] = Fit[d, {1, x}, x]
8.067269801326825`\[InvisibleSpace]+ 1.1036948478623085` x
g1 = Plot[f[x], {x, 0, -7}]
Show[{g, g1}]
<< Statistics`LinearRegression`
Regress[d, {1, x}, x]
s1 = 0.6376053551998503
s2 = 0.3781094484568289
s1 + s2

Roger Bagula
2007-12-09 11:45:40 UTC
Permalink
4. Palaeoclimate IPCC4th report page 477 Show relation of "solar
irradiance

Posted by: Roger Bagula ***@sbcglobal.net
Sat Dec 8, 2007 5:38 am (PST)

I think I had seen this kind of break down before
but it is a good idea to show ( in this case graphically) that
the propaganda isn't true.
Solar activity has gotten larger,
but the temperature rise is way above what it could be causing.
The effect of CO2 rise was noticed by the 1980's.
To get public attention it took large hurricanes
and polar ice melting...

http://profile.imeem.com/GUmj0c/photo/QwzrdahkNf/

3. IPCC WG1 AR4 Report->Palaeoclimate

Posted by: Roger Bagula ***@sbcglobal.net
Sat Dec 8, 2007 5:16 am (PST)

http://ipcc-wg1.ucar.edu/wg1/wg1-report.html
IPCC WG1 AR4 Report
Please access the Summary for Policymakers (SPM), the Technical
Summary (TS), chapters and other material from the following table of
links. Links to the Supplementary Material pages are also provided.

/Note: A dash in the Supplementary Material column indicates that
there is no Supplementary Material
for that chapter./


#

Section Title

Section (PDF)

Supplementary Material
Front Matter pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_FrontMatter.pdf> (0.3
MB) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
Summary for Policymakers pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_SPM.pdf> (3.7 MB) -
Technical Summary pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_TS.pdf> (18.6 MB) -
Frequently Asked Questions /(extracted from chapters below)/ pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_FAQs.pdf> (7.2 MB) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
1 Historical Overview of Climate Change Science pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch01.pdf> (5.1 MB) -
2 Changes in Atmospheric Constituents and in Radiative Forcing pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch02.pdf> (7.7 MB) -
3 Observations: Surface and Atmospheric Climate Change pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch03.pdf> (24.2 MB)
webpage <http://ipcc-wg1.ucar.edu/wg1/Report/suppl/AR4WG1_Ch03-suppl.html>
4 Observations: Changes in Snow, Ice and Frozen Ground pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch04.pdf> (8.4 MB) -
5 Observations: Oceanic Climate Change and Sea Level pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch05.pdf> (15.0 MB) -
_/*6 _/*Palaeoclimate*/_ pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch06.pdf> (7.7 MB)
webpage
<http://ipcc-wg1.ucar.edu/wg1/Report/suppl/AR4WG1_Ch06-suppl.html>*/_
7 Couplings Between Changes in the Climate System
and Biogeochemistry pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch07.pdf> (7.8 MB) -
8 Climate Models and their Evaluation pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch08.pdf> (5.9 MB)
webpage <http://ipcc-wg1.ucar.edu/wg1/Report/suppl/AR4WG1_Ch08-suppl.html>
9 Understanding and Attributing Climate Change pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch09.pdf> (5.4 MB)
webpage <http://ipcc-wg1.ucar.edu/wg1/Report/suppl/AR4WG1_Ch09-suppl.html>
10 Global Climate Projections pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch10.pdf> (18.8 MB)
webpage <http://ipcc-wg1.ucar.edu/wg1/Report/suppl/AR4WG1_Ch10-suppl.html>
11 Regional Climate Projections pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Ch11.pdf> (10.6 MB)
webpage <http://ipcc-wg1.ucar.edu/wg1/Report/suppl/AR4WG1_Ch11-suppl.html>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
Annexes: (1)Glossary, (2)Authors, (3)Reviewers, (4)Acronyms pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Annexes.pdf> (0.4 MB) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
Index pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Print_Index.pdf> (0.4 MB) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
Uncertainty Guidance Note for the Fourth Assessment Report pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4_UncertaintyGuidanceNote.pdf>
(0.1 MB) -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - -
Errata for the Working Group I Fourth Assessment Report pdf
<http://ipcc-wg1.ucar.edu/wg1/Report/AR4WG1_Errata_2007-09-05.pdf> (0.2
MB) -





V
Loading...