Message Boards Message Boards

0
|
7259 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Problem with time series forecast not accepting the data

Posted 10 years ago

Dear All:

I am fairly new to Mathematica, and I am able to import a file containing the date and time and watts consumed. I am able to import it, but when I try to apply the TimeSeriesForecast it give me an error that the TimeSeriesForecast[<<1>>]} is not a valid dataset or list of datasets, although I used it other times. I am attaching the cvs file and the notebook code I am executing.

Thanks in advance for any help.

Antonio

Error:
DateListPlot::ldata: {TimeSeries[\!\(\*
GraphicsBox[RasterBox[{{179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179}, {179, 180, 180, 180, 179, 179, 179, 179, 179, 179, 179, 179}, {179, 179, 180, 179, 179, 248, 248, 178, 179, 179, 179, 179}, {179, 179, 180, 179, 179, 253, 248, 179, 179, 179, 179, 179}, {179, 179, 179, 179, 179, 248, 248, 179, 179, 179, 179, 179}, {179, 179, 248, 248, 248, 248, 248, 248, 248, 248, 179, 179}, {179, 179, 248, 248, 248, 248, 248, 248, 248, 248, 179, 179}, {179, 179, 179, 179, 179, 248, 248, 179, 179, 179, 179, 179}, {179, 180, 179, 179, 179, 252, 248, 179, 178, 179, 180, 179}, {179, 180, 180, 179, 179, 248, 248, 179, 180, 180, 180, 179}, {179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179}, {179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179}}, {{0, 0}, {12, 12}}, {0, 255},
ColorFunction->GrayLevel],
BaselinePosition->Bottom,
ImageSize->{12, 12},
PlotRange->{{0, 12}, {0, 12}}]\)    \!\(\*
GraphicsBox[{{}, {}, 
{RGBColor[0.368417, 0.506779, 0.709798], AbsoluteThickness[1.6], Opacity[1.], LineBox[CompressedData["
1:eJwVzH9Qy3Ecx/E1Kf1QihZNO/2g/KpzMtHU++qELhkjlG6nVJQsN6Gu3KKz
1rbvd6WF7iJKzo/8KL+qJc3R+jl1OJcpoktOypgfteTz/uN1z3v88/KIF21L
ZDIYDC4ZljE+JZ5bs1R7Mpp/4sB8FawX/WGjLQPHxWwuDYsFMo0rccft3A/l
7hQsWZOWgH6Zs1CucVVCa+kse3SK99ndEywFWKdGVrOIdQ+5nGMMOcSve7sd
nXzJyJGZZbDnBNPkQtx1zODyZiAffq4dLkE3JHvZcn7lw7W/niFomhts8KmV
weQiU/8c4oSmI57ekgI4FO0mRSePtJzJDZFDjsWUP1rrqNjInpDDUnZ292xi
ztfUw1efK+A3NzITvTU86VlxnhL2Nt+bh/7OHtWULabgQIuhwZlY3GsSvudS
QOt37kPXpc8JDg6jQBCeOh0taPM3XeVTsKqp+6YT8d2J+KFlcRQ8qHoRieZ2
FNU0plDwyob+Nov4Tlp3qONxCpxE5SVoNztfh+w8Cr6GRqxGM5qzH57qo+DT
3A19jsSlknXOEh4NWSnTpOhdwvaxinM03F6yyxc9u8Iq4ryZBouRKb0DMeu+
Xj22TAVGd0hHe7Qbw3KEKshtC3FGP04317oXqmB5ZlH9TPzTXkuwzFTB8ZKc
WLSuskv9yVUFH+43MNG+e1d6Z2TR8Jlfd8MeXWwfVaujQBmzZTP6h5j18YU1
BfykQJMdcUbVQftegRJq3tep0VqVqVyrUsCKOIqHvsz2qNpkkEPUDs9BW2Lz
Py0vPEgOtpqo02iH5NTii4oC+OjdtRy9WSLsvDAsg1jzYKcNcRgnpmU8UAaH
tzSK0ClVASOUPB8qK4dc0Y/7Y37qhqVwdP/1RzOIW8ukGuFaKST6PRGiv9nI
g3Q9UjCK1DPQFhHmf7yefOAsmHbdmthrRQ0zcUgG+3uebkWfv+UXbvmlAPg/
5hutiOOaja3RTAW8plcVo8VNkwMyFyVk+V3ioQ0CfVAAiwJN0JV304n5fYM+
dYZCaKofrUZbmi4q6xPU8B8PC5Wx
"]]}},
AspectRatio->1,
Axes->{False, False},
AxesLabel->{None, None},
AxesOrigin->{-5.94761*^10, 680.},
DisplayFunction->Identity,
Frame->{{True, True}, {True, True}},
FrameLabel->{{None, None}, {None, None}},
FrameStyle->Directive[Opacity[0.5], Thickness[Tiny], RGBColor[0.368417, 0.506779, 0.709798]],
FrameTicks->{{None, None}, {None, None}},
GridLines->{None, None},
GridLinesStyle->Directive[GrayLevel[0.5, 0.4]],
ImageSize->{Automatic, 25.218494415283203`},
Method->{"DefaultBoundaryStyle" -> Automatic, "ScalingFunctions" -> None},
PlotRange->{{-59476032000, -59475340800}, {743.2967463107135, 1368.9321808808609`}},
PlotRangeClipping->True,
PlotRangePadding->{{Scaled[0.1], Scaled[0.1]}, {Scaled[0.1], Scaled[0.1]}},
Ticks->{Automatic, Automatic}]\)    Time: 13 Apr 15 to 21 Apr 15   \[SpanFromLeft]
Data points: 9  \[SpanFromLeft]



],TimeSeriesForecast[<<1>>]} is not a valid dataset or list of datasets. >>
Attachments:
POSTED BY: Antonio Arocha
2 Replies

Hi,

the forecast is not very good like this, but if you substitute your definition of forecast by

forecast = TimeSeriesForecast[eproc // Normal, teddata, {10}];

you get

DateListPlot[{teddata, forecast}, Joined -> True]

enter image description here

Cheers,

Marco

POSTED BY: Marco Thiel

Dear Marco:

Thank you very much, I got it working now.

Kind regards

POSTED BY: Antonio Arocha
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract